/* =============================================================================
   Abledly · Template Link Check: the one stylesheet. Plain CSS, no build step.
   Design language: "v2" (white, lavender washes, soft cards, 14px controls, tight Inter headlines).
   Light theme by default; dark is opt-in via html[data-theme="dark"] (toggle in the header). Every color and size is a
   custom property on :root. Accent is lavender. Only transform / opacity are animated; reduced motion shows final states.

   SHARED CLASSES (server-rendered pages should use exactly these)
   -----------------------------------------------------------------------------
   Layout
     .container            max 1120px, 16px gutters (24px from 720px up)
     .container--narrow    720px reading column (add to .container)
     .stack                vertical rhythm; children get a top gap (--stack-gap, 16px).
                           Modifiers: .stack--sm (8px), .stack--lg (32px)
     .row                  flex, wrap, 12px gap, vertically centred. .row--between spreads ends
     .section              vertical page section (80px / 104px).  .section__head centred title block (.kick + h2 + p)
   Surfaces
     .card                 24px radius, 1px border, surface, soft shadow, 24px padding
     .card--ok .card--warn .card--bad .card--info
                           add a 4px left bar in the state color (use WITH .card)
     .notice               soft callout box.  .notice--warn / --bad / --ok / --info tint it
   Status
     .badge                pill with a small dot. .badge--ok .badge--warn .badge--bad .badge--info
   Actions
     .btn                  neutral outlined button (46px tall)
     .btn--primary         filled lavender.  .btn--ghost transparent + border.  .btn--sm smaller.  .btn--block full width
     .link-btn             text-style button (underlined, accent)
   Text
     .muted                secondary text color
     .mono                 monospace, one line, ellipsis (URLs). Always add title="full url"
     .kick                 small uppercase accent kicker above a section title
     .eyebrow              white pill with a lavender label (hero / page heads). Optional .eyebrow__icon (tinted check circle)
   Media
     .shot                 screenshot frame: rounded, 1px border, soft shadow, max-width 100%.
                           Works on <img> or a wrapper. Click-to-enlarge is wired by widget.js.
   Data
     .kv                   <dl class="kv"><dt>Label</dt><dd>Value</dd>...</dl> two-column grid

   RESULT CARD (one renderer: widget.js TemplinkUI.resultCard, used by every checker and the home story panel)
     <article class="card card--bad result result--bad" data-state="access_denied">
       <div class="result__body">
         <div class="result__main">
           <div class="result__top">
             <span class="result__icon result__icon--bad"><svg class="icon"><use href="/assets/icons.svg#i-lock"/></svg></span>
             <div class="result__titles">
               <div class="result__head"><span class="badge badge--bad">Label</span> <span class="mono" title="URL">short url</span></div>
               <h3 class="result__headline"><span>Buyer outcome</span></h3>
               <p class="result__design">Design: <strong>Title</strong> · 12 pages</p>
             </div>
           </div>
           <ol class="journey"> three li.journey__step (buyer opens, Canva shows, buyer gets: --end --ok|bad|warn|info) </ol>
           <div class="fix"><p class="fix__title">How to fix · 2 minutes</p><ol class="fix__steps">...</ol></div>
           <details class="result__details"><summary>What Canva returned</summary><p class="result__note">..</p><p>evidence</p></details>
           <div class="result__actions"> primary + ghost 'Open as buyer' (buyer-shot lightbox) + 'Copy link' </div> + .result__hint (private-window tip on non-ok)
         </div>
         <div class="result__side"><figure class="buyer-window result__shot"> bar, body (screenshot or illustration), foot </figure></div>
       </div>
     </article>
   Layout follows the card's own width: text + tinted window column from 720px, window under the text below that,
   journey stacks with a thin connector line under 600px. Modifiers: .result--compact (no window), .result--mini (one line).
   Also: .result__note .result__details .result__flag .result__shot.

   CHECKER (widget.js: <div data-templink-checker>)
     Full mode: .checker card with textarea + PDF dropzone (articles, pricing, 404).
     Compact mode (<div data-templink-checker data-compact>): .checker.checker--compact. One line bar .ck-bar
       (.ck-lead, .ck-in > input, submit .btn), a small row .ck-sub of links (upload a PDF, several links, sample link,
       .ck-sub [data-remaining]). Pasting several lines or clicking 'check several links' adds .is-multi: the bar turns into a
       textarea (.ck-multi). Results render under it: .status, [data-summary] > .summary, .results > .result, .upsell.
       Home hero only (data-hero): .ck-quick under the bar = .ck-quick__sample (the sample check, [data-sample]) and the
       one-line .ck-quick__trust; the small 'try a sample link' is then left out of .ck-sub.
     .dropzone / .dropzone__*  PDF picker. In compact mode it only shows once a file is chosen (.has-file) or in .is-multi.
     .summary              ring + headline + legend + Copy report. .summary__ring (svg: .ring__track, .ring__seg--ok|warn|bad|info,
                           .ring__text), .summary__body, .summary__counts with .legend--ok|warn|bad|info dots

   DESIGN CHECK (is it still the right design?)
     .chips                row of content chips next to a state badge
     .badge-btn            add to a .badge that is a <button> (opens the design modal)
     .modal                centred dialog: .modal__scrim, .modal__panel, .modal__head, .modal__actions. Toggle .is-open
     .design-compare       two-column before / after grid of .design-col (.design-col__label, __title, __meta, img.shot.design-thumb)
     .design-reasons       plain-language list of what changed
     .result__design       result card line: 'Design: Title · 12 pages'
     .dup-notice           spacing for the 'N links point to the same design' .notice--warn

   BUYER WINDOW MOTIF: every result shows the link exactly as a signed-out buyer sees it
     .buyer-window         browser frame. Parts: .buyer-window__bar (.buyer-window__dots, __url, __pill 'Signed out · no Pro'),
                           .buyer-window__body (screenshot <img class="shot">, or .bw-state illustration, or .bw-art svg),
                           .buyer-window__foot (__thumb, __title, __sub). .buyer-window--loading + .shimmer = skeleton while checking
     .bw-state             centred card inside the window (login wall, deleted, paused). --warn / --info tint the tile
     .bw-locked            blurred placeholder + .bw-locked__msg for guests
     .journey              <ol> of three .journey__step: buyer opens, Canva shows, buyer gets. The last has .journey__step--end plus
                           --ok / --bad / --warn / --info. Text inside: <small> caption, <strong> bold part
     .fix                  'How to fix · N minutes' box: .fix__title + ol.fix__steps
     .result__icon         54px tinted state icon tile (--ok --warn --bad --info)
     .state-tile           36px state icon tile for dashboard rows (same modifiers)
     .result__headline     the buyer outcome.  .result__actions the button row.  .result__unlock the guest CTA row
     .logo / .logo__mark / .logo__word (.logo__name 'Abledly' + .logo__sub 'Template Link Check')   eye mark + lockup; .logo-mark the bare svg
     .proof-status         proof page status block (icon tile + headline)

   REAL BUYER SCREENS (lib/buyer-views.mjs; real signed-out Canva captures in /assets/buyer-views/, each already carries its own browser frame)
     .buyer-window--ref   add to a .buyer-window whose body is a real capture: hides our bar (the picture has its own). Body: .bw-refbody > .bw-ref
     .bw-ref              <picture> + .bw-refcap ('Example: what a buyer sees for this problem · real Canva screen'). Used by result cards + home story
     .buyer-fig           <figure> at the top of a guide: picture + figcaption (exact Canva wording) + .buyer-fig__date. .buyer-figs = two side by side
     .seen                home strip 'What your buyers can actually see': ul.seen__grid > li.seen__card > a.seen__link (.seen__img, __label, __quote,
                          __meaning, __more). Scrolls sideways under 640px
     .site-footer__capture  the one-line capture / trademark note in the footer of every page that shows captures

   HOME PAGE (index.html only; markup is documented where it lives)
     .hero .hero__eye .hero__lede   centred hero. .hero__eye holds the small glass eye (hidden under 640px). The checker sits
                          right under the lede, before the split window, so it is on the first screen of a phone
     .vs                  split-screen window: .vs-hint .vs-win .vs-pane(--me|--buyer) .vs-bar .vs-body .vs-wall .vs-divider .vs-handle ...
                          (--p is the slider position, set by motion.js)
     .problem / .pr       three problem cards.   .story + .story__grid / __chap / __stage / __panel   sticky three-chapter story
     .flow .flow__node    chapter 1 diagram.  .mock-dash .mock-mail .mock-diff   chapter 3 dashboard, alert email, design-changed
     .pf .pf-chip         '7 of 8' proof: flip cards.  .timeline   the three Canva changes
     .plan__ladder        guest / free account allowance rows in the free plan.  .cta-band   final dark band
     .explainer           '36 seconds' video section right after the hero: .section__head (.kick + h2) + figure.explainer__frame, a rounded
                          16:9 frame with a soft lavender shadow. Children: .explainer__video (muted loop, poster), .explainer__open (full-frame
                          button: opens the .vbox player), .explainer__play (play / pause, 48px corner pill), .explainer__max ('Larger' pill),
                          .explainer__sound ('Sound on' toggle, top-right pill, aria-pressed; the inline video starts muted because of the
                          browser autoplay rule, the .vbox player opens with sound).
                          State classes on the frame (explainer.js): .is-idle = not started yet or reduced motion (play button grows to a
                          big centred circle), .is-playing. Autoplays only while 50% in view; never with prefers-reduced-motion.
     .vbox                native <dialog> video player (showModal) with .vbox__video (native controls) and .vbox__close; dark panel,
                          blurred scrim, fills up to 1280px / 90vh.
   GLASS EYE (component, any page)
     <div class="glass-eye" aria-hidden="true"></div>  motion.js fills it (frosted orb, almond eye, pupil that follows the pointer,
     blink every 6-10 s, gentle float). Sizes: default 104px, .glass-eye--md 160px, .glass-eye--lg 200px.

   ACCOUNT CABINET (dashboard Pro features, onboarding, settings, auth extras)
     .view-tabs > .view-tab   section tabs under the dashboard title (links, aria-current="page" on the active one: Links / Settings)
     .table-bar               toolbar on top of the links table: .filter-seg (filter) + .check-wrap 'Select all' + .bulk (selected-links actions)
     .filter-seg > .filter-seg__btn.is-on   segmented filter / toggle buttons (aria-pressed), .filter-seg__n is the count pill
     .check                   custom checkbox (native input, 20px box inside a 44px .check-wrap label)
     .menu                    popover menu, ONE element reused by every row: position fixed, role="menu". Items: .menu__item
                              (role menuitem / menuitemcheckbox; .is-locked + aria-disabled for Pro features; .menu__item--danger),
                              .menu__label .menu__state(.is-on) .menu__lock .menu__sep .menu__hint ('Pro feature . Upgrade' line)
     .chip--pub               'Proof page on' chip in the state cell
     .hint-pop                one-time dark callout under the 'Is this the right design?' link (.link-btn.is-hint rings the link)
     .onboard                 setup checklist card: .onboard__head, .setup-progress > .setup-progress__bar, ol.setup-list > .setup-list__item(.is-done)
                              > .setup-list__mark .setup-list__text .setup-list__action
     .copy-row .copy-field .code-field   proof panel: readonly line / textarea with a Copy button; .badge-preview(__stage) badge preview
     .switch                  toggle (input type=checkbox role=switch) ; .switch-row (label wrapping text + switch), .switch-list
     .settings__stack         single column of .settings-card cards (760px); .settings-form (.settings-form--flush), .settings-row
     .form-ok                 green success line under a form (pair with .form-error, role=status)
     .btn--danger             destructive filled button (add .btn)
     .divider                 'or' rule between the Google button and the email form; .google-auth(__btn) holds the GIS button
     .field__head + .field__aux   label row with a right-aligned link (Forgot password?)
     .modal__panel--narrow    480px dialog

   STABLE LINKS + FIX A PDF (dashboard, buyer page)
     .stable-banner           one-time dismissible card above the links table: .stable-banner__text + .stable-banner__actions
     .stable-row              line inside a dashboard row: .stable-row__label (icon + 'Stable link' + .stable-info), .stable-row__url (code),
                              a Copy .btn--sm, .stable-row__opens ('Opens: 7 today / 63 this month'). .is-paused dims it; .stable-row--empty = no link yet
     .stable-info             round '?' with a wrapping tooltip from data-tip-long (hover / focus), tabindex 0
     .stable-name             'host/l/ [input] -xxxx' composite field in the create dialog (__pre, __post)
     .change-result           verdict box in the Change Canva link dialog: --ok --warn --bad --info, __head (badge), __headline.
                              .change-history ol of earlier destinations (.change-history__title)
     .fix-card                the Fix a PDF panel. .fix-steps > .fix-steps__item(.is-current .is-done) > .fix-steps__mark
     .fix-link                one link of the scanned PDF: --ok --warn --bad --info --muted, __head, __text. .fix-choice > .fix-opt (radio pills),
                              .fix-panel (revealed by the choice), .fix-probe (live check of a pasted link), .fix-newstable
     .fix-changes             list of 'old -> new' rows (.fix-changes__arrow).  .fix-sub small heading.  .fix-msg the buyer message textarea
     .stable-notice           buyer-facing page (views/stable-notice.html): --updating --paused --info change the accent

   PARTNER PROGRAM (app.html #view-partner, partner.js, and the public /partners page)
     .partner__stack          widens .settings__stack to 960px for the partner dashboard.  .terms-list the numbered short terms
     .partner-link            link card body: .copy-row on the left, .partner-qr on the right (stacks under 720px).
     .partner-qr              figure: .partner-qr__code (white tile holding the inline QR svg from qr.js) + figcaption
     .partner-tiles           grid of .card.tile stats (2 columns, 4 from 720px)
     .partner-table           plain data table for commissions and payouts (inside .table-wrap)
     .partner-kit__logos      row of logo download buttons
     .grid--3                 3-column card grid (2 from 720px, 3 from 960px; add to .grid)
     .perk                    card with .perk__icon (tinted tile + svg) or .perk__big (large figure like '30%'), h3 and p
     .step-card               numbered step card: .step-card__n (circle), h3, p
     .fine-print              boxed numbered terms list under the offer
     .unsub                   unsubscribe confirmation card (views/unsubscribed.html): --ok --bad, a centred .result__icon, message and two buttons

   Utilities: .hidden, .sr-only, .small, .chip
   ============================================================================= */

