/* =====================================================================
   Decadrya — Marketing Site Design System
   Shared across every public page. Tokens mirror the app (the app)
   so the marketing surface and the product read as one instrument.
   Dark-first; light mode supported. Calm, deterministic, anti-shame.
   ===================================================================== */

/* ============ FONTS (self-hosted) ============
   Sora and Hanken Grotesk, SIL Open Font License 1.1 (see assets/fonts/LICENSE.md).
   Served from this origin so no visitor request reaches a third party — the
   privacy policy names every processor, and a font CDN was not one of them.
   Variable weight axes cover the whole 400–800 range the design uses. */
@font-face{
  font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;
  src:url(../fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Hanken Grotesk';font-style:normal;font-weight:400 800;font-display:swap;
  src:url(../fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'Sora';font-style:normal;font-weight:400 800;font-display:swap;
  src:url(../fonts/sora-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Sora';font-style:normal;font-weight:400 800;font-display:swap;
  src:url(../fonts/sora-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ============ TOKENS — DARK (default) ============ */
:root{
  --bg:#0E0E10;
  --surface:#17171A;
  --raised:#212126;
  --border:#2C2C33;
  --text:#FAFAF8;
  --muted:#ABABB3;
  --soft:#D6D6DC;
  --accent:#5B5CF0;
  --accent-text:#A2A3FF;
  --accent-hover:#6E6FF5;
  --accent-soft:rgba(91,92,240,.14);
  /* State colours come in pairs, exactly as the accent does: the base tints
     fills and icons, the -text variant is the one tuned to stay AAA-legible on
     a 16% tint of itself, which is where every badge and verdict label lives. */
  --success:#3FB27F;
  --success-text:#6FE0AC;
  --warn:#D9A441;
  --warn-text:#F0C674;
  --danger:#E5645C;
  --danger-text:#FF9A93;
  --on-accent:#FFFFFF;
  /* Section banding. --band is the alternating section ground; inside a band
     every component surface steps once away from it so cards, wells and the
     closing card never dissolve into the band they sit on. */
  --band:#17171A;
  --band-surface:#212126;
  --radius-card:14px;
  --radius-input:8px;
  --radius-btn:8px;
  --radius-sm:4px;
  --radius-pill:99px;
  --spring:cubic-bezier(.22,1,.36,1);
  --ease:cubic-bezier(.22,.7,.25,1);
  --font:'Hanken Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --font-display:'Sora',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --shadow-l1:0 1px 2px rgba(0,0,0,.3);
  --shadow-l2:0 8px 30px rgba(0,0,0,.5);
  --shadow-l3:0 24px 60px rgba(0,0,0,.55);
  --maxw:1160px;
  --maxw-narrow:760px;
}

/* ============ TOKENS — LIGHT ============ */
:root.light{
  --bg:#FAFAF8;
  --surface:#FFFFFF;
  /* Distinct from --surface: this token is the recessed tone (tracks, hovers,
     table heads, segmented rails, the closing band). Identical to #FFF it made
     every well vanish into the card above it, so light mode had no depth ramp. */
  --raised:#F1F1EC;
  --border:#E2E2DC;
  --text:#0E0E10;
  --muted:#4E4E56;
  --soft:#3D3D44;
  --accent:#5B5CF0;
  --accent-text:#3C3DC2;
  --accent-hover:#4647D8;
  --accent-soft:rgba(91,92,240,.10);
  --success:#0F7A57;
  --success-text:#0B4A35;
  --warn:#B07800;
  --warn-text:#664300;
  --danger:#C13B33;
  --danger-text:#8F1009;
  /* Light banding runs the other way: the band is the toned well and the
     components on it stay white, so cards read as floating rather than sunk. */
  --band:#F1F1EC;
  --band-surface:#FFFFFF;
  --shadow-l1:0 1px 2px rgba(14,14,16,.06);
  --shadow-l2:0 8px 30px rgba(14,14,16,.12);
  --shadow-l3:0 24px 60px rgba(14,14,16,.16);
}

/* ============ RESET ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  font-size:16px;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
button,input,textarea,select{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
::selection{background:var(--accent);color:var(--on-accent)}

:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius-sm)}

.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

.skip-link{
  position:absolute;left:1rem;top:-4rem;z-index:300;
  background:var(--accent);color:var(--on-accent);font-weight:600;
  padding:.6rem 1rem;border-radius:var(--radius-btn);transition:top .2s var(--ease);
}
.skip-link:focus{top:1rem}

/* ============ LAYOUT PRIMITIVES ============ */
.wrap{max-width:var(--maxw);margin-inline:auto;width:100%;padding-inline:1.5rem}
.wrap-narrow{max-width:var(--maxw-narrow);margin-inline:auto;width:100%;padding-inline:1.5rem}
.section{padding-block:clamp(3.5rem,8vw,7rem)}
.section.tight{padding-block:clamp(2.5rem,5vw,4rem)}
.section-head{max-width:46rem;margin-bottom:clamp(2rem,4vw,3.25rem)}
.section-head.center{margin-inline:auto;text-align:center}
.eyebrow{
  display:inline-flex;align-items:center;gap:.45rem;
  font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--accent-text);margin-bottom:.85rem;
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.h-display{font-family:var(--font-display);font-size:clamp(2.3rem,5.7vw,3.9rem);line-height:1.04;font-weight:700;letter-spacing:-.025em;font-optical-sizing:auto}
.h1{font-family:var(--font-display);font-size:clamp(2rem,4.6vw,3rem);line-height:1.08;font-weight:700;letter-spacing:-.022em;font-optical-sizing:auto}
.h2{font-family:var(--font-display);font-size:clamp(1.55rem,3vw,2.2rem);line-height:1.14;font-weight:600;letter-spacing:-.015em;font-optical-sizing:auto}
.h3{font-size:clamp(1.15rem,1.8vw,1.35rem);line-height:1.25;font-weight:650;letter-spacing:-.01em}
.lead{font-size:clamp(1.05rem,1.6vw,1.2rem);line-height:1.6;color:var(--soft);font-weight:400}
.body{font-size:1rem;line-height:1.6}
.muted{color:var(--muted)}
.soft{color:var(--soft)}
.accent{color:var(--accent-text)}
/* Payoff word: solid accent for meaningful emphasis (no gradient text, no italic). */
.grad-text{color:var(--accent-text)}
/* Editorial serif on marketing headings for a distinct, non-generic voice. */
.prose h1,.prose h2,.prose h3,.step h3,.philo-item h4,.card h3,.price-tier,
.tpl-body h3,.change-entry h3{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em}

/* ============ HEADER / NAV ============ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .2s var(--ease),background .2s var(--ease);
}
.site-header.scrolled{border-bottom-color:var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:66px}
.nav-brand{display:flex;align-items:center;gap:.6rem;font-weight:700;letter-spacing:-.02em;font-size:1.05rem;flex:none}
.nav-brand .logo-mark{
  width:26px;height:26px;border-radius:7px;background:var(--accent);
  position:relative;flex:none;
  box-shadow:0 4px 14px rgba(91,92,240,.4);
}
.nav-brand .logo-mark::after{content:"";position:absolute;inset:7px;border-radius:3px;background:var(--text)}
.nav-brand:hover .logo-mark{transform:scale(1.05);transition:transform .2s var(--spring)}
.nav-links{display:flex;align-items:center;gap:.2rem}
.nav-links a{
  padding:.5rem .8rem;border-radius:var(--radius-btn);font-size:.9rem;font-weight:500;
  color:var(--soft);transition:color .15s,background .15s;
}
.nav-links a:hover{color:var(--text);background:var(--surface)}
/* Where you are, stated in the chrome: colour alone would not carry it. */
.nav-links a[aria-current="page"],.nav-links li.current-menu-item>a{color:var(--text);background:var(--surface)}
.nav-links a[aria-current="page"]::after,.nav-links li.current-menu-item>a::after{
  content:"";display:block;height:2px;border-radius:2px;background:var(--accent);
  margin:.3rem .15rem -.35rem;
}
.mobile-drawer a[aria-current="page"],.mobile-drawer li.current-menu-item>a{
  background:var(--raised);color:var(--text);box-shadow:inset 2px 0 0 var(--accent);
}
.nav-cta-group{display:flex;align-items:center;gap:.6rem;flex:none}
.nav-burger{
  display:none;width:42px;height:42px;border-radius:var(--radius-btn);
  background:var(--surface);border:1px solid var(--border);color:var(--text);
  cursor:pointer;align-items:center;justify-content:center;flex:none;
}
.nav-burger:hover{background:var(--raised)}
.nav-burger svg{width:20px;height:20px}
.nav-theme{
  width:38px;height:38px;border-radius:var(--radius-btn);display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--soft);cursor:pointer;flex:none;
  transition:background .15s,color .15s;
}
.nav-theme:hover{background:var(--raised);color:var(--text)}
.nav-theme svg{width:18px;height:18px}

/* mobile drawer */
/* visibility, not just transform: an off-screen drawer that is still visible to
   the layout keeps its six links in the tab order, so a keyboard user falls
   into a menu they cannot see. This also holds when no script runs at all. */
.mobile-drawer{
  position:fixed;inset:0 0 0 auto;width:min(86vw,340px);z-index:200;
  background:var(--surface);border-left:1px solid var(--border);
  transform:translateX(100%);visibility:hidden;
  transition:transform .3s var(--spring),visibility .3s;
  display:flex;flex-direction:column;padding:1.25rem;gap:.3rem;
  box-shadow:var(--shadow-l3);
}
.mobile-drawer.is-open{transform:translateX(0);visibility:visible}
.mobile-drawer a{padding:.8rem 1rem;border-radius:var(--radius-btn);font-size:1rem;font-weight:500;color:var(--text)}
.mobile-drawer a:hover{background:var(--raised)}
.mobile-drawer .md-actions{margin-top:auto;display:flex;flex-direction:column;gap:.6rem;padding-top:1rem;border-top:1px solid var(--border)}
.drawer-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:199;
  opacity:0;visibility:hidden;transition:opacity .3s var(--ease),visibility .3s;
}
.drawer-backdrop.is-open{opacity:1;visibility:visible}
.drawer-close{
  align-self:flex-end;width:36px;height:36px;border-radius:var(--radius-btn);
  background:transparent;border:none;color:var(--muted);cursor:pointer;
  display:grid;place-items:center;margin-bottom:.5rem;
}
.drawer-close:hover{background:var(--raised);color:var(--text)}

@media(max-width:920px){
  .nav-links{display:none}
  .nav-burger{display:flex}
  .nav-cta-group .btn-link,.nav-cta-group .btn-text{display:none}
}
@media(max-width:560px){
  .nav{height:58px;gap:.5rem}
  .wrap{padding-inline:1rem}
  .nav-brand{font-size:.92rem;gap:.45rem}
  .nav-brand .logo-mark{width:22px;height:22px}
  .nav-theme{width:34px;height:34px}
  .nav-burger{width:38px;height:38px}
  /* On small phones the CTA lives in the drawer; keep the bar clean */
  .nav-cta-group .btn{display:none}
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  background:var(--accent);color:var(--on-accent);font-weight:600;font-size:.9375rem;
  border:none;border-radius:var(--radius-btn);padding:.7rem 1.25rem;cursor:pointer;
  letter-spacing:-.01em;line-height:1;white-space:nowrap;
  transition:background .15s,transform .15s var(--spring),box-shadow .2s;
  text-decoration:none;
}
.btn:hover{background:var(--accent-hover);box-shadow:0 6px 22px rgba(91,92,240,.35)}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.btn:focus-visible{outline-offset:4px}
.btn .ico{width:16px;height:16px;flex:none}

.btn-lg{padding:.85rem 1.6rem;font-size:1rem}
.btn-sm{padding:.5rem .9rem;font-size:.875rem}
.btn-block{width:100%}

.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}
.btn-secondary:hover{background:var(--raised);box-shadow:none;border-color:var(--accent-text)}
.btn-ghost{background:transparent;color:var(--soft)}
.btn-ghost:hover{background:var(--surface);color:var(--text);box-shadow:none}
.btn-link{
  background:transparent;color:var(--accent-text);padding:.5rem 0;font-weight:600;
  gap:.3rem;
}
.btn-link:hover{box-shadow:none;color:var(--accent-text);text-decoration:underline}
.btn-text{background:transparent;color:var(--soft);padding:.5rem .9rem}
.btn-text:hover{background:var(--surface);color:var(--text);box-shadow:none}

/* ============ BADGES / PILLS ============ */
.pill{
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.72rem;font-weight:700;letter-spacing:.03em;
  padding:.28rem .65rem;border-radius:var(--radius-pill);
}
.pill.accent{background:var(--accent-soft);color:var(--accent-text)}
.pill.success{background:rgba(63,178,127,.16);color:var(--success-text)}
.pill.warn{background:rgba(217,164,65,.16);color:var(--warn-text)}
.pill.muted{background:var(--surface);color:var(--muted);border:1px solid var(--border)}
.pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor}

/* ============ CARDS ============ */
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius-card);padding:1.5rem;
  transition:transform .25s var(--spring),border-color .2s,box-shadow .2s;
}
.card.hover:hover{transform:translateY(-3px);border-color:var(--accent-text);box-shadow:var(--shadow-l2)}
.card.raised{background:var(--raised)}
.card.flush{padding:0;overflow:hidden}
.card-ico{
  width:44px;height:44px;border-radius:11px;background:var(--accent-soft);
  color:var(--accent-text);display:grid;place-items:center;margin-bottom:1.1rem;
}
.card-ico svg{width:22px;height:22px}
.card h3{margin-bottom:.5rem}
.card p{color:var(--muted);font-size:.9375rem;line-height:1.55}

