/* ==========================================================================
   NorthBridge shared layer  ·  nb.css
   Loaded AFTER the page's own styles on every page.

   Structure (type scale, 4px spacing system, component patterns) follows the
   Notion DESIGN.md analysis. Colours and brand identity stay NorthBridge:
   Fraunces + Public Sans on paper-and-ink with teal/gold accents.
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root{
  /* spacing — 4px base, per DESIGN.md */
  --s-xxs:4px;  --s-xs:8px;   --s-sm:12px;  --s-md:16px;
  --s-lg:20px;  --s-xl:24px;  --s-2xl:32px; --s-3xl:40px;
  --s-sec-sm:48px; --s-sec:64px; --s-sec-lg:96px; --s-hero:120px;

  /* radii */
  --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px;
  --r-xl:16px; --r-2xl:20px; --r-3xl:24px; --r-full:9999px;

  /* type scale */
  --t-display:clamp(2.6rem,6vw,5rem);
  --t-h1:clamp(2.1rem,5vw,3.5rem);
  --t-h2:clamp(1.7rem,3.6vw,2.25rem);
  --t-h3:1.75rem;  --t-h4:1.375rem; --t-h5:1.125rem;
  --t-body:1rem;   --t-sm:.875rem;  --t-caption:.8125rem;
  --t-micro:.75rem; --t-micro-up:.6875rem;

  /* elevation */
  --e-1:0 1px 2px rgba(16,24,20,.06);
  --e-2:0 4px 12px -4px rgba(16,24,20,.12);
  --e-3:0 12px 32px -12px rgba(16,24,20,.22);
  --e-4:0 24px 56px -20px rgba(16,24,20,.34);

  /* motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --dur-1:.15s; --dur-2:.28s; --dur-3:.5s;

  /* semantic */
  --ok:#1f7a4d;  --ok-bg:#e8f6ee;
  --err:#b3261e; --err-bg:#fdeceb;
  --warn:#9a6400; --warn-bg:#fdf3e0;

  --surface:#ffffff;
  --surface-2:var(--paper-dark);
  --header-bg:rgba(251,249,244,.92);
  --z-nav:50; --z-progress:1000; --z-float:1010;
  --z-menu:1100; --z-banner:1200; --z-modal:1300; --z-toast:1400;
}

/* ---------- 2. DARK MODE ------------------------------------------------- */
/* Overrides the brand tokens the existing stylesheets already consume, so the
   whole site inverts without rewriting any page-level CSS. */
html[data-theme="dark"]{
  --ink:#e8ece9;
  --ink-soft:#a3b0a8;
  --paper:#121614;
  --paper-dark:#171d1a;
  --navy:#e8ece9;
  --deep:#0d100f;
  --deep-2:#141917;
  --teal:#25d193;
  --teal-dark:#7fe0c9;
  --teal-soft:#a6e0d3;
  --gold:#f08a5d;
  --line:#28322d;
  --surface:#171d1a;
  --surface-2:#121614;
  --header-bg:rgba(18,22,20,.92);
  --e-1:0 1px 2px rgba(0,0,0,.4);
  --e-2:0 4px 12px -4px rgba(0,0,0,.5);
  --e-3:0 12px 32px -12px rgba(0,0,0,.6);
  --e-4:0 24px 56px -20px rgba(0,0,0,.7);
  color-scheme:dark;
}
html[data-theme="dark"] body::before{opacity:.18}