:root {
  color-scheme: light;

  /* palette: neutrals */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAF8FF;
  --line: #ECE8F7;
  --line-strong: #D6D0EC;
  --fg: #141221;
  --fg-2: #2A2740;
  --muted: #6B6880;
  --header-bg: rgba(255, 255, 255, .86);

  /* palette: accent (lavender) */
  --accent: #6E5BD6;
  --accent-hover: #5B48C2;
  --accent-soft: #F3F0FE;
  --accent-border: #E2DBFB;
  --accent-strong-text: #4B3BA8;
  --on-accent: #FFFFFF;
  --link: #6E5BD6;
  --focus: #6E5BD6;
  --wash: #EEE9FF;
  --lav-1: #8B7CF0;
  --lav-2: #B3A6F7;
  --accent-glow: rgba(110, 91, 214, .55);
  --logo-sub: #62589F;

  /* dark panels: Pro plan, final band, hint pill, active segment */
  --panel: #141221;
  --panel-fg: #FFFFFF;
  --panel-muted: #B9B3DA;
  --panel-line: rgba(179, 166, 247, .3);
  --panel-btn: #FFFFFF;
  --panel-btn-fg: #141221;
  --panel-btn-hover: #F3F0FE;

  /* palette: semantic. *-ink is text on its own tint (AA), *-bg is the tint */
  --ok: #16A34A;   --ok-bg: #E8F7EE;   --ok-ink: #166534;
  --warn: #D97706; --warn-bg: #FEF3E2; --warn-ink: #92400E;
  --bad: #DC2626;  --bad-bg: #FDECEC;  --bad-ink: #B91C1C;
  --info: #64748B; --info-bg: #EEF1F5; --info-ink: #475569;
  /* *-icon: glyph color on its own tint (3:1 or better) */
  --ok-icon: #15803D; --warn-icon: #B45309; --bad-icon: #DC2626; --info-icon: #64748B;
  --on-state: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, .78);

  /* shape + elevation */
  --radius-card: 24px;
  --radius-ctl: 14px;
  --shadow: 0 1px 2px rgba(30, 20, 60, .04), 0 22px 50px -30px rgba(70, 50, 160, .45);
  --shadow-lg: 0 1px 2px rgba(30, 20, 60, .05), 0 40px 80px -36px rgba(70, 50, 160, .5);
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* spacing scale (8px) */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 48px; --sp-8: 64px; --sp-10: 80px; --sp-12: 96px;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: 17px;
  --lh-body: 1.65;
  --fs-h1: clamp(2rem, 3.6vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 2.6vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-lede: 1.15rem;
  --fs-small: .875rem;

  /* layout */
  --w-page: 1120px;
  --w-read: 720px;
  --gutter: 16px;
  --header-h: 68px;

  /* glass eye */
  --ge-lid-1: #FFFFFF; --ge-lid-2: #E9E4FD;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121019;
  --surface: #1B1826;
  --surface-2: #17141F;
  --line: #2C2840;
  --line-strong: #3D3858;
  --fg: #ECEAF4;
  --fg-2: #C9C5DA;
  --muted: #A19CB8;
  --header-bg: rgba(18, 16, 25, .82);

  --accent: #B3A6F7;
  --accent-hover: #C6BCFA;
  --accent-soft: #241F3A;
  --accent-border: #3A3262;
  --accent-strong-text: #CFC6FB;
  --on-accent: #121019;
  --link: #B3A6F7;
  --focus: #B3A6F7;
  --wash: #231D3F;
  --lav-1: #8B7CF0;
  --lav-2: #6E5BD6;
  --accent-glow: rgba(179, 166, 247, .35);
  --logo-sub: #A79BE0;

  --panel: #231E3E;
  --panel-fg: #F4F2FB;
  --panel-muted: #BDB7DC;
  --panel-line: #3A3262;
  --panel-btn: #B3A6F7;
  --panel-btn-fg: #121019;
  --panel-btn-hover: #C6BCFA;

  --ok: #22C55E;   --ok-bg: rgba(34, 197, 94, .16);   --ok-ink: #4ADE80;
  --warn: #F59E0B; --warn-bg: rgba(245, 158, 11, .16); --warn-ink: #FBBF24;
  --bad: #EF4444;  --bad-bg: rgba(239, 68, 68, .16);  --bad-ink: #F87171;
  --info: #94A3B8; --info-bg: rgba(148, 163, 184, .16); --info-ink: #A9B4C6;
  --ok-icon: #22C55E; --warn-icon: #F59E0B; --bad-icon: #F87171; --info-icon: #94A3B8;
  --on-state: #121019;
  --surface-glass: rgba(27, 24, 38, .78);

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 22px 50px -28px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 40px 80px -34px rgba(0, 0, 0, .8);

  --ge-lid-1: #F1EEFF; --ge-lid-2: #C4BAF9;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
body {
  position: relative; margin: 0;
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  color: var(--fg-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* the soft lavender wash behind every page's top: one static layer, no animation */
body::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 620px; pointer-events: none;
  background: radial-gradient(1000px 460px at 50% -120px, var(--wash) 0, transparent 72%);
}
h1, h2, h3, h4 { color: var(--fg); margin: 0 0 var(--sp-2); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 var(--sp-2); }
ul, ol { margin: 0 0 var(--sp-2); padding-left: 1.25em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
strong { color: var(--fg); font-weight: 600; }
img, svg { max-width: 100%; }
img { height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-4) 0; }
code, kbd {
  font-family: var(--font-mono); font-size: .86em; background: var(--accent-soft); border: 1px solid var(--line);
  padding: .1em .4em; border-radius: 7px; overflow-wrap: anywhere; color: var(--fg);
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: #D9D0FC; color: var(--fg); }
html[data-theme="dark"] ::selection { background: #4B3F8F; color: #fff; }
[hidden] { display: none !important; }

/* ---------- layout + utilities ---------- */
.container { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--w-read); }
.stack > * + * { margin-top: var(--stack-gap, 16px); }
.stack > * { margin-bottom: 0; }
.stack--sm { --stack-gap: 8px; }
.stack--lg { --stack-gap: 32px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono {
  display: block; max-width: 100%; min-width: 0; font-family: var(--font-mono); font-size: .84rem; line-height: 1.5;
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kick { display: block; margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong-text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 var(--sp-2); padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--accent-strong-text);
  box-shadow: 0 6px 18px -10px var(--accent-glow);
}
.eyebrow__icon { display: grid; place-items: center; width: 20px; height: 20px; margin-left: -6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.eyebrow__icon .icon { width: 12px; height: 12px; stroke-width: 3; }
.eyebrow__more { font-weight: 500; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; line-height: 1.5;
  background: var(--accent-soft); color: var(--accent-strong-text); border: 1px solid var(--accent-border); white-space: nowrap;
}
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(60, 40, 140, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-header .logo-mark > :not(.logo-mark__bg) { transform-origin: 24px 24px; animation: blink .22s .5s 1 both; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--fg); text-decoration: none; min-height: 44px; }
.logo:hover { color: var(--fg); }
.logo__mark { display: inline-flex; width: 38px; height: 38px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; display: block; }
.logo__word { display: flex; flex-direction: column; white-space: nowrap; }
.logo__name { font-size: 21px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.logo__sub { margin-top: 2px; font-size: 10px; line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--logo-sub); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 10px;
  color: var(--fg-2); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s, background-color .2s;
}
.site-nav li a:hover { color: var(--accent); background: var(--accent-soft); }
.site-nav li a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin-right: -8px;
  background: transparent; border: 0; border-radius: 12px; color: var(--fg); cursor: pointer;
}
.nav-toggle:hover { background: var(--accent-soft); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--menu { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }
/* theme toggle (injected by widget.js at the far right of the header; inside the menu on mobile) */
.theme-toggle {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, transform .18s var(--ease);
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent-strong-text); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 879px), (pointer: coarse) { .theme-toggle { width: 44px; height: 44px; } .site-nav .theme-toggle { align-self: flex-start; } }

@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav li a { width: 100%; padding: 0 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { width: 100%; }
}
@media (max-width: 440px) { .site-header__inner > .btn { display: none; } }
@media (max-width: 700px) { :root { --header-h: 62px; } .logo__mark { width: 34px; height: 34px; } .logo__name { font-size: 19px; } }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--sp-12); border-top: 1px solid var(--line); background: var(--bg); padding: var(--sp-8) 0 var(--sp-4); font-size: .94rem; color: var(--muted); }
.site-footer__brand { display: grid; gap: 6px; margin-bottom: var(--sp-5); }
.site-footer__brand p { margin: 0; }
.site-footer .logo { display: inline-flex; width: fit-content; padding: 0; color: var(--fg); }
.site-footer .logo:hover { color: var(--fg); text-decoration: none; }
.site-footer__cols { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg); margin: 0 0 var(--sp-2); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom { margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.site-footer__bottom p { margin: 0; }
@media (min-width: 720px) { .site-footer__cols { grid-template-columns: 1fr 1.6fr 1.1fr 1fr; gap: var(--sp-5); } }
main:has(> .cta-band:last-child) + .site-footer { margin-top: var(--sp-6); }
@media (max-width: 719px) { .site-footer a { padding: 12px 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: var(--surface); color: var(--fg);
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { border-color: var(--accent-border); color: var(--accent-strong-text); background: var(--accent-soft); transform: translateY(-1px); }
.btn:active { transform: scale(.98); transition-duration: .06s; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-strong-text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
@media (max-width: 720px), (pointer: coarse) { .btn--sm { min-height: 44px; } }
.spinner {
  width: 1em; height: 1em; flex: none; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite; display: inline-block;
}
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent-strong-text); }
.icon-btn--danger:hover { background: var(--bad-bg); color: var(--bad-ink); }
.icon-btn[disabled] { opacity: .5; cursor: progress; }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(2px);
  background: var(--panel); color: var(--panel-fg); font: 500 .75rem/1.2 var(--font); padding: 6px 8px; border-radius: 7px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5;
}
.icon-btn[data-tip]:hover::after, .icon-btn[data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%); }
@media (max-width: 720px), (pointer: coarse) { .icon-btn { width: 44px; height: 44px; } }
.link-btn {
  appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 24px;
  color: var(--link); text-decoration: underline; text-decoration-color: var(--lav-2); text-underline-offset: 3px; text-align: left;
}
.link-btn:hover { color: var(--accent-hover); }

/* ---------- forms ---------- */
label, .label { display: block; font-size: .92rem; font-weight: 600; color: var(--fg); margin: 0 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, select {
  width: 100%; min-height: 48px; font: 400 1rem/1.4 var(--font); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); padding: 10px 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.55; font-family: var(--font-mono); font-size: .88rem; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:hover, textarea:hover { border-color: var(--lav-1); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[type="file"] { font: inherit; max-width: 100%; color: var(--fg-2); }
input[type="file"]::file-selector-button {
  font: 600 .86rem var(--font); min-height: 40px; padding: 0 16px; margin-right: 12px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: var(--surface); color: var(--fg); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.field { margin-bottom: var(--sp-2); }
.form-error { color: var(--bad-ink); background: var(--bad-bg); border-radius: var(--radius-ctl); padding: 10px 14px; margin: 0 0 var(--sp-2); font-size: .92rem; }
.form-error:empty { display: none; }

/* ---------- cards, badges, notices, kv, shot ---------- */
/* the state color is a 4px inset bar (--state) that follows the radius */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-3);
  box-shadow: inset 4px 0 0 var(--state, transparent), var(--shadow); min-width: 0;
}
.card--ok { --state: var(--ok); }
.card--warn { --state: var(--warn); }
.card--bad { --state: var(--bad); }
.card--info { --state: var(--info); }
.card--link { position: relative; transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.card--link:hover { border-color: var(--accent-border); box-shadow: inset 4px 0 0 var(--state, transparent), var(--shadow-lg); transform: translateY(-2px); }
.card--link a.card__link { color: inherit; text-decoration: none; }
.card--link a.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link a.card__link:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 480px) { .card { padding: 20px; } }

.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.45; max-width: 100%; background: var(--info-bg); color: var(--info-ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.summary__counts .badge { white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge--bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge--info { background: var(--info-bg); color: var(--info-ink); }
.badge--icon::before { display: none; }
.badge--icon .icon { width: 14px; height: 14px; }
.badge-btn { appearance: none; border: 0; font-family: inherit; cursor: pointer; transition: filter .15s, transform .1s; }
.badge-btn:hover { filter: brightness(.95); }
.badge-btn:active { transform: translateY(1px); }

.notice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 14px 18px; color: var(--fg-2); font-size: .95rem; }
.notice > :last-child { margin-bottom: 0; }
.notice--warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.notice--bad { background: var(--bad-bg); border-color: transparent; color: var(--bad-ink); }
.notice--ok { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.notice--info { background: var(--info-bg); border-color: transparent; color: var(--info-ink); }
.notice--warn strong, .notice--bad strong, .notice--ok strong, .notice--info strong { color: inherit; }
.notice a { color: inherit; font-weight: 600; }

.kv { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; font-weight: 500; }
.kv dd { margin: 0; color: var(--fg); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

.shot {
  display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 20px -10px rgba(60, 40, 150, .25); overflow: hidden; background: var(--surface-2);
  cursor: zoom-in;
}
.shot img { display: block; width: 100%; height: auto; }

/* ---------- sections + marketing ---------- */
.section { padding: var(--sp-10) 0; }
.section__head { max-width: 720px; margin: 0 auto var(--sp-6); text-align: center; }
.section__head h2 { margin-bottom: var(--sp-1); }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: var(--sp-2) 0 0; text-wrap: pretty; }
@media (min-width: 720px) { .section { padding: 104px 0; } }

.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.lede strong { color: var(--fg-2); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--fg-2); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background-color: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E5BD6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
html[data-theme="dark"] .check-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3A6F7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.check-list li.is-off { color: var(--muted); }
.check-list li.is-off::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E"); background-color: var(--surface-2); }

.grid { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- plans + pricing ---------- */
.plans { text-align: left; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: stretch; max-width: 960px; margin-inline: auto; }
@media (min-width: 760px) { .plans { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: var(--sp-4); border-radius: 30px; }
.plan__name { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--fg); margin: 0; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 4px 0 0; color: var(--fg); }
.plan__amount { font-size: 3.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan__per { color: var(--muted); font-size: 1rem; font-weight: 600; }
.plan__desc { color: var(--muted); margin: 0; font-size: .95rem; }
.plan .check-list { flex: 1; margin: var(--sp-1) 0 var(--sp-2); }
.plan__ladder { display: grid; gap: 10px; margin: 4px 0; }
.plan__ladder > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--fg-2); font-size: .94rem; font-weight: 500; }
.plan__ladder b { font-weight: 700; color: var(--accent-strong-text); white-space: nowrap; }
.plan--pro { background: var(--panel); border-color: var(--panel); color: var(--panel-fg); box-shadow: 0 40px 80px -40px rgba(60, 40, 160, .8); }
html[data-theme="dark"] .plan--pro { border-color: var(--panel-line); }
.plan--pro .plan__name, .plan--pro .plan__price, .plan--pro h2, .plan--pro h3 { color: var(--panel-fg); }
.plan--pro .plan__per, .plan--pro .plan__desc { color: var(--panel-muted); }
.plan--pro .check-list li { color: var(--panel-fg); }
.plan--pro .check-list li::before {
  background-color: rgba(179, 166, 247, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3A6F7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.plan--pro .chip { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.plan--pro .btn--primary { background: var(--panel-btn); border-color: var(--panel-btn); color: var(--panel-btn-fg); box-shadow: none; }
.plan--pro .btn--primary:hover { background: var(--panel-btn-hover); border-color: var(--panel-btn-hover); color: var(--panel-btn-fg); }
.plan__verified { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--panel-line); font-size: .8125rem; font-weight: 600; color: var(--panel-fg); }
.plan__verified svg { width: 24px; height: 24px; }
@media (max-width: 480px) { .plan { padding: 26px 22px; border-radius: 26px; } .plan__amount { font-size: 3.2rem; } }

/* segmented control: billing period (aria-pressed) and the proof switch */
.seg { display: inline-flex; max-width: 100%; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.seg button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font: 600 .9rem var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s;
}
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--panel-fg); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--fg); }
.seg .chip { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.seg button[aria-pressed="true"] .chip { background: rgba(255, 255, 255, .16); color: var(--panel-fg); }
@media (max-width: 480px) { .seg button { padding: 0 12px; font-size: .84rem; } }

.table-wrap { overflow-x: auto; max-width: 100%; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .82rem; color: var(--muted); font-weight: 600; padding-top: 4px; }
.compare tbody th { font-weight: 500; color: var(--fg); }
.compare td:last-child, .compare thead th:last-child { background: var(--accent-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .no { color: var(--muted); }
.compare .price { font-weight: 700; color: var(--fg); font-size: 1.1rem; }
@media (max-width: 520px) { .compare { font-size: .88rem; } .compare th, .compare td { padding: 12px 8px; } }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: var(--sp-6); }
.faq h2 { margin-bottom: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 12px; transition: background-color .2s, border-color .2s; }
.faq details[open] { background: var(--surface-2); border-color: var(--accent-border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px;
  cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; color: var(--fg); border-radius: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; transition: transform .3s var(--ease);
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat, var(--accent-soft);
}
.faq details[open] > summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { padding: 0 24px; }
.faq details > p { margin: 0; padding-bottom: 22px; color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 680px; }
.section .faq { margin-top: 0; }
@media (max-width: 480px) { .faq summary { padding: 14px 18px; font-size: 1rem; } .faq details > :not(summary) { padding: 0 18px; } }

/* ---------- articles + page heads ---------- */
.article { position: relative; padding-bottom: var(--sp-4); }
.crumbs { margin: var(--sp-4) 0 var(--sp-3); font-size: .875rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.article .crumbs ol { padding-left: 0; }
.crumbs li { display: block; flex: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: 6px; }
.crumbs li:last-child { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 10px 0; display: inline-block; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 719px) { .crumbs a { padding: 12px 0; } }
.article h1 { margin-bottom: var(--sp-2); }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 var(--sp-3); }
.article .lede { font-size: 1.2rem; line-height: 1.6; color: var(--fg-2); margin-bottom: var(--sp-4); }
.article h1, .article h2, .article h3 { text-wrap: pretty; }
.article h2 { margin: var(--sp-8) 0 var(--sp-2); padding-top: var(--sp-1); font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.article h2:first-of-type { margin-top: var(--sp-6); }
.article h3 { margin: var(--sp-4) 0 var(--sp-1); }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article ul, .article ol { padding-left: 1.4em; }
.article blockquote, blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-2) var(--sp-3); background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0; color: var(--fg); font-size: 1.05rem;
}
.article blockquote > :last-child { margin-bottom: 0; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: var(--sp-3) 0; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--fg); font-weight: 600; }
.article .checker { margin: var(--sp-4) 0; background: var(--accent-soft); border-color: var(--accent-border); }
.article .checker textarea, .article .checker .dropzone { background: var(--surface); }
.checklist { list-style: none; padding: 0 !important; margin: 0 0 var(--sp-2); display: grid; gap: 6px; }
.checklist li { position: relative; padding: 12px 16px 12px 48px; margin: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ctl); }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--accent); background: var(--accent-soft); }
textarea.textarea--prose { font-family: var(--font); font-size: 1rem; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.related { margin-top: var(--sp-10); }
.related h2 { margin-top: 0; }
.related__grid { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related .card { padding: var(--sp-3); box-shadow: none; }
.related .card__title { display: block; font-weight: 600; color: var(--fg); line-height: 1.35; margin-bottom: 6px; font-size: 1rem; }
.related .card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.guide-card { display: flex; flex-direction: column; gap: 8px; }
.guide-card h2 { font-size: 1.15rem; margin: 0; line-height: 1.35; letter-spacing: -.02em; padding: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: .96rem; flex: 1; }
.guide-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong-text); font-weight: 600; font-size: .9rem; margin-top: 8px; }
.guide-card__more .icon { width: 16px; height: 16px; }
.page-head { position: relative; padding: var(--sp-6) 0 var(--sp-3); }
.page-head--center { text-align: center; }
.page-head--center .lede { max-width: 640px; margin-inline: auto; }
.page-head .glass-eye { margin: 0 auto var(--sp-3); }
.not-found-code { font-size: .85rem; font-weight: 700; letter-spacing: .14em; color: var(--accent-strong-text); margin: 0 0 var(--sp-1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--sp-4); }


/* ---------- auth ---------- */
.auth { position: relative; min-height: calc(100vh - var(--header-h) - 200px); display: flex; align-items: center; justify-content: center; padding: var(--sp-6) var(--gutter); }
.auth__card { width: 100%; max-width: 440px; padding: var(--sp-4); border-radius: 28px; box-shadow: var(--shadow-lg); }
.auth__mark { width: 48px; height: 48px; margin-bottom: var(--sp-2); }
.auth__card h1 { font-size: 1.75rem; margin-bottom: 4px; }
.auth__card > p.muted { margin-bottom: var(--sp-3); }
.auth__card .btn--primary { width: 100%; margin-top: 4px; }
.auth__alt { text-align: center; margin: var(--sp-3) 0 0; font-size: .95rem; color: var(--muted); }
.auth + .site-footer { margin-top: 0; }
@media (max-width: 480px) { .auth__card { padding: 24px 20px; } }

/* ---------- dashboard ---------- */
.app { padding-top: var(--sp-4); }
.app-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-3); }
.app-top h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0; }
.app-top__sub { margin: 4px 0 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.plan-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--surface); color: var(--fg-2); border: 1px solid var(--line-strong); }
.plan-pill--pro { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--sp-3); }
@media (min-width: 860px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.tile { padding: 18px 20px; box-shadow: none; border-radius: 20px; }
.tile__label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tile__value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--fg); line-height: 1.15; }
.tile__value--text { font-size: 1.2rem; padding-top: 7px; letter-spacing: -.02em; }
.tile__sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tile--ok .tile__value { color: var(--ok-ink); }
.tile--bad .tile__value.is-active { color: var(--bad-ink); }
.tile--warn .tile__value.is-active { color: var(--warn-ink); }
.add-card { margin-bottom: var(--sp-3); }
.add-card h2 { font-size: 1.2rem; margin: 0 0 var(--sp-2); }
.add-form { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: end; }
.add-form label { font-size: .85rem; margin-bottom: 4px; }
@media (min-width: 860px) { .add-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; } }
.import-row { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.import-row form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.import-row h3 { font-size: .95rem; margin: 0; }

.table-card { padding: 8px 0; overflow: visible; }
.items-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.items-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.items-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .93rem; min-width: 0; }
.items-table tr:last-child td { border-bottom: 0; }
.items-table .col-select { width: 52px; }
.items-table .col-link { width: 36%; }
.items-table .col-state { width: 21%; }
.items-table .col-time { width: 13%; }
.items-table .col-actions { width: 64px; }
.item-name { font-weight: 600; color: var(--fg); overflow-wrap: anywhere; margin-bottom: 2px; }
.item-todo { margin: 8px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.item-todo strong { color: var(--fg-2); }
.item-evidence { margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.items-table time { white-space: nowrap; }
.actions { display: flex; gap: 2px; flex-wrap: nowrap; }
td.cell-actions { overflow: visible; }
.item-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.item-head__text { min-width: 0; flex: 1; }
.item-headline { margin: 0 0 4px; font-size: .86rem; font-weight: 500; line-height: 1.4; color: var(--fg-2); }
@media (max-width: 859px) {
  .table-card { padding: 0; background: transparent; border: 0; box-shadow: none; }
  .items-table, .items-table tbody, .items-table tr, .items-table td { display: block; width: 100%; }
  .items-table thead { display: none; }
  .items-table tr.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
  .items-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border: 0; }
  .items-table td::before { content: attr(data-label); flex: 0 0 96px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .items-table td.cell-link { display: block; padding-top: 0; }
  .items-table td.cell-link::before, .items-table td.cell-actions::before { display: none; }
  .items-table td.cell-state { align-items: flex-start; }
  .items-table td.cell-state > div { text-align: right; min-width: 0; }
  .items-table td.cell-actions { padding-bottom: 0; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
  .actions { justify-content: space-between; width: 100%; }
}
.empty { text-align: center; padding: var(--sp-8) var(--sp-3); }
.empty h2 { font-size: 1.3rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto; }
.empty .empty__mark { width: 88px; height: 88px; margin: 0 auto var(--sp-2); }
.empty .empty__mark svg { width: 100%; height: 100%; margin: 0; }
.state-tile {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--info-bg); color: var(--info-icon);
}
.state-tile .icon { width: 20px; height: 20px; }
.state-tile--ok { background: var(--ok-bg); color: var(--ok-icon); }
.state-tile--warn { background: var(--warn-bg); color: var(--warn-icon); }
.state-tile--bad { background: var(--bad-bg); color: var(--bad-icon); }
.state-tile--info { background: var(--info-bg); color: var(--info-icon); }

.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .25s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(8, 6, 20, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--bg); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.2rem; }
.drawer__head p { margin: 2px 0 0; }
.drawer__body { padding: 20px; overflow-y: auto; flex: 1; }
.hist { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.hist::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.hist li { position: relative; padding-bottom: var(--sp-3); }
.hist li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.hist__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.hist__meta time { font-size: .85rem; color: var(--muted); }
.hist__headline { margin: 0 0 4px; font-weight: 600; color: var(--fg); font-size: .9rem; }
.hist p { margin: 0 0 8px; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.hist .shot { width: 100%; max-width: 280px; }
.drawer-loading { display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* ---------- design check: chips, modal, design line ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; transition: visibility 0s .2s; }
.modal.is-open { visibility: visible; transition-delay: 0s; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8, 6, 20, .5); opacity: 0; transition: opacity .2s; }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 24px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: var(--sp-2); }
.modal__head h2 { margin: 0; font-size: 1.3rem; }
.modal__head p { margin: 2px 0 0; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.design-compare { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.design-compare--one { grid-template-columns: minmax(0, 360px); }
@media (max-width: 560px) { .design-compare { grid-template-columns: minmax(0, 1fr); } }
.design-col { min-width: 0; }
.design-col__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.design-col__title { font-weight: 600; color: var(--fg); margin: 10px 0 2px; overflow-wrap: anywhere; }
.design-col__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.design-col .buyer-window { margin: 0; }
.design-col .buyer-window__body { min-height: 120px; }
.design-col .buyer-window__body .shot, .design-col .buyer-window__body .design-thumb { max-height: 300px; aspect-ratio: auto; object-fit: contain; width: 100%; background: var(--surface-2); cursor: zoom-in; }
.design-thumb { width: 100%; max-height: 300px; object-fit: contain; }
.design-nothumb { display: flex; align-items: center; justify-content: center; min-height: 140px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: .88rem; background: var(--surface-2); }
.design-reasons { margin: 0 0 var(--sp-2); padding-left: 1.2em; color: var(--fg); }
.design-reasons li { margin-bottom: 4px; }
.result__design { margin: 0; color: var(--fg); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
.result__design strong { font-weight: 700; }
.dup-notice { margin-top: var(--sp-2); }

/* ---------- public proof page ---------- */
.proof-main { padding-top: var(--sp-4); padding-bottom: var(--sp-6); }
.proof-status { display: flex; align-items: flex-start; gap: 16px; }
.proof-status__text { min-width: 0; }
.proof-status__text h2 { margin: 2px 0 6px; font-size: 1.4rem; }
.proof-status__text p { margin-bottom: 8px; }
.stack > .buyer-window, .stack > .journey, .stack > .kv { margin-top: var(--stack-gap, 16px); }
.proof-main > .buyer-window { box-shadow: var(--shadow-lg); }
.proof-main .btn { white-space: normal; text-align: center; }
.proof-main + .site-footer { margin-top: var(--sp-6); }
.proof-main + .site-footer .site-footer__bottom { margin-top: 0; border-top: 0; padding-top: 0; }
.proof-main + .site-footer .site-footer__bottom .logo { margin-right: auto; }

/* ---------- checker widget: full mode ---------- */
.checker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--sp-3); box-shadow: var(--shadow-lg); min-width: 0; }
@media (max-width: 480px) { .checker { padding: 18px; } }
.checker .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: var(--sp-2) 0; }
.checker .or::before, .checker .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checker__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: var(--sp-2); }
.checker__actions .btn--primary { min-width: 180px; }
.checker .status { margin-top: var(--sp-2); }
.checker .status:empty { display: none; }
.checker .status p { margin: 0 0 8px; }
.checker .status .error { color: var(--bad-ink); background: var(--bad-bg); padding: 12px 16px; border-radius: var(--radius-ctl); font-size: .95rem; }
.checker .status .error a { color: inherit; font-weight: 600; }
.checker .status .progress-note { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: .95rem; }
.progress { height: 4px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; margin-top: 10px; }
.progress::after { content: ""; display: block; height: 100%; width: 38%; border-radius: 4px; background: var(--accent); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }

.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-ctl); background: var(--surface-2); color: var(--fg-2); transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:has(.dropzone__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; border: 0; font-size: 0; }
.dropzone__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-strong-text); display: inline-flex; align-items: center; justify-content: center; }
.dropzone__text { min-width: 0; font-size: .95rem; line-height: 1.4; }
.dropzone__text strong { display: block; }
.dropzone__text span { color: var(--muted); font-size: .85rem; }
.dropzone__file { display: none; align-items: center; gap: 10px; min-width: 0; flex: 1; position: relative; z-index: 2; }
.dropzone__name { font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dropzone.has-file { border-style: solid; border-color: var(--accent-border); background: var(--accent-soft); }
.dropzone.has-file .dropzone__text { display: none; }
.dropzone.has-file .dropzone__file { display: flex; }
.dropzone.has-file .dropzone__input { pointer-events: none; }
.dropzone__remove { margin-left: auto; position: relative; z-index: 3; }

/* ---------- checker widget: compact mode (the home hero bar) ---------- */
.checker--compact { max-width: 1100px; margin-inline: auto; padding: 0; background: none; border: 0; box-shadow: none; text-align: left; scroll-margin-top: calc(var(--header-h) + 24px); }
.ck-bar {
  position: relative; z-index: 10; display: flex; align-items: center; gap: 10px; max-width: 880px; margin: -30px auto 0; padding: 8px 8px 8px 24px;
  background: var(--surface); border: 1px solid var(--accent-border); border-radius: 22px; box-shadow: 0 22px 50px -24px rgba(70, 50, 160, .5);
}
.ck-lead { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.ck-lead .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.ck-in {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 15px;
  background: var(--accent-soft); border: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.ck-in:focus-within { border-color: var(--lav-1); background: var(--surface); outline: 3px solid var(--focus); outline-offset: 2px; }
.ck-in > .icon { width: 18px; height: 18px; color: var(--lav-1); stroke-width: 2.2; }
.ck-in input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .95rem; color: var(--fg); }
.ck-in input:hover, .ck-in input:focus-visible { border: 0; outline: none; }
.ck-bar .btn--primary { min-height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 15px; }
.ck-multi { display: none; }
.ck-multi textarea { min-height: 128px; border: 1px solid transparent; border-radius: 15px; background: var(--accent-soft); }
.ck-multi textarea:focus-visible { background: var(--surface); border-color: var(--lav-1); }
.checker.is-multi .ck-bar { flex-wrap: wrap; align-items: stretch; padding: 18px; border-radius: 24px; }
.checker.is-multi .ck-lead { flex: 1 0 100%; }
.checker.is-multi .ck-in { display: none; }
.checker.is-multi .ck-multi { display: block; flex: 1 0 100%; }
.checker.is-multi .ck-bar .btn--primary { margin-left: auto; }
.ck-sub { max-width: 880px; margin: 12px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; font-size: .86rem; color: var(--muted); }
.ck-sub > * { display: inline-flex; align-items: center; min-height: 36px; }
.ck-sub > * + *::before { content: "·"; margin-right: 14px; color: var(--muted); }
.ck-sub > [data-remaining]:empty { display: none; }
.ck-sub .link-btn { min-height: 44px; font-size: inherit; padding: 0 2px; }
.ck-quick { display: flex; flex-direction: column; align-items: center; max-width: 880px; margin: 10px auto 0; text-align: center; }
.ck-quick__sample { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; font-size: 1rem; text-decoration: none; text-align: center; }
@media (hover: hover) { .ck-quick__sample:hover { text-decoration: underline; } }
.ck-quick__sample .icon { flex: none; width: 16px; height: 16px; stroke-width: 2.4; transition: translate .2s var(--ease); }
@media (hover: hover) { .ck-quick__sample:hover .icon { translate: 3px 0; } }
.ck-quick__trust { margin: 0; font-size: .8125rem; color: var(--muted); }
.checker--compact .dropzone { max-width: 880px; margin: 8px auto 0; }
.checker--compact:not(.is-multi) .dropzone:not(.has-file) { display: none; }
.checker--compact .status, .checker--compact .results, .checker--compact [data-summary] { scroll-margin-top: calc(var(--header-h) + 16px); }
.checker--compact .status { max-width: 880px; margin-inline: auto; }
.checker--compact .results { margin-top: var(--sp-3); }
.checker--compact .upsell { max-width: 880px; margin-inline: auto; margin-top: var(--sp-3); }
@media (max-width: 700px) {
  .ck-bar { flex-direction: column; align-items: stretch; margin-top: 18px; padding: 18px; gap: 12px; }
  .ck-lead { justify-content: center; font-size: .95rem; }
  .ck-in { flex: none; height: 52px; }
  .ck-bar .btn--primary { width: 100%; min-height: 52px; }
  .checker.is-multi .ck-bar .btn--primary { margin-left: 0; }
  .ck-sub { flex-direction: column; gap: 0; }
  .ck-sub > * + *::before { content: none; }
}

/* Which link do I paste? (widget.js): helper card, instant wrong-link hint, wrong-link result cards.
   .ck-help (hidden attr toggles it) > .ck-help__head, .ck-help__list > .ck-help__opt (.ck-help__tile + text, .help-mock svg), .ck-help__example.
   .ck-hint[role=status]: one line under the input with an 'Upload PDF instead' .link-btn. .result--wrong: info card without the window. */
.ck-hint {
  max-width: 880px; margin: 12px auto 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius-ctl);
  background: var(--info-bg); color: var(--info-ink); font-size: .9rem; line-height: 1.5;
}
.ck-hint > .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--info-icon); }
.ck-hint > span { flex: 1; min-width: 0; }
.ck-hint strong { color: var(--fg); }
.ck-hint .link-btn { flex: none; min-height: 28px; color: var(--accent-strong-text); }
.ck-sub--full { justify-content: flex-start; margin: 10px 0 0; }
.ck-help {
  max-width: 880px; margin: 12px auto 0; padding: 20px 22px; text-align: left; background: var(--surface); border: 1px solid var(--accent-border);
  border-radius: 20px; box-shadow: 0 18px 40px -26px rgba(70, 50, 160, .45);
}
.ck-help__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ck-help__head h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.ck-help__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ck-help__opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.ck-help__opt > div { flex: 1; min-width: 0; }
.ck-help__opt p { margin: 0 0 10px; font-size: .9rem; line-height: 1.5; color: var(--fg-2); }
.ck-help__opt p strong { color: var(--fg); }
.ck-help__tile { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ck-help__tile .icon { width: 17px; height: 17px; }
.help-mock { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 12px; }
.ck-help__example { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; font-size: .86rem; }
.ck-help__example code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; padding: 4px 10px; }
.result--wrong .result__side, .result--wrong .result__details, .result--wrong .journey { display: none; }
.result--wrong .result__body { grid-template-columns: minmax(0, 1fr); }
.result--wrong .result__main { padding: 22px 24px; }
@media (max-width: 760px) {
  .ck-help { padding: 16px; }
  .ck-help__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ck-in input { font-size: .84rem; text-overflow: ellipsis; }
  .ck-hint { flex-wrap: wrap; }
  .ck-hint > span { flex: 1 1 calc(100% - 30px); }
  .ck-hint .link-btn { margin-left: 28px; }
}

/* ---------- summary + results ---------- */
.summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; margin-top: var(--sp-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.summary__ring { width: 68px; height: 68px; flex: none; }
.summary__body { flex: 1 1 220px; min-width: 0; }
.summary__title { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--fg); letter-spacing: -.025em; }
.summary__counts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: .875rem; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; }
.legend::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--info); flex: none; }
.legend--ok::before { background: var(--ok); }
.legend--warn::before { background: var(--warn); }
.legend--bad::before { background: var(--bad); }
.legend--info::before { background: var(--info); }
.summary .btn { margin-left: auto; }
.ring__track { fill: none; stroke: var(--line); stroke-width: 4; }
.ring__seg { fill: none; stroke-width: 4; }
.ring__seg--ok { stroke: var(--ok); }
.ring__seg--warn { stroke: var(--warn); }
.ring__seg--bad { stroke: var(--bad); }
.ring__seg--info { stroke: var(--info); }
.ring__text { fill: var(--fg); font: 700 9px var(--font); }
.results { display: grid; gap: 22px; margin-top: var(--sp-2); }
.results:empty { display: none; }

/* result card: [state tile + meta + headline] [journey] [fix] [buttons] | [tinted column with the buyer window]. Layout follows the card's own width. */
.result { container-type: inline-size; padding: 0; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow); }
.result__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.result__main { display: grid; gap: 16px; padding: 22px 20px; min-width: 0; align-content: start; }
.result__main > * { margin: 0; }
.result__top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.result__titles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; flex: 1; }
.result__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.result__head .mono { flex: 1 1 120px; font-size: .78rem; }
.result__headline { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.2; font-weight: 700; letter-spacing: -.03em; color: var(--fg); }
.result__note { color: var(--fg-2); font-size: .92rem; line-height: 1.55; }
.result__flag { margin: 0; }
.result__details { font-size: .9rem; color: var(--muted); }
.result__details summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; color: var(--muted); font-weight: 500; min-height: 32px; }
.result__details summary::-webkit-details-marker { display: none; }
.result__details summary::before {
  content: ""; flex: none; width: 16px; height: 16px; background-color: currentColor; transform: rotate(-90deg); transition: transform .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.result__details[open] summary::before { transform: rotate(0deg); }
.result__details summary:hover { color: var(--fg); }
.result__details p { margin: 6px 0 0 20px; font-style: italic; overflow-wrap: anywhere; }
.result__details p.result__note { font-style: normal; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__error { margin: 0; padding: 10px 14px; border-radius: var(--radius-ctl); background: var(--bad-bg); color: var(--bad-ink); font-size: .92rem; }
.result__error a { color: inherit; font-weight: 600; }
.result__unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; font-size: .9rem; color: var(--fg-2); }
.result__unlock .icon { color: var(--muted); }
.result__unlock a { font-weight: 600; }
.result__side {
  display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 20px;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 120%); border-top: 1px solid var(--line);
}
.result__shot { margin: 0; }
.result--locked .result__main { padding: 18px 20px; }