/* ============ HERO ============ */
.hero{position:relative;padding-block:clamp(3rem,7vw,5.5rem) clamp(2.5rem,5vw,4rem);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4rem);align-items:center}
.hero-copy .h-display{margin-bottom:1.2rem}
.hero-copy .lead{margin-bottom:1.8rem;max-width:34rem}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.hero-note{margin-top:1.5rem;font-size:.82rem;color:var(--muted);display:flex;align-items:flex-start;gap:.5rem}
.hero-note svg{width:16px;height:16px;flex:none;color:var(--accent-text);margin-top:.1rem}
@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr;gap:2.5rem}
  .hero-copy{max-width:40rem}
}

/* ============ EMAIL CAPTURE ============ */
.capture{display:flex;flex-direction:column;gap:.6rem;max-width:30rem}
.capture-row{display:flex;gap:.5rem}
.capture-input{
  flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);color:var(--text);
  border-radius:var(--radius-btn);padding:.75rem 1rem;font-size:.9375rem;
  transition:border-color .15s,box-shadow .15s;
}
.capture-input::placeholder{color:var(--muted)}
.capture-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.capture-hint{font-size:.78rem;color:var(--muted);line-height:1.5}

/* ============ ZOOM DEMO (the moat) ============ */
.demo{
  background:var(--surface);border:1px solid var(--border);border-radius:18px;
  box-shadow:var(--shadow-l3);overflow:hidden;position:relative;
}
.demo-bar{
  display:flex;align-items:center;gap:.75rem;padding:.8rem 1.1rem;
  background:var(--raised);border-bottom:1px solid var(--border);
}
.demo-dots{display:flex;gap:.35rem}
.demo-dots span{width:10px;height:10px;border-radius:50%;background:var(--border)}
.demo-url{font-size:.74rem;color:var(--muted);margin-left:.3rem}
.demo-url b{color:var(--text);font-weight:600}
.demo-body{padding:1.5rem;min-height:380px}
.demo-rail{
  display:flex;align-items:center;gap:.4rem;background:var(--raised);
  border:1px solid var(--border);border-radius:var(--radius-btn);padding:.28rem;
  margin-bottom:1.5rem;width:fit-content;
}
.demo-seg{
  background:transparent;border:none;color:var(--soft);font-size:.82rem;font-weight:600;
  padding:.5rem 1rem;border-radius:6px;cursor:pointer;letter-spacing:.01em;
  transition:all .2s var(--ease);
}
.demo-seg:hover{color:var(--text)}
.demo-seg.active{background:var(--accent);color:var(--on-accent)}
.demo-seg:focus-visible{outline-offset:2px}
.zoom-panel:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:var(--radius-sm)}