/* surfaces that were hardcoded white in the original sheets */
html[data-theme="dark"] .tier,
html[data-theme="dark"] .fit-card,
html[data-theme="dark"] .nb-card,
html[data-theme="dark"] .plan{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .tier.best{
  background:linear-gradient(180deg,#1a2320 0%,#141d19 100%);
  box-shadow:0 26px 56px -22px rgba(37,209,147,.25);
}
html[data-theme="dark"] header{background:var(--header-bg);border-bottom-color:var(--line)}
html[data-theme="dark"] .btn.navy{background:#e8ece9;border-color:#e8ece9;color:#0d100f}
html[data-theme="dark"] .btn.navy:hover{background:#fff}
html[data-theme="dark"] .btn:not(.ghost):not(.outline){color:#04231f}
html[data-theme="dark"] .btn.ghost{color:#fff}
html[data-theme="dark"] details,
html[data-theme="dark"] .faq details{border-color:var(--line)}

/* smooth the flip, but never fight reduced-motion */
html.nb-theme-ready body,
html.nb-theme-ready header,
html.nb-theme-ready .tier,
html.nb-theme-ready .fit-card{
  transition:background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}


/* ---------- 2b. LANGUAGE VISIBILITY GUARD -------------------------------
   `.es{display:none}` in the base sheets is only specificity (0,1,0), so any
   component rule such as `.card span{display:block}` silently out-ranks it and
   both languages render at once. This guard makes language visibility win
   everywhere, whatever a component declares. */
html:not([data-lang="es"]) .es{display:none !important}
html[data-lang="es"] .en{display:none !important}

/* ---------- 2c. MOTION SYSTEM -------------------------------------------
   Everything here is additive: if a feature is unsupported, or the visitor
   asks for reduced motion, the page still renders in its final state. No
   animation is ever load-bearing. */

/* Cross-document page transitions. Same-origin navigations cross-fade and
   the header stays put, so moving between branches feels like one app
   rather than seven separate documents. */
@view-transition{ navigation: auto }

::view-transition-old(root){ animation: nb-vt-out .22s var(--ease) both }
::view-transition-new(root){ animation: nb-vt-in .32s var(--ease-out) both }
@keyframes nb-vt-out{ to{ opacity:0; transform:translateY(-6px) } }
@keyframes nb-vt-in{ from{ opacity:0; transform:translateY(10px) } }

/* The header and the floating controls are continuous across pages, so name
   them and let the browser carry them through instead of cross-fading. */
header{ view-transition-name: nb-header }
.nb-float{ view-transition-name: nb-float }

/* ---- hero entrance ----
   The `nb-anim` class is set by the inline head script, before first paint,
   so content animates in from hidden rather than flashing visible first.
   `both` fill means the end state survives even at zero duration. */
html.nb-anim .hero .wrap > *,
html.nb-anim .ct-hero .wrap > *,
html.nb-anim .lg-hero .wrap > *{
  /* `backwards`, never `both`: the hidden state applies only during the delay
     and the animation itself. The element's resting style stays fully visible,
     so if the animation is dropped, throttled, or never finishes, the hero is
     still there. `both` would leave the hero blank on a stalled frame. */
  animation: nb-hero-in .72s var(--ease-out) backwards;
}
@keyframes nb-hero-in{
  from{ opacity:0; transform:translateY(16px) }
  to{ opacity:1; transform:none }
}
html.nb-anim .hero .wrap > *:nth-child(1),
html.nb-anim .ct-hero .wrap > *:nth-child(1),
html.nb-anim .lg-hero .wrap > *:nth-child(1){ animation-delay:.04s }
html.nb-anim .hero .wrap > *:nth-child(2),
html.nb-anim .ct-hero .wrap > *:nth-child(2),
html.nb-anim .lg-hero .wrap > *:nth-child(2){ animation-delay:.10s }
html.nb-anim .hero .wrap > *:nth-child(3),
html.nb-anim .ct-hero .wrap > *:nth-child(3),
html.nb-anim .lg-hero .wrap > *:nth-child(3){ animation-delay:.16s }
html.nb-anim .hero .wrap > *:nth-child(4),
html.nb-anim .ct-hero .wrap > *:nth-child(4),
html.nb-anim .lg-hero .wrap > *:nth-child(4){ animation-delay:.22s }
html.nb-anim .hero .wrap > *:nth-child(n+5),
html.nb-anim .ct-hero .wrap > *:nth-child(n+5),
html.nb-anim .lg-hero .wrap > *:nth-child(n+5){ animation-delay:.28s }

/* ---- link underlines that draw rather than blink ---- */
.nav-links a,.nb-foot-col a,.crumb a{position:relative}
.nav-links a::after,.nb-foot-col a::after,.crumb a::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;height:1.5px;
  background:currentColor;border-radius:2px;
  transform:scaleX(0);transform-origin:right;
  transition:transform var(--dur-2) var(--ease-out);
}
.nav-links a:hover::after,.nav-links a:focus-visible::after,
.nb-foot-col a:hover::after,.nb-foot-col a:focus-visible::after,
.crumb a:hover::after,.crumb a:focus-visible::after{
  transform:scaleX(1);transform-origin:left;
}
.nb-foot-col a:hover{transform:none} /* the underline replaces the nudge */

/* ---- the ticker is decoration; let people stop it to read ---- */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track{ animation-play-state:paused }

/* ---- door knob turns as the door is about to open ---- */
.door .knob{ transition:transform var(--dur-2) var(--ease-out) }
.door-card:not(.open) .door:hover .knob,
.door-card:not(.open) .door:focus-visible .knob{ transform:rotate(-28deg) scale(1.12) }

/* ---- section reveals get a touch of scale so they arrive, not just fade -- */
.rv{will-change:opacity,transform}
.rv.in{will-change:auto}

/* ---- pricing tiers lift in sequence when the row is hovered ---- */
.tier{transition:transform .25s var(--ease-out),box-shadow .25s var(--ease),border-color .25s var(--ease)}

/* ---- FAQ accordion ----
   <details> snaps open with no transition by default. `interpolate-size`
   lets height animate to `auto`; browsers without ::details-content simply
   get the old instant open, which is still correct. */
:root{ interpolate-size: allow-keywords }
.faq details,
details.rv{
  border:1px solid var(--line);border-radius:var(--r-lg);
  margin-bottom:var(--s-sm);background:var(--surface);
  transition:border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq details[open]{border-color:var(--teal-soft);box-shadow:var(--e-2)}
.faq summary{
  cursor:pointer;list-style:none;padding:var(--s-md) var(--s-lg);
  display:flex;align-items:center;justify-content:space-between;gap:var(--s-md);
  font-weight:650;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";flex:0 0 10px;width:10px;height:10px;
  border-right:2px solid var(--teal);border-bottom:2px solid var(--teal);
  transform:rotate(45deg) translateY(-2px);
  transition:transform var(--dur-2) var(--ease-out);
}
.faq details[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.faq details > .a{padding:0 var(--s-lg) var(--s-md)}
@supports selector(::details-content){
  .faq details::details-content{
    block-size:0;overflow:hidden;opacity:0;
    transition:block-size var(--dur-3) var(--ease-out),
               opacity var(--dur-2) var(--ease),
               content-visibility var(--dur-3) allow-discrete;
    transition-behavior:allow-discrete;
  }
  .faq details[open]::details-content{block-size:auto;opacity:1}
}

/* ---- the process timeline draws itself as you scroll past ---- */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .timeline::before{
      animation:nb-draw-line linear both;
      animation-timeline:view();
      animation-range:entry 22% cover 62%;
      transform-origin:top;
    }
    @keyframes nb-draw-line{ from{ transform:scaleY(0) } to{ transform:scaleY(1) } }
  }
}

/* ---- cards arrive in sequence rather than all at once ----
   nth-child stagger so a grid reveals as a wave. Uses the existing .rv
   mechanism, so it inherits the no-JS and reduced-motion fallbacks. */
.tiers .rv:nth-child(1),.div-grid .rv:nth-child(1),.nb-grid .rv:nth-child(1){transition-delay:.04s}
.tiers .rv:nth-child(2),.div-grid .rv:nth-child(2),.nb-grid .rv:nth-child(2){transition-delay:.12s}
.tiers .rv:nth-child(3),.div-grid .rv:nth-child(3),.nb-grid .rv:nth-child(3){transition-delay:.20s}
.tiers .rv:nth-child(4),.div-grid .rv:nth-child(4),.nb-grid .rv:nth-child(4){transition-delay:.28s}
.tiers .rv:nth-child(5),.div-grid .rv:nth-child(5),.nb-grid .rv:nth-child(5){transition-delay:.36s}

/* ---- hover: cards lift toward the pointer ---- */
.tier,.fit-card,.nb-card,.ct-side-card,.expect-item{
  transition:transform .28s var(--ease-out), box-shadow .28s var(--ease),
             border-color .28s var(--ease);
}
.fit-card:hover,.ct-side-card:hover,.expect-item:hover{
  transform:translateY(-3px);box-shadow:var(--e-2);border-color:var(--teal-soft);
}

/* ---- counting numbers get tabular figures so they do not jitter ---- */
.big-num,.tprice .n,#calcOut{font-variant-numeric:tabular-nums}
.big-num.bump{animation:nb-bump .22s var(--ease-out)}
@keyframes nb-bump{50%{transform:scale(1.045)}}

/* ---- respect the setting, everywhere, including page transitions ---- */
@media (prefers-reduced-motion: reduce){
  .faq details::details-content{transition:none}
  .timeline::before{animation:none;transform:none}
  .tiers .rv,.div-grid .rv,.nb-grid .rv{transition-delay:0s!important}
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*){ animation:none !important }
  html.nb-anim .hero .wrap > *,
  html.nb-anim .ct-hero .wrap > *,
  html.nb-anim .lg-hero .wrap > *{ animation:none !important; opacity:1; transform:none }
  .nav-links a::after,.nb-foot-col a::after,.crumb a::after{transition:none}
}


/* ---------- 2d. SURFACE + CONTRAST CORRECTIONS ---------------------------
   Two failure modes, both found by auditing every text/background pair on
   every page in both themes:

   1. Dark mode flips the text tokens (--ink, --navy) but any component with
      a hardcoded light background keeps it, so light text lands on a white
      card. Every such surface is given a dark counterpart below.
   2. In light mode the brand green carries near-black text at only 3.23:1.
      White on the same green is 5.05:1, so the palette is untouched and only
      the label colour changes. Dark mode keeps dark-on-bright, which is
      already correct there.
   ------------------------------------------------------------------------ */

/* --- 1. light-mode button labels --- */
html:not([data-theme="dark"]) .btn:not(.ghost):not(.outline),
html:not([data-theme="dark"]) .nb-skip,
html:not([data-theme="dark"]) .nb-fab,
html:not([data-theme="dark"]) .nb-btn--primary{color:#fff}
html:not([data-theme="dark"]) .tier li::before{border-color:var(--teal-dark)}
/* the plan badge sits on the same green as the buttons */
html:not([data-theme="dark"]) .tier .badge{color:#fff}

/* "Soon" pill: brand gold is only 2.17:1 on paper, so light mode gets a
   deeper gold of the same hue and dark mode keeps the bright one. */
html:not([data-theme="dark"]) .ct-soon,
html:not([data-theme="dark"]) .door-soon-tag{color:#a8461f;border-color:#a8461f}
html[data-theme="dark"] .ct-soon,
html[data-theme="dark"] .door-soon-tag{color:#f08a5d;border-color:#f08a5d}
/* The rotating hero word is brand teal on the near-black hero: 3.45:1.
   The hero is dark in both themes, so it always wants the bright green. */
.hero .rotator, .rotator #rotWord{color:#25d193}
/* Chat timestamps were mid-grey on white and on the mint reply bubble. */
.msg .time{color:#5f6672}
html[data-theme="dark"] .msg .time{color:#8b968f}

/* Annual pricing block. The savings pill sits on brand green, so it follows
   the same rule as every other green surface: white label in light mode, dark
   label on the bright dark-mode green. The strike needs a red that reads on
   each ground. */
:root{ --down-strike:#b3261e }
html[data-theme="dark"]{ --down-strike:#ff8a80 }
html[data-theme="dark"] .yt-save{color:#04231f}
html[data-theme="dark"] .ytotal{
  background:linear-gradient(135deg, rgba(37,209,147,.10), rgba(240,138,93,.07));
  border-color:rgba(37,209,147,.34);
}

html:not([data-theme="dark"]) .hook-tag{color:#a8461f}
html[data-theme="dark"] .hook-tag{color:#f08a5d}


/* --- 2. hardcoded light surfaces, given dark counterparts --- */
html[data-theme="dark"] .hook-strip,
html[data-theme="dark"] .builder,
html[data-theme="dark"] .bill-toggle,
html[data-theme="dark"] .counter button,
html[data-theme="dark"] .sched-card,
html[data-theme="dark"] .t-step .t-num,
html[data-theme="dark"] .expect-item{
  background:var(--surface);border-color:var(--line);color:var(--ink);
}
html[data-theme="dark"] .counter button{color:var(--ink)}
html[data-theme="dark"] .bill-toggle button{color:var(--ink-soft)}
html[data-theme="dark"] .bill-toggle button.on{background:var(--teal);color:#04231f}

/* the "doors" interior */
html[data-theme="dark"] .door-room{
  background:linear-gradient(180deg,#1b2320 0%,#141a17 100%);
  border-color:var(--line);
}

/* the phone / chat mock-up: keep it reading as a messaging app, in the dark */
html[data-theme="dark"] .phone{background:#0f1512;border-color:var(--line)}
html[data-theme="dark"] .msg{background:#1e2723;color:var(--ink);box-shadow:none}
html[data-theme="dark"] .msg .time{color:#8b968f}
html[data-theme="dark"] .msg.internal{background:#16302a;border-color:var(--teal)}

/* destructive action needs a red that survives a dark ground */
html[data-theme="dark"] .nb-btn--danger{color:#ff8a80;border-color:#ff8a80}
html[data-theme="dark"] .nb-btn--danger:hover{background:#ff8a80;color:#1a0f0e}
html[data-theme="dark"] .pv-delete{border-color:#ff8a80}


/* ---------- 2e. BROWSER SURFACES ---------------------------------------
   The parts nobody draws still carry the design: selection, caret, scrollbar,
   focus ring, underline offset, tabular numerals. Browser defaults belong to
   no design system, so they are themed from the palette here. */
::selection{background:rgba(23,122,108,.22);color:var(--ink)}
html[data-theme="dark"] ::selection{background:rgba(37,209,147,.30)}
body{caret-color:var(--teal);accent-color:var(--teal)}
a{text-underline-offset:.16em;text-decoration-thickness:1px}
html{scrollbar-color:var(--line) transparent;scrollbar-width:thin}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:10px;border:3px solid var(--paper)}
::-webkit-scrollbar-track{background:transparent}
table,.tprice,.big-num{font-variant-numeric:tabular-nums}


/* ---------- 2f. DE-KIT ----------------------------------------------------
   The generated-SaaS look is a kit: pill radii, big blurry shadows, aurora
   blobs behind every hero, glass, sweeps. Each rule below removes one piece.
   Higher specificity on purpose: these must beat the page sheets. */

/* radii: rectangles with a small ease, not pills */
html .btn,html .nb-btn,html .nb-submit,html .nb-chip{border-radius:7px}
html .lang-toggle,html .nb-icon-btn{border-radius:999px}
/* small tags read as tags: a rounded pill is right at this size */
html .badge,html .tier .badge,html .yt-save,html .ct-soon,html .door-soon-tag,html .nb-updated,html .nb-copy,html .nb-toast{border-radius:999px}
html .tier,html .nb-card,html .fit-card,html .hook-strip,html .builder,
html .pilot-card,html .sched-card,html .ct-panel,html .ct-side-card,html .ct-branch,
html .expect-item,html .nb-toc,html .pv-delete,html .ytotal,html .msg,
html .nb-modal-box,html .nb-search-box,html .nb-cookie,html .faq details,html .nb-alert,html .pilot-card,
html .nb-field input,html .nb-field select,html .nb-field textarea{border-radius:8px}
html .phone,html .demo-frame,html .calc-released{border-radius:14px}
html .bill-toggle{border-radius:999px}
html .bill-toggle button,html .nb-tab{border-radius:999px}
html .nb-search-item,html .nb-drawer a.nb-drawer-link{border-radius:8px}
html .nb-toast,html .nb-offline{border-radius:999px}

/* shadows: a hairline and a whisper of depth, never a blur cloud */
html .tier,html .nb-card,html .fit-card,html .ct-panel,html .ct-side-card,
html .sched-card,html .nb-search-box,html .nb-modal-box,html .nb-cookie,html .phone{
  box-shadow:0 1px 0 rgba(16,24,20,.04);
}
html .tier:hover,html .nb-card--hover:hover,html .fit-card:hover,
html .ct-side-card:hover,html .expect-item:hover{transform:translateY(-2px);box-shadow:0 10px 22px -16px rgba(16,24,20,.28);border-color:var(--ink)}
html .tier.best{background:var(--surface);border:2px solid var(--ink);box-shadow:none}
html[data-theme="dark"] .tier.best{background:var(--surface);border-color:var(--ink);box-shadow:none}
html .tier .badge{background:var(--ink);color:var(--paper);letter-spacing:.08em}
html[data-theme="dark"] .tier .badge{background:var(--ink);color:var(--paper)}

/* no aurora, no drift, on any hero or band */
html .ct-hero::after,
html .bundle-strip::after,html .pilot-card::before,html .pilot-card::after{display:none}

/* buttons: flat, decisive, no lift */
html .btn:hover,html .nb-btn:hover,html .nb-fab:hover{transform:translateY(-1px);box-shadow:0 6px 14px -10px rgba(16,24,20,.35)}
html .btn{font-weight:600}

/* floating controls: a corner tab, not a pill with an icon */
html .nb-fab{border-radius:999px;padding:12px 18px;box-shadow:0 6px 16px -10px rgba(16,24,20,.35)}
html .nb-fab svg{display:none}
@media(max-width:520px){html .nb-fab span{display:inline}html .nb-fab{padding:11px 14px}}
html .nb-top{border-radius:999px;box-shadow:0 6px 16px -10px rgba(16,24,20,.35)}

/* type: bigger headings, tighter tracking, a real measure on body copy */
html .h2{font-size:clamp(2rem,4.6vw,3.25rem);letter-spacing:-.03em;line-height:1.02;max-width:20ch}
html .sub,html .nb-prose p,html .fit-card p{max-width:62ch}
html .problem h2{letter-spacing:-.03em}

/* offline badge: dot is drawn, not a glyph */
html .nb-offline > span:first-child{font-size:0;width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}

/* form: the label answers the focus, so the visitor always knows which field is live */
.nb-field > label{transition:color .15s ease}
.nb-field:focus-within > label{color:var(--teal-dark)}
html[data-theme="dark"] .nb-field:focus-within > label{color:var(--teal)}
.ct-branch{transition:border-color .18s ease,background .18s ease,transform .12s ease}
.ct-branch:hover{transform:translateY(-1px)}

/* ---- radius scale, final word: neither square nor pill ---- */
html body .btn,html body .nb-btn,html body .nb-submit,html body .nb-chip,html body .btn.big{border-radius:10px}
html body .tier,html body .nb-card,html body .fit-card,html body .hook-strip,html body .builder,
html body .pilot-card,html body .sched-card,html body .ct-panel,html body .ct-side-card,html body .ct-branch,
html body .expect-item,html body .nb-toc,html body .pv-delete,html body .nb-modal-box,
html body .nb-search-box,html body .nb-cookie,html body .faq details,html body .nb-alert,html body .phone,
html body .demo-frame,html body .nb-seq{border-radius:14px}
html body .ytotal,html body .msg,html body .calc-released,html body .nb-field input,html body .nb-field select,
html body .nb-field textarea{border-radius:10px}
html body .nb-fab,html body .nb-top{border-radius:12px}
html body .nb-top{width:44px;height:44px}


/* ---------- 2g. SHOWN, NOT DESCRIBED --------------------------------------
   One section per practice page that shows the work as a sequence in time,
   set as a ledger down a left rail rather than a row of equal cards. */
.show{padding:clamp(56px,8vw,104px) 0;background:var(--paper);border-top:1px solid var(--line)}
.show-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,6vw,88px);align-items:start}
@media(max-width:880px){.show-grid{grid-template-columns:1fr}}
.show .h2{margin-bottom:12px}
.nb-seq{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.nb-seq li{display:grid;grid-template-columns:5.5rem 1fr;gap:18px;padding:18px 0;border-bottom:1px solid var(--line);align-items:baseline}
.nb-seq .t{font-family:var(--serif);font-weight:600;font-size:1.15rem;color:var(--ink);letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.nb-seq .b{color:var(--ink-soft);line-height:1.55;font-size:1rem}
/* rows arrive down the rail as the section enters view */
.nb-seq li{opacity:0;transform:translateY(8px);transition:opacity .5s cubic-bezier(.16,1,.3,1),transform .5s cubic-bezier(.16,1,.3,1)}
.show.in .nb-seq li{opacity:1;transform:none}
.show.in .nb-seq li:nth-child(2){transition-delay:.08s}.show.in .nb-seq li:nth-child(3){transition-delay:.16s}
.show.in .nb-seq li:nth-child(4){transition-delay:.24s}.show.in .nb-seq li:nth-child(5){transition-delay:.32s}
@media(max-width:520px){.nb-seq li{grid-template-columns:4.2rem 1fr;gap:12px}}

@media (prefers-reduced-motion: reduce){.nb-seq li{opacity:1;transform:none;transition:none}}

/* Hick: one visible Contact per viewport. The header carries it on wide
   screens; the floating tab exists only where the header hides its CTA. */
@media(min-width:1025px){html body .nb-fab{display:none}}

/* outline buttons carry ink, in both themes, whatever the rules above say */
html body .btn.outline{background:transparent;color:var(--ink);border-color:var(--ink)}
html body .btn.outline:hover{background:var(--ink);color:var(--paper)}


/* ---------- 2h. FOLDABLES + NOTCHES ---------------------------------------
   iPhone Duo (Sept 2026): folded 466x678, unfolded 890x626 landscape, Split
   View ~445x626 per app, with a physical hinge down the middle when open.
   Three things follow: fixed controls respect safe-area insets; short
   landscape viewports get a shorter hero; and where the browser exposes the
   hinge (Viewport Segments API), two-column layouts put their gutter on it
   so nothing is bent in half. All progressive: unsupported = unchanged. */

/* safe areas: never tuck a control under a notch, hinge edge or home bar */
.nb-float{right:max(clamp(var(--s-md),3vw,var(--s-xl)),env(safe-area-inset-right));bottom:max(clamp(var(--s-md),3vw,var(--s-xl)),env(safe-area-inset-bottom))}
.nb-cookie{left:max(var(--s-md),env(safe-area-inset-left));right:max(var(--s-md),env(safe-area-inset-right));bottom:max(var(--s-md),env(safe-area-inset-bottom))}
.nb-toasts{bottom:max(var(--s-lg),env(safe-area-inset-bottom))}
.nb-drawer-panel{padding-right:max(var(--s-xl),env(safe-area-inset-right));padding-bottom:max(var(--s-2xl),env(safe-area-inset-bottom))}
.nb-offline{top:max(var(--s-sm),env(safe-area-inset-top))}
header .nav{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}

/* short landscape (unfolded Duo, phones on their side): the hero must leave
   room for the lede and the button above the fold */
@media (max-height:700px) and (orientation:landscape){
  .hero{padding-top:clamp(40px,6vh,64px);padding-bottom:clamp(32px,5vh,56px)}
  .hero h1{font-size:clamp(2.2rem,6.5vh,3.6rem)}
  .hero p.lede{margin-top:20px;font-size:1rem}
}

/* the hinge: when the viewport is two side-by-side segments, put the gutter
   of every two-column layout exactly on it */
@media (horizontal-viewport-segments: 2){
  .show-grid,.how-grid,.ct-grid,.note-grid{
    grid-template-columns:env(viewport-segment-width 0 0) env(viewport-segment-width 1 0);
    column-gap:calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  }
  .tiers{grid-template-columns:1fr 1fr;column-gap:calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0))}
  /* nothing fixed should sit on the fold */
  .nb-toasts{left:auto;right:max(var(--s-lg),env(safe-area-inset-right));transform:none}
}
/* folded vertically (book posture): stack, and keep the fold clear */
@media (vertical-viewport-segments: 2){
  .hero{min-height:env(viewport-segment-height 0 0);padding-bottom:calc(env(viewport-segment-top 0 1) - env(viewport-segment-bottom 0 0))}
}

/* ---------- 3. ACCESSIBILITY -------------------------------------------- */
.nb-skip{
  position:absolute;left:var(--s-sm);top:-100px;z-index:calc(var(--z-toast) + 1);
  background:var(--teal);color:#04231f;font-weight:700;font-size:var(--t-sm);
  padding:var(--s-sm) var(--s-lg);border-radius:var(--r-md);text-decoration:none;
  transition:top var(--dur-2) var(--ease-out);
}
.nb-skip:focus{top:var(--s-sm);outline:2px solid var(--ink);outline-offset:2px}

:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:2px solid var(--teal);outline-offset:2px;border-radius:var(--r-xs);
}
.nb-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Anchor targets must clear the sticky header, or a jump from search or the
   nav lands with the section heading hidden behind the bar. */
:target,section[id],main[id],[id^="t"],[id^="p"]{scroll-margin-top:92px}
@media(max-width:1024px){:target,section[id],main[id]{scroll-margin-top:76px}}

/* ---------- 4. TAP / PRESS FEEDBACK ------------------------------------- */
/* Every control gets a physical press. Pointer-coarse gets a slightly bigger
   dip because there is no hover state to telegraph interactivity. */
.btn,.nb-btn,.lang-toggle,.nb-icon-btn,.nb-chip,.door,.tier,.nb-tab{
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.btn:active,.nb-btn:active,.nb-icon-btn:active,.nb-chip:active,.lang-toggle:active{
  transform:scale(.965) translateY(0);transition-duration:.06s;
}
@media (pointer:coarse){
  .btn:active,.nb-btn:active{transform:scale(.94)}
  .btn:hover{transform:none;box-shadow:none} /* no sticky hover on touch */
}

/* ripple */
.nb-ripple{
  position:absolute;border-radius:50%;pointer-events:none;
  background:currentColor;opacity:.22;transform:scale(0);
  animation:nb-ripple var(--dur-3) var(--ease-out) forwards;
}
@keyframes nb-ripple{to{transform:scale(2.6);opacity:0}}

/* ---------- 5. HEADER ADDITIONS ----------------------------------------- */
.nav-right{gap:var(--s-sm)}
.nb-icon-btn{
  display:inline-grid;place-items:center;width:36px;height:36px;flex:0 0 36px;
  border:1px solid var(--line);background:transparent;border-radius:var(--r-full);
  cursor:pointer;color:var(--ink-soft);position:relative;overflow:hidden;
  transition:color var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease),transform var(--dur-1) var(--ease);
}
.nb-icon-btn:hover{color:var(--ink);border-color:var(--teal)}
.nb-icon-btn svg{width:17px;height:17px;display:block}
.nb-icon-btn .nb-sun{display:none}
html[data-theme="dark"] .nb-icon-btn .nb-sun{display:block}
html[data-theme="dark"] .nb-icon-btn .nb-moon{display:none}

/* header shrinks on scroll */
header{transition:box-shadow var(--dur-2) var(--ease)}
header.nb-stuck{box-shadow:var(--e-2)}
header.nb-stuck .nav{padding-top:9px;padding-bottom:9px;transition:padding-top var(--dur-2) var(--ease),padding-bottom var(--dur-2) var(--ease)}

/* ---------- 6. MOBILE MENU ---------------------------------------------- */
.nb-burger{display:none}
@media(max-width:1024px){
  .nb-burger{display:inline-grid}
  /* the header CTA is duplicated in the drawer footer and the floating
     button, so drop it here rather than let the bar overflow */
  .nav-right > .btn{display:none}
  .nav-right{gap:8px}
}
@media(max-width:400px){
  /* tightest phones: language moves into the drawer */
  .nav-right > .lang-toggle{display:none}
}
.nb-burger span{
  display:block;width:17px;height:1.8px;background:currentColor;border-radius:2px;
  transition:transform var(--dur-2) var(--ease-out),opacity var(--dur-1) var(--ease);
}
.nb-burger span + span{margin-top:4px}
.nb-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5.8px) rotate(45deg)}
.nb-burger[aria-expanded="true"] span:nth-child(2){opacity:0;transform:scaleX(.3)}
.nb-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5.8px) rotate(-45deg)}

.nb-drawer{
  position:fixed;inset:0;z-index:var(--z-menu);
  visibility:hidden;pointer-events:none;
}
.nb-drawer[data-open="true"]{visibility:visible;pointer-events:auto}
.nb-drawer-scrim{
  position:absolute;inset:0;background:rgba(10,14,12,.5);backdrop-filter:blur(3px);
  opacity:0;transition:opacity var(--dur-2) var(--ease);
}
.nb-drawer[data-open="true"] .nb-drawer-scrim{opacity:1}
.nb-drawer-panel{
  position:absolute;top:0;right:0;bottom:0;width:min(86vw,330px);
  background:var(--paper);border-left:1px solid var(--line);
  padding:var(--s-lg) var(--s-xl) var(--s-2xl);
  display:flex;flex-direction:column;gap:var(--s-xs);
  transform:translateX(100%);transition:transform var(--dur-3) var(--ease-out);
  overflow-y:auto;overscroll-behavior:contain;box-shadow:var(--e-4);
}
.nb-drawer[data-open="true"] .nb-drawer-panel{transform:none}
.nb-drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--s-md)}
.nb-drawer-title{font-size:var(--t-micro-up);font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft)}
.nb-drawer a.nb-drawer-link{
  display:flex;align-items:center;justify-content:space-between;gap:var(--s-sm);
  text-decoration:none;color:var(--ink);font-weight:600;font-size:1.02rem;
  padding:var(--s-sm) var(--s-xs);border-radius:var(--r-md);
  border-bottom:1px solid var(--line);
  opacity:0;transform:translateX(14px);
}
.nb-drawer[data-open="true"] a.nb-drawer-link{
  animation:nb-slide-in var(--dur-3) var(--ease-out) forwards;
}
.nb-drawer a.nb-drawer-link:hover{background:var(--paper-dark);color:var(--teal-dark)}
.nb-drawer a.nb-drawer-link::after{content:"→";color:var(--teal);opacity:.5;font-size:.9rem}
@keyframes nb-slide-in{to{opacity:1;transform:none}}
.nb-drawer a.nb-drawer-link:nth-child(1){animation-delay:.04s}
.nb-drawer a.nb-drawer-link:nth-child(2){animation-delay:.08s}
.nb-drawer a.nb-drawer-link:nth-child(3){animation-delay:.12s}
.nb-drawer a.nb-drawer-link:nth-child(4){animation-delay:.16s}
.nb-drawer a.nb-drawer-link:nth-child(5){animation-delay:.20s}
.nb-drawer a.nb-drawer-link:nth-child(6){animation-delay:.24s}
.nb-drawer a.nb-drawer-link:nth-child(7){animation-delay:.28s}
.nb-drawer a.nb-drawer-link:nth-child(8){animation-delay:.32s}
.nb-drawer-foot{margin-top:auto;padding-top:var(--s-lg);display:flex;gap:var(--s-xs);flex-wrap:wrap}
.nb-drawer-lang{flex:0 0 auto}
@media(min-width:401px){.nb-drawer-lang{display:none}}

/* ---------- 7. SITE SEARCH ---------------------------------------------- */
.nb-search{
  position:fixed;inset:0;z-index:var(--z-modal);
  display:none;padding:clamp(var(--s-lg),9vh,110px) var(--s-md) var(--s-md);
}
.nb-search[data-open="true"]{display:block}
.nb-search-scrim{position:absolute;inset:0;background:rgba(10,14,12,.55);backdrop-filter:blur(4px);animation:nb-fade var(--dur-2) var(--ease)}
@keyframes nb-fade{from{opacity:0}to{opacity:1}}
.nb-search-box{
  position:relative;max-width:620px;margin:0 auto;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--e-4);
  overflow:hidden;animation:nb-pop var(--dur-3) var(--ease-out);
  display:flex;flex-direction:column;max-height:min(70vh,560px);
}
@keyframes nb-pop{from{opacity:0;transform:translateY(-12px) scale(.98)}to{opacity:1;transform:none}}
.nb-search-field{display:flex;align-items:center;gap:var(--s-sm);padding:var(--s-md) var(--s-lg);border-bottom:1px solid var(--line);flex:0 0 auto}
.nb-search-field svg{width:18px;height:18px;color:var(--ink-soft);flex:0 0 18px}
.nb-search-field input{
  flex:1;border:0;background:transparent;font:inherit;font-size:1.05rem;color:var(--ink);outline:none;min-width:0;
}
.nb-search-field kbd{
  font:inherit;font-size:var(--t-micro);font-weight:700;color:var(--ink-soft);
  border:1px solid var(--line);border-radius:var(--r-sm);padding:2px 7px;background:var(--paper-dark);
}
.nb-search-results{overflow-y:auto;overscroll-behavior:contain;padding:var(--s-xs)}
.nb-search-item{
  display:block;text-decoration:none;color:var(--ink);
  padding:var(--s-sm) var(--s-md);border-radius:var(--r-md);
}
.nb-search-item:hover,.nb-search-item[data-active="true"]{background:var(--paper-dark)}
.nb-search-item strong{display:block;font-size:.98rem;font-weight:650;margin-bottom:2px}
.nb-search-item mark{background:rgba(37,209,147,.28);color:inherit;border-radius:2px;padding:0 1px}
.nb-search-item span{display:block;font-size:var(--t-caption);color:var(--ink-soft);line-height:1.45}
.nb-search-item em{font-style:normal;font-size:var(--t-micro-up);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-dark)}
.nb-search-empty{padding:var(--s-2xl) var(--s-md);text-align:center;color:var(--ink-soft);font-size:var(--t-sm)}

/* ---------- 8. FLOATING CONTROLS ---------------------------------------- */
.nb-float{
  position:fixed;right:clamp(var(--s-md),3vw,var(--s-xl));bottom:clamp(var(--s-md),3vw,var(--s-xl));
  z-index:var(--z-float);display:flex;flex-direction:column;align-items:flex-end;gap:var(--s-sm);
}
.nb-top{
  width:42px;height:42px;border-radius:var(--r-full);border:1px solid var(--line);
  background:var(--paper);color:var(--ink);cursor:pointer;display:grid;place-items:center;
  box-shadow:var(--e-2);opacity:0;transform:translateY(10px) scale(.9);pointer-events:none;
  transition:opacity var(--dur-2) var(--ease),transform var(--dur-2) var(--ease-out);
}
.nb-top[data-show="true"]{opacity:1;transform:none;pointer-events:auto}
.nb-top:hover{border-color:var(--teal);color:var(--teal-dark)}
.nb-top svg{width:16px;height:16px}

.nb-fab{
  display:inline-flex;align-items:center;gap:var(--s-xs);text-decoration:none;
  background:var(--teal);color:#04231f;font-weight:700;font-size:var(--t-sm);
  padding:12px 18px;border-radius:var(--r-full);box-shadow:var(--e-3);
  border:1px solid var(--teal);
  transition:transform var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease);
}
.nb-fab:hover{transform:translateY(-2px);box-shadow:var(--e-4)}
.nb-fab svg{width:16px;height:16px}
@media(max-width:520px){
  .nb-fab span{display:none}
  .nb-fab{padding:13px;border-radius:var(--r-full)}
}

/* ---------- 9. COOKIE BANNER -------------------------------------------- */
.nb-cookie{
  position:fixed;left:var(--s-md);right:var(--s-md);bottom:var(--s-md);z-index:var(--z-banner);
  max-width:520px;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-xl);box-shadow:var(--e-4);padding:var(--s-lg);
  display:none;
}
.nb-cookie[data-open="true"]{display:block;animation:nb-rise var(--dur-3) var(--ease-out)}
@keyframes nb-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.nb-cookie h3{font-family:var(--serif);font-size:1.05rem;font-weight:600;margin-bottom:var(--s-xs)}
.nb-cookie p{font-size:var(--t-caption);color:var(--ink-soft);line-height:1.55;margin-bottom:var(--s-md)}
.nb-cookie p a{color:var(--teal-dark);font-weight:600}
.nb-cookie-row{display:flex;gap:var(--s-xs);flex-wrap:wrap}
.nb-btn{
  font:inherit;font-weight:700;font-size:var(--t-sm);cursor:pointer;
  padding:10px 18px;border-radius:var(--r-md);border:1px solid var(--line);
  background:transparent;color:var(--ink);position:relative;overflow:hidden;
  transition:transform var(--dur-1) var(--ease),background var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease);
  text-decoration:none;display:inline-flex;align-items:center;gap:var(--s-xs);
}
.nb-btn:hover{border-color:var(--ink-soft)}
.nb-btn--primary{background:var(--teal);border-color:var(--teal);color:#04231f}
.nb-btn--primary:hover{background:#25d193;border-color:#25d193}
.nb-btn--danger{background:transparent;border-color:var(--err);color:var(--err)}
.nb-btn--danger:hover{background:var(--err);color:#fff}
.nb-btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}

/* ---------- 10. MODAL ---------------------------------------------------- */
.nb-modal{position:fixed;inset:0;z-index:var(--z-modal);display:none;place-items:center;padding:var(--s-md)}
.nb-modal[data-open="true"]{display:grid}
.nb-modal-scrim{position:absolute;inset:0;background:rgba(10,14,12,.55);backdrop-filter:blur(3px);animation:nb-fade var(--dur-2) var(--ease)}
.nb-modal-box{
  position:relative;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-xl);box-shadow:var(--e-4);padding:var(--s-2xl);
  max-width:440px;width:100%;animation:nb-pop var(--dur-3) var(--ease-out);
}
.nb-modal-box h3{font-family:var(--serif);font-size:1.25rem;font-weight:600;margin-bottom:var(--s-xs)}
.nb-modal-box p{font-size:var(--t-sm);color:var(--ink-soft);line-height:1.6;margin-bottom:var(--s-lg)}
.nb-modal-row{display:flex;gap:var(--s-xs);justify-content:flex-end;flex-wrap:wrap}

/* ---------- 11. TOAST ---------------------------------------------------- */
.nb-toasts{position:fixed;left:50%;bottom:var(--s-lg);transform:translateX(-50%);z-index:var(--z-toast);display:flex;flex-direction:column;gap:var(--s-xs);pointer-events:none;width:max-content;max-width:calc(100vw - var(--s-2xl))}
.nb-toast{
  background:var(--deep);color:#fff;font-size:var(--t-sm);font-weight:600;
  padding:11px 18px;border-radius:var(--r-full);box-shadow:var(--e-3);
  animation:nb-rise var(--dur-2) var(--ease-out);display:flex;align-items:center;gap:var(--s-xs);
}
html[data-theme="dark"] .nb-toast{background:#e8ece9;color:#0d100f}
.nb-toast[data-leaving="true"]{animation:nb-fade var(--dur-2) var(--ease) reverse forwards}

/* ---------- 12. SKELETONS ------------------------------------------------ */
/* Never a spinner: a skeleton the same shape as the content that replaces it. */
.nb-sk{
  background:linear-gradient(90deg,var(--paper-dark) 0%,rgba(255,255,255,.55) 50%,var(--paper-dark) 100%);
  background-size:220% 100%;border-radius:var(--r-sm);
  animation:nb-shimmer 1.25s linear infinite;
  display:block;
}
html[data-theme="dark"] .nb-sk{
  background:linear-gradient(90deg,#1b2320 0%,#25302b 50%,#1b2320 100%);
  background-size:220% 100%;
}
@keyframes nb-shimmer{from{background-position:120% 0}to{background-position:-120% 0}}
.nb-sk--text{height:.85em;margin:.35em 0}
.nb-sk--line{height:12px}
[data-nb-loaded="true"] .nb-sk{display:none}

/* ---------- 13. FORMS ---------------------------------------------------- */
.nb-form{display:grid;gap:var(--s-lg)}
.nb-field{display:grid;gap:var(--s-xxs)}
.nb-field > label{font-size:var(--t-sm);font-weight:650;color:var(--ink)}
.nb-field .nb-hint{font-size:var(--t-caption);color:var(--ink-soft)}
.nb-field input,.nb-field select,.nb-field textarea{
  font:inherit;font-size:1rem;color:var(--ink);background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-md);padding:12px 14px;
  width:100%;transition:border-color var(--dur-1) var(--ease),box-shadow var(--dur-1) var(--ease);
}
.nb-field textarea{min-height:130px;resize:vertical}
.nb-field input:focus,.nb-field select:focus,.nb-field textarea:focus{
  outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(37,209,147,.18);
}
.nb-field[data-invalid="true"] input,
.nb-field[data-invalid="true"] select,
.nb-field[data-invalid="true"] textarea{
  border-color:var(--err);box-shadow:0 0 0 3px rgba(179,38,30,.14);
}
.nb-field[data-invalid="true"]{animation:nb-shake .32s var(--ease)}
@keyframes nb-shake{0%,100%{transform:translateX(0)}22%{transform:translateX(-5px)}55%{transform:translateX(4px)}80%{transform:translateX(-2px)}}
.nb-error{
  font-size:var(--t-caption);color:var(--err);font-weight:600;
  display:flex;align-items:center;gap:5px;
  /* the line is always reserved, so showing or clearing an error never moves
     the controls below it (a click on Submit used to land on moving ground) */
  min-height:1.4em;visibility:hidden;
}
.nb-field[data-invalid="true"] .nb-error{visibility:visible}
.nb-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

.nb-form-note{
  font-size:var(--t-caption);color:var(--ink-soft);line-height:1.55;
}
.nb-form-note a{color:var(--teal-dark);font-weight:600}

/* form-level states */
.nb-alert{
  border-radius:var(--r-lg);padding:var(--s-md) var(--s-lg);font-size:var(--t-sm);
  line-height:1.55;display:none;gap:var(--s-sm);align-items:flex-start;
  animation:nb-rise var(--dur-2) var(--ease-out);
}
.nb-alert[data-show="true"]{display:flex}
.nb-alert--ok{background:var(--ok-bg);color:var(--ok);border:1px solid rgba(23,122,108,.28)}
.nb-alert--err{background:var(--err-bg);color:var(--err);border:1px solid rgba(179,38,30,.24)}
html[data-theme="dark"] .nb-alert--ok{background:rgba(23,122,108,.16);color:#7fe0c9}
html[data-theme="dark"] .nb-alert--err{background:rgba(179,38,30,.18);color:#ff9a92}
.nb-alert svg{flex:0 0 18px;width:18px;height:18px;margin-top:1px}
.nb-alert strong{display:block;margin-bottom:2px}

/* success panel replaces the form outright */
.nb-success{display:none;text-align:center;padding:var(--s-sec-sm) var(--s-lg)}
.nb-success[data-show="true"]{display:block;animation:nb-pop var(--dur-3) var(--ease-out)}
.nb-success-tick{
  width:62px;height:62px;margin:0 auto var(--s-lg);border-radius:var(--r-full);
  background:var(--ok-bg);display:grid;place-items:center;
}
.nb-success-tick svg{width:30px;height:30px;color:var(--ok)}
.nb-success-tick svg path{stroke-dasharray:32;stroke-dashoffset:32;animation:nb-draw .5s var(--ease-out) .12s forwards}
@keyframes nb-draw{to{stroke-dashoffset:0}}
.nb-success h3{font-family:var(--serif);font-size:1.5rem;font-weight:600;margin-bottom:var(--s-xs)}
.nb-success p{color:var(--ink-soft);font-size:var(--t-sm);max-width:44ch;margin:0 auto var(--s-lg)}

/* submit button busy state — the label swaps, the button never disappears */
.nb-submit{position:relative;min-width:172px;justify-content:center}
.nb-submit .nb-busy{display:none}
.nb-submit[data-busy="true"] .nb-idle{display:none}
.nb-submit[data-busy="true"] .nb-busy{display:inline-flex;align-items:center;gap:var(--s-xs)}
.nb-dots{display:inline-flex;gap:3px}
.nb-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:nb-bounce .9s var(--ease) infinite}
.nb-dots i:nth-child(2){animation-delay:.12s}
.nb-dots i:nth-child(3){animation-delay:.24s}
@keyframes nb-bounce{0%,60%,100%{opacity:.3}30%{opacity:1}}

/* ---------- 14. COPY BUTTON ---------------------------------------------- */
.nb-copy{
  display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:var(--t-caption);
  font-weight:650;cursor:pointer;background:transparent;color:var(--ink-soft);
  border:1px solid var(--line);border-radius:var(--r-full);padding:5px 12px;
  transition:color var(--dur-1) var(--ease),border-color var(--dur-1) var(--ease),transform var(--dur-1) var(--ease);
}
.nb-copy:hover{color:var(--teal-dark);border-color:var(--teal)}
.nb-copy svg{width:13px;height:13px}
.nb-copy .nb-copy-done{display:none}
.nb-copy[data-done="true"]{color:var(--ok);border-color:var(--ok)}
.nb-copy[data-done="true"] .nb-copy-idle{display:none}
.nb-copy[data-done="true"] .nb-copy-done{display:inline-flex;align-items:center;gap:6px}

/* ---------- 15. GENERIC CARD / SECTION PATTERNS ------------------------- */
.nb-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-xl);
  padding:var(--s-xl);transition:transform var(--dur-2) var(--ease-out),box-shadow var(--dur-2) var(--ease),border-color var(--dur-2) var(--ease);
}
.nb-card--hover:hover{transform:translateY(-4px);box-shadow:var(--e-3);border-color:var(--teal-soft)}
.nb-sec{padding:var(--s-sec) 0}
.nb-sec--lg{padding:var(--s-sec-lg) 0}
.nb-grid{display:grid;gap:var(--s-lg)}
.nb-grid--3{grid-template-columns:repeat(3,1fr)}
.nb-grid--2{grid-template-columns:repeat(2,1fr)}
@media(max-width:900px){.nb-grid--3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.nb-grid--3,.nb-grid--2{grid-template-columns:1fr}}

.nb-meta{font-size:var(--t-caption);color:var(--ink-soft)}
.nb-updated{
  display:inline-flex;align-items:center;gap:6px;font-size:var(--t-caption);
  color:var(--ink-soft);border:1px solid var(--line);border-radius:var(--r-full);
  padding:4px 12px;background:var(--paper-dark);
}
.nb-updated svg{width:12px;height:12px}

/* ---------- 16. LEGAL / PROSE PAGES ------------------------------------- */
.nb-prose{max-width:72ch;margin:0 auto}
.nb-prose h2{
  font-family:var(--serif);font-size:1.5rem;font-weight:600;
  margin:var(--s-3xl) 0 var(--s-sm);scroll-margin-top:90px;
}
.nb-prose h3{font-size:1.08rem;font-weight:700;margin:var(--s-xl) 0 var(--s-xs)}
.nb-prose p,.nb-prose li{color:var(--ink-soft);line-height:1.72;font-size:.98rem}
.nb-prose p{margin-bottom:var(--s-sm)}
.nb-prose ul,.nb-prose ol{margin:0 0 var(--s-md) var(--s-lg);display:grid;gap:var(--s-xxs)}
.nb-prose strong{color:var(--ink)}
.nb-prose a{color:var(--teal-dark);font-weight:600}
.nb-toc{
  background:var(--paper-dark);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:var(--s-lg);margin-bottom:var(--s-2xl);
}
.nb-toc ol{margin:0 0 0 var(--s-md);display:grid;gap:var(--s-xxs)}
.nb-toc a{color:var(--ink-soft);text-decoration:none;font-size:var(--t-sm)}
.nb-toc a:hover{color:var(--teal-dark);text-decoration:underline}

/* ---------- 17. FOOTER --------------------------------------------------- */
.nb-foot-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:var(--s-2xl);
  padding-bottom:var(--s-xl);margin-bottom:var(--s-lg);border-bottom:1px solid var(--line);
}
@media(max-width:820px){.nb-foot-grid{grid-template-columns:1fr 1fr;gap:var(--s-xl)}}
@media(max-width:480px){.nb-foot-grid{grid-template-columns:1fr}}
.nb-foot-col h3,.nb-foot-col h4{
  font-size:var(--t-micro-up);font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);margin-bottom:var(--s-sm);
}
.nb-foot-col a{display:block;text-decoration:none;color:var(--ink-soft);font-size:var(--t-sm);padding:3px 0;transition:color var(--dur-1) var(--ease),transform var(--dur-1) var(--ease)}
.nb-foot-col a:hover{color:var(--teal-dark);transform:translateX(2px)}
.nb-social{margin-top:10px}
.nb-social a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink-soft);font-size:var(--t-caption);font-weight:500;opacity:.85;transition:color var(--dur-1) var(--ease),opacity var(--dur-1) var(--ease)}
.nb-social a:hover{color:var(--teal-dark);opacity:1}
.nb-social svg{width:13px;height:13px;flex:0 0 13px}
.nb-foot-blurb{font-size:var(--t-caption);color:var(--ink-soft);line-height:1.6;max-width:34ch}

/* ---------- 18. OFFLINE BADGE -------------------------------------------- */
.nb-offline{
  position:fixed;left:50%;top:var(--s-sm);transform:translateX(-50%) translateY(-140%);
  z-index:var(--z-toast);background:var(--warn-bg);color:var(--warn);
  border:1px solid rgba(154,100,0,.3);border-radius:var(--r-full);
  padding:7px 16px;font-size:var(--t-caption);font-weight:700;
  transition:transform var(--dur-3) var(--ease-out);display:flex;align-items:center;gap:6px;
}
.nb-offline[data-show="true"]{transform:translateX(-50%)}

/* ---------- 19. REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important;
  }
  .nb-sk{animation:none;background:var(--paper-dark)}
  .nb-drawer a.nb-drawer-link{opacity:1;transform:none}
  .nb-btn:active,.btn:active{transform:none}
}

/* ---------- 20. PRINT ---------------------------------------------------- */
@media print{
  :root{--paper:#fff;--ink:#000;--ink-soft:#333;--line:#ccc}
  html[data-theme="dark"]{--paper:#fff;--ink:#000;--ink-soft:#333;--line:#ccc}
  body{background:#fff!important;color:#000!important;font-size:11.5pt;line-height:1.45}
  body::before{display:none!important}
  header,footer,.nb-float,.nb-cookie,.nb-drawer,.nb-search,.nb-modal,.nb-toasts,
  .nb-offline,#progress,.marquee,.hero canvas,.nb-icon-btn,.lang-toggle,
  .nb-copy,.nb-burger,.nb-skip,.bill-toggle,video,iframe,.demo{display:none!important}
  main{padding:0!important}
  .rv{opacity:1!important;transform:none!important}
  .es{display:none!important}
  a{text-decoration:none;color:#000}
  /* expose link targets — a printed page has no hrefs otherwise */
  .nb-prose a[href^="http"]::after,.nb-prose a[href^="mailto"]::after{
    content:" (" attr(href) ")";font-size:9pt;color:#555;word-break:break-all;
  }
  details{border:0!important}
  details > summary{font-weight:700;list-style:none}
  details:not([open]) > *:not(summary){display:block!important} /* print answers too */
  section,.nb-card,.tier,.nb-prose h2{break-inside:avoid;page-break-inside:avoid}
  h1,h2,h3{break-after:avoid;page-break-after:avoid;color:#000!important}
  .tier,.nb-card{box-shadow:none!important;border:1px solid #ccc!important}
  @page{margin:16mm}
}

/* ---- FAQ as a ruled list, not a stack of cards ---------------------- */
html body .faq details{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;margin-bottom:0}
html body .faq details:last-of-type{border-bottom:1px solid var(--line)}
html body .faq details[open]{border-color:var(--line);box-shadow:none}
html body .faq summary{padding:var(--s-md) 0}
html body .faq details > .a{padding:0 0 var(--s-md)}
html body .faq summary::after{content:"+";flex:0 0 auto;width:auto;height:auto;border:0;transform:none;font-family:var(--mono);font-size:1.25rem;font-weight:400;line-height:1;color:var(--ink-soft)}
html body .faq details[open] summary::after{content:"\2013";transform:none}

/* ===== One action per screen: the quiet second choice ===================== */
.hero-alt{color:rgba(255,255,255,.8);text-decoration:none;font-weight:600;padding:0 4px;border-bottom:1px solid rgba(255,255,255,.3);transition:color .15s,border-color .15s}
.hero-alt:hover{color:#fff;border-color:#fff}

/* ===== Calmer motion: headings rise, everything else only fades ========== */
.rv{transform:none;transition:opacity .55s ease}
h2.rv,.h2.rv{transform:translateY(14px);transition:opacity .6s ease,transform .7s cubic-bezier(.16,1,.3,1)}
.rv.in,h2.rv.in,.h2.rv.in{opacity:1;transform:none}

/* ===== Room to breathe: one generous rhythm for every page section ====== */
html body main > section:not(.hero):not(.final):not(.note){padding-block:clamp(64px,8.5vw,120px)}

/* ===== The end card: the one place every page leads ===================== */
html body .final{background:#0e2419;color:#fff;padding:clamp(88px,13vw,176px) 0;text-align:center;position:relative;overflow:hidden}
html body .final::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(900px 420px at 50% 0%,rgba(37,209,147,.16),transparent 70%)}
html body .final .wrap{position:relative}
html body .final .h2{color:#fff;font-size:clamp(2.4rem,6vw,4.4rem);max-width:16ch;margin:0 auto 20px;line-height:1.02}
html body .final p{color:rgba(255,255,255,.78);max-width:54ch;margin:0 auto 36px;font-size:1.08rem}
html body .final .btn{background:#25d193;border-color:#25d193;color:#04231f!important}
html body .final .btn:hover{background:#5fe0bd;border-color:#5fe0bd;color:#04231f!important}
html body .final .mail{color:rgba(255,255,255,.62);margin:22px auto 0;font-size:.92rem}
html body .final .mail a{color:#8ee6d3}

/* the floating action waits its turn */
.nb-fab{transition:opacity .3s ease,transform .3s cubic-bezier(.16,1,.3,1),background .2s ease}
.nb-fab[data-show="false"]{opacity:0;transform:translateY(14px);pointer-events:none}

/* ===== Bigger type on bigger screens: everything is in rem, so one root
   step scales text, buttons and spacing together. Phones stay at 16px. ===== */
@media (min-width:768px){html{font-size:106.25%}}
@media (min-width:1200px){html{font-size:112.5%}}

/* ===== The one memorable accent: logo terracotta ==========================
   Deep green and mint stay the base. Amber is the pop, and it is spent only
   on the first step (free first meeting buttons), the highlighted word in the
   hero, and the NorthBridge column of the comparison. Dark text on amber for
   contrast; amber text appears only on the dark hero. */
:root,html[data-theme="dark"]{--pop:#e2774c;--pop-hover:#ec8a62;--pop-ink:#2a0f04}
html body a.btn[href^="book.html"]:not(.outline):not(.navy):not([href*="plan="]){
  background:var(--pop);border-color:var(--pop);color:var(--pop-ink)!important;
}
html body a.btn[href^="book.html"]:not(.outline):not(.navy):not([href*="plan="]):hover{
  background:var(--pop-hover);border-color:var(--pop-hover);color:var(--pop-ink)!important;
  box-shadow:0 10px 24px -12px rgba(226,119,76,.45);
}
html body .hero h1 .echo.a{color:var(--pop)}
html body .hero .price{color:var(--pop)}
html body .nb-fab,html body .nb-drawer-foot .nb-btn{background:var(--pop);border-color:var(--pop);color:var(--pop-ink)!important}
html body .nb-fab:hover,html body .nb-drawer-foot .nb-btn:hover{background:var(--pop-hover);border-color:var(--pop-hover)}

/* ===== Palette taken from the logo: Deep Teal (#0c2a27) + Warm Bone (#fbfaf6) + Terracotta (#e2774c) =====
   Mint is demoted to small marks only (focus rings, ticks). Large controls use the one accent. */
:root,html[data-theme="dark"]{--pine:#0c2a27;--bone:#fbfaf6}
html body .final .btn,html body .nb-btn--primary,html[data-theme="dark"] .bill-toggle button.on{background:var(--pop);border-color:var(--pop);color:var(--pop-ink)!important}
html body .final .btn:hover,html body .nb-btn--primary:hover{background:var(--pop-hover);border-color:var(--pop-hover)}
html body .hero .rotator,html body .rotator #rotWord{color:var(--pop)}
html body .why .why-honest{overflow-wrap:anywhere;word-break:normal;hyphens:auto}

/* The floating "Free first meeting" button is switched off on the booking page
   itself (nb.js sets `hidden`); without this line the rules above re-show it. */
html body .nb-fab[hidden]{display:none!important}

/* ==========================================================================
   Videos ("Six problems. Twenty seconds each.")
   Used on index, cinderella, hermes and socrates. Markup: <section class="reels">.
   Phones: a row you swipe sideways. Wider screens: a grid.
   ========================================================================== */
html body section.reels{background:var(--paper-dark,var(--surface-2))}
.reels .sub{margin-bottom:32px}
.reel-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.reel{margin:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.reel-video{display:block;width:100%;height:auto;aspect-ratio:9/16;max-height:72vh;object-fit:cover;background:#0c2a27}
.reel-text{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px}
.reel-text p{margin:0;font-size:.92rem;line-height:1.5;color:var(--ink-soft)}
.reel-text strong{display:block;font-size:.74rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;margin-bottom:2px;color:var(--ink)}
.reel-fix{border-top:1px solid var(--line);padding-top:10px}
.reel-fix strong{color:var(--teal-dark,#115c52)}
html[data-theme="dark"] .reel-fix strong{color:#8ee6d3}
.reel-follow{margin-top:24px;font-size:.9rem;color:var(--ink-soft);display:flex;flex-wrap:wrap;gap:6px 12px}
.reel-follow a{color:var(--teal-dark,#115c52);font-weight:600}
html[data-theme="dark"] .reel-follow a{color:#8ee6d3}
@media(max-width:900px){
  .reel-row{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;
    margin-inline:-24px;padding-inline:24px;scroll-padding-inline:24px;overscroll-behavior-x:contain}
  .reel{flex:0 0 min(78%,320px);scroll-snap-align:start}
}

/* "We solve it for you" line inside the problem cards on the practice pages */
.fit-card .fit-fix{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);color:var(--ink)}
.fit-card .fit-fix strong{display:block;font-size:.74rem;letter-spacing:.07em;text-transform:uppercase;color:var(--teal-dark,#115c52);margin-bottom:2px}
html[data-theme="dark"] .fit-card .fit-fix strong{color:#8ee6d3}

/* ==========================================================================
   "We're new, so we have no reviews yet" (index.html, right under the hero).
   ========================================================================== */
html body section.trust{padding:var(--s-sec) 0;background:var(--paper)}
.trust h2{font-family:var(--serif,inherit);font-size:clamp(1.35rem,2.6vw,1.75rem);line-height:1.25;max-width:34ch;margin:0 0 var(--s-xl);color:var(--ink)}
.trust-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.trust-list li{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:14px;padding:16px 18px;font-size:.92rem;line-height:1.55;color:var(--ink-soft)}
.trust-list li:first-child{border-top-color:var(--pop)}
.trust-list strong{display:block;color:var(--ink);font-size:1rem;margin-bottom:4px}
.trust-list a{color:var(--teal-dark);font-weight:600}

/* ==========================================================================
   Tabs: the site is five pages (Home, Services, How it works, Pricing, About)
   instead of one long scroll. The header links are the tabs; the current one
   is underlined. On phones they become the menu (nb.js builds it from them).
   ========================================================================== */
.nav-links a[aria-current="page"]{color:var(--ink);font-weight:650}
.nav-links a[aria-current="page"]::after{transform:scaleX(1);background:var(--pop)}
.nb-drawer-link[aria-current="page"]{font-weight:700}

/* Title band at the top of Services, How it works, Pricing and About */
html body section.page-top{background:var(--deep);color:#fff;padding:clamp(48px,7vw,80px) 0 clamp(44px,6vw,64px)}
.page-top h1{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:clamp(2rem,4.6vw,3.1rem);line-height:1.08;letter-spacing:-.01em;max-width:20ch;color:#fff;margin:0}
.page-top p{margin:14px 0 0;color:rgba(255,255,255,.8);max-width:58ch;font-size:1.06rem;line-height:1.55}

/* Home: "Where to next?" cards, one per tab */
html body section.explore{padding:var(--s-sec) 0;background:var(--paper)}
.explore h2{font-family:"Fraunces",Georgia,serif;font-size:clamp(1.4rem,2.8vw,1.9rem);margin:0 0 var(--s-xl);color:var(--ink)}
.explore-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}
.explore-card{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink-soft);text-decoration:none;font-size:.93rem;line-height:1.5;transition:border-color var(--dur-2) var(--ease-out),transform var(--dur-2) var(--ease-out)}
.explore-card strong{color:var(--ink);font-size:1.08rem}
.explore-card strong::after{content:" →";color:var(--teal)}
.explore-card:hover,.explore-card:focus-visible{border-color:var(--teal);transform:translateY(-2px)}

/* About: the founders */
html body section.founders{padding:var(--s-sec) 0 var(--s-sec-sm);background:var(--paper)}
.founders h2{font-family:"Fraunces",Georgia,serif;font-size:clamp(1.4rem,2.8vw,1.9rem);margin:0 0 var(--s-xl);color:var(--ink)}
.founders-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;max-width:640px}
.founder-card{display:flex;flex-direction:column;gap:4px;padding:20px;border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:14px;background:var(--surface);text-decoration:none;color:var(--ink-soft)}
.founder-card strong{color:var(--ink);font-size:1.15rem}
.founder-card:hover,.founder-card:focus-visible{border-color:var(--teal)}
.founders-where{margin-top:var(--s-lg);color:var(--ink-soft);max-width:60ch}
@media (prefers-reduced-motion:reduce){.explore-card{transition:none}.explore-card:hover{transform:none}}