/* state icon tile */
.result__icon {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 17px; background: var(--info-bg); color: var(--info-icon);
}
.result__icon .icon { width: 27px; height: 27px; stroke-width: 2.4; }
.result__icon--ok { background: var(--ok-bg); color: var(--ok-icon); }
.result__icon--warn { background: var(--warn-bg); color: var(--warn-icon); }
.result__icon--bad { background: var(--bad-bg); color: var(--bad-icon); }
.result__icon--info { background: var(--info-bg); color: var(--info-icon); }
@container (max-width: 520px) { .result__icon { width: 46px; height: 46px; border-radius: 14px; } .result__icon .icon { width: 23px; height: 23px; } }
@container (min-width: 720px) {
  .result__body { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .result__main { padding: 28px 30px; }
  .result__side { padding: 26px; border-top: 0; border-left: 1px solid var(--line); }
}
/* compact variants used by the home story panel */
.result--compact .result__side, .result--compact .result__actions, .result--compact .result__details { display: none; }
.result--compact .result__body { grid-template-columns: minmax(0, 1fr); }
.result--compact .result__main { padding: 20px 22px; }
.result--mini { box-shadow: none; border-radius: 20px; }
.result--mini .result__side, .result--mini .result__main > :not(.result__top) { display: none; }
.result--mini .result__body { grid-template-columns: minmax(0, 1fr); }
.result--mini .result__main { padding: 12px 16px; }
.result--mini .result__icon { width: 38px; height: 38px; border-radius: 12px; }
.result--mini .result__icon .icon { width: 19px; height: 19px; }
.result--mini .result__headline { font-size: .95rem; }
.result--mini .result__head .mono, .result--mini .result__design { display: none; }

/* buyer path: opens -> shows -> gets */
.journey { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.journey__step {
  position: relative; display: flex; align-items: flex-start; gap: 10px; min-width: 0; margin: 0; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .82rem; line-height: 1.35; color: var(--fg-2);
}
.journey__step > .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.6; }
.journey__step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; top: 50%; right: -13px; width: 12px; height: 12px; margin-top: -6px; background-color: var(--lav-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E") center/contain no-repeat;
}
.journey__text { min-width: 0; overflow-wrap: anywhere; }
.journey__text small { display: block; margin-bottom: 2px; font-size: .6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.journey__text strong { color: var(--fg); font-weight: 700; }
.journey__step--end { color: var(--fg); border-color: transparent; }
.journey__step--ok { background-image: linear-gradient(var(--ok-bg), var(--ok-bg)); }
.journey__step--ok > .icon { background: var(--ok); color: var(--on-state); }
.journey__step--bad { background-image: linear-gradient(var(--bad-bg), var(--bad-bg)); }
.journey__step--bad > .icon { background: var(--bad); color: var(--on-state); }
.journey__step--warn { background-image: linear-gradient(var(--warn-bg), var(--warn-bg)); }
.journey__step--warn > .icon { background: var(--warn); color: var(--on-state); }
.journey__step--info { background-image: linear-gradient(var(--info-bg), var(--info-bg)); }
.journey__step--info > .icon { background: var(--info); color: var(--on-state); }
@container (max-width: 599px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .journey__step:not(:last-child)::after { top: 100%; right: auto; left: 23px; width: 2px; height: 12px; margin: 0; background-color: var(--line-strong); -webkit-mask: none; mask: none; }
}
.proof-card { container-type: inline-size; }

.fix { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.fix__title { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--accent-strong-text); }
.fix__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: fix; }
.fix__steps li { position: relative; margin: 0; padding-left: 33px; font-size: .92rem; line-height: 1.5; color: var(--fg-2); counter-increment: fix; }
.fix__steps li::before {
  content: counter(fix); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700;
}
.fix__steps strong { color: var(--fg); }

/* buyer window: the page exactly as a signed-out buyer gets it */
.buyer-window { margin: 0; min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--accent-border); border-radius: 16px; background: var(--surface); box-shadow: 0 22px 40px -24px rgba(60, 40, 150, .5); }
.buyer-window__bar {
  display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 11px; background: var(--accent-soft); border-bottom: 1px solid var(--line);
  font-size: .6875rem; line-height: 1.3; color: var(--muted);
}
.buyer-window__dots { display: inline-flex; gap: 6px; flex: none; }
.buyer-window__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.buyer-window__url { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.buyer-window__pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--bad-bg);
  font-weight: 700; color: var(--bad-ink); white-space: nowrap;
}
.buyer-window__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); }
.buyer-window__body { position: relative; min-height: 170px; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.buyer-window__body:has(.bw-state) { background: repeating-linear-gradient(135deg, var(--accent-soft) 0 10px, var(--surface-2) 10px 20px); }
.buyer-window__body .shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 0; border-radius: 0; box-shadow: none; }
.buyer-window__foot { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.35; }
.buyer-window__foot > span:last-child { min-width: 0; }
.buyer-window__thumb {
  display: grid; place-items: center; flex: none; width: 44px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--muted); overflow: hidden;
}
.buyer-window__thumb .icon { width: 20px; height: 20px; }
.buyer-window__title { display: block; color: var(--fg); font-weight: 600; font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-window__sub { display: block; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 420px) { .buyer-window__dots { display: none; } }
.bw-state {
  display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 230px; margin: 16px; padding: 16px 18px; text-align: center;
  font-size: .8rem; color: var(--muted); background: var(--surface); border-radius: 16px; box-shadow: 0 20px 36px -18px rgba(60, 40, 150, .5), 0 0 0 1px var(--line);
}
.bw-state strong { color: var(--fg); font-size: .92rem; font-weight: 700; }
.bw-state__tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--bad-bg); color: var(--bad-icon); }
.bw-state__tile .icon { width: 22px; height: 22px; }
.bw-state--warn .bw-state__tile { background: var(--warn-bg); color: var(--warn-icon); }
.bw-state--info .bw-state__tile { background: var(--info-bg); color: var(--info-icon); }
.bw-art { display: block; width: 100%; height: auto; }
.bw-caption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--fg-2); }
.bw-locked .bw-art { filter: blur(7px); transform: scale(1.08); opacity: .85; }
.bw-locked__msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px;
  text-align: center; background: var(--surface-glass); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); font-size: .85rem; font-weight: 600; color: var(--fg);
}
.bw-locked__msg .icon { width: 22px; height: 22px; color: var(--accent-strong-text); }

/* while a check runs: one shimmering buyer window per link */
.result--loading { padding: 16px; }
.shimmer {
  background: linear-gradient(90deg, var(--line) 0%, var(--accent-border) 45%, var(--line) 90%); background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite; border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.buyer-window--loading .buyer-window__body { display: block; min-height: 0; padding: 16px; }
.buyer-window__status { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .92rem; font-weight: 600; color: var(--fg); }
.buyer-window__status .spinner { color: var(--accent); }
.skeleton-line { height: 12px; margin: 0 0 10px; }
.skeleton-line:last-child { margin-bottom: 0; width: 60%; }
.skeleton-block { height: 54px; margin: 0 0 12px; border-radius: 12px; }

.upsell { margin-top: var(--sp-3); background: var(--accent-soft); border-color: var(--accent-border); box-shadow: none; }
.upsell h3 { margin: 0 0 6px; font-size: 1.15rem; }
.upsell p { margin: 0 0 var(--sp-2); color: var(--fg-2); font-size: .98rem; }
.upsell__lead { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--accent-border); }
.upsell__lead label { font-weight: 500; font-size: .9rem; color: var(--fg-2); }
.upsell__lead .row { flex-wrap: nowrap; gap: 8px; }
.upsell__lead input { flex: 1 1 auto; min-width: 0; }