/* zoom panels */
.zoom-panel{display:none;animation:zoomIn .4s var(--ease)}
.zoom-panel.active{display:block}
@keyframes zoomIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.zoom-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.1rem}
.zoom-title{font-size:1.15rem;font-weight:700;letter-spacing:-.015em}
.zoom-sub{font-size:.78rem;color:var(--muted)}
.zoom-bar-row{display:flex;align-items:center;gap:.75rem;margin-bottom:1.4rem}
.zoom-bar-track{
  height:8px;border-radius:var(--radius-pill);background:var(--raised);overflow:hidden;flex:1;position:relative;
  border:1px solid var(--border);
}
.zoom-bar-fill{display:block;height:100%;width:100%;transform-origin:left center;transform:scaleX(var(--fill,0));border-radius:var(--radius-pill);background:var(--accent);transition:transform .5s var(--ease)}
.zoom-bar-fill.success{background:var(--success)}
.zoom-bar-pct{font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums;width:3.2ch;text-align:right;flex:none}

.zoom-children{display:flex;flex-direction:column;gap:.3rem}
.zoom-child{
  display:flex;align-items:center;gap:.75rem;padding:.6rem .65rem;border-radius:var(--radius-btn);
  transition:background .15s;min-height:42px;cursor:pointer;
}
.zoom-child:hover{background:var(--raised)}
.zoom-child.future{opacity:.45;cursor:default}
.zoom-child.future:hover{background:transparent}
.zoom-child .zc-label{flex:1;min-width:0;font-size:.875rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zoom-child .zc-cue{color:var(--accent-text);font-size:1rem;opacity:0;transform:translateX(-4px);transition:opacity .2s,transform .2s var(--ease);flex:none}
.zoom-child:hover .zc-cue{opacity:1;transform:translateX(0)}
.zoom-child .zc-bar{height:5px;border-radius:var(--radius-pill);background:var(--raised);overflow:hidden;max-width:88px;flex:none;min-width:50px;border:1px solid var(--border)}
.zoom-child .zc-fill{display:block;height:100%;width:100%;transform-origin:left center;transform:scaleX(var(--fill,0));border-radius:var(--radius-pill);background:var(--accent);transition:transform .5s var(--ease)}
.zoom-child .zc-fill.success{background:var(--success)}
.zoom-child .zc-pct{font-size:.78rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted);width:3ch;text-align:right;flex:none}

