/* ================================
   Syncovia – Global Theme
   ================================ */

:root{
  --bg:#f8f9ff;
  --panel:#ffffff;
  --ink:#0b1020;
  --muted:#4b5570;
  --brand:#5B7CFF;
  --brand2:#00D4A6;
  --accent:#FFB84D;
  --radius:16px;
  --shadow: 0 16px 40px rgba(11,16,32,.08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at -10% -10%, #eef1ff 0%, transparent 70%),
    radial-gradient(900px 500px at 110% -20%, #f0fff9 0%, transparent 70%),
    var(--bg);
  line-height:1.6;
}

img{ max-width:100%; height:auto; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.small{ font-size:.9rem; color:var(--muted); }
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Layout helpers */
.wrap{ max-width:1100px; margin:0 auto; padding:0 1.25rem; }
.section{ padding:2.5rem 0; }
.section-header{ text-align:center; margin-bottom:1rem; }
.section-header h2{ font-size:clamp(1.8rem,2.8vw,2.4rem); margin:.25rem 0; }
.section-header p{ color:var(--muted); max-width:60ch; margin:.25rem auto 0; }

/* ================================
   Header / Nav
   ================================ */
.site-header{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:1rem 1.25rem;
  background:rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(11,16,32,.06);
}
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:800; color:var(--ink); }
.brand img{ filter: drop-shadow(0 2px 4px rgba(0,0,0,.08)); }

.site-nav{ display:flex; gap:1rem; align-items:center; }
.site-nav a{ padding:.5rem .75rem; border-radius:12px; }

.nav-toggle{
  display:none; border:0; background:#fff; width:42px; height:42px;
  border-radius:12px; box-shadow:var(--shadow); position:relative;
}
.nav-toggle:after{
  content:"\2630"; /* ? */
  position:absolute; inset:0; display:grid; place-items:center;
  font-size:1.1rem; color:#334;
}

/* Buttons */
.btn{
  display:inline-block; padding:.85rem 1.15rem; border-radius:999px;
  font-weight:700; border:1.5px solid transparent; box-shadow:var(--shadow);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background:linear-gradient(90deg,var(--brand),#7CA1FF); color:#fff; }
.btn-ghost{ background:#fff; border-color:#dfe3f7; }
.btn-outline{ background:#fff; border-color:var(--brand); color:var(--brand); }

/* ================================
   Hero
   ================================ */
.hero{
  display:grid; grid-template-columns:1.2fr .8fr; align-items:center; gap:2rem;
  min-height:56vh; padding:3rem 1.25rem 2.5rem;
  max-width:1100px; margin:0 auto;
}
.hero-inner{ text-align:center; }
.hero h1{ font-size:clamp(2.4rem,5vw,3.6rem); line-height:1.1; margin:.4rem 0 1rem; font-weight:800; letter-spacing:-0.02em; }
.hero .lead{ color:var(--muted); font-size:clamp(1rem,1.4vw,1.18rem); max-width:56ch; margin:0 auto 1rem; }
.cta-row{ display:flex; gap:1rem; justify-content:center; align-items:center; margin-top:.5rem; }

.hero-art{
  position:relative; min-height:260px; border-radius:20px;
  background:linear-gradient(160deg,#ffffff,#f0f4ff); box-shadow:var(--shadow); display:none;
}
.orb{ position:absolute; border-radius:50%; filter:blur(2px); opacity:.8; }
.orb-a{ width:120px; height:120px; background:#e1e9ff; top:24px; left:24px; }
.orb-b{ width:140px; height:140px; background:#d1fff0; right:40px; bottom:30px; }
.orb-c{ width:90px; height:90px; background:#ffe9c6; left:160px; bottom:10px; }

/* ================================
   Cards / Marketplace / Process / Pricing
   ================================ */
.cards{ background:linear-gradient(180deg,#fff, #f7fbff); }
.cards .grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; }
.card{
  background:var(--panel); border:1px solid #e9ecfb; border-radius:18px;
  padding:1.1rem 1.1rem 1.2rem; box-shadow:var(--shadow); text-align:left;
}
.card img{ width:48px; height:48px; }
.card h3{ margin:.6rem 0 .3rem; font-size:1.05rem; }
.card p{ color:var(--muted); }

.process .steps{ list-style:none; padding:0; margin:0; display:grid; gap:.9rem; }
.process .steps li{
  background:#fff; border:1px solid #e9ecfb; border-radius:18px;
  padding:1rem; box-shadow:var(--shadow); display:flex; gap:.9rem; align-items:flex-start;
}
.process .steps img{ width:34px; height:34px; flex:0 0 34px; }
.process .steps strong{ font-weight:800; }
.process em{ font-style:normal; font-weight:700; }

.marketplace{ background:linear-gradient(180deg,#fff,#f6fbff); }
.market-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.m-card{
  background:#fff; border:1px solid #e9ecfb; border-radius:18px;
  padding:1.25rem; box-shadow:var(--shadow); display:grid; gap:.45rem;
}
.m-card h3{ margin:.2rem 0; }
.m-card p{ color:var(--muted); }
.m-card ul{ margin:.2rem 0 .6rem 1.1rem; }

.pricing{ background:linear-gradient(180deg,#f6f8ff,#fff); }
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.price-card{
  background:#fff; border:1px solid #e9ecfb; border-radius:20px;
  padding:1.25rem; box-shadow:var(--shadow); position:relative; text-align:center;
}
.price-card .badge{
  position:absolute; top:-12px; right:12px; background:var(--brand2); color:#063;
  padding:.35rem .6rem; border-radius:10px; font-size:.8rem; font-weight:800;
}
.price{ font-size:1.9rem; font-weight:900; margin:.25rem 0; }
.blurb{ color:var(--muted); }

/* ================================
   Contact form
   ================================ */
.contact .contact-form{
  max-width:700px; margin:0 auto; display:grid; gap:1rem;
}
.field{ display:grid; gap:.35rem; }
input, textarea{
  padding:.8rem; border:1px solid #dfe3f7; border-radius:12px; font:inherit; background:#fff;
}
input:focus, textarea:focus{
  outline:none; box-shadow:0 0 0 .2rem rgba(91,124,255,.25); border-color:var(--brand);
}
.error{ color:#b00020; font-size:.85rem; height:1.1rem; }

/* Toggle switches for the two checkboxes */
.contact-form .field.small{
  display:flex; align-items:center; gap:12px; margin:12px 0; user-select:none;
}

/* Native checkbox ? switch */
.contact-form .field.small input[type="checkbox"]{
  -webkit-appearance:none; appearance:none;
  width:44px; height:26px; border-radius:999px;
  background:#d7deeb; border:1px solid #c8d1e4;
  position:relative; outline:none; cursor:pointer;
  transition:background .18s ease, box-shadow .18s ease; vertical-align:middle;
}
.contact-form .field.small input[type="checkbox"]::after{
  content:""; position:absolute; width:22px; height:22px; border-radius:50%;
  top:1px; left:1px; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.15);
  transition:transform .18s ease;
}
.contact-form .field.small input[type="checkbox"]:checked{
  background:#5B7CFF; border-color:#5B7CFF;
}
.contact-form .field.small input[type="checkbox"]:checked::after{
  transform:translateX(18px);
}
.contact-form .field.small input[type="checkbox"]:focus-visible{
  box-shadow:0 0 0 3px rgba(91,124,255,.35);
}
.contact-form .field.small input[type="checkbox"]:disabled{
  opacity:.6; cursor:not-allowed;
}
.contact-form .field.small span{ line-height:1.35; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .contact-form .field.small input[type="checkbox"],
  .contact-form .field.small input[type="checkbox"]::after{ transition:none; }
}

/* ================================
   Footer
   ================================ */
.site-footer{ border-top:1px solid #e9ecfb; margin-top:2rem; padding:1.25rem 0; background:#fff; }
.footer-top{ display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.footer-nav{ display:flex; gap:.9rem; flex-wrap:wrap; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; color:var(--muted); }

/* Footer "Cookie settings" as link-style button */
.footer-nav .linklike{
  appearance:none; background:none; border:0; padding:0;
  margin-left:.75rem; color:#5B7CFF; text-decoration:underline; cursor:pointer;
  font:inherit; line-height:1.2;
}
.footer-nav .linklike:hover{ text-decoration:none; }
.footer-nav .linklike:focus-visible{
  outline:2px solid currentColor; outline-offset:2px; border-radius:4px;
}

/* ================================
   Cookie modal – switch overrides
   (Base banner/modal layout lives in assets/consent.css)
   ================================ */
#cookie-modal .switch{ width:44px; height:26px; position:relative; display:inline-block; }
#cookie-modal .switch input{ opacity:0; width:0; height:0; }

/* track */
#cookie-modal .slider{
  position:absolute; inset:0; border-radius:999px;
  background:#d7deeb; border:1px solid #c8d1e4;
  transition:background .18s ease, box-shadow .18s ease;
}
/* knob */
#cookie-modal .slider:before{
  content:""; position:absolute; top:1px; left:1px; width:22px; height:22px; border-radius:50%;
  background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.15); transition:transform .18s ease;
}
#cookie-modal input:checked + .slider{ background:#5B7CFF; border-color:#5B7CFF; }
#cookie-modal input:checked + .slider:before{ transform:translateX(18px); }
#cookie-modal input:focus-visible + .slider{ box-shadow:0 0 0 3px rgba(91,124,255,.35); }

#cookie-modal .row{
  display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center;
  border-top:1px solid rgba(11,16,32,.08); padding:12px 0;
}
#cookie-modal small{ color:var(--muted); }

/* ================================
   Responsive
   ================================ */
@media (max-width:1000px){
  .cards .grid{ grid-template-columns:repeat(2,1fr); }
  .market-grid{ grid-template-columns:repeat(2,1fr); }
  .hero{ grid-template-columns:1fr; }
  .hero-art{ display:block; }
}
@media (max-width:720px){
  .pricing-grid{ grid-template-columns:1fr; }
  .cards .grid, .market-grid{ grid-template-columns:1fr; }
  .site-nav{ display:none; }
  .nav-toggle{ display:inline-grid; place-items:center; }
}

/* Mobile drawer when .open is applied to body or header */
.open #site-nav{
  display:flex; flex-wrap:wrap; gap:.5rem;
  position:absolute; top:64px; left:0; right:0; background:#fff;
  padding:1rem; border-bottom:1px solid #e9ecfb;
}


/* Force the footer Cookie settings to be link-styled */
.footer-nav button#cookieSettingsBtn.linklike{
  all: unset;                 /* wipe UA/legacy button styles */
  display: inline;            /* behave like a text link */
  color: #5B7CFF;             /* Syncovia blue */
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  margin-left: .75rem;        /* space after "Cookies" link */
}
.footer-nav button#cookieSettingsBtn.linklike:hover{ text-decoration: none; }
.footer-nav button#cookieSettingsBtn.linklike:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contact form: force layout for the two consent toggles */
#contact .contact-form label.field.small{
  display: flex !important;    /* beat earlier .field{display:grid} */
  align-items: center !important;
  gap: 12px !important;
  margin: 12px 0;
  user-select: none;
}

/* Native checkbox ? switch (visuals) */
#contact .contact-form label.field.small input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d7deeb;
  border: 1px solid #c8d1e4;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
  vertical-align: middle;
  margin: 0;                   /* kill default misalignment */
}
#contact .contact-form label.field.small input[type="checkbox"]::after{
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .18s ease;
}
#contact .contact-form label.field.small input[type="checkbox"]:checked{
  background: #5B7CFF;
  border-color: #5B7CFF;
}
#contact .contact-form label.field.small input[type="checkbox"]:checked::after{
  transform: translateX(18px);
}
#contact .contact-form label.field.small input[type="checkbox"]:focus-visible{
  box-shadow: 0 0 0 3px rgba(91,124,255,.35);
}
#contact .contact-form label.field.small span{
  line-height: 1.35;
}