/* Sample check note (above the sample's summary) and the stable link card (right under the summary of one checked Canva link). widget.js */
.sample-note { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--sp-3); padding: 18px 20px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius-card); }
.sample-note + .summary { margin-top: var(--sp-2); }
.sample-note__tile, .stable-card__tile {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--accent-border); color: var(--accent);
}
.sample-note__tile .icon, .stable-card__tile .icon { width: 20px; height: 20px; }
.sample-note__body { min-width: 0; }
.sample-note__title, .stable-card__title { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.sample-note p { margin: 0 0 12px; color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.stable-intent__line { margin: 14px 0 0; font-size: .95rem; color: var(--fg-2); }

[data-stable-slot]:empty { display: none; }
.stable-card {
  margin-top: var(--sp-2); padding: 22px 24px; border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 78%);
}
.stable-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stable-card__title { margin: 0; font-size: 1.2rem; }
.stable-card__tile { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stable-card__tile--fix { background: var(--warn-bg); border-color: transparent; color: var(--warn-icon); }
.stable-card__field { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.stable-card__url {
  flex: 1 1 260px; min-width: 0; min-height: 52px; margin: 0; padding: 0 16px; border: 1.5px solid var(--accent-border); border-radius: var(--radius-ctl);
  background: var(--surface); color: var(--fg); font: 600 1rem/1.3 var(--font-mono); letter-spacing: -.01em; text-overflow: ellipsis;
}
.stable-card__url:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.stable-card__url--pending { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--font); font-weight: 500; font-size: .95rem; }
.stable-card__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.stable-card__btns .btn { min-height: 52px; }
.stable-card__btns .btn.is-copied { background: var(--ok); border-color: var(--ok); color: var(--on-state); box-shadow: none; }
.stable-card__text, .stable-card__hint { margin: 14px 0 0; color: var(--fg-2); font-size: .95rem; line-height: 1.55; }
.stable-card__hint { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); }
.stable-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--accent-border);
}
.stable-card__foot p { flex: 1 1 240px; margin: 0; color: var(--fg-2); font-size: .92rem; line-height: 1.5; }
.stable-card__foot .btn, .stable-card__actions .btn { min-height: 44px; }
.stable-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stable-card--fix { background: var(--surface); border-color: var(--line); --state: var(--warn); }
@media (prefers-reduced-motion: no-preference) { .sample-note, .stable-card { animation: riseIn .5s var(--ease) both; } }
@media (max-width: 480px) {
  .sample-note__tile { display: none; }
  .stable-card { padding: 20px 18px; }
  .stable-card__url { flex-basis: 100%; font-size: .92rem; }
  .stable-card__btns { flex: 1 1 100%; }
  .stable-card__btns .btn { flex: 1 1 0; }
  .stable-card__foot .btn { width: 100%; }
}
@media (max-width: 420px) { .upsell__lead .row { flex-wrap: wrap; } .upsell__lead .btn { width: 100%; } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 6, 20, .86); cursor: zoom-out; }
.lightbox__frame { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lightbox .lightbox__frame img { max-height: calc(100vh - 130px); object-fit: contain; }
.lightbox__cause { margin: 0; max-width: 720px; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .96); color: var(--ink, #1c1a2e); font-size: .9rem; line-height: 1.45; text-align: center; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close .icon { width: 22px; height: 22px; }

/* ---------- brand mark ---------- */
.logo-mark { display: block; width: 100%; height: 100%; }
.logo-mark__bg { stroke: none; }
html[data-theme="dark"] .logo-mark__bg { stroke: #2C2840; stroke-width: 2; }

/* =============================================================================
   HOME PAGE (index.html)
   ============================================================================= */

/* ---------- hero ---------- */
.hero { position: relative; padding: var(--sp-2) 0 var(--sp-8); text-align: center; }
.hero__eye { margin: 0 auto 10px; }
.hero .eyebrow { margin-bottom: 0; }
.hero h1 { max-width: 980px; margin: 14px auto 0; }
.hero h1 em { position: relative; font-style: normal; color: var(--accent); white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .28em; overflow: visible; transform-origin: 0 50%; animation: underline 1s .5s var(--ease) both; }
.hero h1 em path { stroke: var(--lav-2); stroke-width: 5; fill: none; stroke-linecap: round; }
.hero__lede { max-width: 700px; margin: 14px auto 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero__lede b { color: var(--fg-2); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .hero { padding-bottom: var(--sp-6); } .hero h1 em { white-space: normal; } }
@media (max-width: 560px) { .eyebrow__more { display: none; } }
/* the checker comes before the split window here, so its bar no longer docks onto the window's bottom edge */
.hero .ck-bar { margin-top: 28px; }
/* phones: eyebrow, a 3-line H1, the lede, then the checker and the sample check, all on the first screen */
@media (max-width: 700px) {
  .hero .ck-sub { flex-direction: row; gap: 0 18px; }
}
@media (max-width: 640px) {
  .hero__eye { display: none; }
  .hero h1 { font-size: 1.85rem; margin-top: 12px; }
  .hero__lede { margin-top: 10px; font-size: .98rem; line-height: 1.55; }
  .hero .ck-bar { margin-top: 16px; padding: 14px; gap: 10px; }
  .hero .ck-quick { margin-top: 6px; }
}

/* split-screen window: you (left) / your buyer (right), the eye mark is the handle */
.vs { position: relative; max-width: 1100px; margin: 44px auto 0; --p: 70%; }
.vs-hint {
  position: absolute; left: 50%; top: -38px; z-index: 9; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border-radius: 999px; background: var(--panel); color: var(--panel-fg); font-size: .78rem; font-weight: 600; white-space: nowrap; width: max-content; box-shadow: 0 10px 22px -10px rgba(20, 18, 33, .7);
}
.vs-hint svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--lav-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .vs-hint { border: 1px solid var(--panel-line); }
.vs-win {
  position: relative; height: clamp(372px, 26vw, 388px); border-radius: 22px; background: var(--surface); border: 1px solid var(--accent-border); overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(70, 50, 160, .45), 0 10px 30px -16px rgba(20, 18, 33, .25); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; text-align: left;
}
.vs-pane { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); }
.vs-pane--me { clip-path: inset(0 calc(100% - var(--p)) 0 0); z-index: 2; }
.vs-pane--buyer { z-index: 1; }
.vs-bar { display: flex; flex: none; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.vs-dots { display: flex; flex: none; gap: 6px; }
.vs-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.vs-url {
  display: flex; flex: 1; align-items: center; gap: 7px; max-width: 420px; height: 26px; margin: 0 auto; padding: 0 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.vs-url svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vs-who { flex: none; padding: 3px 10px; border-radius: 999px; font-size: .6875rem; font-weight: 700; }
.vs-who--me { background: var(--accent-soft); color: var(--accent-strong-text); border: 1px solid var(--accent-border); }
.vs-who--out { background: var(--bad-bg); color: var(--bad-ink); }
.vs-body { position: relative; flex: 1; overflow: hidden; }
.vs-body--ed { background: var(--accent-soft); }
.vs-top { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.vs-title { font-size: .875rem; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.vs-top .vs-sp { flex: 0 0 14px; }
.vs-btn { padding: 6px 14px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong-text); font-size: .78rem; font-weight: 600; }
.vs-btn--pri { background: var(--accent); color: var(--on-accent); }
.vs-rail { position: absolute; left: 0; top: 46px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 58px; padding-top: 14px; background: var(--surface); border-right: 1px solid var(--line); }
.vs-rail i { position: relative; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); }
.vs-rail i::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; border: 2px solid var(--lav-1); }
.vs-rail i:first-child { background: var(--accent); }
.vs-rail i:first-child::after { border-color: var(--on-accent); }
.vs-cv { position: absolute; left: 30%; top: 58%; width: clamp(108px, 10.5vw, 148px); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); }
.vs-pg { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; box-shadow: 0 20px 40px -14px rgba(60, 40, 150, .45); }
.vs-pg svg { display: block; width: 100%; height: 100%; }
.vs-cv--sel::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--lav-1); border-radius: 4px; pointer-events: none; }
.vs-hd { position: absolute; width: 9px; height: 9px; background: #fff; border: 2px solid var(--lav-1); border-radius: 3px; }
.vs-hd--a { left: -9px; top: -9px; } .vs-hd--b { right: -9px; top: -9px; } .vs-hd--c { left: -9px; bottom: -9px; } .vs-hd--d { right: -9px; bottom: -9px; }
.vs-flt { position: absolute; left: 50%; top: -44px; display: flex; gap: 2px; padding: 5px; border-radius: 12px; background: var(--panel); transform: translateX(-50%); box-shadow: 0 10px 22px -8px rgba(20, 18, 33, .6); white-space: nowrap; }
html[data-theme="dark"] .vs-flt { border: 1px solid var(--panel-line); }
.vs-flt span { padding: 5px 10px; border-radius: 8px; font-size: .72rem; font-weight: 600; color: var(--panel-muted); }
.vs-flt span:first-child { background: var(--accent); color: var(--on-accent); }
.vs-side { position: absolute; right: 0; top: 46px; bottom: 0; display: flex; flex-direction: column; gap: 10px; width: 150px; padding: 14px 16px; background: var(--surface); border-left: 1px solid var(--line); }
.vs-side small { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vs-thumb { width: 100%; max-height: 92px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 5px; border: 1px solid var(--line); }
.vs-thumb svg { display: block; width: 100%; height: 100%; }
.vs-thumb--cur { border: 2px solid var(--lav-1); }
.vs-tag {
  position: absolute; bottom: 34px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  background: var(--surface); color: var(--fg); font-size: .8125rem; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px -8px rgba(20, 18, 33, .45);
}
html[data-theme="dark"] .vs-tag { border: 1px solid var(--line); }
.vs-tag i { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.vs-tag--l { left: 16px; } .vs-tag--l i { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.vs-tag--r { right: 16px; } .vs-tag--r i { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.vs-tag .vs-short { display: none; }
.vs-body--wl { background: var(--accent-soft); }
.vs-body--wl .vs-cv { filter: blur(5px); opacity: .75; }
.vs-body--wl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent-soft)); opacity: .7; pointer-events: none; }
.vs-wltop { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: var(--surface); opacity: .8; border-bottom: 1px solid var(--line); filter: blur(1.5px); }
.vs-wall {
  position: absolute; z-index: 3; left: 75%; top: 45%; width: clamp(150px, 30%, 330px); padding: 24px 22px; border-radius: 20px; background: var(--surface); text-align: center;
  transform: translate(-50%, -50%); box-shadow: 0 30px 60px -20px rgba(40, 25, 110, .5), 0 0 0 1px var(--line);
}
.vs-lock { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 15px; background: var(--bad-bg); color: var(--bad-icon); }
.vs-lock svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vs-wall h4 { margin: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.02em; }
.vs-wall p { margin: 6px 0 16px; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.vs-wall .vs-rq { display: block; padding: 10px; border-radius: 11px; background: var(--panel); color: var(--panel-fg); font-size: .84rem; font-weight: 600; }
.vs-wall .vs-lg { display: block; margin-top: 9px; font-size: .78rem; font-weight: 600; color: var(--accent-strong-text); }
.vs-divider { position: absolute; z-index: 8; top: 0; bottom: 0; left: var(--p); display: flex; justify-content: center; width: 48px; margin-left: -24px; outline: none; cursor: ew-resize; touch-action: pan-y; }
.vs-divider::before { content: ""; width: 3px; height: 100%; background: #fff; box-shadow: 0 0 0 1px rgba(110, 91, 214, .28), 0 0 22px rgba(110, 91, 214, .55); }
.vs-handle { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 18px rgba(20, 18, 33, .45)); transition: transform .2s var(--ease); }
.vs-divider:hover .vs-handle, .vs-divider.is-drag .vs-handle { transform: translate(-50%, -50%) scale(1.08); }
.vs-divider:focus-visible .vs-handle { outline: 3px solid var(--lav-1); outline-offset: 5px; border-radius: 20px; }
.vs-chev { position: absolute; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -4px rgba(20, 18, 33, .4); }
.vs-chev svg { width: 12px; height: 12px; fill: none; stroke: #6E5BD6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.vs-chev--l { left: -38px; } .vs-chev--r { right: -38px; }
.vs-divider:not(.is-touched) .vs-handle::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid var(--lav-1); animation: ringp 2s infinite; }
@media (max-width: 700px) {
  .vs { margin-top: 48px; }
  .vs-win { height: 372px; border-radius: 18px; }
  .vs-rail, .vs-side { display: none; }
  .vs-top { height: 40px; padding: 0 10px; }
  .vs-btn { padding: 5px 10px; font-size: .72rem; }
  .vs-title { font-size: .78rem; }
  .vs-cv { left: 27%; top: 58%; width: 104px; }
  .vs-flt { top: -38px; } .vs-flt span { padding: 4px 7px; font-size: .66rem; } .vs-flt span:nth-child(n+3) { display: none; }
  .vs-wall { left: 75%; width: 43%; padding: 16px 10px; border-radius: 16px; }
  .vs-lock { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 8px; }
  .vs-wall h4 { font-size: .84rem; } .vs-wall p { font-size: .69rem; margin: 5px 0 11px; } .vs-wall .vs-rq { font-size: .75rem; padding: 8px 4px; }
  .vs-wltop { height: 40px; }
  .vs-bar { height: 36px; padding: 0 10px; gap: 8px; }
  .vs-url { font-size: .66rem; padding: 0 9px; }
  .vs-who { display: none; }
  .vs-tag { bottom: 12px; height: 30px; padding: 0 11px 0 9px; font-size: .72rem; } .vs-tag--l { left: 10px; } .vs-tag--r { right: 10px; }
  .vs-tag .vs-long { display: none; } .vs-tag .vs-short { display: inline; }
  .vs-handle { width: 50px; height: 50px; } .vs-chev { display: none; }
  .vs-hint { font-size: .72rem; height: 28px; padding: 0 12px; }
}

/* ---------- problem ---------- */
.problem { padding: 84px 0 10px; }
.problem .section__head { margin-bottom: 40px; }
.problem h2 em { font-style: normal; color: var(--accent); }
.pr-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr { padding: 28px; border-radius: 24px; background: var(--accent-soft); }
.pr__num { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-strong-text); }
.pr h3 { margin: 10px 0 8px; font-size: 1.3rem; line-height: 1.25; }
.pr p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.65; }
.pr q { display: block; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg-2); font-size: .875rem; font-weight: 500; quotes: none; }

/* ---------- explainer: the 36-second video with voice-over (home, right after the hero) ---------- */
.explainer { padding: 84px 0 10px; }
.explainer .section__head { margin-bottom: 36px; }
.explainer__frame {
  position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; isolation: isolate;
  border: 1px solid var(--accent-border); border-radius: 28px; background: var(--accent-soft);
  box-shadow: 0 1px 2px rgba(30, 20, 60, .05), 0 50px 100px -40px rgba(110, 91, 214, .6), 0 0 0 10px rgba(179, 166, 247, .12);
}
.explainer__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--accent-soft); }
.explainer__open { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in; }
.explainer__open:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; border-radius: inherit; }
.explainer__play {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: rgba(20, 18, 33, .74); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .2s var(--ease), background-color .2s;
}
.explainer__play:hover { background: rgba(20, 18, 33, .9); transform: scale(1.06); }
.explainer__play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.explainer__i-pause { display: none; }
.explainer__i-pause path { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; }
.explainer__frame.is-playing .explainer__i-play { display: none; }
.explainer__frame.is-playing .explainer__i-pause { display: block; }
.explainer__frame.is-idle .explainer__play {
  left: 50%; top: 50%; bottom: auto; width: 88px; height: 88px; translate: -50% -50%; background: var(--accent); box-shadow: 0 18px 40px -12px var(--accent-glow);
}
.explainer__frame.is-idle .explainer__play:hover { background: var(--accent-hover); }
.explainer__frame.is-idle .explainer__play svg { width: 36px; height: 36px; margin-left: 4px; }
.explainer__frame.is-idle .explainer__play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--lav-1); opacity: 0; animation: explainer-ring 2.4s var(--ease) infinite; }
@keyframes explainer-ring { 0% { transform: scale(.88); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.explainer__play:focus-visible, .explainer__max:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
.explainer__max {
  position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #141221; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 18, 33, .5); transition: transform .2s var(--ease);
}
.explainer__max:hover { transform: translateY(-1px); }
.explainer__sound {
  position: absolute; z-index: 2; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px 0 12px;
  border: 0; border-radius: 999px; background: rgba(20, 18, 33, .78); color: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px -10px rgba(20, 18, 33, .5); transition: transform .2s var(--ease), background-color .2s;
}
.explainer__sound:hover { background: rgba(20, 18, 33, .92); transform: translateY(-1px); }
.explainer__sound[aria-pressed="true"] { background: var(--accent); }
.explainer__sound[aria-pressed="true"]:hover { background: var(--accent-hover); }
.explainer__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.explainer__sound .explainer__i-sound, .explainer__sound[aria-pressed="true"] .explainer__i-muted { display: none; }
.explainer__sound[aria-pressed="true"] .explainer__i-sound { display: block; }
.explainer__sound:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
.explainer__max svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) {
  .explainer { padding-top: 64px; }
  .explainer__frame { border-radius: 20px; box-shadow: 0 1px 2px rgba(30, 20, 60, .05), 0 36px 70px -34px rgba(110, 91, 214, .6), 0 0 0 6px rgba(179, 166, 247, .12); }
  .explainer__max span { display: none; }
  .explainer__max { right: 12px; bottom: 12px; width: 40px; padding: 0; justify-content: center; }
  .explainer__sound { right: 12px; top: 12px; height: 36px; padding: 0 12px 0 10px; font-size: .8125rem; }
  .explainer__play { left: 12px; bottom: 12px; }
  .explainer__frame.is-idle .explainer__play { width: 72px; height: 72px; }
}
.vbox {
  width: min(1280px, 94vw, calc(90vh * 16 / 9)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible;
  border: 0; border-radius: 22px; background: var(--panel); color: var(--panel-fg); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7);
}
.vbox[open] { animation: vbox-in .32s var(--ease); }
.vbox::backdrop { background: rgba(20, 18, 33, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vbox__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; background: #0d0b18; }
.vbox__close {
  position: absolute; z-index: 2; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: rgba(20, 18, 33, .74); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.vbox__close:hover { background: rgba(20, 18, 33, .92); }
.vbox__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.vbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
html:has(dialog.vbox[open]) { overflow: hidden; }
@keyframes vbox-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- story: three chapters, sticky stage ---------- */
.story { padding: 70px 0 40px; }
.story .section__head { margin-bottom: 10px; }
.story__grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.story__chap { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 600px; padding: 30px 0; }
.story__n { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-strong-text); }
.story__n::after { content: ""; width: 46px; height: 1px; background: var(--lav-2); }
.story__chap h3 { margin: 16px 0 18px; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; color: var(--muted); }
.story__chap.is-on h3 { color: var(--fg); }
.story__chap > p { max-width: 480px; margin: 0; font-size: 1.05rem; line-height: 1.75; color: var(--muted); }
.story__chap ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.story__chap li { display: flex; gap: 12px; font-size: .96rem; font-weight: 500; line-height: 1.5; color: var(--fg-2); }
.story__chap li .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); stroke-width: 2.6; }
.story__stage { position: sticky; top: 96px; display: grid; padding: 22px; border-radius: 32px; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2) 60%, var(--accent-soft)); border: 1px solid var(--line); }
.story__panel { min-width: 0; }
.story--live .story__panel { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(18px) scale(.985); pointer-events: none; transition: opacity .5s, transform .5s var(--ease); }
.story--live .story__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 1000px) {
  .story__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story__chap { min-height: 0; padding: 36px 0 20px; }
  .story__chap h3 { color: var(--fg); }
  .story__chap > p { max-width: none; }
  .story--live .story__chap .story__panel, .story__chap .story__panel { grid-area: auto; align-self: stretch; opacity: 1; transform: none; pointer-events: auto; margin-top: 26px; padding: 14px; border-radius: 26px; background: linear-gradient(160deg, var(--accent-soft), var(--surface-2) 60%, var(--accent-soft)); border: 1px solid var(--line); }
}
@media (max-width: 700px) { .story { padding-top: 40px; } }

/* chapter 1: buyer opens -> Canva shows -> buyer gets */
.story__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pdfchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--fg-2); }
.pdfchip svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.story-status { position: relative; display: inline-grid; font-size: .78rem; font-weight: 600; }
.story-status > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.story-status__a { background: var(--surface); color: var(--accent-strong-text); border: 1px solid var(--line); }
.story-status__b { background: var(--bad-bg); color: var(--bad-ink); opacity: 0; }
.story-status__a i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--lav-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.is-on .story-status__a { animation: fadeout .3s 2.8s forwards; }
.is-on .story-status__b { animation: fadein .3s 2.8s forwards; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.flow__node { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.flow__title { display: flex; align-items: center; gap: 7px; margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.flow__title i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong-text); font-size: .68rem; font-style: normal; }
.flow__vis { position: relative; display: grid; place-items: center; height: 86px; margin: 10px 0; overflow: hidden; border-radius: 12px; background: var(--accent-soft); }
.flow__node p { margin: 0; font-size: .75rem; line-height: 1.4; color: var(--muted); }
.flow__node--end { background: var(--bad-bg); border-color: transparent; }
.flow__node--end .flow__title { color: var(--bad-ink); }
.flow__node--end .flow__title i { background: var(--bad); color: var(--on-state); }
.flow__node--end .flow__vis { background: var(--surface); }
.flow__node--end p { color: var(--bad-ink); }
.lkchip { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 6px 12px -6px rgba(60, 40, 150, .4); font-family: var(--font-mono); font-size: .62rem; color: var(--fg-2); white-space: nowrap; }
.flow__wall { display: grid; justify-items: center; gap: 5px; width: 76%; padding: 9px; border-radius: 10px; background: var(--surface); box-shadow: 0 8px 18px -8px rgba(60, 40, 150, .5); }
.flow__wall i { position: relative; width: 22px; height: 22px; border-radius: 8px; background: var(--bad-bg); }
.flow__wall i::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 7px; border: 2px solid var(--bad); border-radius: 3px; }
.flow__wall b { width: 70%; height: 7px; border-radius: 5px; background: var(--line-strong); }
.flow__wall em { width: 100%; height: 14px; border-radius: 5px; background: var(--panel); }
.flow__x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--bad-icon); box-shadow: 0 8px 18px -8px rgba(220, 38, 38, .5); }
.flow__x svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow__conn { position: relative; align-self: center; width: 34px; height: 2px; border-radius: 9px; background: var(--lav-2); }
.flow__conn i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: trav 1.6s linear infinite; }
.is-on .flow__node { animation: nodein .6s both; }
.is-on .flow__node:nth-child(3) { animation-delay: 1s; }
.is-on .flow__node:nth-child(5) { animation-delay: 2s; }
.story__panel--flow .buyer-window { margin-top: 16px; }
.story__panel--flow .buyer-window__body { min-height: 150px; }
@media (max-width: 700px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .flow__conn { width: 2px; height: 20px; justify-self: center; }
  .flow__conn i { display: none; }
  .flow__vis { height: 70px; }
}
/* chapter 2: the real result renderer, three sample states */
.story__results { display: grid; gap: 12px; margin: 0; }
.story__results .result { animation: none; }