.zoom-task{
  display:flex;align-items:center;gap:.75rem;padding:.7rem .65rem;border-radius:var(--radius-btn);
  transition:background .15s;cursor:pointer;
}
.zoom-task:hover{background:var(--raised)}
.zoom-task .zt-name{flex:1;min-width:0;font-size:.875rem;font-weight:500}
.zoom-task.done .zt-name{text-decoration:line-through;text-decoration-color:var(--accent);color:var(--muted)}

/* mini checkbox used in demo */
.mini-check{
  appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:none;
  border:2px solid var(--muted);border-radius:var(--radius-sm);cursor:pointer;position:relative;
  background:transparent;transition:all .2s var(--spring);
}
.mini-check:hover{border-color:var(--accent)}
.mini-check:checked{background:var(--accent);border-color:var(--accent);transform:scale(1.08)}
.mini-check:checked::after{
  content:"";position:absolute;left:4px;top:.5px;width:5px;height:10px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.mini-check:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.demo-hint{
  display:flex;align-items:center;gap:.5rem;margin-top:1.25rem;padding:.7rem .9rem;
  background:var(--raised);border:1px solid var(--border);border-radius:10px;
  font-size:.8rem;color:var(--muted);
}
.demo-hint svg{width:16px;height:16px;color:var(--accent-text);flex:none}
.demo-hint b{color:var(--text);font-weight:600}
.demo-hint .kbd{
  font-family:ui-monospace,monospace;font-size:.7rem;background:var(--surface);
  border:1px solid var(--border);border-radius:4px;padding:.05rem .3rem;color:var(--text);
}
@media(max-width:520px){
  .demo-body{padding:1rem;min-height:auto}
  .demo-rail{overflow-x:auto;width:100%}
}

/* ============ PROBLEM SECTION ============ */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,3vw,3rem);align-items:start}
.split-3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.5rem)}
@media(max-width:840px){.split{grid-template-columns:1fr}}
@media(max-width:720px){.split-3{grid-template-columns:1fr}}

.problem-item{
  padding:1.4rem 0 0;border-top:1px solid var(--border);
}
.problem-item .num{
  display:block;font-size:.72rem;font-weight:700;color:var(--muted);letter-spacing:.1em;
  text-transform:uppercase;margin-bottom:.7rem;
}
.problem-item h3{font-family:var(--font-display);font-weight:600;font-size:1.15rem;letter-spacing:-.01em;margin-bottom:.5rem}
.problem-item p{color:var(--muted);font-size:.9rem;line-height:1.55}

/* ============ COMPARISON TABLE ============ */
.compare-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-card)}
.compare-table{width:100%;border-collapse:collapse;min-width:660px}
.compare-table th,.compare-table td{text-align:left;padding:1rem 1.1rem;border-bottom:1px solid var(--border);vertical-align:middle}
.compare-table thead th{background:var(--raised);font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.compare-table thead th.us{color:var(--accent-text)}
.compare-table tbody tr:hover{background:var(--raised)}
.compare-table tbody tr:last-child td{border-bottom:none}
.compare-table td.feature{font-weight:600;color:var(--text)}
.compare-table td.feature small{display:block;font-weight:400;color:var(--muted);font-size:.78rem;margin-top:.15rem}
.compare-yes{color:var(--success-text);display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem;font-weight:600}
.compare-no{color:var(--muted);display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem}
.compare-mid{color:var(--warn-text);display:inline-flex;align-items:center;gap:.3rem;font-size:.85rem;font-weight:600}
.compare-us{background:var(--accent-soft);color:var(--accent-text);font-weight:700;font-size:.85rem}

/* ============ HOW IT WORKS (steps) ============ */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.25rem,2.5vw,2rem)}
@media(max-width:780px){.steps{grid-template-columns:1fr}}
.step{position:relative;padding-top:.25rem}
.step-num{
  display:inline-grid;place-items:center;width:38px;height:38px;border-radius:10px;
  background:var(--accent);color:var(--on-accent);font-weight:700;font-size:1rem;margin-bottom:1rem;
  box-shadow:0 4px 14px rgba(91,92,240,.35);
}
.step h3{font-size:1.15rem;margin-bottom:.5rem}
.step p{color:var(--muted);font-size:.9375rem;line-height:1.55}

/* ============ PHILOSOPHY STRIP ============ */
.philo{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
@media(max-width:840px){.philo{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.philo{grid-template-columns:1fr}}
.philo-item{display:flex;flex-direction:column;gap:.6rem}
.philo-item .pi-ico{
  width:40px;height:40px;border-radius:10px;background:var(--surface);
  border:1px solid var(--border);color:var(--accent-text);display:grid;place-items:center;
}
.philo-item .pi-ico svg{width:20px;height:20px}
.philo-item h4{font-size:.95rem;font-weight:600}
.philo-item p{font-size:.82rem;color:var(--muted);line-height:1.5}

/* ============ PRICING ============ */
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;max-width:760px;margin-inline:auto}
@media(max-width:680px){.pricing-grid{grid-template-columns:1fr}}
.price-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  padding:2rem;display:flex;flex-direction:column;position:relative;
}
.price-card.featured{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow-l2)}
.price-card.featured::before{
  content:"Most popular";position:absolute;top:-.7rem;left:2rem;
  background:var(--accent);color:var(--on-accent);font-size:.7rem;font-weight:700;letter-spacing:.04em;
  padding:.28rem .7rem;border-radius:var(--radius-pill);text-transform:uppercase;
}
.price-tier{font-size:1rem;font-weight:700;margin-bottom:.4rem}
.price-amt{display:flex;align-items:baseline;gap:.3rem;margin-bottom:.3rem}
.price-amt .amt{font-size:2.6rem;font-weight:800;letter-spacing:-.03em}
.price-amt .per{color:var(--muted);font-size:.95rem}
.price-free .amt{color:var(--success)}
.price-desc{color:var(--muted);font-size:.875rem;margin-bottom:1.5rem;min-height:2.6em}
.price-features{display:flex;flex-direction:column;gap:.7rem;margin-bottom:1.75rem;flex:1}
.price-feat{display:flex;align-items:flex-start;gap:.55rem;font-size:.9rem}
.price-feat svg{width:18px;height:18px;color:var(--success);flex:none;margin-top:.05rem}
.price-feat.muted{color:var(--muted)}
.price-feat.muted svg{color:var(--muted)}
.price-anchor{
  text-align:center;font-size:.82rem;color:var(--muted);margin-top:1.5rem;
}

