/* ============================================================
   Ascend Media — design system
   Warm paper + ink. Orange is a highlight, never a paint colour.
   ============================================================ */

@import url('/fonts/fonts.css');

:root{
  /* surfaces */
  --background:#f4f2ed;
  --surface:#ffffff;
  --subtle:#f9f8f5;
  /* ink */
  --foreground:#1c1a17;
  --muted:#6b665b;
  --muted-2:#8a8578;
  --border:#e7e3da;
  --accent-soft:#e8e2d0;
  /* night */
  --night:#000000;
  --panel:#121212;
  /* orange — title accents, night glow, progress only */
  --orange:#FF8F1A;
  --orange-ink:#E06A00;
  --orange-light:#FFB366;
  /* status */
  --ok:#1f7a46;      --ok-bg:#e4f2e8;   --ok-br:#cfe6d6;
  --warn:#9a6700;    --warn-bg:#fbf1dc; --warn-br:#f0dfb7;
  --danger:#c23a26;  --danger-bg:#fbe9e5; --danger-br:#f1cfc7;
  --info:#2f6fde;    --info-bg:#e7eefc; --info-br:#cddcf8;

  --radius:16px;
  --radius-sm:12px;
  --shadow:0 1px 2px rgba(28,26,23,.04);
  --shadow-lift:0 4px 14px rgba(28,26,23,.07);
  --ease:cubic-bezier(.22,.61,.36,1);
  --font-body:'Geist',system-ui,-apple-system,sans-serif;
  --font-title:'Poppins',system-ui,-apple-system,sans-serif;
  --font-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{background:var(--background);scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  background:var(--background);color:var(--foreground);
  font-family:var(--font-body);font-size:16px;line-height:1.6;font-weight:400;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
@media(max-width:640px){body{font-size:15px;}}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
:focus-visible{outline:2px solid var(--foreground);outline-offset:2px;border-radius:4px;}

/* ---------- layout ---------- */
.wrap{max-width:1120px;margin:0 auto;padding:0 24px;}
.wrap-wide{max-width:1280px;margin:0 auto;padding:0 24px;}
.wrap-text{max-width:720px;margin:0 auto;padding:0 24px;}
section{padding:112px 0;}
@media(max-width:768px){section{padding:64px 0;}.wrap,.wrap-wide,.wrap-text{padding:0 20px;}}

/* ---------- type ---------- */
h1,h2,h3,h4{font-family:var(--font-title);font-weight:600;letter-spacing:-0.015em;}
h1{font-size:clamp(40px,5.6vw,68px);line-height:1.18;letter-spacing:.01em;word-spacing:.14em;}
h2{font-size:clamp(28px,3.4vw,40px);line-height:1.15;}
h3{font-size:19px;line-height:1.3;}
.accent{color:var(--orange-ink);}
.night .accent,.panel .accent{color:var(--orange);}
.period{color:var(--muted-2);}
.eyebrow{
  display:block;font-family:var(--font-body);font-size:12px;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;color:var(--muted-2);margin-bottom:14px;
}
.night .eyebrow{color:var(--orange-light);}
.lead{font-size:18px;color:var(--muted);max-width:60ch;margin-top:16px;line-height:1.6;}
@media(max-width:640px){.lead{font-size:16.5px;}}
.night .lead{color:#c9c4b8;}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums;}
.section-head{margin-bottom:44px;}
.section-head.center{text-align:center;}
.section-head.center .lead{margin-left:auto;margin-right:auto;}

/* ---------- night ---------- */
.night{background:var(--night);position:relative;overflow:hidden;color:#f8f6f1;}
/* The glow is a CIRCLE on a square box, capped in px. An `ellipse` sized in
   percentages takes its radii from the box's width and height, so on a wide
   monitor it stretches into a flat smear instead of the round glow in the
   brand artwork. aspect-ratio:1 + min() keeps the shape at every width. */
.night::after{
  content:"";position:absolute;pointer-events:none;
  /* the circle's CENTRE is pinned to 88%/10% of the banner and translated back
     by half its own size, so the core stays in the top-right corner at every
     width — right/top offsets on a fixed-size circle drift toward the middle
     as the viewport grows */
  left:88%;top:10%;transform:translate(-50%,-50%);
  width:min(1250px,105%);aspect-ratio:1;
  background:radial-gradient(circle,
    rgba(205,112,28,.80),rgba(205,112,28,.34) 34%,rgba(205,112,28,.10) 56%,transparent 74%);
}
.night::before{
  content:"";position:absolute;pointer-events:none;
  left:6%;top:104%;transform:translate(-50%,-50%);
  width:min(1050px,92%);aspect-ratio:1;
  background:radial-gradient(circle,
    rgba(240,122,0,.24),rgba(240,122,0,.09) 44%,transparent 74%);
}
@media(max-width:640px){
  /* narrow banner: keep the centre in the corner, dial the heat right down */
  .night::after{
    left:86%;top:6%;width:min(760px,165%);
    background:radial-gradient(circle,
      rgba(205,112,28,.46),rgba(205,112,28,.16) 36%,transparent 72%);
  }
  .night::before{
    left:8%;top:106%;width:min(620px,150%);
    background:radial-gradient(circle,
      rgba(240,122,0,.13),rgba(240,122,0,.05) 44%,transparent 74%);
  }
}
@media(max-width:400px){
  .night::after{left:88%;top:4%;width:min(680px,175%);}
  .night::before{left:8%;top:108%;width:min(560px,160%);}
}
.night > *{position:relative;z-index:1;}
.panel{background:var(--panel);color:#f8f6f1;border-radius:var(--radius);}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:44px;padding:0 22px;border-radius:var(--radius-sm);
  font-family:var(--font-body);font-size:15px;font-weight:500;
  border:1px solid transparent;cursor:pointer;white-space:nowrap;
  transition:background .2s var(--ease),color .2s var(--ease),
             border-color .2s var(--ease),box-shadow .2s var(--ease);
}
.btn svg{flex-shrink:0;}
.btn-primary{background:var(--foreground);color:#f8f6f1;}
.btn-primary:hover{background:#000;}
.night .btn-primary,.btn-on-night{background:#f8f6f1;color:var(--foreground);}
.night .btn-primary:hover,.btn-on-night:hover{background:#fff;}
.btn-secondary{background:var(--surface);color:var(--foreground);border-color:var(--border);}
.btn-secondary:hover{border-color:var(--muted-2);}
.btn-plain{height:auto;padding:0;background:none;color:var(--muted);font-weight:400;}
.btn-plain:hover{color:var(--foreground);text-decoration:underline;}
.night .btn-plain{color:#c9c4b8;}
.night .btn-plain:hover{color:#fff;}

/* ---------- card & panel ---------- */
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:28px;box-shadow:var(--shadow);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.card-hover:hover{transform:translateY(-1px);box-shadow:var(--shadow-lift);}
.subtle-panel{background:var(--subtle);border:1px solid var(--border);border-radius:var(--radius);padding:24px;}

/* ---------- badges ---------- */
.badge{
  display:inline-flex;align-items:center;height:24px;padding:0 11px;border-radius:999px;
  font-size:13px;font-weight:500;line-height:1;
}
.badge-soft{background:var(--accent-soft);color:var(--foreground);}
.badge-outline{background:var(--surface);color:var(--foreground);border:1px solid var(--foreground);}
.badge-ink{background:var(--foreground);color:#f8f6f1;}
.night .badge-ink,.panel .badge-ink{background:#2a2620;border:1px solid #3a352c;color:#f8f6f1;}
.badge-ok{background:var(--ok-bg);color:var(--ok);}
.badge-warn{background:var(--warn-bg);color:var(--warn);}
.badge-danger{background:var(--danger-bg);color:var(--danger);}

/* ---------- proof strip ---------- */
.proof{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);
       border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;}
.proof > div{padding:26px 24px;border-right:1px solid var(--border);}
.proof > div:last-child{border-right:0;}
.proof .label{font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);}
.proof .value{font-family:var(--font-mono);font-size:clamp(22px,2.6vw,30px);font-weight:500;
              margin-top:10px;letter-spacing:-0.02em;font-variant-numeric:tabular-nums;}
.proof .hint{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.45;}
@media(max-width:860px){
  .proof{grid-template-columns:repeat(2,1fr);}
  .proof > div:nth-child(2n){border-right:0;}
  .proof > div:nth-child(-n+2){border-bottom:1px solid var(--border);}
}
@media(max-width:480px){
  .proof{grid-template-columns:1fr;}
  .proof > div{border-right:0;border-bottom:1px solid var(--border);}
  .proof > div:last-child{border-bottom:0;}
}

/* ---------- steps ---------- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
@media(max-width:860px){.steps{grid-template-columns:1fr;}}
.step-num{
  display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;
  border-radius:999px;background:var(--foreground);color:#f8f6f1;
  font-family:var(--font-mono);font-size:13px;font-weight:500;margin-bottom:16px;
}
.step h3{margin-bottom:8px;}
.step p{font-size:15px;color:var(--muted);line-height:1.6;}

/* ---------- who does what / status columns ---------- */
.cols-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.cols-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;}
@media(max-width:860px){.cols-3,.cols-2{grid-template-columns:1fr;}}
.tone-ok{border-color:var(--ok-br);}
.tone-ok h3{color:var(--ok);}
.tone-warn{border-color:var(--warn-br);}
.tone-warn h3{color:var(--warn);}
.tone-danger{border-color:var(--danger-br);}
.tone-danger h3{color:var(--danger);}
.tone-note{font-size:14px;color:var(--muted);margin:6px 0 16px;}

/* ---------- lists ---------- */
.ticks{list-style:none;}
.ticks li{position:relative;padding-left:26px;margin-bottom:11px;font-size:15px;line-height:1.55;}
.ticks li::before{
  content:"";position:absolute;left:3px;top:7px;width:9px;height:5px;
  border-left:1.6px solid var(--ok);border-bottom:1.6px solid var(--ok);transform:rotate(-45deg);
}
.dashes{list-style:none;}
.dashes li{position:relative;padding-left:26px;margin-bottom:11px;font-size:15px;line-height:1.55;color:var(--muted);}
.dashes li::before{content:"";position:absolute;left:3px;top:11px;width:10px;height:1.5px;background:var(--muted-2);}
.arrows{list-style:none;}
.arrows li{position:relative;padding-left:26px;margin-bottom:11px;font-size:15px;line-height:1.55;}
.arrows li::before{content:"→";position:absolute;left:0;top:0;color:#8a8578;}

/* ---------- tables ---------- */
.table-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
            box-shadow:var(--shadow);overflow:hidden;}
.table-scroll{overflow-x:auto;}
table{width:100%;border-collapse:collapse;}
thead th{
  background:var(--subtle);font-family:var(--font-body);font-size:13px;font-weight:500;
  color:var(--muted);text-align:left;padding:13px 20px;border-bottom:1px solid var(--border);
}
tbody td{padding:15px 20px;border-bottom:1px solid var(--border);font-size:15px;vertical-align:top;}
tbody tr:last-child td{border-bottom:0;}
tbody td:first-child{font-weight:500;}
td.num,th.num{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums;}

/* ---------- accordion ---------- */
details{border-bottom:1px solid var(--border);}
details:first-of-type{border-top:1px solid var(--border);}
summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 0;cursor:pointer;list-style:none;
  font-family:var(--font-title);font-size:17px;font-weight:600;letter-spacing:-0.012em;
}
summary::-webkit-details-marker{display:none;}
summary::after{
  content:"";width:9px;height:9px;flex-shrink:0;
  border-right:1.6px solid var(--muted-2);border-bottom:1.6px solid var(--muted-2);
  transform:rotate(45deg) translateY(-2px);transition:transform .2s var(--ease);
}
details[open] summary::after{transform:rotate(-135deg) translateY(-2px);}
details p{padding-bottom:22px;font-size:15.5px;color:var(--muted);line-height:1.65;max-width:68ch;}
details p + p{padding-top:0;margin-top:-8px;}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:60;height:64px;display:flex;align-items:center;
  background:rgba(244,242,237,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;transition:border-color .2s var(--ease);
}
.site-head.scrolled{border-bottom-color:var(--border);}
/* At the top of a page with a night hero the bar carries the night colour, so it
   reads as one block with the hero below it; on scroll it becomes the light bar.
   Every night rule is scoped :not(.scrolled) — without that the white logo
   would stay white once the bar turns light, and vanish. */
.site-head.on-night:not(.scrolled){background:var(--night);}
.head-in{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;}
.site-head .logo{height:24px;width:auto;}
.site-head.on-night:not(.scrolled) .logo{filter:invert(1) brightness(2);}
.nav{display:flex;gap:28px;font-size:15px;color:var(--muted);}
.nav a:hover{color:var(--foreground);}
.nav a.active{color:var(--foreground);font-weight:500;}
.site-head.on-night:not(.scrolled) .nav{color:#c9c4b8;}
.site-head.on-night:not(.scrolled) .nav a:hover{color:#fff;}
.site-head.on-night:not(.scrolled) .nav a.active{color:#fff;}
/* ink on black is unreadable — the header button flips to the on-night variant */
.site-head.on-night:not(.scrolled) .btn-primary{background:#f8f6f1;color:var(--foreground);}
.site-head.on-night:not(.scrolled) .btn-primary:hover{background:#fff;}
.nav-toggle{display:none;width:40px;height:40px;align-items:center;justify-content:center;
            background:none;border:0;cursor:pointer;color:var(--foreground);}
.site-head.on-night:not(.scrolled) .nav-toggle{color:#f8f6f1;}
@media(max-width:900px){
  .nav{display:none;}
  .nav-toggle{display:inline-flex;}
  .site-head .btn{display:none;}
}
.sheet{
  position:fixed;inset:0;z-index:70;background:var(--surface);
  display:flex;flex-direction:column;padding:24px;
  transform:translateY(-100%);transition:transform .25s var(--ease);
}
.sheet[data-open="true"]{transform:none;}
.sheet-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px;}
.sheet nav{display:flex;flex-direction:column;gap:4px;}
.sheet nav a{font-family:var(--font-title);font-size:24px;font-weight:600;padding:12px 0;letter-spacing:-0.015em;}
.sheet .btn{margin-top:auto;width:100%;}

/* ---------- footer ---------- */
.site-foot{background:var(--background);border-top:1px solid var(--border);padding:56px 0 40px;}
.foot-grid{display:flex;justify-content:space-between;gap:48px;flex-wrap:wrap;}
.foot-brand img{height:24px;margin-bottom:14px;}
.foot-brand p{font-size:14px;color:var(--muted);max-width:280px;line-height:1.55;}
.foot-cols{display:flex;gap:56px;flex-wrap:wrap;}
.foot-col h4{font-family:var(--font-body);font-size:12px;font-weight:500;letter-spacing:.12em;
             text-transform:uppercase;color:var(--muted-2);margin-bottom:14px;}
.foot-col a{display:block;font-size:14.5px;color:var(--muted);margin-bottom:10px;}
.foot-col a:hover{color:var(--foreground);}
.foot-partners{margin-top:40px;padding-top:28px;border-top:1px solid var(--border);}
.foot-partners .lbl{font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
                    color:var(--muted-2);margin-bottom:16px;display:block;}
.fp-row{display:flex;align-items:center;gap:40px;flex-wrap:wrap;}
/* The supplied logo files are white-only artwork, so on this light footer they
   are rendered as ink silhouettes. Hover lifts them to full strength. Real brand
   colour needs colour versions of the files — see .fp-row img.colour below. */
.fp-row img{
  height:22px;width:auto;opacity:.45;filter:grayscale(1) brightness(0);
  transition:opacity .2s var(--ease),filter .2s var(--ease);
}
/* This mark is a white badge with a dark glyph inside it. brightness(0) turns
   both black and the glyph vanishes, so it needs inverting instead: the badge
   goes dark and the glyph comes back as light. */
.fp-row img[src*="wetracked"]{filter:grayscale(1) invert(1);}
.fp-row img:hover,.fp-row a:hover img{opacity:1;}
/* drop this class on an <img> once a full-colour file is in place and it will
   show its own colours on hover instead of the ink silhouette */
.fp-row img.colour{filter:grayscale(1) opacity(.55);}
.fp-row img.colour:hover{filter:none;opacity:1;}
.foot-legal{margin-top:32px;padding-top:20px;border-top:1px solid var(--border);
            font-size:13px;color:var(--muted-2);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;}

/* ---------- motion ---------- */
.rise{opacity:1;}
.js .rise{opacity:0;transform:translateY(8px);}
.js .rise.in{opacity:1;transform:none;transition:opacity .3s ease-out,transform .3s ease-out;}
@media(prefers-reduced-motion:reduce){
  .js .rise{opacity:1!important;transform:none!important;transition:none!important;}
  html{scroll-behavior:auto;}
}

/* ============================================================
   Page sections
   ============================================================ */

/* alternating light surface — used sparingly, to separate content */
.alt{background:var(--surface);}

/* hero (night) */
.hero{padding:96px 0 104px;}
.hero-in{max-width:860px;}
.hero .lead{margin-top:20px;max-width:56ch;}
.hero-acts{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:34px;}
.hero-note{display:inline-flex;align-items:center;font-size:13px;color:#c9c4b8;}
.pulse-dot{
  position:relative;display:inline-block;width:7px;height:7px;border-radius:999px;
  background:var(--orange);flex-shrink:0;margin-right:10px;
}
.pulse-dot::after{
  content:"";position:absolute;inset:0;border-radius:999px;border:1px solid var(--orange);
  animation:pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring{0%{transform:scale(1);opacity:.6;}70%,100%{transform:scale(2.6);opacity:0;}}
@media(prefers-reduced-motion:reduce){.pulse-dot::after{animation:none;opacity:.35;}}
.hero-proof{display:flex;gap:40px;flex-wrap:wrap;margin-top:48px;padding-top:28px;
            border-top:1px solid rgba(248,246,241,.14);}
.hero-proof .v{display:block;font-size:24px;font-weight:500;letter-spacing:-0.02em;color:#f8f6f1;}
.hero-proof .l{display:block;font-size:13px;color:#c9c4b8;margin-top:6px;max-width:26ch;line-height:1.45;}
@media(max-width:640px){
  .hero{padding:64px 0 72px;}
  .hero-proof{gap:24px;}
  .hero-acts .btn{width:100%;}
}

/* proof strip sits tight under the hero */
.proof-sec{padding:56px 0;}

/* results grid */
/* swipeable rail — manual only, nothing auto-advances */
.res-grid{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;
  overscroll-behavior-x:contain;
  padding:4px 24px 8px;margin:0 -24px;
  scrollbar-width:none;-ms-overflow-style:none;
}
.res-grid::-webkit-scrollbar{display:none;}
.res-grid > .card{flex:0 0 clamp(268px,30vw,336px);scroll-snap-align:start;}
.res-grid:focus-visible{outline:2px solid var(--foreground);outline-offset:4px;border-radius:var(--radius);}
@media(max-width:640px){.res-grid{padding-left:20px;padding-right:20px;margin:0 -20px;}}
.label{display:block;font-size:12px;font-weight:500;letter-spacing:.1em;
       text-transform:uppercase;color:var(--muted-2);}
.res-v{font-size:30px;font-weight:500;letter-spacing:-0.03em;margin-top:12px;line-height:1;}
.res-pm{font-size:14px;color:var(--muted);margin-top:8px;}
.res-grid p{font-size:14.5px;color:var(--muted);line-height:1.55;margin-top:16px;
            padding-top:16px;border-top:1px solid var(--border);}
.res-grid p a{color:var(--orange-ink);font-weight:500;text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(224,106,0,.45);}
.res-grid p a:hover{text-decoration-color:var(--orange-ink);}
.source-note{font-size:13px;color:var(--muted-2);margin-top:20px;}

/* segmentation panel (dark block, no glow) */
.seg-panel{padding:36px 34px;}
.seg-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;}
@media(max-width:900px){.seg-grid{grid-template-columns:repeat(2,1fr);gap:24px;}}
@media(max-width:520px){.seg-grid{grid-template-columns:1fr;}}
.seg p{font-size:14px;color:#c9c4b8;line-height:1.55;margin-top:12px;}

/* steps */
.step .label{margin-bottom:6px;}

/* pricing */
.pricing-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:start;}
@media(max-width:900px){.pricing-grid{grid-template-columns:1fr;gap:36px;}}
.pricing-grid .section-head{margin-bottom:0;}
td .sub{display:block;font-size:13.5px;font-weight:400;color:var(--muted);margin-top:3px;}
.table-card td.num{font-size:17px;font-weight:500;white-space:nowrap;}
.fee-note{font-size:13px;color:var(--muted);line-height:1.6;margin-top:16px;}
.addon{margin-top:20px;}
.addon-row{display:flex;align-items:center;justify-content:space-between;gap:20px;
           flex-wrap:wrap;margin-top:14px;}
.addon-row strong{font-size:15.5px;font-weight:500;}
.addon-price{font-size:19px;font-weight:500;white-space:nowrap;}
.addon .fee-note{margin-top:12px;}

/* closing CTA */
.cta-close{padding:104px 0;}
.cta-logo{height:26px;width:auto;margin:0 auto 24px;filter:invert(1) brightness(2);}
.cta-acts{display:flex;align-items:center;justify-content:center;gap:22px;flex-wrap:wrap;margin-top:32px;}
@media(max-width:640px){.cta-close{padding:72px 0;}.cta-acts .btn-on-night{width:100%;}}

/* ============================================================
   Long-form pages — legal, case study, onboarding
   ============================================================ */

/* shared page hero (night) */
.legal-hero,.cs-hero,.onb-hero{padding:72px 0 76px;}
.legal-hero h1,.cs-hero h1,.onb-hero h1{font-size:clamp(34px,4.4vw,52px);line-height:1.06;max-width:20ch;}
.legal-hero .sub,.cs-hero .sub,.onb-hero .sub{
  margin-top:18px;max-width:62ch;font-size:17.5px;color:#c9c4b8;line-height:1.6;
}
.legal-meta{
  margin-top:28px;padding-top:20px;border-top:1px solid rgba(248,246,241,.14);
  display:flex;gap:28px;flex-wrap:wrap;font-family:var(--font-mono);
  font-size:12.5px;color:#9c968a;
}
.legal-meta b{color:#f8f6f1;font-weight:500;}

/* two-column: sticky contents + article */
.legal-layout,.cs-layout{
  display:grid;grid-template-columns:220px minmax(0,1fr);gap:60px;
  align-items:start;padding:64px 0 96px;
}
@media(max-width:900px){
  .legal-layout,.cs-layout{grid-template-columns:1fr;gap:0;padding-top:44px;}
}
.toc{position:sticky;top:88px;}
@media(max-width:900px){
  .toc{position:static;margin-bottom:40px;padding-bottom:28px;border-bottom:1px solid var(--border);}
}
.toc h4{
  font-family:var(--font-body);font-size:12px;font-weight:500;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted-2);margin-bottom:14px;
}
.toc a{
  display:block;font-size:13.5px;line-height:1.45;color:var(--muted);
  padding:6px 0 6px 13px;border-left:1px solid var(--border);
}
.toc a:hover{color:var(--foreground);border-left-color:var(--muted-2);}

/* article body */
.legal,.cs-article{max-width:720px;}
.legal section,.cs-article section{scroll-margin-top:84px;}
.legal section + section,.cs-article section + section{margin-top:48px;}
.legal h2,.cs-article h2{font-size:23px;line-height:1.25;margin-bottom:14px;display:flex;gap:12px;align-items:baseline;}
.legal h2 .num{
  font-family:var(--font-mono);font-size:12px;font-weight:500;color:var(--muted-2);
  flex-shrink:0;padding-top:3px;
}
.legal h3,.cs-article h3{font-size:16.5px;margin:26px 0 9px;}
.legal p,.cs-article p{font-size:16.5px;color:var(--foreground);line-height:1.68;margin-bottom:14px;}
.legal p:last-child,.cs-article p:last-child{margin-bottom:0;}
.cs-article .lead{font-size:18px;color:var(--muted);margin-top:0;margin-bottom:14px;max-width:none;}
.legal ul,.cs-article ul{list-style:none;margin:8px 0 16px;}
.legal li,.cs-article li{
  position:relative;padding-left:22px;margin-bottom:10px;font-size:16px;line-height:1.62;
}
.legal li::before,.cs-article li::before{
  content:"";position:absolute;left:2px;top:11px;width:7px;height:1.5px;background:var(--muted-2);
}
.legal strong,.cs-article strong{font-weight:500;}
.legal a.inline,.cs-article a.inline{
  color:var(--foreground);text-decoration:underline;text-underline-offset:2px;
  text-decoration-color:var(--muted-2);
}
.legal a.inline:hover,.cs-article a.inline:hover{text-decoration-color:var(--foreground);}

/* callouts */
.callout,.cs-callout{
  background:var(--subtle);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px 24px;margin:22px 0;
}
.callout p,.cs-callout p{font-size:15.5px;color:var(--muted);margin-bottom:10px;}
.callout p:last-child,.cs-callout p:last-child{margin-bottom:0;}
.cs-callout strong,.callout strong{color:var(--foreground);font-weight:500;}

/* case study extras */
.cs-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px;}
.cs-tags span{
  display:inline-flex;align-items:center;height:24px;padding:0 11px;border-radius:999px;
  font-size:12px;font-weight:500;letter-spacing:.06em;
  background:rgba(248,246,241,.09);border:1px solid rgba(248,246,241,.18);color:#f8f6f1;
}
.cs-id{display:flex;align-items:center;gap:13px;margin-top:26px;padding-top:22px;
       border-top:1px solid rgba(248,246,241,.14);}
.cs-id .av{
  width:40px;height:40px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:#2a2620;border:1px solid #3a352c;color:#f8f6f1;font-size:15px;font-weight:500;
}
.cs-id .n{font-size:15.5px;font-weight:500;color:#f8f6f1;}
.cs-id .r{font-size:12.5px;color:#9c968a;margin-top:3px;}
.cs-stats{
  display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);
  overflow:hidden;margin-top:-32px;position:relative;z-index:2;
}
@media(max-width:760px){.cs-stats{grid-template-columns:repeat(2,1fr);margin-top:-24px;}}
.cs-stat{padding:24px 22px;border-right:1px solid var(--border);}
.cs-stat:last-child{border-right:0;}
@media(max-width:760px){
  .cs-stat:nth-child(2n){border-right:0;}
  .cs-stat:nth-child(-n+2){border-bottom:1px solid var(--border);}
}
.cs-stat .v{font-family:var(--font-mono);font-size:clamp(22px,2.4vw,28px);font-weight:500;
            letter-spacing:-0.02em;line-height:1;font-variant-numeric:tabular-nums;}
.cs-stat .l{display:block;margin-top:9px;font-size:12px;font-weight:500;letter-spacing:.1em;
            text-transform:uppercase;color:var(--muted-2);line-height:1.4;}
.cs-seg{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:20px 0 18px;}
@media(max-width:620px){.cs-seg{grid-template-columns:1fr;}}
.cs-seg div{background:var(--subtle);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px 18px;}
.cs-seg b{display:block;font-size:14.5px;font-weight:500;margin-bottom:4px;}
.cs-seg span{font-size:14px;color:var(--muted);line-height:1.55;}
.cs-fig{margin:28px 0 8px;}
.cs-fig img{width:100%;height:auto;border-radius:var(--radius);border:1px solid var(--border);}
.cs-fig figcaption{margin-top:11px;font-size:13px;color:var(--muted);line-height:1.55;}
.cs-cta{background:var(--subtle);border:1px solid var(--border);border-radius:var(--radius);
        padding:30px 28px;margin-top:44px;}
.cs-cta h2{margin-bottom:10px;}
.cs-cta p{font-size:15.5px;color:var(--muted);margin-bottom:20px;}

/* onboarding */
.onb-body{padding-top:64px;padding-bottom:96px;}
.onb-card{max-width:720px;background:var(--surface);border:1px solid var(--border);
          border-radius:var(--radius);padding:34px 32px;box-shadow:var(--shadow);}
.onb-card h2{font-size:22px;margin-bottom:12px;}
.onb-card > p{font-size:16px;color:var(--muted);line-height:1.68;}
.onb-steps{list-style:none;margin:24px 0 28px;display:flex;flex-direction:column;gap:13px;}
.onb-steps li{position:relative;padding-left:38px;font-size:15.5px;line-height:1.55;}
.onb-steps li .i{
  position:absolute;left:0;top:-1px;width:26px;height:26px;border-radius:999px;
  background:var(--foreground);color:#f8f6f1;font-family:var(--font-mono);font-size:12px;
  display:flex;align-items:center;justify-content:center;
}
.onb-meta{margin-top:22px;padding-top:18px;border-top:1px solid var(--border);
          font-size:13.5px;color:var(--muted);line-height:1.6;}
.onb-meta a{color:var(--foreground);text-decoration:underline;text-underline-offset:2px;}
.onb-help{max-width:720px;margin-top:26px;font-size:15px;color:var(--muted);line-height:1.65;}
.onb-help a{color:var(--foreground);text-decoration:underline;text-underline-offset:2px;}

/* ============================================================
   WhatsApp button
   Carries WhatsApp's own green deliberately — the point of the
   button is instant recognition, so brand colour beats system ink.
   ============================================================ */
.wa-fab{
  position:fixed;z-index:80;
  right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));
  display:flex;align-items:center;height:56px;width:56px;
  border-radius:999px;overflow:hidden;
  background:#25D366;color:#fff;
  box-shadow:0 6px 20px -6px rgba(37,211,102,.5),0 2px 8px rgba(28,26,23,.14);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s var(--ease),transform .25s var(--ease),
             visibility .25s,width .25s var(--ease),background .2s var(--ease);
}
.wa-fab.show{opacity:1;visibility:visible;transform:none;}
.wa-fab svg{width:27px;height:27px;fill:currentColor;flex-shrink:0;margin:0 14.5px;}
.wa-label{
  white-space:nowrap;font-family:var(--font-body);font-size:14.5px;font-weight:500;
  padding-right:22px;opacity:0;transition:opacity .2s var(--ease);
}
@media (hover:hover) and (pointer:fine){
  .wa-fab:hover,.wa-fab:focus-visible{width:206px;background:#1EBE5B;}
  .wa-fab:hover .wa-label,.wa-fab:focus-visible .wa-label{opacity:1;}
}
@media(max-width:640px){
  .wa-fab{right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));height:52px;width:52px;}
  .wa-fab svg{width:25px;height:25px;margin:0 13.5px;}
}
@media(prefers-reduced-motion:reduce){
  .wa-fab{transition:opacity .2s linear,visibility .2s;transform:none;}
}