/* chapter 3: dashboard, alert email, design-changed */
.mock-dash { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 20px 40px -28px rgba(60, 40, 150, .5); }
.mock-dash__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-dash__head b { font-size: .9rem; letter-spacing: -.01em; color: var(--fg); }
.mock-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: .75rem; font-weight: 600; }
.mock-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
.mock-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.mock-row--hl { background: var(--bad-bg); }
.mock-row--hl .badge { background: transparent; }
.mock-thumb { width: 34px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.mock-thumb svg { display: block; width: 100%; height: 100%; }
.mock-row b { display: block; overflow: hidden; font-size: .84rem; font-weight: 600; line-height: 1.25; color: var(--fg); text-overflow: ellipsis; white-space: nowrap; }
.mock-row small { font-size: .72rem; color: var(--muted); }
.mock-row--hl small { color: var(--bad-ink); }
.mock-dash__foot { padding: 9px 18px; background: var(--surface-2); font-size: .75rem; color: var(--muted); }
.mock-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.mock-mail, .mock-diff { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 36px -26px rgba(60, 40, 150, .5); }
.mock-mail__from { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.mock-mail__from svg { width: 30px; height: 30px; flex: none; }
.mock-mail__from small { display: block; font-size: .68rem; line-height: 1.2; color: var(--muted); }
.mock-mail__from b { font-size: .78rem; line-height: 1.2; color: var(--fg); }
.mock-subject { margin: 0; font-size: .84rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: var(--fg); }
.mock-mail p { margin: 6px 0 10px; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.mock-cta { display: inline-block; padding: 7px 12px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; }
.mock-diff__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.mock-diff__head b { font-size: .78rem; color: var(--fg); }
.mock-ba { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.mock-ba figure { display: grid; gap: 3px; justify-items: center; margin: 0; }
.mock-ba .mock-thumb { position: relative; width: 46px; border-radius: 5px; flex: none; }
.mock-ba .mock-thumb--after { border: 2px solid var(--warn); }
.mock-ba figcaption { font-size: .62rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mock-ba .icon { width: 14px; height: 14px; color: var(--lav-1); stroke-width: 2.6; }
.mock-acts { display: flex; gap: 6px; }
.mock-acts span { padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong-text); font-size: .72rem; font-weight: 600; }
.mock-acts span:first-child { background: var(--accent); color: var(--on-accent); }
@media (max-width: 700px) { .mock-pair { grid-template-columns: minmax(0, 1fr); } .mock-row { padding: 9px 14px; } .mock-dash__head, .mock-dash__foot { padding-inline: 14px; } }

/* ---------- 7 of 8 proof ---------- */
.pf-wrap { padding: 60px 0 var(--sp-10); }
.pf { margin: 0 20px; padding: 88px 0; border-radius: 44px; background: var(--accent-soft); }
.pf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 1000px) { .pf__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } }
.pf__num { display: flex; align-items: baseline; gap: .06em; margin-top: 4px; font-size: clamp(100px, 14vw, 190px); font-weight: 800; line-height: .9; letter-spacing: -.07em; color: var(--fg); }
.pf__num .of { font-size: .3em; font-weight: 700; letter-spacing: -.03em; color: var(--muted); }
.pf__num.is-dead .cnt { color: var(--bad-ink); }
.pf__title { max-width: 400px; margin: 18px 0 0; font-size: 1.35rem; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; color: var(--fg); }
.pf__text { max-width: 420px; margin: 12px 0 0; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.pf .seg { margin-bottom: 20px; }
.pf__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; perspective: 1000px; }
.pf-chip { position: relative; height: 124px; }
.pf-chip__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.pf-chip.is-flipped .pf-chip__in { transform: rotateX(180deg); }
.pf-chip__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: 0 14px 28px -20px rgba(60, 40, 150, .5); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pf-chip__face--back { transform: rotateX(180deg); border-color: transparent; }
.pf-chip__face--back.is-bad { background: var(--bad-bg); }
.pf-chip__face--back.is-ok { background: var(--ok-bg); }
.pf-chip small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.pf-chip code { display: block; margin-top: 2px; padding: 0; border: 0; background: none; font-size: .66rem; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chip__st { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--ok-ink); }
.pf-chip__st .icon { width: 18px; height: 18px; stroke-width: 2.8; }
.pf-chip__face--back.is-bad .pf-chip__st, .pf-chip__face--back.is-bad small { color: var(--bad-ink); }
.pf-chip__face--back.is-ok .pf-chip__st, .pf-chip__face--back.is-ok small { color: var(--ok-ink); }
.pf__note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.timeline-h { margin: 64px 0 0; text-align: center; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.timeline-h span { font-weight: 500; color: var(--muted); }
.timeline { position: relative; display: flex; margin: 26px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 16%; right: 16%; top: 8px; height: 2px; background: var(--lav-2); opacity: .6; }
.timeline li { position: relative; flex: 1; text-align: center; }
.timeline i { display: block; width: 18px; height: 18px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface); border: 4px solid var(--accent); }
.timeline b { display: block; font-size: 1.05rem; letter-spacing: -.02em; color: var(--fg); }
.timeline span { font-size: .85rem; color: var(--muted); }
@media (max-width: 700px) {
  .pf-wrap { padding-top: 40px; }
  .pf { margin: 0 10px; padding: 60px 0; border-radius: 30px; }
  .pf__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { flex-direction: column; gap: 22px; margin-top: 40px; }
  .timeline::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline li { padding-left: 34px; text-align: left; }
  .timeline i { position: absolute; left: 0; top: 2px; margin: 0; }
}

/* ---------- home pricing ---------- */
.billing { display: flex; justify-content: center; margin-bottom: 34px; }
.pricing-note { margin: 22px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- final band ---------- */
.cta-band { position: relative; margin: 20px 20px 0; padding: 88px 24px; overflow: hidden; border-radius: 44px; background: var(--panel); color: var(--panel-fg); }
html[data-theme="dark"] .cta-band { border: 1px solid var(--panel-line); }
.cta-band::before { content: ""; position: absolute; left: 50%; top: -220px; width: 720px; max-width: 100%; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(139, 124, 240, .45), transparent); pointer-events: none; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; max-width: 980px; margin-inline: auto; text-align: center; }
.cta-band h2 { max-width: 640px; margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; color: var(--panel-fg); }
.cta-band h2 em { font-style: normal; color: #B3A6F7; }
.cta-band p { max-width: 520px; margin: 14px 0 26px; font-size: 1.05rem; color: var(--panel-muted); }
.cta-bar { display: flex; gap: 8px; max-width: 560px; padding: 8px; border-radius: 20px; background: var(--surface); box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .6); }
.cta-bar .btn--primary { min-height: 54px; padding: 0 24px; border-radius: 14px; }
.cta-band__text { min-width: 0; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: auto minmax(0, 1fr); justify-items: start; gap: 64px; text-align: left; }
  .cta-bar { max-width: 600px; }
}
@media (max-width: 700px) {
  .cta-band { margin: 16px 10px 0; padding: 64px 18px; border-radius: 30px; }
  .cta-bar { flex-direction: column; }
  .cta-bar .btn--primary { width: 100%; }
}

/* ---------- glass eye (component) ---------- */
.glass-eye {
  --d: 104px;
  --ge-shadow: rgba(80, 60, 190, .42); --ge-hi: rgba(255, 255, 255, .96); --ge-mid: rgba(247, 245, 255, .55); --ge-edge: rgba(179, 166, 247, .5);
  --ge-edge2: rgba(110, 91, 214, .62); --ge-glow: rgba(139, 124, 240, .62); --ge-ring: rgba(255, 255, 255, .55);
  position: relative; flex: none; width: var(--d); height: var(--d); border-radius: 50%; pointer-events: none; user-select: none; -webkit-user-select: none;
  animation: ge-float 6s ease-in-out infinite;
}
.glass-eye--md { --d: 160px; }
.glass-eye--lg { --d: 200px; }
html[data-theme="dark"] .glass-eye, .cta-band .glass-eye {
  --ge-shadow: rgba(0, 0, 0, .55); --ge-hi: rgba(255, 255, 255, .5); --ge-mid: rgba(84, 70, 156, .5); --ge-edge: rgba(139, 124, 240, .55);
  --ge-edge2: rgba(179, 166, 247, .55); --ge-glow: rgba(110, 91, 214, .7); --ge-ring: rgba(255, 255, 255, .28);
}
.glass-eye > * { position: absolute; }
.glass-eye__shadow { left: 12%; right: 12%; bottom: -11%; height: 13%; background: radial-gradient(closest-side, var(--ge-shadow), transparent); }
.glass-eye__body {
  inset: 0; border-radius: 50%;
  background:
    radial-gradient(70% 55% at 30% 16%, var(--ge-hi), rgba(255, 255, 255, .3) 55%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(80% 80% at 72% 88%, var(--ge-glow), rgba(139, 124, 240, 0) 65%),
    radial-gradient(circle at 50% 50%, var(--ge-mid) 38%, var(--ge-edge) 76%, var(--ge-edge2) 100%);
  box-shadow:
    inset 0 calc(var(--d) * .015) calc(var(--d) * .05) rgba(255, 255, 255, .85), inset 0 calc(var(--d) * -.07) calc(var(--d) * .14) rgba(110, 91, 214, .38),
    inset 0 0 0 1px var(--ge-ring), 0 calc(var(--d) * .1) calc(var(--d) * .22) calc(var(--d) * -.06) rgba(90, 70, 200, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.glass-eye__eye { inset: 0; width: 100%; height: 100%; overflow: visible; }
.glass-eye__lids { transform-box: fill-box; transform-origin: 50% 50%; }
.glass-eye__spec { left: 17%; top: 8%; width: 42%; height: 24%; border-radius: 50%; rotate: -28deg; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); opacity: .9; }
.glass-eye__spec2 { right: 15%; bottom: 11%; width: 26%; height: 11%; border-radius: 50%; rotate: -32deg; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); }
.glass-eye__rim {
  inset: 0; border-radius: 50%; padding: max(1.5px, calc(var(--d) * .012));
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 10%, rgba(179, 166, 247, .5) 22%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .75) 72%, rgba(139, 124, 240, .45) 84%, rgba(255, 255, 255, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ge-spin 14s linear infinite;
}
.glass-eye__ring { inset: 5.5%; border-radius: 50%; border: 1px solid var(--ge-ring); box-shadow: inset 0 0 0 1px rgba(179, 166, 247, .28), 2px 1px 0 rgba(236, 170, 214, .18), -2px -1px 0 rgba(130, 170, 240, .16); }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { transform: scaleY(.1); } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes ringp { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.45); } }
@keyframes trav { from { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(26px); opacity: 0; } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes nodein { from { opacity: .2; transform: translateY(10px); } }
@keyframes riseIn { from { opacity: 0; translate: 0 14px; } }
@keyframes ge-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--d) * -.06)); } }
@keyframes ge-spin { to { transform: rotate(360deg); } }

/* ---------- motion ---------- */
/* scroll reveals (motion.js adds .rv, then .is-in): a short fade and a 12px rise */
html .rv { opacity: 0; translate: 0 12px; }
html .rv.is-in { opacity: 1; translate: 0 0; }
html .rv, html .rv.is-in { transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: var(--rd, 0ms); }
/* results after a check: cards rise in a short stagger, the journey fills step by step */
.results > .result, .results > .notice { animation: riseIn .5s var(--ease) both; }
.results > :nth-child(2) { animation-delay: .08s; }
.results > :nth-child(3) { animation-delay: .16s; }
.results > :nth-child(n+4) { animation-delay: .24s; }
.results .journey__step { animation: riseIn .45s var(--ease) both; }
.results .journey__step:nth-child(1) { animation-delay: .25s; }
.results .journey__step:nth-child(2) { animation-delay: .4s; }
.results .journey__step:nth-child(3) { animation-delay: .55s; }
/* pause looping animations when off screen or the tab is hidden (motion.js toggles the classes) */
.is-paused, .is-paused *, .is-paused::before, .is-paused::after, .is-paused *::before, .is-paused *::after,
.tab-hidden *, .tab-hidden *::before, .tab-hidden *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .glass-eye, .glass-eye__rim, .glass-eye *, .vs-divider .vs-handle::after, .flow__conn i, .shimmer, .progress::after { animation: none !important; }
  .vs-divider .vs-handle::after { display: none; }
  .story-status__a { display: none; }
  .story-status__b { opacity: 1 !important; }
}

/* Problem cards: equal height, quote pinned to the bottom so all three line up */
.pr-grid { align-items: stretch; }
.pr { display: flex; flex-direction: column; height: 100%; }
.pr q { margin-top: auto; }
.pr p { margin-bottom: var(--sp-3, 24px); }

/* =============================================================================
   ACCOUNT CABINET: dashboard Pro features, onboarding, settings, auth extras (documented in the header comment)
   ============================================================================= */

/* ---------- auth extras: Google button, "or" divider, forgot link, success line, danger button ---------- */
.google-auth { margin-bottom: 0; }
.google-auth__btn { display: flex; justify-content: center; min-height: 44px; }
.divider { display: flex; align-items: center; gap: 12px; margin: var(--sp-2) 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.field__head label { margin: 0; }
.field__aux { font-size: .88rem; font-weight: 600; }
.forgot-done { margin-top: var(--sp-2); }
.forgot-done:focus-visible { outline-offset: 6px; }
.form-ok { color: var(--ok-ink); background: var(--ok-bg); border-radius: var(--radius-ctl); padding: 10px 14px; margin: 0 0 var(--sp-2); font-size: .92rem; }
.form-ok:empty { display: none; }
.btn--danger { background: var(--bad); border-color: var(--bad); color: var(--on-state); }
.btn--danger:hover { background: var(--bad-ink); border-color: var(--bad-ink); color: var(--on-state); }
.btn--danger[disabled] { opacity: .45; }
.bulk .btn .icon, .copy-row .btn .icon { width: 16px; height: 16px; }

/* ---------- dashboard: view tabs, tiles, filter + bulk bar ---------- */
.view-tabs { display: flex; gap: 4px; margin: 0 0 var(--sp-3); border-bottom: 1px solid var(--line); }
.view-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none;
}
.view-tab:hover { color: var(--accent-strong-text); }
.view-tab[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
.view-title:focus-visible, #view-title:focus-visible, #settings-h:focus-visible { outline: none; }
.tile--proof .tile__value { color: var(--accent-strong-text); }

.table-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filter-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.filter-seg__btn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--fg-2); font: 600 .85rem/1 var(--font); cursor: pointer;
}
.filter-seg__btn:hover { color: var(--accent-strong-text); }
.filter-seg__btn.is-on { background: var(--panel); color: var(--panel-fg); }
.filter-seg__n { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong-text); font-size: .75rem; text-align: center; }
.filter-seg__btn.is-on .filter-seg__n { background: rgba(255, 255, 255, .16); color: var(--panel-fg); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-left: auto; }
.bulk__count { font-size: .85rem; font-weight: 700; color: var(--fg); }
.bulk__lock { font-size: .82rem; color: var(--muted); }
.filter-empty { margin: 0; padding: 32px 24px; text-align: center; color: var(--muted); }
.filter-empty strong { color: var(--fg); }

.check {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--muted); border-radius: 6px; background: var(--surface); cursor: pointer; transition: background-color .15s, border-color .15s;
}
.check:hover { border-color: var(--accent); }
.check:checked, .check:indeterminate { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg); }
.check:indeterminate::after { content: ""; width: 10px; height: 2px; background: var(--on-accent); }
.check:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-wrap { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 10px; font-size: .88rem; font-weight: 600; color: var(--fg-2); cursor: pointer; }
.items-table th:first-child, .items-table td.cell-select { padding: 6px 0 6px 6px; }
.items-table td.cell-select { vertical-align: top; }
.items-table tr.item.is-selected { background: var(--accent-soft); }
.chip--pub { gap: 6px; background: var(--surface-2); color: var(--fg-2); border-color: var(--line-strong); }
.chip--pub .icon { width: 14px; height: 14px; }
.items-table .actions { justify-content: flex-end; }

@media (max-width: 859px) {
  .table-bar { padding: 0 0 12px; border: 0; }
  .items-table tr.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; padding-top: 6px; }
  .items-table td.cell-select { grid-column: 1; grid-row: 1; width: auto; padding: 0; margin-left: -10px; }
  .items-table td.cell-select::before { display: none; }
  .items-table td.cell-actions { grid-column: 3; grid-row: 1; width: auto; margin: 0; padding: 0; border: 0; }
  .items-table td.cell-link, .items-table td.cell-state, .items-table td[data-label] { grid-column: 1 / -1; }
  .items-table .actions { width: auto; justify-content: flex-end; }
  .items-table tr.item.is-selected { background: var(--accent-soft); }
}
@media (max-width: 720px) { .filter-seg__btn { min-height: 40px; } }

/* ---------- row menu (shared popover) ---------- */
.menu {
  position: fixed; z-index: 100; min-width: 256px; max-width: calc(100vw - 16px); padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.menu__item {
  appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--fg); font: 600 .92rem/1.2 var(--font); text-align: left; cursor: pointer;
}
.menu__item:hover { background: var(--accent-soft); color: var(--accent-strong-text); }
.menu__item:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; background: var(--accent-soft); }
.menu__item .icon { width: 18px; height: 18px; color: var(--muted); }
.menu__label { flex: 1; min-width: 0; }
.menu__state { padding: 2px 9px; border-radius: 999px; background: var(--info-bg); color: var(--info-ink); font-size: .75rem; font-weight: 700; }
.menu__state.is-on { background: var(--ok-bg); color: var(--ok-ink); }
.menu__lock { display: inline-flex; color: var(--muted); }
.menu__item.is-locked { color: var(--muted); cursor: not-allowed; }
.menu__item.is-locked:hover { background: transparent; color: var(--muted); }
.menu__item--danger, .menu__item--danger .icon { color: var(--bad-ink); }
.menu__item--danger:hover { background: var(--bad-bg); color: var(--bad-ink); }
.menu__sep { height: 1px; margin: 6px 4px; background: var(--line); }
.menu__hint { padding: 2px 12px 8px 40px; font-size: .8rem; color: var(--muted); }
.menu__hint .link-btn { font-size: .8rem; min-height: 32px; }

/* ---------- one-time pointer at the design chip ---------- */
.link-btn.is-hint { border-radius: 6px; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent); }
.hint-pop {
  position: relative; flex: 1 1 100%; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: var(--panel); color: var(--panel-fg);
  font-size: .84rem; line-height: 1.5; text-align: left;
}
.hint-pop::before { content: ""; position: absolute; top: -5px; left: 22px; width: 10px; height: 10px; background: var(--panel); transform: rotate(45deg); }
.hint-pop strong { color: inherit; }
.hint-pop .link-btn { color: var(--panel-fg); text-decoration-color: var(--panel-muted); }