/* ============ FAQ ============ */
.faq-list{display:flex;flex-direction:column;gap:.75rem}
.faq-item{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  overflow:hidden;transition:border-color .2s;
}
.faq-item[open]{border-color:var(--accent-text)}
.faq-item summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.1rem 1.25rem;font-weight:600;font-size:1rem;cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary .fq-plus{
  width:22px;height:22px;flex:none;color:var(--accent-text);
  transition:transform .3s var(--spring);
}
.faq-item[open] summary .fq-plus{transform:rotate(45deg)}
.faq-body{padding:0 1.25rem 1.25rem;color:var(--muted);font-size:.9375rem;line-height:1.6}
.faq-body p+p{margin-top:.75rem}

/* ============ FINAL CTA ============ */
.cta-final{
  position:relative;text-align:center;padding:clamp(3rem,6vw,5rem) 1.5rem;
  border-radius:clamp(18px,3vw,28px);overflow:hidden;
  background:var(--raised);border:1px solid var(--border);
}
.cta-final > *{position:relative;z-index:1}
.cta-final .capture{margin-inline:auto}
.cta-final h2{margin-bottom:.75rem}
.cta-final p.lead{margin-bottom:2rem;max-width:34rem;margin-inline:auto}

/* ============ FOOTER ============ */
.site-footer{border-top:1px solid var(--border);padding-block:3rem 2rem;margin-top:2rem}
.footer-grid{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:2rem;margin-bottom:2.5rem}
@media(max-width:780px){.footer-grid{grid-template-columns:1fr 1fr;gap:1.75rem}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr}}
.footer-brand .nav-brand{margin-bottom:.8rem}
.footer-brand p{font-size:.875rem;color:var(--muted);max-width:22rem;line-height:1.55}
.footer-col h4{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--soft);margin-bottom:.9rem}
.footer-col ul{display:flex;flex-direction:column;gap:.5rem}
.footer-col a{font-size:.875rem;color:var(--soft)}
.footer-col a:hover{color:var(--accent-text)}
.footer-col .footer-pitch-title{margin-top:2rem}

/* ============ DESIGN SYSTEM PAGE ============ */
.ds-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1rem;margin-top:1.5rem}
.ds-swatch{border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;background:var(--surface)}
.ds-swatch .chip{height:64px;border-bottom:1px solid var(--border)}
.ds-swatch .meta{padding:.7rem .85rem}
.ds-swatch code{font-family:ui-monospace,monospace;font-size:.8rem;color:var(--accent-text)}
.ds-swatch p{font-size:.78rem;color:var(--muted);margin-top:.2rem;line-height:1.4}
.ds-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1.25rem}
.ds-type>*+*{margin-top:1.5rem}
.ds-type .tag{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text);margin-bottom:.4rem}
.ds-box{border:1px solid var(--border);background:var(--surface);padding:1.5rem;display:grid;place-items:center;color:var(--muted);font-size:.8rem;min-height:90px}

/* ============ ATMOSPHERE — the planning canvas ============
   A faint, fixed structural grid embodies the decade→year→quarter→day
   subdivision behind every page. Focal indigo glows light up only the key
   sections (hero, product, the moat, final CTA); the rest stay calm. */