/* ---------- onboarding checklist ---------- */
.onboard { margin-bottom: var(--sp-3); }
.onboard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.onboard h2 { margin: 0; font-size: 1.2rem; }
.onboard__head p { margin: 2px 0 0; }
.setup-progress { height: 8px; margin-bottom: var(--sp-2); border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.setup-progress__bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); }
.setup-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.setup-list__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--surface-2); }
.setup-list__item.is-done { background: var(--ok-bg); border-color: transparent; }
.setup-list__mark {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--muted); border-radius: 50%;
  background: var(--surface); color: var(--fg); font-size: .8rem; font-weight: 700;
}
.setup-list__item.is-done .setup-list__mark { background: var(--ok-icon); border-color: var(--ok-icon); color: var(--on-state); }
.setup-list__mark .icon { width: 16px; height: 16px; stroke-width: 3; }
.setup-list__text { flex: 1; min-width: 0; }
.setup-list__text strong { display: block; }
.setup-list__text p { margin: 2px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.setup-list__item.is-done .setup-list__text p { color: var(--ok-ink); }
.setup-list__action { flex: none; align-self: center; }
@media (max-width: 600px) {
  .setup-list__item { flex-wrap: wrap; }
  .setup-list__action { flex-basis: 100%; padding-left: 42px; }
}

/* ---------- proof page panel ---------- */
.modal__panel--narrow { width: min(480px, 100%); }
.switch-row--panel { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--surface-2); }
.copy-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: var(--sp-2); }
.copy-row--stack { flex-direction: column; align-items: stretch; }
.copy-row--stack > .btn { align-self: flex-start; }
.copy-row--stack > .copy-field { flex: 0 0 auto; }
.copy-row__btns { display: flex; gap: 8px; }
.copy-field { flex: 1 1 240px; min-width: 0; }
.copy-field label { font-size: .85rem; margin-bottom: 4px; }
.code-field {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: var(--surface-2);
  color: var(--fg); font: 500 .82rem/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
textarea.code-field { min-height: 76px; resize: none; font-family: var(--font-mono); font-size: .82rem; }
.badge-preview { margin-top: var(--sp-2); }
.badge-preview .label { margin-bottom: 6px; font-size: .85rem; }
.badge-preview__stage { display: flex; align-items: center; justify-content: center; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-ctl); background: #FFFFFF; }
.badge-preview__stage img { max-width: 100%; height: auto; }

/* ---------- switches (notification settings, proof page) ---------- */
.switch {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px;
  background: var(--muted); cursor: pointer; transition: background-color .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease);
}
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
html[data-theme="dark"] .switch:checked::after { background: #121019; }
.switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch:disabled { opacity: .6; cursor: progress; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-list > .switch-row:first-child { border-top: 0; }
.switch-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-row__text strong { font-size: .95rem; }
.switch-row__text small { font-size: .84rem; font-weight: 400; line-height: 1.45; color: var(--muted); }

/* ---------- settings ---------- */
.settings__stack { display: grid; gap: var(--sp-3); max-width: 760px; }
.settings-card h3 { margin: 0 0 var(--sp-2); font-size: 1.15rem; }
.settings-card h4 { margin: 0 0 4px; font-size: 1rem; color: var(--fg); }
.settings-card > p { margin-bottom: var(--sp-2); }
.settings-card .kv { margin-bottom: var(--sp-1); }
.settings-form { max-width: 420px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.settings-form--flush { margin-top: 0; padding-top: 0; border-top: 0; }
.settings-form .small { margin-bottom: var(--sp-2); }
.settings-actions { margin-top: var(--sp-2); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.settings-row p { margin: 2px 0 0; }
.settings-row .form-error { margin-top: 8px; }
.settings-row .btn { flex: none; }
@media (max-width: 520px) {
  .settings-row { flex-wrap: wrap; }
  .switch-row { align-items: flex-start; }
  .switch-row .switch { margin-top: 2px; }
}

/* ---------- platform pages, guides groups, "works wherever you sell" strip ---------- */
.callout { margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: 24px; text-align: center; }
.article .callout h2 { margin: 0 0 var(--sp-1); padding: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.callout p { margin: 0 auto; max-width: 520px; color: var(--fg-2); }
.callout .cta-row { margin-top: var(--sp-3); }
.guide-group { margin: var(--sp-8) 0 var(--sp-3); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.guide-group:first-of-type { margin-top: 0; }
.works { margin: var(--sp-5) auto 0; max-width: 880px; text-align: center; }
.works__title { margin: 0 0 var(--sp-2); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.works__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.works__list a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--fg-2); text-decoration: none; opacity: .78; transition: opacity .2s, background-color .2s, color .2s; }
.works__list a:hover { opacity: 1; color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.works__note { margin: var(--sp-2) auto 0; max-width: 620px; font-size: .95rem; color: var(--muted); }
@media (max-width: 719px) { .works__list a { padding: 10px 12px; } .callout { padding: var(--sp-3) var(--sp-2); } }

/* Explainer: compact card — text left, small player right on desktop */
.explainer { padding: 72px 0 8px; }
.explainer__frame { max-width: 560px; margin-inline: auto; }
@media (max-width: 640px) { .explainer { padding-top: 40px; } }
@media (min-width: 900px) {
  .explainer .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; max-width: 1080px; }
  .explainer .section__head { text-align: left; margin: 0; max-width: 440px; }
  .explainer .section__head p { margin-left: 0; }
  .explainer__frame { margin: 0; }
}

/* ---------- stable links ---------- */
.stable-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); background: var(--accent-soft); border-color: var(--accent-border); box-shadow: none; }
.stable-banner h3 { margin: 0 0 4px; font-size: 1.1rem; }
.stable-banner p { margin: 0; color: var(--fg-2); font-size: .95rem; max-width: 640px; }
.stable-banner__actions { flex: none; flex-wrap: nowrap; }
@media (max-width: 719px) { .stable-banner { flex-direction: column; align-items: flex-start; } }
.stable-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--surface-2); }
.stable-row--empty { border-style: dashed; background: transparent; }
.stable-row.is-paused { opacity: .75; }
.stable-row__label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stable-row__label .icon { width: 15px; height: 15px; }
.stable-row__url { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font: 600 .8rem/1.4 var(--font-mono); color: var(--accent-strong-text); }
.stable-row__opens { margin-left: auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.stable-row__opens strong { color: var(--fg); }
.stable-row .btn--sm { min-height: 32px; padding: 0 12px; }
.stable-info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: var(--muted); cursor: help; text-transform: none; letter-spacing: 0; }
.stable-info:hover, .stable-info:focus-visible { color: var(--accent-strong-text); outline: none; }
.stable-info:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.stable-info .icon { width: 15px; height: 15px; }
.stable-info::after {
  content: attr(data-tip-long); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-30%) translateY(2px); width: 280px; max-width: 70vw;
  background: var(--panel); color: var(--panel-fg); font: 500 .78rem/1.5 var(--font); text-align: left; padding: 10px 12px; border-radius: 10px; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 20;
}
.stable-info:hover::after, .stable-info:focus-visible::after { opacity: 1; transform: translateX(-30%); }
.stable-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.stable-name input { flex: 1 1 120px; min-width: 0; }
.stable-name__pre, .stable-name__post { flex: none; font: 600 .85rem/1 var(--font-mono); color: var(--muted); }
.change-result { padding: 14px 16px; border-radius: var(--radius-ctl); background: var(--surface-2); border: 1px solid var(--line); }
.change-result--ok { background: var(--ok-bg); border-color: transparent; }
.change-result--warn { background: var(--warn-bg); border-color: transparent; }
.change-result--bad { background: var(--bad-bg); border-color: transparent; }
.change-result__head { margin-bottom: 6px; }
.change-result__headline { margin: 0 0 4px; font-weight: 700; color: var(--fg); }
.change-result p:last-child { margin-bottom: 0; }
.change-history__title { margin: var(--sp-3) 0 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.change-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.change-history li { display: grid; gap: 2px; min-width: 0; }

/* ---------- Fix a PDF ---------- */
.fix-card { max-width: 860px; }
.fix-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.fix-card h3:focus-visible { outline: none; }
.fix-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 var(--sp-3); padding: 0 0 var(--sp-2); list-style: none; border-bottom: 1px solid var(--line); }
.fix-steps__item { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.fix-steps__mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: .8rem; }
.fix-steps__item.is-current { color: var(--fg); }
.fix-steps__item.is-current .fix-steps__mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fix-steps__item.is-done .fix-steps__mark { background: var(--ok-icon); border-color: var(--ok-icon); color: var(--on-state); }
.fix-card .dropzone { margin: var(--sp-2) 0 8px; }
.fix-card .dropzone.has-file .dropzone__input { display: none; }
.fix-links { display: grid; gap: 12px; margin: var(--sp-2) 0; }
.fix-link { padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-ctl); background: var(--surface); }
.fix-link--ok { border-left-color: var(--ok); }
.fix-link--warn { border-left-color: var(--warn); }
.fix-link--bad { border-left-color: var(--bad); }
.fix-link--info, .fix-link--muted { border-left-color: var(--line-strong); }
.fix-link--muted { background: var(--surface-2); }
.fix-link__head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.fix-link__text { min-width: 0; flex: 1; display: grid; gap: 4px; }
.fix-link__text .badge { justify-self: start; }
.fix-link__text .small { margin: 0; }
.fix-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.fix-opt { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--fg-2); font-size: .88rem; font-weight: 600; cursor: pointer; }
.fix-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fix-opt:hover { border-color: var(--accent); }
.fix-opt:has(input:checked) { background: var(--panel); border-color: var(--panel); color: var(--panel-fg); }
.fix-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fix-panel { display: grid; gap: 8px; margin-top: 12px; }
.fix-panel[hidden], .fix-newstable[hidden] { display: none; }
.fix-newstable { display: grid; gap: 8px; }
.fix-probe:empty { display: none; }
.fix-probe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fix-card select { width: 100%; }
.fix-changes { display: grid; gap: 8px; margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.fix-changes li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--surface-2); min-width: 0; }
.fix-changes .mono { max-width: 100%; }
.fix-changes__arrow { color: var(--muted); }
.fix-sub { margin: var(--sp-4) 0 4px; font-size: 1.05rem; }
textarea.code-field.fix-msg { min-height: 190px; font-family: var(--font); font-size: .95rem; line-height: 1.55; }
.fix-card .filter-seg { margin-bottom: 4px; }
@media (max-width: 560px) { .fix-link { padding: 12px; } .stable-row__opens { margin-left: 0; } }

/* ---------- buyer-facing /l/ pages ---------- */
.stable-notice { text-align: center; }
.stable-notice .auth__mark { margin-inline: auto; }
.stable-notice h1 { font-size: 1.5rem; }
.stable-notice--updating { border-top: 4px solid var(--warn); }
.stable-notice--paused { border-top: 4px solid var(--info); }

/* ---------- partner program: dashboard tab (app.html #view-partner) and the public /partners page ---------- */
.partner__stack { max-width: 960px; }
.terms-list { display: grid; gap: 8px; margin: 0 0 var(--sp-3); padding-left: 22px; color: var(--fg-2); line-height: 1.55; }
.partner-link { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
@media (min-width: 720px) { .partner-link { grid-template-columns: minmax(0, 1fr) auto; } }
.partner-link .copy-row { margin-top: 0; }
.partner-qr { display: grid; justify-items: center; gap: 8px; margin: 0; }
.partner-qr__code { width: 156px; height: 156px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: #FFFFFF; }
.partner-qr__code svg { display: block; width: 100%; height: 100%; }
.partner-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .partner-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.partner-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.partner-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.partner-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.partner-table tbody tr:last-child td { border-bottom: 0; }
.partner-table .small { margin-left: 4px; }
#partner-join-form .btn--primary { margin-top: var(--sp-2); }
#partner-join-form + .small { margin-top: var(--sp-2); }
.partner-kit__logos { margin-bottom: var(--sp-1); }
.grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.perk { display: flex; flex-direction: column; gap: 10px; }
.perk__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.perk__icon .icon { width: 22px; height: 22px; }
.perk__big { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.035em; color: var(--accent-strong-text); }
.perk h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.perk p { margin: 0; color: var(--muted); }
.step-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: calc(var(--sp-3) + 18px); }
.step-card__n { position: absolute; top: var(--sp-3); left: var(--sp-3); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.step-card h3 { margin: 28px 0 0; font-size: 1.15rem; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); }
.fine-print { max-width: 720px; margin: var(--sp-4) auto 0; padding: var(--sp-3); border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.fine-print h3 { margin: 0 0 var(--sp-1); font-size: 1.05rem; }
.fine-print ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--fg-2); }
.unsub { text-align: center; }
.unsub .result__icon { margin: 0 auto var(--sp-2); }
.unsub .small { margin: 0; }
.unsub .cta-row { margin-top: var(--sp-3); }
.unsub .btn--primary { width: auto; margin-top: 0; }

/* ---------- real buyer screens ---------- */
.buyer-window--ref { border-color: transparent; background: transparent; box-shadow: none; }
.buyer-window--ref .buyer-window__bar { display: none; }
.buyer-window--ref .buyer-window__body { display: block; min-height: 0; background: transparent; overflow: visible; }
.buyer-window--ref .buyer-window__foot { border-top: 0; padding: 10px 4px 0; }
.bw-ref { display: block; }
/* Cause banner: names why this buyer is stuck (state label, what Canva shows, one-line fix) above the picture, because Canva's own screen can be the same login wall for several causes. */
.bw-cause { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #e3e0f2); border-left-width: 4px; background: #fff; text-align: left; font-size: .8rem; line-height: 1.4; color: var(--ink, #1c1a2e); }
.bw-cause--bad { border-left-color: #dc2626; background: #fef6f6; }
.bw-cause--warn { border-left-color: #d97706; background: #fffaf0; }
.bw-cause--info { border-left-color: #6e5bd6; background: #f6f4ff; }
.bw-cause p { margin: 0; }
.bw-cause__title { font-weight: 700; font-size: .86rem; margin-bottom: 4px !important; }
.bw-cause__line span { display: inline-block; margin-right: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bw-cause__same { margin-top: 6px !important; font-size: .72rem; color: var(--muted); }
.bw-causebody { display: block; }
.bw-causebody .bw-cause { margin: 8px; }
.result--mini .bw-cause, .result--compact .bw-cause { display: none; }
.bw-ref picture { display: block; }
.buyer-window__body .bw-ref .shot { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 14px; box-shadow: 0 16px 34px -22px rgba(60, 40, 150, .55); background: var(--accent-soft); }
.bw-refcap { display: block; margin-top: 8px; padding: 0 8px; font-size: .72rem; line-height: 1.4; color: var(--muted); text-align: center; text-wrap: balance; }
/* home story, chapter 2: the first sample shows its real screen under the text, the other two get a small thumbnail */
.story__results .result--compact .result__side { display: flex; padding: 0 22px 18px; border: 0; background: none; }
.story__results .result--compact .buyer-window { width: 100%; max-width: 400px; margin: 0 auto; }
.story__results .result--compact .journey, .story__results .result--compact .buyer-window__foot { display: none; }
.story__results .result--mini .result__body { grid-template-columns: minmax(0, 1fr) 118px; align-items: center; }
.story__results .result--mini .result__side { display: flex; padding: 10px 14px 10px 0; border: 0; background: none; }
.story__results .result--mini .bw-refcap, .story__results .result--mini .buyer-window__foot { display: none; }
.story__results .result--mini .buyer-window__body .bw-ref .shot { border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }

/* guide figure: the real screen right under the lead paragraph */
.buyer-fig { margin: var(--sp-4) 0; }
.buyer-fig picture { display: block; }
.buyer-fig .shot { width: 100%; height: auto; border: 0; border-radius: 16px; box-shadow: 0 18px 40px -26px rgba(60, 40, 150, .5); background: var(--accent-soft); }
.buyer-fig figcaption { margin-top: 10px; font-size: .875rem; line-height: 1.5; color: var(--fg-2); text-wrap: pretty; }
.buyer-fig__date { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.buyer-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: var(--sp-4) 0; }
.buyer-figs .buyer-fig { margin: 0; }
@media (min-width: 760px) { .buyer-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* home: what buyers actually see */
.seen { padding: 70px 0 10px; }
.seen .section__head { margin-bottom: 32px; }
.seen__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.seen__card { display: flex; min-width: 0; }
.seen__link { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 10px 10px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--accent-soft); color: inherit; text-decoration: none; transition: transform .2s var(--ease); }
.seen__link:hover { transform: translateY(-3px); }
.seen__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.seen__img { display: block; width: 100%; height: auto; border-radius: 13px; background: var(--surface-2); }
.seen__label { margin-top: 4px; padding: 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong-text); }
.seen__quote { display: block; padding: 0 8px; quotes: "\201C" "\201D"; font-size: 1.02rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--fg); text-wrap: balance; }
.seen__meaning { padding: 0 8px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.seen__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 6px 8px 0; font-size: .86rem; font-weight: 600; color: var(--accent-strong-text); }
.seen__more .icon { width: 15px; height: 15px; }
@media (max-width: 1000px) { .seen__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .seen { padding-top: 48px; }
  .seen__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; gap: 12px; margin: 0 -16px; padding: 0 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .seen__card { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .seen__link { transition: none; } .seen__link:hover { transform: none; } }

/* footer: capture + trademark note */
.site-footer__bottom .site-footer__capture { flex: 1 1 100%; font-size: .78rem; }

.result__hint { display:flex; gap:8px; align-items:flex-start; margin:12px 0 0; font-size:13px; line-height:1.5; color:var(--muted, #6b6880); }
.result__hint svg { flex:none; width:16px; height:16px; margin-top:2px; opacity:.8; }
.result--compact .result__hint { display:none; }

/* ---- article motion (seo pages) ---- */
/* Search landing pages built by scripts/build-seo-articles.mjs.
   .scene3d        decorative CSS 3D hero (aria-hidden figure): .scene3d__stage (preserve-3d, slow float) holds .scene3d__orb,
                   .scene3d__pdf (delivery PDF card: __pdf-tag, __pdf-art, __pdf-title, __pdf-line(--short), __pdf-btn), .scene3d__win
                   (real buyer screen, -thumb.webp) and .scene3d__chip (outcome pill). Tone: .scene3d--ok / --bad / --warn.
   .answer         direct-answer box: .answer__label + p.lede.   .fig-note small line under the figure (localized pages)
   .toc            table of contents: .toc__title + ol of in-page links
   .ajourney       link journey strips: .ajourney__row(--ok|--bad|--warn) > .ajourney__label + ol.journey (scroll-driven reveal where supported)
   .article-video  the explainer frame + .vbox inside an article.   .callout--check  end-of-article callout with the compact checker
   Reduced motion: nothing moves. Hidden tab: loops pause. */
.answer {
  position: relative; margin: 0 0 var(--sp-4); padding: 20px 24px 22px; border: 1px solid var(--accent-border); border-radius: 22px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 72%); box-shadow: 0 22px 44px -34px var(--accent-glow);
}
.answer__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong-text); }
.answer__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-border); }
.article .answer .lede { margin: 0; font-size: 1.14rem; line-height: 1.6; color: var(--fg); }
.fig-note { margin: -8px 0 var(--sp-3); }

.toc { margin: var(--sp-4) 0 0; padding: 18px 22px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.toc__title { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article .toc ol { margin: 0; padding-left: 1.3em; columns: 2 250px; column-gap: 32px; }
.article .toc li { margin: 0 0 8px; break-inside: avoid; font-size: .94rem; line-height: 1.4; }
.toc a { color: var(--fg-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 3D hero */
.scene3d {
  position: relative; margin: var(--sp-3) 0 var(--sp-4); height: clamp(220px, 50vw, 336px); overflow: hidden; isolation: isolate;
  border: 1px solid var(--accent-border); border-radius: 28px; perspective: 1200px; perspective-origin: 58% 18%;
  background:
    radial-gradient(110% 90% at 88% -10%, rgba(179, 166, 247, .42), transparent 58%),
    radial-gradient(90% 80% at -5% 110%, rgba(139, 124, 240, .24), transparent 60%),
    var(--accent-soft);
}
.scene3d::after {
  content: ""; position: absolute; z-index: 0; left: 12%; right: 8%; bottom: 5%; height: 22%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 50, 160, .26), transparent); pointer-events: none;
}
.scene3d__stage {
  position: absolute; z-index: 1; inset: 0; transform-style: preserve-3d; transform: rotateX(11deg) rotateY(-14deg);
  animation: scene3d-float 11s ease-in-out infinite alternate;
}
.scene3d__orb {
  position: absolute; left: 50%; top: -14%; width: 30%; aspect-ratio: 1; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95), var(--lav-2) 46%, rgba(139, 124, 240, 0) 72%);
  transform: translateZ(-160px);
}
.scene3d__pdf {
  position: absolute; left: 6%; top: 16%; width: 33%; height: 68%; display: flex; flex-direction: column; gap: 6%; padding: clamp(10px, 2.4vw, 18px);
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--fg);
  box-shadow: 0 1px 2px rgba(30, 20, 60, .06), 0 30px 60px -30px rgba(70, 50, 160, .55);
  transform: translateZ(-40px) rotateZ(-5deg); animation: scene3d-bob 7s ease-in-out -2.5s infinite alternate;
}
.scene3d__pdf-tag {
  align-self: flex-start; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong-text);
  font-size: clamp(.5rem, 1.3vw, .66rem); font-weight: 800; letter-spacing: .08em;
}
.scene3d__pdf-art { flex: 1 1 auto; min-height: 18%; border-radius: 10px; background: linear-gradient(140deg, var(--lav-2), var(--lav-1)); opacity: .8; }
.scene3d__pdf-title { font-size: clamp(.58rem, 1.6vw, .86rem); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.scene3d__pdf-line { display: block; height: 5px; flex: none; border-radius: 3px; background: var(--line-strong); opacity: .7; }
.scene3d__pdf-line--short { width: 62%; }
.scene3d__pdf-btn {
  align-self: stretch; padding: 6px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-align: center;
  font-size: clamp(.5rem, 1.35vw, .74rem); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 18px -8px var(--accent-glow);
}
.scene3d__win {
  position: absolute; right: 5%; top: 13%; width: 55%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 2px 4px rgba(30, 20, 60, .08), 0 44px 80px -34px rgba(70, 50, 160, .6);
  transform: translateZ(60px) rotateZ(1.5deg);
}
.scene3d__win img { display: block; width: 100%; height: auto; }
.scene3d__chip {
  position: absolute; right: 8%; bottom: 9%; display: inline-flex; align-items: center; gap: 8px; max-width: 70%; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg);
  box-shadow: 0 20px 40px -16px rgba(70, 50, 160, .5); font-size: clamp(.72rem, 1.9vw, .92rem); font-weight: 700; line-height: 1.2;
  transform: translateZ(120px); animation: scene3d-bob 6s ease-in-out infinite alternate;
}
.scene3d__chip > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene3d__chip .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.scene3d--ok .scene3d__chip .icon { color: var(--ok); }
.scene3d--bad .scene3d__chip .icon { color: var(--bad); }
.scene3d--warn .scene3d__chip .icon { color: var(--warn); }
@keyframes scene3d-float { 0% { transform: rotateX(12deg) rotateY(-17deg) translateY(4px); } 100% { transform: rotateX(8deg) rotateY(-9deg) translateY(-4px); } }
@keyframes scene3d-float-sm { 0% { transform: rotateX(10deg) rotateY(-12deg) translateY(3px); } 100% { transform: rotateX(7deg) rotateY(-6deg) translateY(-3px); } }
@keyframes scene3d-bob { from { translate: 0 0; } to { translate: 0 -8px; } }
html[data-theme="dark"] .scene3d {
  background:
    radial-gradient(110% 90% at 88% -10%, rgba(139, 124, 240, .32), transparent 58%),
    radial-gradient(90% 80% at -5% 110%, rgba(110, 91, 214, .22), transparent 60%),
    var(--accent-soft);
}
html[data-theme="dark"] .scene3d::after { background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent); }
html[data-theme="dark"] .scene3d__orb { opacity: .28; }
html[data-theme="dark"] .scene3d__win, html[data-theme="dark"] .scene3d__pdf, html[data-theme="dark"] .scene3d__chip { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 36px 70px -30px rgba(0, 0, 0, .8); }
@media (max-width: 520px) {
  .scene3d { border-radius: 22px; perspective: 900px; }
  .scene3d__stage { transform: rotateX(9deg) rotateY(-10deg); animation-name: scene3d-float-sm; }
  .scene3d__pdf { left: 4%; top: 17%; width: 37%; height: 66%; border-radius: 12px; gap: 5%; }
  .scene3d__win { right: 3%; top: 15%; width: 54%; border-radius: 10px; }
  .scene3d__chip { right: 5%; bottom: 8%; padding: 6px 11px 6px 8px; gap: 6px; }
  .scene3d__chip .icon { width: 16px; height: 16px; }
}
html.tab-hidden .scene3d__stage, html.tab-hidden .scene3d__stage > * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .scene3d__stage, .scene3d__stage > * { animation: none; } }