.site-atmos{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict}
.site-atmos__grid{
  position:absolute;inset:0;
  /* Planner dot-grid — the dotted bullet-journal/planner paper texture. */
  background-image:radial-gradient(circle at center, color-mix(in srgb,var(--border) 96%,transparent) 0 1.1px, transparent 1.5px);
  background-size:34px 34px;
  background-position:center top;
  opacity:.6;
  -webkit-mask-image:radial-gradient(130% 90% at 50% 16%, #000 0%, #000 38%, transparent 80%);
  mask-image:radial-gradient(130% 90% at 50% 16%, #000 0%, #000 38%, transparent 80%);
}
:root.light .site-atmos__grid{opacity:.85}

/* Content sits above the canvas (header is already a stacking context). */
#main,.site-footer{position:relative;z-index:1}

/* Section rhythm is tonal, never ruled.

   A hairline above every section turns a long page into a ledger: the eye reads
   the lines instead of the content, and the divisions all claim equal weight. So
   sections alternate between the page ground and the surface tone, and the join
   between them is the tone change itself. One rule, no classes to maintain, and
   no border anywhere.

   Counting is on every <section> in the region, so the hero and the page head
   (neither of which carries `.section`) still take their turn in the sequence
   and stay on the ground where they belong. */
#main > .section:nth-of-type(even){
  position:relative;z-index:1;
  background:var(--band);
  /* Re-point the surface tokens for everything inside: one declaration and the
     whole component library re-resolves, instead of an override per component. */
  --surface:var(--band-surface);
  --raised:var(--band-surface);
}
/* Runs flush under the block above it — a page head, or a section it continues. */
.section--flush{padding-top:0}

/* ============ SECTION ATMOSPHERE — the plan, made ambient ============
   Three motifs, all drawn from the product's own vocabulary rather than from
   decoration: a subdivision ruler (the decade→year→quarter tick scale every
   page argues for), an oversized outlined word whose accent fill is the real
   progress through the current year, and one of the theme's own icons used as
   a mask. No gradient blobs, no washes — the brief rules those out, and they
   would make this look like the generic SaaS pages it is written against.

   Everything here sits behind the content at z-index 0, is aria-hidden, tints
   the background by at most 7% so AAA text contrast is unaffected, and prints
   as nothing. */
.has-atmos{position:relative;overflow:hidden;isolation:isolate}
.has-atmos > .wrap,
.has-atmos > .wrap-narrow{position:relative;z-index:1}
.atmos{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict}

/* Subdivision ruler: a minor tick every 28px, a major one every fourth — the
   quarter mark. Anchored to the section's bottom edge, fading upward. */
.atmos__rule{
  position:absolute;inset:auto 0 0 0;height:clamp(44px,7vw,84px);
  background-image:
    repeating-linear-gradient(90deg, color-mix(in srgb,var(--border) 90%,transparent) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, color-mix(in srgb,var(--accent) 26%,transparent) 0 1px, transparent 1px 112px);
  background-size:100% 34%, 100% 62%;
  background-position:0 100%, 0 100%;
  background-repeat:no-repeat;
  -webkit-mask-image:linear-gradient(to top, #000, transparent);
  mask-image:linear-gradient(to top, #000, transparent);
  opacity:.85;
}

/* The word. Outlined, not filled: a plan drawing, not a ghosted logo. The
   filled portion is clipped to --wm-fill, so the watermark is itself a roll-up
   bar — the site's own year, as far as it has actually got.

   The fill tints below are measured, not chosen: they are at or under the
   highest value at which body text laid directly over the filled portion still
   clears 7:1 in that theme (dark tolerates 21%, light only 6%). The outline may
   sit a little higher — a 1.5px hairline covers a few percent of a glyph's
   background, where the fill covers all of it — but the fill is a hard ceiling.
   Raising it breaks the AAA guarantee the design system makes. */
.atmos__word{
  position:absolute;right:-.06em;bottom:-.3em;
  white-space:nowrap;user-select:none;
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  /* Sized to fit: a two-word label would otherwise be clipped at both edges and
     read as an accident. --wm-len is the character count; 0.58em is the average
     advance of Sora 800 at this tracking. */
  font-size:min(clamp(4.5rem,15vw,13rem), calc(88vw / (var(--wm-len,8) * 0.58)));
  line-height:.78;letter-spacing:-.05em;
  color:color-mix(in srgb,var(--accent) 6%,transparent);
  /* Fades out upward so the watermark can never crowd the heading it sits
     under: only the feet of the letterforms reach the text column. */
  -webkit-mask-image:linear-gradient(to top,#000 38%,transparent 88%);
  mask-image:linear-gradient(to top,#000 38%,transparent 88%);
}
@supports (-webkit-text-stroke:1px currentColor){
  .atmos__word{
    color:transparent;
    -webkit-text-stroke:1.5px color-mix(in srgb,var(--accent) 17%,transparent);
  }
  .atmos__word::before{
    content:attr(data-word);position:absolute;inset:0;
    color:color-mix(in srgb,var(--accent) 11%,transparent);-webkit-text-stroke:0;
    clip-path:inset(0 calc(100% - (var(--wm-fill,0) * 100%)) 0 0);
  }
}
:root.light .atmos__word{-webkit-text-stroke-color:color-mix(in srgb,var(--accent) 18%,transparent)}
:root.light .atmos__word::before{color:color-mix(in srgb,var(--accent) 6%,transparent)}
@media(max-width:640px){
  .atmos__word{font-size:min(clamp(3.2rem,24vw,6.5rem), calc(96vw / (var(--wm-len,8) * 0.58)));right:-.04em;bottom:-.22em}
}

/* One of the theme's own icons, oversized and masked so it inherits the token
   colour instead of shipping a second, differently-drawn icon set. */
.atmos__icon{
  position:absolute;left:-1.5%;top:-8%;
  width:clamp(150px,20vw,300px);aspect-ratio:1;
  background:var(--accent);opacity:.07;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-size:contain;mask-size:contain;
  -webkit-mask-position:center;mask-position:center;
}
:root.light .atmos__icon{opacity:.06}
@media(max-width:640px){.atmos__icon{opacity:.05;width:clamp(120px,34vw,180px)}}

@media print{.atmos,.site-atmos{display:none}}

/* ============ APP SCREENSHOTS ============ */
.app-showcase{display:flex;flex-direction:column;gap:clamp(2rem,4vw,3.25rem)}
.app-shot{margin:0}
.app-shot img{width:100%;height:auto;display:block;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-l2);background:var(--bg)}
.app-shot figcaption{margin-top:1rem;font-size:.85rem;color:var(--muted);text-align:center;max-width:46rem;margin-inline:auto;line-height:1.55}
.app-shot figcaption b{color:var(--text);font-weight:600}
.app-split{display:grid;grid-template-columns:.78fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.app-split .app-shot img{box-shadow:var(--shadow-l3)}
@media(max-width:820px){.app-split{grid-template-columns:1fr;gap:2rem}.app-split .app-copy{order:-1}}

/* ============ 200 WAYS PAGE ============ */
.ways-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 2.5rem;margin-top:1.25rem}
@media(max-width:760px){.ways-grid{grid-template-columns:1fr}}
.way{display:flex;gap:.9rem;align-items:flex-start;padding:.9rem 0;border-top:1px solid var(--border)}
.way-num{font-variant-numeric:tabular-nums;font-size:.78rem;font-weight:700;color:var(--accent-text);flex:none;min-width:2.4ch;padding-top:.15rem}
.way p{color:var(--soft);font-size:.9375rem;line-height:1.55}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding-top:1.75rem;border-top:1px solid var(--border);
  font-size:.8rem;color:var(--muted);
}
.footer-bottom a:hover{color:var(--text)}
.footer-credit a{color:var(--accent-text);font-weight:500}
.footer-social{display:flex;gap:.5rem}
.footer-social a{
  width:34px;height:34px;border-radius:var(--radius-btn);display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--muted);
}
.footer-social a:hover{background:var(--raised);color:var(--accent-text);border-color:var(--accent-text)}
.footer-social svg{width:16px;height:16px}

/* ============ PROSE (manifesto, blog, docs) ============ */
.prose{max-width:var(--maxw-narrow);margin-inline:auto}
.prose h1{margin-bottom:1rem}
.prose .meta{color:var(--muted);font-size:.875rem;margin-bottom:2.5rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.prose .meta .sep{opacity:.4}
.prose h2{margin-top:2.5rem;margin-bottom:.85rem;font-size:1.5rem;font-weight:700;letter-spacing:-.02em}
.prose h3{margin-top:1.8rem;margin-bottom:.65rem;font-size:1.15rem;font-weight:600}
.prose p{margin-bottom:1.1rem;line-height:1.7;color:var(--soft)}
.prose p:first-of-type{font-size:1.15rem;color:var(--text);line-height:1.6;font-weight:400}
.prose strong{color:var(--text);font-weight:600}
.prose em{color:var(--accent-text);font-style:normal;font-weight:500}
.prose ul,.prose ol{margin-bottom:1.1rem;padding-left:1.4rem;color:var(--soft);line-height:1.7}
.prose ul li,.prose ol li{margin-bottom:.4rem}
.prose ul li::marker{color:var(--accent-text)}
.prose ol li::marker{color:var(--accent-text);font-weight:600}
.prose blockquote{
  margin:1.75rem 0;padding:1.4rem 1.6rem;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  font-family:var(--font-display);font-size:1.3rem;line-height:1.4;font-style:italic;color:var(--text);
}
.prose blockquote p{margin-bottom:0;color:var(--text);font-size:inherit}
.prose code{
  font-family:ui-monospace,'SF Mono',monospace;font-size:.875em;
  background:var(--surface);border:1px solid var(--border);
  padding:.12rem .4rem;border-radius:var(--radius-sm);color:var(--accent-text);
}
.prose hr{border:none;height:1px;background:var(--border);margin:2.5rem 0}
.prose a{color:var(--accent-text);text-decoration:underline;text-underline-offset:2px}

/* ============ PAGE HEADER (interior pages) ============ */
.page-head{padding-block:clamp(2.5rem,5vw,4rem) clamp(1.5rem,3vw,2.5rem);text-align:center}
.page-head .eyebrow{justify-content:center}
.page-head h1{margin-bottom:1rem}
.page-head .lead{margin-inline:auto;max-width:38rem}
.breadcrumb{
  display:flex;align-items:center;gap:.45rem;font-size:.82rem;color:var(--muted);
  margin-bottom:1.5rem;flex-wrap:wrap;
}
.breadcrumb .sep{opacity:.4}
.breadcrumb a:hover{color:var(--accent-text)}
.breadcrumb .cur{color:var(--text);font-weight:600}

/* ============ TEMPLATES GALLERY ============ */
.tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
@media(max-width:900px){.tpl-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tpl-grid{grid-template-columns:1fr}}
.tpl-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);
  overflow:hidden;transition:transform .25s var(--spring),border-color .2s,box-shadow .2s;
  display:flex;flex-direction:column;
}
.tpl-card:hover{transform:translateY(-4px);border-color:var(--accent-text);box-shadow:var(--shadow-l2)}
.tpl-preview{height:140px;background:var(--raised);display:flex;align-items:flex-end;padding:1rem;position:relative;overflow:hidden}
.tpl-preview .tp-line{height:6px;border-radius:var(--radius-pill);background:var(--border);position:absolute;left:1rem}
.tpl-preview .tp-fill{background:var(--accent)}
.tpl-card.soon{opacity:.6}
.tpl-card.soon:hover{transform:none;border-color:var(--border);box-shadow:none}
.tpl-body{padding:1.25rem;flex:1;display:flex;flex-direction:column}
.tpl-body .tpl-cat{font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--accent-text);margin-bottom:.5rem}
.tpl-body h3{font-size:1.1rem;margin-bottom:.4rem}
.tpl-body p{color:var(--muted);font-size:.85rem;line-height:1.5;margin-bottom:1rem;flex:1}
.tpl-foot{display:flex;align-items:center;justify-content:space-between}
.tpl-foot .tpl-depth{font-size:.75rem;color:var(--muted)}
.filter-chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:2rem}
.chip{
  background:var(--surface);border:1px solid var(--border);color:var(--soft);
  font-size:.82rem;font-weight:600;padding:.45rem .9rem;border-radius:var(--radius-pill);
  cursor:pointer;transition:all .15s;
}
.chip:hover{border-color:var(--accent-text);color:var(--text)}
.chip.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* ============ CHANGELOG ============ */
.changelog{display:flex;flex-direction:column;gap:0}
.change-entry{display:grid;grid-template-columns:160px 1fr;gap:1.5rem;padding:1.75rem 0;border-bottom:1px solid var(--border)}
.change-entry:last-child{border-bottom:none}
.change-date{font-size:.82rem;color:var(--accent-text);font-weight:600;font-variant-numeric:tabular-nums}
.change-entry h3{font-size:1.1rem;margin-bottom:.4rem}
.change-entry p{color:var(--muted);font-size:.9rem;line-height:1.55}
.change-tag{display:inline-flex;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.2rem .5rem;border-radius:var(--radius-sm);margin-left:.5rem;vertical-align:.1em}
/* The three styles must read the way the editor picked them: the field offers
   "New (accent)", "Improved (green)" and "Fixed (amber)". */
.change-tag.new{background:var(--accent-soft);color:var(--accent-text)}
.change-tag.imp{background:rgba(63,178,127,.16);color:var(--success-text)}
.change-tag.fix{background:rgba(217,164,65,.16);color:var(--warn-text)}
@media(max-width:560px){.change-entry{grid-template-columns:1fr;gap:.5rem}}

/* ============ SCROLL REVEAL ============
   Opt-in, and only once the document has proved it is scripted (`js` is set by
   the pre-paint inline script). Nothing here may ever be the reason a section
   is unreadable: no script, no animation, all content visible. */
.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.js .reveal.in{opacity:1;transform:none}

/* ============ REDUCED MOTION ============ */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001s!important;transition-duration:.001s!important;scroll-behavior:auto!important;
  }
  .js .reveal{opacity:1;transform:none}
}

/* ============ MISC UTILS ============ */
.divider{height:1px;background:var(--border);margin:2.5rem 0}
.mono{font-family:ui-monospace,'SF Mono',monospace}
.text-center{text-align:center}
.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}
.hidden{display:none!important}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
@media(max-width:680px){.grid-2{grid-template-columns:1fr}}

/* ============ HEADER SEARCH TRIGGER ============ */
.nav-search{
  width:38px;height:38px;border-radius:var(--radius-btn);display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--soft);cursor:pointer;flex:none;
  transition:background .15s,color .15s,border-color .15s;
}
.nav-search:hover{background:var(--raised);color:var(--text);border-color:var(--accent-text)}
.nav-search svg{width:18px;height:18px}
@media(max-width:560px){.nav-search{width:34px;height:34px}}