/* link journey strips */
.ajourney { container-type: inline-size; display: grid; gap: 16px; margin: var(--sp-3) 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); }
.ajourney__label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ajourney__label::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.ajourney__row--ok .ajourney__label::before { background: var(--ok); }
.ajourney__row--bad .ajourney__label::before { background: var(--bad); }
.ajourney__row--warn .ajourney__label::before { background: var(--warn); }
.article .ajourney .journey { padding: 0; }
.article .ajourney .journey__step { margin: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ajourney .journey__step { animation: ajourney-in linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    .ajourney .journey__step:nth-child(2) { animation-range: entry 15% cover 34%; }
    .ajourney .journey__step:nth-child(3) { animation-range: entry 25% cover 40%; }
  }
}
@keyframes ajourney-in { from { opacity: 0; translate: 0 14px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* video + closing checker inside an article */
.article-video { margin: var(--sp-3) 0 var(--sp-2); }
.article-video .explainer__frame { border-radius: 22px; box-shadow: 0 1px 2px rgba(30, 20, 60, .05), 0 36px 70px -34px rgba(110, 91, 214, .6), 0 0 0 6px rgba(179, 166, 247, .12); }
.callout--check .checker, .callout--check [data-templink-checker] { margin: var(--sp-3) 0 0; text-align: left; }
.article .callout--check .checker { background: var(--surface); }
.lang-note { margin: var(--sp-2) 0 0; }

/* ---- header account menu (widget.js addAccountMenu) ---- */
.acct { position: relative; flex: none; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 4px; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease, ease), border-color .25s, box-shadow .25s, transform .25s var(--ease, ease); }
.acct__btn:hover, .acct.is-open .acct__btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--accent-glow), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.acct__btn:active { transform: translateY(0) scale(.98); }
.acct__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.acct__btn:hover .acct__avatar, .acct.is-open .acct__avatar { background: var(--on-accent, #fff); color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--on-accent, #fff) 45%, transparent); }
@media (prefers-reduced-motion: reduce) { .acct__btn, .acct__btn:hover { transition: none; transform: none; } }
.acct__avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); font-size: .8rem; font-weight: 700; transition: background-color .25s, color .25s, box-shadow .25s; }
.acct__menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
.acct.is-open .acct__menu { display: block; }
.acct__head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct__email { font-size: .88rem; font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.acct__plan { font-size: .78rem; color: var(--muted); }
.acct__menu a, .acct__menu button { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2); font: inherit; font-size: .9rem; text-align: left; text-decoration: none; cursor: pointer; }
.acct__menu a:hover, .acct__menu button:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 879px) {
  .acct__btn { display: none; }
  .acct__menu { display: block; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .acct__head { padding: 12px 8px; }
  .acct__menu a, .acct__menu button { padding: 0 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 44px; }
}

/* ---- PDF import file picker (app.html #import-form): our own English button instead of the browser's localized one ---- */
#import-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.file-pick { position: relative; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick__name { font-size: .9rem; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- support chat ---- */
/* Dashboard "Ask the developer" (app.html #support, app.js initSupport) and the public "Ask a question" (widget.js wireAsk).
   One floating control bottom-right: a calm pill that turns hot (filled lavender, red dot, two pulses) when the team replied.
   The panel is a popover on desktop and a bottom sheet on phones. Hidden while a lightbox, the video player or the mobile menu is open. */
.sup, .ask { --sup-gap: 20px; position: fixed; right: var(--sup-gap); bottom: calc(var(--sup-gap) + env(safe-area-inset-bottom, 0px)); z-index: 80; font-family: var(--font); }
.sup[hidden], .ask[hidden], .sup-panel[hidden], .sup-chips[hidden], .ask-done[hidden], .ask-form[hidden], .ask-form__email[hidden] { display: none; }
body:has(.lightbox) :is(.sup, .ask), body:has(dialog.vbox[open]) :is(.sup, .ask), body:has(.site-header.is-open) :is(.sup, .ask) { display: none; }
.sup-scrim { display: none; }

.sup-fab, .ask-fab {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 48px; margin: 0; padding: 0 20px 0 16px;
  border: 1px solid var(--accent-border); border-radius: 999px; background: var(--surface); color: var(--accent-strong-text);
  font: 600 .92rem/1 var(--font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(30, 20, 60, .06), 0 18px 38px -18px rgba(70, 50, 160, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s, opacity .2s;
}
.sup-fab:hover, .ask-fab:hover { transform: translateY(-2px); border-color: var(--accent); }
.sup-fab:active, .ask-fab:active { transform: translateY(0) scale(.98); }
.sup-fab:focus-visible, .ask-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.sup-fab .icon, .ask-fab .icon { width: 20px; height: 20px; color: var(--accent); transition: color .25s; }
.sup-fab__dot { display: none; position: absolute; top: 10px; left: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--accent); }
.sup.is-open .sup-fab, .ask.is-open .ask-fab { border-color: var(--accent); background: var(--accent-soft); }
.sup.is-hot .sup-fab {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent), 0 18px 40px -16px var(--accent-glow);
}
.sup.is-hot .sup-fab .icon { color: var(--on-accent); }
.sup.is-hot .sup-fab__dot { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sup.is-hot .sup-fab.is-pulsing { animation: sup-pulse 1.5s var(--ease) 2; }
  .sup.is-open .sup-panel, .ask.is-open .sup-panel { animation: sup-in .22s var(--ease); }
}
@keyframes sup-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 50%, transparent), 0 18px 40px -16px var(--accent-glow); transform: scale(1); }
  35% { transform: scale(1.04); }
  70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--bad) 0%, transparent), 0 18px 40px -16px var(--accent-glow); transform: scale(1); }
  100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent), 0 18px 40px -16px var(--accent-glow); }
}
@keyframes sup-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sup-fab, .ask-fab { transition: none; } .sup-fab:hover, .ask-fab:hover { transform: none; } }
.ask.is-tucked .ask-fab { opacity: 0; pointer-events: none; transform: translateY(8px); }

/* panel: popover anchored above the button */
.sup-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; flex-direction: column;
  width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px)); max-height: min(640px, calc(100dvh - 120px));
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--fg-2);
  box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right;
}
.ask-panel { width: min(380px, calc(100vw - 32px)); }
.sup-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 12px 14px 20px;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), var(--surface));
}
.sup-panel__title { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.sup-panel__sub { margin: 3px 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.sup-panel__close { flex: none; margin: -6px 0 0; }

.sup-thread { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; min-height: 180px; padding: 16px 16px 8px; overflow-y: auto; overscroll-behavior: contain; }
.sup-thread:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 12px; }
.sup-day { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.sup-day::before, .sup-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sup-msg { display: flex; flex-direction: column; gap: 4px; max-width: 86%; }
.sup-msg--you { align-self: flex-end; align-items: flex-end; }
.sup-msg--team { align-self: flex-start; }
.sup-msg__meta { display: flex; gap: 8px; padding: 0 4px; font-size: .72rem; color: var(--muted); }
.sup-msg__author { font-weight: 600; color: var(--fg-2); }
.sup-msg__body { padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sup-msg--you .sup-msg__body { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.sup-msg--team .sup-msg__body { border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--fg); border-bottom-left-radius: 6px; }
.sup-msg.is-pending .sup-msg__body { opacity: .6; }
.sup-empty { margin: auto 0; padding: 24px 8px; text-align: center; font-size: .9rem; color: var(--muted); }
.sup-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 12px; }
.sup-chip {
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--fg-2);
  font: 500 .82rem/1.25 var(--font); text-align: left; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.sup-chip:hover { border-color: var(--accent); color: var(--accent-strong-text); background: var(--accent-soft); }
.sup-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sup-compose { padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.sup-compose__text, .ask-form__input {
  display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--fg);
  font: 400 .95rem/1.45 var(--font); transition: border-color .2s, box-shadow .2s;
}
.sup-compose__text { min-height: 46px; max-height: 168px; resize: none; }
.sup-compose__text::placeholder, .ask-form__input::placeholder { color: var(--muted); }
.sup-compose__text:focus, .ask-form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sup-compose__text[aria-invalid="true"], .ask-form__input[aria-invalid="true"] { border-color: var(--bad); }
.sup-compose__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sup-compose__hint { font-size: .75rem; color: var(--muted); }
.sup-compose__count { margin-left: auto; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sup-compose__count.is-low { color: var(--bad-ink); font-weight: 600; }
.sup-compose__error { margin: 8px 2px 0; font-size: .84rem; line-height: 1.4; color: var(--bad-ink); }
.sup-compose__error:empty { display: none; }

/* public "Ask a question" form */
.ask-form { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; overflow-y: auto; }
.ask-form__label { margin-top: 6px; font-size: .82rem; font-weight: 600; color: var(--fg); }
.ask-form__text { min-height: 112px; max-height: 240px; resize: vertical; }
.ask-form__email { display: flex; flex-direction: column; gap: 6px; }
.ask-form .btn { margin-top: 10px; }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px 26px; text-align: center; }
.ask-done__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.ask-done__icon .icon { width: 24px; height: 24px; }
.ask-done__text { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--fg-2); outline: none; overflow-wrap: anywhere; }
.ask-done__text strong { color: var(--fg); }

/* phones: bottom sheet over a scrim; the public button becomes a small round icon */
@media (max-width: 600px) {
  .sup, .ask { --sup-gap: 14px; }
  .sup-fab { height: 46px; padding: 0 16px 0 13px; font-size: .88rem; }
  .ask-fab { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .ask-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sup.is-open .sup-scrim, .ask.is-open .sup-scrim { display: block; position: fixed; inset: 0; background: rgba(12, 10, 24, .45); }
  .sup-panel, .ask-panel {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; max-height: 88dvh;
    border-bottom: 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform-origin: bottom center;
  }
  .sup.is-open .sup-fab, .ask.is-open .ask-fab { visibility: hidden; }
  .sup-compose__hint { display: none; }
  .sup-msg { max-width: 90%; }
}
@media (max-width: 600px) and (prefers-reduced-motion: no-preference) {
  .sup.is-open .sup-panel, .ask.is-open .sup-panel { animation: sup-sheet .26s var(--ease); }
}
@keyframes sup-sheet { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- language switcher (footer, injected by server.mjs renderHtml) + soft language banner (public/lang.js) ---------- */
.lang-switch { flex-basis: 100%; }
.site-footer .lang-switch ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer .lang-switch a { font-size: .88rem; }
.site-footer .lang-switch a[aria-current="page"] { color: var(--fg); font-weight: 600; text-decoration: none; cursor: default; }
.lang-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px 6px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.4; }
.lang-banner__link { color: var(--accent-strong-text); font-weight: 600; text-decoration: none; }
.lang-banner__link:hover { text-decoration: underline; }
.lang-banner__link::after { content: " \2192"; }
.lang-banner__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.lang-banner__close:hover { background: var(--surface); color: var(--fg); }
.lang-banner__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Japanese line breaking in the checker, results and buyer notices (agent B1, docs/i18n.md) ----------
   Strict kinsoku (no 「、。」 at a line start), no breaks inside Latin words, and long URLs / unbroken strings wrap anywhere
   so nothing overflows a 375px screen. */
:lang(ja) .checker, :lang(ja) .result, :lang(ja) .summary, :lang(ja) .stable-card, :lang(ja) .ck-help, :lang(ja) .sample-note,
:lang(ja) .notice, :lang(ja) .upsell, :lang(ja) .ask-panel, :lang(ja) .stable-notice, :lang(ja) .buyer-window, :lang(ja) .acct__menu {
  line-break: strict; word-break: normal; overflow-wrap: anywhere;
}
:lang(ja) .result__headline, :lang(ja) .summary__title, :lang(ja) .stable-card__title, :lang(ja) .sample-note__title { word-break: auto-phrase; }
:lang(ja) .ck-lead { white-space: normal; }
/* Japanese headings: break at phrase boundaries (Chrome 119+) and balance lines, so no lone kana ends up on its own line. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; text-wrap: balance; }