/* ============ SCROLL-TO-TOP + READING PROGRESS ============ */
.scroll-top{
  position:fixed;right:clamp(1rem,3vw,1.75rem);bottom:clamp(1rem,3vw,1.75rem);z-index:150;
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--text);cursor:pointer;
  box-shadow:var(--shadow-l2);
  opacity:0;visibility:hidden;transform:translateY(12px) scale(.9);
  transition:opacity .3s var(--ease),transform .3s var(--spring),visibility .3s,border-color .2s,color .2s;
}
.scroll-top.is-visible{opacity:1;visibility:visible;transform:none}
.scroll-top:hover{border-color:var(--accent-text);color:var(--accent-text)}
.scroll-top:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.scroll-top .arrow{width:20px;height:20px;position:relative;z-index:1}
.scroll-top .scroll-ring{position:absolute;inset:0;width:48px;height:48px;transform:rotate(-90deg);pointer-events:none}
.scroll-top .scroll-ring circle{fill:none;stroke:var(--border);stroke-width:2}
.scroll-top .scroll-ring #scroll-ring-fill{stroke:var(--accent);stroke-linecap:round;transition:stroke-dashoffset .1s linear}
@media(prefers-reduced-motion:reduce){
  .scroll-top{transition:opacity .2s,visibility .2s}
  .scroll-top .scroll-ring #scroll-ring-fill{transition:none}
}


/* ============ SEARCH MODAL ============ */
.search-modal{position:fixed;inset:0;z-index:250;display:flex;align-items:flex-start;justify-content:center}
.search-modal[hidden]{display:none}
.search-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .25s var(--ease);backdrop-filter:blur(2px)}
.search-modal.is-open .search-modal__backdrop{opacity:1}
.search-modal__panel{
  position:relative;z-index:1;width:min(92vw,620px);margin-top:clamp(3.5rem,12vh,9rem);
  background:var(--surface);border:1px solid var(--border);border-radius:16px;
  box-shadow:var(--shadow-l3);overflow:hidden;
  opacity:0;transform:translateY(-10px) scale(.98);transition:opacity .25s var(--ease),transform .3s var(--spring);
}
.search-modal.is-open .search-modal__panel{opacity:1;transform:none}
.search-modal__top{display:flex;align-items:center;gap:.75rem;padding:1rem 1.15rem;border-bottom:1px solid var(--border)}
.search-modal__icon{width:20px;height:20px;color:var(--muted);flex:none}
.search-modal__input{
  flex:1;min-width:0;background:transparent;border:none;color:var(--text);font-size:1.05rem;font-weight:500;
}
.search-modal__input::placeholder{color:var(--muted);font-weight:400}
.search-modal__input:focus{outline:none}
.search-modal__esc{
  font-family:ui-monospace,monospace;font-size:.65rem;color:var(--muted);
  background:var(--raised);border:1px solid var(--border);border-radius:4px;padding:.15rem .4rem;flex:none;
}
.search-modal__close{
  width:34px;height:34px;border-radius:var(--radius-btn);display:grid;place-items:center;flex:none;
  background:transparent;border:none;color:var(--muted);cursor:pointer;transition:background .15s,color .15s;
}
.search-modal__close:hover{background:var(--raised);color:var(--text)}
.search-modal__close svg{width:18px;height:18px}
.search-modal__body{padding:1.15rem}
.search-modal__label{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.7rem}
.search-modal__chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-bottom:1.25rem}
.search-modal__chips button{
  background:var(--raised);border:1px solid var(--border);color:var(--soft);
  font-size:.82rem;font-weight:600;padding:.35rem .8rem;border-radius:var(--radius-pill);cursor:pointer;
  transition:border-color .15s,color .15s;
}
.search-modal__chips button:hover{border-color:var(--accent-text);color:var(--text)}
.search-modal__quick{
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  padding:.7rem .85rem;border-radius:var(--radius-btn);border:1px solid transparent;
  font-weight:600;font-size:.9375rem;color:var(--soft);transition:background .15s,border-color .15s,color .15s;
}
.search-modal__quick:hover{background:var(--raised);border-color:var(--border);color:var(--text)}
.search-modal__quick span{font-size:.78rem;font-weight:400;color:var(--muted)}
.search-modal__foot{
  display:flex;gap:1.25rem;padding:.75rem 1.15rem;border-top:1px solid var(--border);
  font-size:.72rem;color:var(--muted);background:var(--raised);
}
.search-modal__foot kbd{
  font-family:ui-monospace,monospace;font-size:.68rem;background:var(--surface);
  border:1px solid var(--border);border-radius:4px;padding:.05rem .35rem;color:var(--text);
}
@media(max-width:520px){.search-modal__foot{display:none}}

/* ============ CTA BUTTON ROW ============
   Replaces the inline flex styles the static pages carried on their CTA rows. */
.cta-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}

/* ============ CONTACT FORM 7 SKIN ============
   The beta form is rendered by CF7, so its wrappers, validation tips and
   response output are mapped onto the capture design instead of CF7 defaults. */
.capture .wpcf7-form-control-wrap{display:block;flex:1;min-width:0}
/* CF7 wraps the control in a span, so the input sizes to the wrapper, not the row. */
.capture .wpcf7-form-control-wrap .capture-input{width:100%}
.capture .wpcf7-not-valid-tip{font-size:.8rem;color:var(--danger-text);line-height:1.5;margin-top:.35rem}
.capture .capture-input.wpcf7-not-valid{border-color:var(--danger)}
.capture .wpcf7-response-output{
  font-size:.82rem;line-height:1.5;color:var(--soft);margin:0;
  border:1px solid var(--border);border-radius:var(--radius-btn);padding:.65rem .85rem;
}
.capture.invalid .wpcf7-response-output,
.capture.unaccepted .wpcf7-response-output,
.capture.payment-required .wpcf7-response-output,
.capture.spam .wpcf7-response-output{border-color:var(--danger);color:var(--danger-text)}
.capture.sent .wpcf7-response-output{border-color:var(--success);color:var(--success-text)}
.capture .wpcf7-spinner{margin:.25rem auto 0}
.capture .screen-reader-response{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Honeypot: present for bots, absent for people and assistive tech. */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Filtering hides cards with the attribute rather than an inline style. */
[hidden]{display:none!important}
