/*
 * Daima Theme — compiled main.css
 *
 * This file is a 1:1 port of the styleguide CSS at ../styleguide.html.
 * If you change styles here, ALSO update the styleguide and verify with:
 *   npx impeccable --json styleguide.html
 *
 * Source of truth: F:/CLAUDE PROJECTS/Pulse Subscription App/Daima Website/styleguide.html
 */

/* ============================================================
       DESIGN TOKENS
       OKLCH for perceptual uniformity. Neutrals tinted toward brand.
       Two themes: dark (default) + light.
    ============================================================ */
    :root {
      /* ── Brand anchors (theme-invariant) ── */
      --c-hot:           oklch(56% 0.170  32);  /* #c8391a — primary CTA */
      --c-hot-lo:        oklch(50% 0.165  32);
      --c-amber:         oklch(76% 0.160  66);  /* #f59b00 — highlight */
      --c-amber-soft:    oklch(76% 0.160 66 / 0.12);
      --c-cream:         oklch(94% 0.076  97);  /* #ffe8a3 */

      /* ── Type ── */
      --ff-display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
      --ff-body:    'Red Hat Text', system-ui, -apple-system, sans-serif;
      --ff-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

      /* Fluid type scale — real hierarchy between steps */
      --fs-display:   clamp(3rem,    6vw + 1rem,   6.5rem);    /*  48 → 104 */
      --fs-h1:        clamp(2.25rem, 4vw + 0.5rem, 4rem);      /*  36 → 64  */
      --fs-h2:        clamp(1.75rem, 2.5vw + 0.6rem,2.75rem);  /*  28 → 44  */
      --fs-h3:        clamp(1.375rem,1.5vw + 0.6rem,2rem);     /*  22 → 32  */
      --fs-h4:        clamp(1.125rem,0.5vw + 0.9rem,1.375rem); /*  18 → 22  */
      --fs-body-lg:   1.125rem;
      --fs-body:      1rem;
      --fs-body-sm:   0.875rem;
      --fs-micro:     0.75rem;

      /* ── Spacing (4pt grid, semantic names) ── */
      --sp-1:  0.25rem;
      --sp-2:  0.5rem;
      --sp-3:  0.75rem;
      --sp-4:  1rem;
      --sp-5:  1.5rem;
      --sp-6:  2rem;
      --sp-7:  3rem;
      --sp-8:  4rem;
      --sp-9:  6rem;
      --sp-10: 8rem;

      /* ── Radii ── */
      --r-xs:  4px;
      --r-sm:  8px;
      --r-md:  14px;
      --r-lg:  24px;
      --r-pill: 999px;

      /* ── Motion ── */
      --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
      --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
      --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
      --dur-instant:    100ms;
      --dur-fast:       200ms;
      --dur-mid:        350ms;
      --dur-slow:       600ms;

      /* ── Containers ── */
      --max-content: 1200px;
      --max-prose:   66ch;
      /* ── Surfaces, text, borders, semantic (light theme = only theme) ── */
      --c-surface-base:  oklch(97% 0.018 80);    /* warm paper */
            --c-surface-raise: oklch(99% 0.012 80);    /* card */
            --c-surface-top:   oklch(94% 0.025 80);    /* nested */
            --c-surface-brand: oklch(32% 0.085 300);
      
            --c-text-hi:       oklch(22% 0.050 300);
            --c-text-body:     oklch(30% 0.040 300);
            --c-text-mid:      oklch(45% 0.040 300);
            --c-text-lo:       oklch(58% 0.045 300);
      
            --c-border:        oklch(85% 0.03 80 / 0.9);
            --c-border-strong: oklch(70% 0.04 80);
            --c-border-accent: oklch(56% 0.17 32 / 0.4);
      
            --c-btn-on-accent: oklch(100% 0 0);
      
            --c-info:    oklch(52% 0.16 240);
            --c-success: oklch(50% 0.14 155);
            --c-warn:    oklch(62% 0.16 66);
            --c-danger:  var(--c-hot);
      
            --shadow-sm: 0 1px 2px oklch(30% 0.08 80 / 0.08);
            --shadow-md: 0 8px 24px oklch(30% 0.08 80 / 0.1), 0 2px 6px oklch(30% 0.08 80 / 0.06);
            --shadow-lg: 0 24px 48px oklch(30% 0.08 80 / 0.14), 0 6px 14px oklch(30% 0.08 80 / 0.08);
      
            color-scheme: light;
      color-scheme: light;

    }

    /* ============================================================
       RESET & BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }

    body {
      font-family: var(--ff-body);
      font-size: var(--fs-body);
      font-weight: 400;
      line-height: 1.6;
      color: var(--c-text-body);
      background: var(--c-surface-base);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      font-feature-settings: 'ss01', 'cv11';
      min-height: 100vh;
      transition: background var(--dur-mid) var(--ease-out-quart),
                  color var(--dur-mid) var(--ease-out-quart);
      position: relative;
      /* Global guard — prevents any negative-margin bleed (mobile rails),
         fixed-position decoration, or off-screen element from causing
         page-level horizontal scroll. clip > hidden because it doesn't
         create a scroll container that would break sticky positioning. */
      overflow-x: clip;
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: var(--ff-display);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.02em;
      color: var(--c-text-hi);
    }

    /* Headline emphasis pattern: regular text + italic underlined ending.
       SCOPED to Display and H1 only — biggest headlines get the signature treatment. */
    :is(h1, .cover__title, .type--display, .type--h1) em {
      font-style: italic;
      font-weight: 400;
      color: inherit;
      text-decoration: underline;
      text-decoration-color: var(--c-hot);
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.1em;
      text-decoration-skip-ink: none;
    }

    /* Wrapped in :where() so specificity is 0 — any class on an anchor (e.g. .btn--primary) wins.
       Without this, global a:hover (specificity 11) would override .btn--primary (specificity 10)
       and turn button text orange-on-orange, making the label invisible. */
    :where(a) {
      color: var(--c-hot);
      text-decoration: none;
      transition: color var(--dur-fast) var(--ease-out-quart);
    }
    :where(a:hover) { color: var(--c-hot-lo); }

    img, svg { max-width: 100%; display: block; }

    ::selection { background: var(--c-hot); color: white; }

    /* Focus — accent switches by theme so it stays legible on cream and ink */
    :where(a, button, input, select, textarea, [tabindex]):focus-visible {
      outline: 2px solid var(--c-amber);
      outline-offset: 3px;
      border-radius: var(--r-sm);
    }
    :where(a, button, input, select, textarea, [tabindex]):focus-visible {
      outline-color: var(--c-hot);
    }
    /* Amber button: focus ring is amber at rest would vanish — use hot on both themes */
    .btn--amber:focus-visible { outline-color: var(--c-hot); }

    /* ============================================================
       UTILITY CLASSES (no more inline styles)
    ============================================================ */
    .u-stack         { display: flex; flex-direction: column; gap: var(--sp-4); }
    .u-stack-sm      { display: flex; flex-direction: column; gap: var(--sp-2); }
    .u-stack-lg      { display: flex; flex-direction: column; gap: var(--sp-5); }
    .u-row           { display: flex; flex-direction: row;    gap: var(--sp-3); align-items: center; }
    .u-row-wrap      { display: flex; flex-wrap: wrap;         gap: var(--sp-3); align-items: center; }
    .u-span-full     { grid-column: 1 / -1; }
    .u-ml-auto       { margin-left: auto; }
    .u-flex-1        { flex: 1; }
    .u-mb-2          { margin-bottom: var(--sp-2); }
    .u-mb-3          { margin-bottom: var(--sp-3); }
    .u-text-mid      { color: var(--c-text-mid); }
    .u-text-lo       { color: var(--c-text-lo); }
    .u-mono          { font-family: var(--ff-mono); font-size: 0.85em; color: var(--c-amber); }
    .u-mono-inline   { font-family: var(--ff-mono); font-size: 0.9em; color: var(--c-amber);
                       background: color-mix(in oklch, var(--c-surface-top) 60%, transparent);
                       padding: 2px 6px; border-radius: 4px; }
    .u-hidden        { display: none; }
    .u-sprite        { position: absolute; width: 0; height: 0; overflow: hidden; }

    /* ============================================================
       SUN MOTIF — the signature shape.
       Used as hero element, section divider, spinner, empty state.
    ============================================================ */
    .sun {
      display: inline-block;
      width: 1em;
      height: 1em;
      color: var(--c-hot);
      flex-shrink: 0;
    }

    .sun-divider {
      display: flex;
      align-items: center;
      gap: var(--sp-5);
      margin: var(--sp-7) 0;
      color: var(--c-border-strong);
    }
    .sun-divider::before,
    .sun-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: currentColor;
    }
    .sun-divider__mark {
      width: 18px; height: 18px;
      color: var(--c-amber);
      animation: sun-rot 24s linear infinite;
    }
    @keyframes sun-rot { to { transform: rotate(360deg); } }

    /* ============================================================
       LAYOUT SHELL
    ============================================================ */
    .shell {
      display: grid;
      grid-template-columns: minmax(240px, 280px) 1fr;
      min-height: 100vh;
      position: relative;
      z-index: 1;
    }

    /* ── Side nav ── */
    .sidenav {
      position: sticky;
      top: 0;
      align-self: start;
      max-height: 100vh;
      overflow-y: auto;
      padding: var(--sp-6) var(--sp-5);
      border-right: 1px solid var(--c-border);
      background: color-mix(in oklch, var(--c-surface-base) 85%, transparent);
      backdrop-filter: blur(12px);
    }

    .sidenav__brand {
      display: flex;
      align-items: center;
      gap: var(--sp-3);
      margin-bottom: var(--sp-6);
      line-height: 0;
    }
    .sidenav__logo {
      height: 34px;
      width: auto;
      aspect-ratio: 2236.29 / 570.3;
      flex-shrink: 0;
      display: block;
    }
    .sidenav__logo--dark { display: none; }
    .sidenav__logo--light { display: block; }
    .sidenav__version {
      font-family: var(--ff-mono);
      font-size: 0.7rem;
      color: var(--c-text-lo);
      margin-left: auto;
      padding: 8px;
      border: 1px solid var(--c-border);
      border-radius: var(--r-pill);
    }

    .sidenav__group        { margin-bottom: var(--sp-5); }
    .sidenav__group-label  {
      font-family: var(--ff-body);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--c-text-lo);
      padding: 0 var(--sp-3);
      margin-bottom: var(--sp-2);
    }
    .sidenav__list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
    .sidenav__link {
      display: block;
      padding: 7px var(--sp-3);
      border-radius: var(--r-sm);
      font-family: var(--ff-display);
      font-size: var(--fs-body-sm);
      font-weight: 500;
      color: var(--c-text-mid);
      transition: color var(--dur-fast), background var(--dur-fast);
      position: relative;
    }
    .sidenav__link:hover {
      color: var(--c-text-hi);
      background: var(--c-surface-top);
    }
    .sidenav__link[aria-current="true"] {
      color: var(--c-text-hi);
      background: var(--c-surface-top);
    }
    .sidenav__link[aria-current="true"]::before {
      content: '';
      position: absolute;
      inset: 8px auto 8px 0;
      width: 2px;
      background: var(--c-amber);
      border-radius: 2px;
    }

    /* ── Main ── */
    .main {
      min-width: 0;
      padding: var(--sp-7) var(--sp-7) var(--sp-10);
      position: relative;
    }

    .page {
      max-width: var(--max-content);
      margin: 0 auto var(--sp-10);
      scroll-margin-top: var(--sp-5);
    }

    /* ============================================================
       HERO / COVER — editorial asymmetric
    ============================================================ */
    .cover {
      max-width: var(--max-content);
      margin: 0 auto;
      padding: var(--sp-6) 0 var(--sp-8);
      display: grid;
      grid-template-columns: 7fr 5fr;
      gap: var(--sp-7);
      align-items: end;
      border-bottom: 1px solid var(--c-border);
    }

    .cover__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      padding: 6px 14px;
      border: 1px solid var(--c-border-accent);
      border-radius: var(--r-pill);
      background: var(--c-amber-soft);
      font-family: var(--ff-display);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      color: var(--c-amber);
      margin-bottom: var(--sp-5);
      text-transform: uppercase;
    }
    .cover__eyebrow { color: var(--c-hot); }
    .cover__eyebrow-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: currentColor;
      animation: dot-pulse 2s var(--ease-out-quart) infinite;
    }
    @keyframes dot-pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%      { opacity: 0.5; transform: scale(0.85); }
    }

    .cover__title {
      font-family: var(--ff-display);
      font-size: var(--fs-display);
      font-weight: 800;
      line-height: 0.95;
      letter-spacing: -0.04em;
      color: var(--c-text-hi);
      max-width: 13ch;
    }

    .cover__lede {
      margin-top: var(--sp-5);
      font-size: clamp(1rem, 1vw + 0.7rem, 1.25rem);
      color: var(--c-text-mid);
      max-width: 50ch;
      line-height: 1.55;
    }

    .cover__visual {
      position: relative;
      aspect-ratio: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    /* Cover sun — JS drives rotation via scroll velocity + momentum */
    .cover__visual .sun {
      width: 90%;
      max-width: 380px;
      height: auto;
      color: var(--c-hot);
      transform: rotate(var(--cover-rot, 0deg));
      will-change: transform;
    }
    @media (prefers-reduced-motion: reduce) {
      .cover__visual .sun { transform: none; }
    }

    .cover__meta {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: var(--sp-6);
      padding-top: var(--sp-5);
      border-top: 1px solid var(--c-border);
    }
    .cover__meta-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .cover__meta-label {
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--c-text-lo);
      font-weight: 600;
    }
    .cover__meta-value {
      font-family: var(--ff-display);
      font-weight: 600;
      color: var(--c-text-hi);
      font-size: var(--fs-body);
    }

    @media (max-width: 820px) {
      .cover { grid-template-columns: 1fr; }
      .cover__visual { max-width: 200px; margin-left: auto; margin-right: 0; }
    }

    /* ============================================================
       SECTION HEADER — editorial numerals
    ============================================================ */
    .sec-head {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: var(--sp-5);
      align-items: baseline;
      margin-bottom: var(--sp-5);
      padding-top: var(--sp-4);
    }
    .sec-head__num {
      font-family: var(--ff-display);
      font-weight: 900;
      font-size: clamp(3rem, 5vw, 5rem);
      line-height: 0.85;
      color: var(--c-hot);
      letter-spacing: -0.05em;
      font-feature-settings: 'tnum';
    }
    .sec-head__body { padding-top: var(--sp-2); }
    .sec-head__kicker {
      display: inline-block;
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--c-text-lo);
      margin-bottom: var(--sp-2);
    }
    .sec-head__title {
      font-size: var(--fs-h1);
      letter-spacing: -0.025em;
      line-height: 1.02;
      color: var(--c-text-hi);
      max-width: 22ch;
    }
    .sec-head__lede {
      margin-top: var(--sp-4);
      font-size: var(--fs-body-lg);
      color: var(--c-text-mid);
      max-width: var(--max-prose);
      line-height: 1.55;
    }
    @media (max-width: 640px) {
      .sec-head { grid-template-columns: 1fr; gap: var(--sp-2); }
    }

    .subhead {
      font-family: var(--ff-display);
      font-size: var(--fs-h3);
      font-weight: 700;
      letter-spacing: -0.015em;
      margin: var(--sp-6) 0 var(--sp-4);
      color: var(--c-text-hi);
    }

    /* ============================================================
       USAGE RULE BLOCK — compact per-component guidance
    ============================================================ */
    .usage {
      margin: var(--sp-4) 0;
      padding: var(--sp-4);
      background: color-mix(in oklch, var(--c-surface-raise) 80%, transparent);
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      font-size: var(--fs-body-sm);
      color: var(--c-text-body);
    }
    .usage__label {
      font-family: var(--ff-body);
      font-size: 0.7rem;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: var(--c-amber);
      text-transform: uppercase;
      margin-bottom: var(--sp-2);
      display: block;
    }
    .usage__label { color: var(--c-hot); }
    .usage__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: var(--sp-3) var(--sp-5);
    }
    .usage__row {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: var(--sp-2);
      align-items: baseline;
    }
    .usage__token {
      font-family: var(--ff-mono);
      font-size: 0.75rem;
      color: var(--c-text-hi);
      font-weight: 600;
    }
    .usage__desc { color: var(--c-text-mid); font-size: var(--fs-body-sm); line-height: 1.5; }

    /* ============================================================
       COLOR SWATCHES
    ============================================================ */
    .swatch-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: var(--sp-3);
    }
    .swatch {
      display: flex;
      flex-direction: column;
      border-radius: var(--r-md);
      border: 1px solid var(--c-border);
      overflow: hidden;
      transition: transform var(--dur-fast) var(--ease-out-quart),
                  border-color var(--dur-fast);
    }
    .swatch:hover {
      transform: translateY(-2px);
      border-color: var(--c-border-strong);
    }
    .swatch__fill { height: 84px; position: relative; }
    .swatch__fill::after {
      content: attr(data-label);
      position: absolute;
      bottom: 8px;
      left: 12px;
      font-family: var(--ff-display);
      font-weight: 600;
      font-size: var(--fs-body-sm);
      opacity: 0.7;
    }
    .swatch__body {
      padding: var(--sp-3) var(--sp-4);
      background: var(--c-surface-raise);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .swatch__name {
      font-family: var(--ff-display);
      font-weight: 600;
      color: var(--c-text-hi);
      font-size: var(--fs-body);
    }
    .swatch__hex, .swatch__var {
      font-family: var(--ff-mono);
      font-size: var(--fs-micro);
    }
    .swatch__hex { color: var(--c-text-mid); }
    .swatch__var { color: var(--c-text-lo); }

    /* ============================================================
       TYPOGRAPHY DEMO
    ============================================================ */
    .type-row {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: var(--sp-5);
      padding: var(--sp-4) 0;
      border-bottom: 1px solid var(--c-border);
      align-items: baseline;
    }
    .type-row:last-child { border-bottom: none; }
    .type-meta {
      font-family: var(--ff-mono);
      font-size: var(--fs-micro);
      color: var(--c-text-lo);
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-top: 8px;
    }
    .type-meta strong { color: var(--c-text-mid); font-weight: 600; }

    .type--display { font-family: var(--ff-display); font-size: var(--fs-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: var(--c-text-hi); }
    .type--h1      { font-family: var(--ff-display); font-size: var(--fs-h1);      font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; color: var(--c-text-hi); }
    .type--h2      { font-family: var(--ff-display); font-size: var(--fs-h2);      font-weight: 700; line-height: 1.1;  letter-spacing: -0.015em; color: var(--c-text-hi); }
    .type--h3      { font-family: var(--ff-display); font-size: var(--fs-h3);      font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--c-text-hi); }
    .type--h4      { font-family: var(--ff-display); font-size: var(--fs-h4);      font-weight: 600; line-height: 1.3;  color: var(--c-text-hi); text-transform: uppercase; letter-spacing: 0.02em; }
    .type--body-lg { font-family: var(--ff-body);    font-size: var(--fs-body-lg); font-weight: 400; line-height: 1.65; color: var(--c-text-body); max-width: var(--max-prose); }
    .type--body    { font-family: var(--ff-body);    font-size: var(--fs-body);    font-weight: 400; line-height: 1.65; color: var(--c-text-body); max-width: var(--max-prose); }
    .type--body-sm { font-family: var(--ff-body);    font-size: var(--fs-body-sm); font-weight: 400; line-height: 1.55; color: var(--c-text-mid); }
    .type--micro   { font-family: var(--ff-body);    font-size: var(--fs-micro);   font-weight: 700; line-height: 1.4;  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-lo); }
    .type--quote   { font-family: var(--ff-display); font-size: clamp(1.5rem, 2vw + 0.8rem, 2.25rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--c-text-hi); font-style: italic; }

    /* Editorial pull quote treatment */
    .pullquote {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: var(--sp-5);
      padding: var(--sp-6) 0;
      margin: var(--sp-5) 0;
      border-top: 1px solid var(--c-border);
      border-bottom: 1px solid var(--c-border);
    }
    .pullquote__mark {
      font-family: var(--ff-display);
      font-size: 6rem;
      font-weight: 900;
      line-height: 0.5;
      color: var(--c-amber);
      letter-spacing: -0.08em;
      padding-top: 0.3em;
    }
    .pullquote__mark { color: var(--c-hot); }
    .pullquote__body { align-self: center; }
    .pullquote__text {
      font-family: var(--ff-display);
      font-size: clamp(1.5rem, 2vw + 0.8rem, 2.25rem);
      font-weight: 500;
      line-height: 1.3;
      letter-spacing: -0.02em;
      color: var(--c-text-hi);
      font-style: italic;
      margin-bottom: var(--sp-3);
    }
    .pullquote__cite {
      font-family: var(--ff-body);
      font-size: var(--fs-body-sm);
      color: var(--c-text-mid);
      font-style: normal;
    }

    /* ============================================================
       SPACING SCALE VIZ
    ============================================================ */
    .space-row {
      display: grid;
      grid-template-columns: 80px 60px 1fr;
      gap: var(--sp-4);
      align-items: center;
      padding: var(--sp-2) 0;
      font-family: var(--ff-mono);
      font-size: var(--fs-body-sm);
      color: var(--c-text-mid);
    }
    .space-row__name  { color: var(--c-text-hi); }
    .space-row__value { color: var(--c-text-lo); }
    .space-row__bar {
      height: 14px;
      background: var(--c-amber);
      border-radius: 3px;
    }

    /* ============================================================
       BUTTONS — pills only
    ============================================================ */
    .btn {
      --btn-py: 14px;
      --btn-px: 26px;
      --btn-fs: 0.9375rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: var(--sp-2);
      padding: var(--btn-py) var(--btn-px);
      font-family: var(--ff-display);
      font-size: var(--btn-fs);
      font-weight: 600;
      letter-spacing: -0.005em;
      line-height: 1;
      border: 1px solid transparent;
      border-radius: var(--r-pill);
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
      transition:
        background-color var(--dur-fast) var(--ease-out-quart),
        color            var(--dur-fast) var(--ease-out-quart),
        border-color     var(--dur-fast) var(--ease-out-quart),
        transform        var(--dur-fast) var(--ease-out-quart);
      position: relative;
    }
    .btn:active:not([aria-disabled="true"]) { transform: translateY(1px); }
    .btn--sm { --btn-py: 10px; --btn-px: 18px; --btn-fs: 0.8125rem; }
    .btn--lg { --btn-py: 18px; --btn-px: 34px; --btn-fs: 1.0625rem; }

    .btn--primary {
      background: var(--c-hot);
      color: white;
    }
    .btn--primary:hover {
      background: var(--c-hot-lo);
      transform: translateY(-1px);
    }
    .btn--secondary {
      background: transparent;
      color: var(--c-text-hi);
      border-color: var(--c-border-strong);
    }
    .btn--secondary:hover {
      background: var(--c-surface-top);
      border-color: var(--c-amber);
      color: var(--c-text-hi);
      transform: translateY(-1px);
    }
    .btn--ghost {
      background: transparent;
      color: var(--c-text-mid);
    }
    .btn--ghost:hover {
      color: var(--c-text-hi);
      background: var(--c-surface-top);
    }
    .btn--amber {
      background: var(--c-amber);
      color: var(--c-btn-on-accent);
    }
    .btn--amber:hover {
      background: var(--c-cream);
      transform: translateY(-1px);
    }
    .btn[aria-disabled="true"], .btn:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    /* Loading state — spinner color adapts to button variant */
    .btn[data-loading="true"] {
      color: transparent !important;
      pointer-events: none;
    }
    .btn[data-loading="true"]::after {
      content: '';
      position: absolute;
      inset: 0;
      margin: auto;
      width: 16px; height: 16px;
      border-radius: 50%;
      border: 2px solid currentColor;
      border-top-color: transparent;
      animation: sun-rot 700ms linear infinite;
    }
    .btn--primary[data-loading="true"]::after   { color: white; }
    .btn--secondary[data-loading="true"]::after { color: var(--c-text-hi); }
    .btn--ghost[data-loading="true"]::after     { color: var(--c-text-mid); }
    .btn--amber[data-loading="true"]::after     { color: var(--c-btn-on-accent); }

    .btn__icon { width: 18px; height: 18px; display: inline-flex; }
    .btn__icon svg { width: 100%; height: 100%; }

    .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding: var(--sp-5) 0; border-bottom: 1px solid var(--c-border); }
    .btn-row:last-child { border-bottom: none; }
    .btn-row__label { font-family: var(--ff-mono); font-size: var(--fs-micro); color: var(--c-text-lo); min-width: 100px; }

    /* ============================================================
       FORMS
    ============================================================ */
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: var(--sp-5);
    }
    .field { display: flex; flex-direction: column; gap: var(--sp-2); }
    .field__label { font-family: var(--ff-display); font-size: var(--fs-body-sm); font-weight: 600; color: var(--c-text-hi); }
    .field__label--req::after { content: ' *'; color: var(--c-danger); }
    .field__helper { font-size: var(--fs-body-sm); color: var(--c-text-mid); }
    .field__error  { font-size: var(--fs-body-sm); color: var(--c-danger); display: flex; align-items: center; gap: 6px; }
    .field__error svg { width: 14px; height: 14px; flex-shrink: 0; }

    .input, .textarea, .select {
      width: 100%;
      font-family: var(--ff-body);
      font-size: var(--fs-body);
      color: var(--c-text-hi);
      background: var(--c-surface-raise);
      border: 1px solid var(--c-border-strong);
      border-radius: var(--r-md);
      padding: 14px 16px;
      transition: border-color var(--dur-fast), background var(--dur-fast),
                  box-shadow var(--dur-fast);
    }
    .input,
    .textarea,
    .select {
      background: var(--c-surface-raise);
      border-color: var(--c-border-strong);
    }
    .input:hover, .textarea:hover, .select:hover {
      border-color: color-mix(in oklch, var(--c-amber) 60%, var(--c-border-strong));
    }
    .input:focus, .textarea:focus, .select:focus {
      outline: none;
      border-color: var(--c-amber);
      background: var(--c-surface-top);
      box-shadow: 0 0 0 3px oklch(76% 0.16 66 / 0.2);
    }
    .input::placeholder, .textarea::placeholder { color: var(--c-text-lo); }
    .textarea { min-height: 100px; resize: vertical; }

    .input[aria-invalid="true"] {
      border-color: var(--c-danger);
      background: color-mix(in oklch, var(--c-danger) 8%, var(--c-surface-raise));
    }
    .input[aria-invalid="true"]:focus {
      box-shadow: 0 0 0 3px oklch(56% 0.17 32 / 0.25);
    }
    .input:disabled, .textarea:disabled, .select:disabled {
      opacity: 0.5; cursor: not-allowed;
    }

    .select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a8cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      background-size: 16px;
      padding-right: 40px;
    }

    .check {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-3);
      font-family: var(--ff-body);
      font-size: var(--fs-body);
      color: var(--c-text-body);
      cursor: pointer;
    }
    .check input {
      appearance: none;
      width: 22px; height: 22px;
      border: 1.5px solid var(--c-border-strong);
      background: var(--c-surface-raise);
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--dur-fast);
      flex-shrink: 0;
    }
    .check input[type="radio"] { border-radius: 50%; }
    .check input:hover { border-color: var(--c-amber); }
    .check input:checked {
      background: var(--c-amber);
      border-color: var(--c-amber);
    }
    .check input[type="checkbox"]:checked::after {
      content: '';
      width: 12px; height: 12px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c0d2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
    }
    .check input[type="radio"]:checked::after {
      content: '';
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--c-btn-on-accent);
    }

    .toggle {
      --w: 44px; --h: 26px; --p: 3px;
      position: relative;
      width: var(--w); height: var(--h);
      background: var(--c-surface-raise);
      border: 1px solid var(--c-border-strong);
      border-radius: var(--r-pill);
      cursor: pointer;
      transition: background var(--dur-fast), border-color var(--dur-fast);
      flex-shrink: 0;
    }
    .toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
    .toggle::after {
      content: '';
      position: absolute;
      top: var(--p); left: var(--p);
      width: calc(var(--h) - var(--p) * 2 - 2px);
      height: calc(var(--h) - var(--p) * 2 - 2px);
      border-radius: 50%;
      background: var(--c-text-mid);
      transition: transform var(--dur-mid) var(--ease-out-expo),
                  background var(--dur-fast);
    }
    .toggle:has(input:checked) {
      background: var(--c-hot);
      border-color: var(--c-hot);
    }
    .toggle:has(input:checked)::after {
      transform: translateX(calc(var(--w) - var(--h)));
      background: white;
    }

    /* ============================================================
       BADGES
    ============================================================ */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: var(--r-pill);
      font-family: var(--ff-display);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border: 1px solid transparent;
      line-height: 1;
    }
    .badge::before {
      content: '';
      width: 5px; height: 5px; border-radius: 50%;
      background: currentColor;
    }
    .badge--new      { color: var(--c-amber);     border-color: color-mix(in oklch, var(--c-amber) 40%, transparent); background: color-mix(in oklch, var(--c-amber) 10%, transparent); }
    .badge--improved { color: var(--c-info);      border-color: color-mix(in oklch, var(--c-info)  40%, transparent); background: color-mix(in oklch, var(--c-info)  10%, transparent); }
    .badge--fixed    { color: var(--c-success);   border-color: color-mix(in oklch, var(--c-success) 40%, transparent); background: color-mix(in oklch, var(--c-success) 10%, transparent); }
    .badge--pro      { color: var(--c-hot);       border-color: color-mix(in oklch, var(--c-hot) 50%, transparent);    background: color-mix(in oklch, var(--c-hot) 12%, transparent); }
    .badge--free     { color: var(--c-text-mid);  border-color: var(--c-border-strong); background: transparent; }

    /* ============================================================
       CALLOUTS (no side-stripe pattern)
    ============================================================ */
    .callout {
      display: grid;
      grid-template-columns: 40px 1fr;
      gap: var(--sp-4);
      padding: var(--sp-4) var(--sp-5);
      border-radius: var(--r-md);
      border: 1px solid var(--c-border);
      background: var(--c-surface-raise);
    }
    .callout__icon {
      width: 40px; height: 40px;
      display: inline-flex; align-items: center; justify-content: center;
      border-radius: 12px;
      background: var(--c-surface-top);
      flex-shrink: 0;
    }
    .callout__icon svg { width: 20px; height: 20px; }
    .callout__title {
      font-family: var(--ff-display);
      font-weight: 700;
      font-size: var(--fs-body);
      color: var(--c-text-hi);
      margin-bottom: 2px;
    }
    .callout__body { font-size: var(--fs-body-sm); color: var(--c-text-mid); line-height: 1.55; }
    .callout--info    .callout__icon { color: var(--c-info);    background: color-mix(in oklch, var(--c-info) 12%, transparent); }
    .callout--success .callout__icon { color: var(--c-success); background: color-mix(in oklch, var(--c-success) 12%, transparent); }
    .callout--warn    .callout__icon { color: var(--c-warn);    background: color-mix(in oklch, var(--c-warn) 12%, transparent); }
    .callout--danger  .callout__icon { color: var(--c-danger);  background: color-mix(in oklch, var(--c-danger) 12%, transparent); }

    /* ============================================================
       TOASTS
    ============================================================ */
    .toast {
      display: inline-grid;
      grid-template-columns: 20px 1fr auto;
      gap: var(--sp-3);
      align-items: center;
      padding: 12px 14px 12px 16px;
      border-radius: var(--r-md);
      border: 1px solid var(--c-border-strong);
      background: var(--c-surface-top);
      box-shadow: var(--shadow-md);
      min-width: 280px;
      max-width: 420px;
    }
    .toast__icon  { width: 20px; height: 20px; color: var(--c-amber); }
    .toast__body  { font-size: var(--fs-body-sm); color: var(--c-text-hi); line-height: 1.4; }
    .toast__close {
      background: transparent; border: none;
      color: var(--c-text-lo);
      width: 28px; height: 28px;
      border-radius: var(--r-sm);
      display: inline-flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: color var(--dur-fast), background var(--dur-fast);
    }
    .toast__close:hover { color: var(--c-text-hi); background: var(--c-surface-raise); }
    .toast--success .toast__icon { color: var(--c-success); }
    .toast--danger  .toast__icon { color: var(--c-danger); }
    .toast--info    .toast__icon { color: var(--c-info); }

    /* ============================================================
       CARDS
    ============================================================ */
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: var(--sp-5);
    }
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: var(--sp-5);
    }

    .card-feature {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
      padding: var(--sp-5);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      background: var(--c-surface-raise);
      isolation: isolate;
      transform-style: preserve-3d;
      transform:
        perspective(900px)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg))
        translateZ(var(--tilt-z, 0px));
      transition: transform var(--dur-mid) var(--ease-out-quart),
                  border-color var(--dur-mid) var(--ease-out-quart);
    }
    /* Cursor-tracked amber shine layer */
    .card-feature::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(420px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        oklch(76% 0.16 66 / 0.14),
        transparent 55%);
      opacity: 0;
      transition: opacity var(--dur-mid) var(--ease-out-quart);
      pointer-events: none;
      border-radius: inherit;
      z-index: -1;
    }
    .card-feature::after {
      background: radial-gradient(420px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        oklch(56% 0.17 32 / 0.08),
        transparent 55%);
    }
    @media (hover: hover) {
      .card-feature:hover {
        --tilt-z: 6px;
        border-color: var(--c-border-strong);
      }
      .card-feature:hover::after { opacity: 1; }
    }
    @media (prefers-reduced-motion: reduce) {
      .card-feature { transform: none; transition: border-color var(--dur-fast); }
      .card-feature:hover { transform: none; }
    }
    .card-feature__icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      background: var(--c-surface-top);
      display: inline-flex; align-items: center; justify-content: center;
      color: var(--c-amber);
    }
    .card-feature__icon { color: var(--c-hot); }
    .card-feature__icon svg { width: 22px; height: 22px; }
    .card-feature__title {
      font-family: var(--ff-display);
      font-weight: 700;
      font-size: 1.1875rem;
      letter-spacing: -0.01em;
      color: var(--c-text-hi);
    }
    .card-feature__body { font-size: var(--fs-body-sm); color: var(--c-text-mid); line-height: 1.6; }
    .card-feature__cta {
      margin-top: auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--ff-display);
      font-weight: 600;
      font-size: var(--fs-body-sm);
      color: var(--c-amber);
    }
    .card-feature__cta { color: var(--c-hot); }
    .card-feature__cta svg { transition: transform var(--dur-fast); }
    .card-feature__cta:hover svg { transform: translateX(4px); }

    /* Pricing */
    .card-price {
      display: flex;
      flex-direction: column;
      padding: var(--sp-7) var(--sp-5) var(--sp-5);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      background: var(--c-surface-raise);
      position: relative;
    }
    .card-price--featured {
      border-color: var(--c-border-accent);
      background: var(--c-surface-raise);
      box-shadow: var(--shadow-md);
    }
    .card-price--featured .card-price__tier { color: var(--c-hot); }
    .card-price__tier {
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--c-text-lo);
      font-weight: 700;
      margin-bottom: var(--sp-3);
    }
    .card-price__featured-flag {
      position: absolute;
      top: -12px; right: 24px;
      padding: 4px 12px;
      border-radius: var(--r-pill);
      background: var(--c-hot);
      color: white;
      font-family: var(--ff-display);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .card-price__amount { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-2); }
    .card-price__currency { font-family: var(--ff-display); font-size: 1.5rem; color: var(--c-text-mid); font-weight: 600; }
    .card-price__number { font-family: var(--ff-display); font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: var(--c-text-hi); }
    .card-price__period { color: var(--c-text-mid); font-size: var(--fs-body-sm); }
    .card-price__note { color: var(--c-text-mid); font-size: var(--fs-body-sm); margin-bottom: var(--sp-5); line-height: 1.5; }
    .card-price__features {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: var(--sp-3);
      margin-bottom: var(--sp-5);
      padding-top: var(--sp-4);
      border-top: 1px solid var(--c-border);
    }
    .card-price__features li {
      display: grid;
      grid-template-columns: 18px 1fr;
      gap: var(--sp-3);
      font-size: var(--fs-body-sm);
      color: var(--c-text-body);
      line-height: 1.5;
    }
    .card-price__features li::before {
      content: '';
      width: 18px; height: 18px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59b00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
      margin-top: 2px;
    }
    .card-price .btn { width: 100%; margin-top: auto; }

    /* Testimonial */
    .card-quote {
      padding: var(--sp-6);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      background: var(--c-surface-raise);
      display: flex;
      flex-direction: column;
      gap: var(--sp-5);
    }
    .card-quote__mark {
      font-family: var(--ff-display);
      font-size: 3rem;
      font-weight: 900;
      line-height: 0.6;
      color: var(--c-amber);
      letter-spacing: -0.05em;
    }
    .card-quote__mark { color: var(--c-hot); }
    .card-quote__body {
      font-family: var(--ff-body);
      font-size: 1.0625rem;
      line-height: 1.55;
      color: var(--c-text-body);
    }
    .card-quote__attr {
      display: flex;
      align-items: center;
      gap: var(--sp-3);
      padding-top: var(--sp-4);
      border-top: 1px solid var(--c-border);
    }
    .card-quote__avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--c-surface-top);
      display: inline-flex; align-items: center; justify-content: center;
      font-family: var(--ff-display);
      font-weight: 700;
      color: var(--c-amber);
      font-size: var(--fs-body-sm);
      border: 1px solid var(--c-border);
    }
    .card-quote__avatar { color: var(--c-hot); }
    .card-quote__name { font-family: var(--ff-display); font-weight: 600; color: var(--c-text-hi); font-size: var(--fs-body-sm); }
    .card-quote__role { font-size: var(--fs-micro); color: var(--c-text-lo); }

    /* Docs cards */
    .card-docs {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);
      padding: var(--sp-5);
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      background: var(--c-surface-raise);
      transition: all var(--dur-fast);
      text-decoration: none;
      color: inherit;
    }
    .card-docs:hover {
      border-color: var(--c-amber);
      background: var(--c-surface-top);
    }
    .card-docs__kicker {
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-amber);
      font-weight: 700;
    }
    .card-docs__kicker { color: var(--c-hot); }
    .card-docs__title { font-family: var(--ff-display); font-weight: 600; font-size: 1.0625rem; color: var(--c-text-hi); }
    .card-docs__desc { font-size: var(--fs-body-sm); color: var(--c-text-mid); }

    /* ============================================================
       MOBILE-FIRST RAIL (scroll-snap, JS-tracked dots)
    ============================================================ */
    .rail-wrap {
      position: relative;
      margin: 0 calc(var(--sp-7) * -1);
    }
    @media (min-width: 768px) {
      .rail-wrap { margin: 0; }
    }

    /* Fade edges to hint scrollability */
    .rail-wrap::before,
    .rail-wrap::after {
      content: '';
      position: absolute;
      top: 0; bottom: var(--sp-5);
      width: var(--sp-7);
      pointer-events: none;
      z-index: 2;
      opacity: 0;
      transition: opacity var(--dur-fast) var(--ease-out-quart);
    }
    .rail-wrap::before {
      left: 0;
      background: linear-gradient(to right, var(--c-surface-base), transparent);
    }
    .rail-wrap::after {
      right: 0;
      background: linear-gradient(to left, var(--c-surface-base), transparent);
    }
    .rail-wrap[data-can-scroll-left="true"]::before  { opacity: 1; }
    .rail-wrap[data-can-scroll-right="true"]::after { opacity: 1; }

    .rail {
      display: flex;
      gap: var(--sp-4);
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      scroll-padding-left: var(--sp-7);
      padding: var(--sp-2) var(--sp-7) var(--sp-5) var(--sp-7);
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scroll-behavior: smooth;
    }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * {
      flex: 0 0 85%;
      max-width: 320px;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
    @media (min-width: 768px) {
      .rail { padding-left: 0; padding-right: 0; scroll-padding-left: 0; }
      .rail > * { flex: 0 0 300px; max-width: 300px; }
    }

    /* Rail controls — grid keeps dots centered regardless of arrow width */
    .rail-controls {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: var(--sp-3);
      margin-top: var(--sp-3);
      padding: 0 var(--sp-7);
    }
    @media (min-width: 768px) {
      .rail-controls { padding: 0; }
    }
    .rail-arrows { grid-column: 1; justify-self: start; }
    .rail-dots   { grid-column: 2; justify-self: center; }
    .rail-arrows {
      display: none;
      gap: var(--sp-2);
    }
    @media (hover: hover) and (min-width: 768px) {
      .rail-arrows { display: inline-flex; }
    }
    .rail-arrow {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--c-surface-raise);
      border: 1px solid var(--c-border-strong);
      color: var(--c-text-mid);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all var(--dur-fast) var(--ease-out-quart);
    }
    .rail-arrow:hover:not(:disabled) {
      color: var(--c-text-hi);
      border-color: var(--c-amber);
      background: var(--c-surface-top);
    }
    .rail-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
    .rail-arrow svg { width: 18px; height: 18px; }

    .rail-dots {
      display: flex;
      justify-content: center;
      gap: var(--sp-2);
    }
    .rail-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--c-border-strong);
      border: none;
      padding: 0;
      cursor: pointer;
      transition: width var(--dur-mid) var(--ease-out-expo),
                  border-radius var(--dur-mid) var(--ease-out-expo),
                  background var(--dur-fast) var(--ease-out-quart);
    }
    .rail-dot:hover { background: var(--c-text-mid); }
    .rail-dot[aria-current="true"] {
      width: 24px;
      border-radius: var(--r-pill);
      background: var(--c-amber);
    }
    .rail-dot[aria-current="true"] { background: var(--c-hot); }

    /* ============================================================
       STATS
    ============================================================ */
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 0;
      padding: 0;
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      background: var(--c-surface-raise);
      overflow: hidden;
    }
    .stat {
      padding: var(--sp-6) var(--sp-5);
      border-right: 1px solid var(--c-border);
    }
    .stat:last-child { border-right: none; }
    @media (max-width: 640px) {
      .stat { border-right: none; border-bottom: 1px solid var(--c-border); }
      .stat:last-child { border-bottom: none; }
    }
    .stat__value {
      font-family: var(--ff-display);
      font-weight: 800;
      font-size: clamp(2.25rem, 4vw + 0.5rem, 3.25rem);
      line-height: 1;
      color: var(--c-text-hi);
      letter-spacing: -0.03em;
      display: block;
      margin-bottom: var(--sp-2);
      font-feature-settings: 'tnum';
    }
    .stat__value em { color: var(--c-amber); font-style: normal; }
    .stat__value em { color: var(--c-hot); }
    .stat__value small {
      font-size: inherit;
      font-weight: inherit;
      color: var(--c-text-mid);
      vertical-align: baseline;
    }
    .stat__label { font-family: var(--ff-body); font-size: var(--fs-body-sm); color: var(--c-text-mid); }

    /* ============================================================
       CODE BLOCK
    ============================================================ */
    .code-block {
      position: relative;
      background: var(--c-surface-raise);
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      font-family: var(--ff-mono);
      font-size: var(--fs-body-sm);
      line-height: 1.7;
      overflow: hidden;
    }
    .code-block__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: var(--sp-3) var(--sp-4);
      border-bottom: 1px solid var(--c-border);
      background: var(--c-surface-base);
    }
    .code-block__lang {
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-text-lo);
      font-weight: 700;
    }
    .code-block__copy {
      background: transparent;
      border: 1px solid var(--c-border-strong);
      color: var(--c-text-mid);
      font-family: var(--ff-mono);
      font-size: var(--fs-micro);
      padding: 4px 10px;
      border-radius: var(--r-sm);
      cursor: pointer;
      transition: all var(--dur-fast);
    }
    .code-block__copy:hover { color: var(--c-amber); border-color: var(--c-amber); }
    .code-block pre {
      padding: var(--sp-4);
      overflow-x: auto;
      color: var(--c-text-body);
    }
    .tk-com { color: var(--c-text-lo); font-style: italic; }
    .tk-kw  { color: var(--c-amber); }
    .tk-kw { color: var(--c-hot); }
    .tk-str { color: var(--c-cream); }
    .tk-str { color: oklch(50% 0.14 120); }
    .tk-fn  { color: var(--c-info); }
    .tk-num { color: var(--c-hot); }

    /* ============================================================
       ACCORDION — JS-controlled, animated via grid-template-rows
    ============================================================ */
    .acc { display: flex; flex-direction: column; gap: var(--sp-2); }
    .acc__item {
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      background: var(--c-surface-raise);
      overflow: hidden;
      transition: border-color var(--dur-mid) var(--ease-out-quart);
    }
    .acc__item[data-open="true"] { border-color: var(--c-border-strong); }

    .acc__summary {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--sp-4);
      padding: var(--sp-4) var(--sp-5);
      background: transparent;
      border: none;
      text-align: left;
      font-family: var(--ff-display);
      font-size: var(--fs-body);
      font-weight: 600;
      color: var(--c-text-hi);
      cursor: pointer;
      user-select: none;
      transition: background var(--dur-fast) var(--ease-out-quart);
    }
    .acc__summary:hover { background: var(--c-surface-top); }
    .acc__summary:focus-visible { outline: 2px solid var(--c-amber); outline-offset: -2px; }
    .acc__summary:focus-visible { outline-color: var(--c-hot); }
    .acc__summary::after {
      content: '';
      width: 16px; height: 16px;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59b00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/contain no-repeat;
      transition: transform var(--dur-mid) var(--ease-out-expo);
      flex-shrink: 0;
    }
    .acc__item[data-open="true"] .acc__summary::after { transform: rotate(45deg); }

    /* Height animation via grid-template-rows 0fr → 1fr */
    .acc__body-wrap {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows var(--dur-mid) var(--ease-out-expo);
    }
    .acc__item[data-open="true"] .acc__body-wrap {
      grid-template-rows: 1fr;
    }
    .acc__body-inner {
      overflow: hidden;
      min-height: 0;
    }
    .acc__body {
      padding: 0 var(--sp-5) var(--sp-5);
      font-size: var(--fs-body-sm);
      color: var(--c-text-mid);
      line-height: 1.65;
      opacity: 0;
      transform: translateY(-4px);
      transition:
        opacity var(--dur-mid) var(--ease-out-quart) 50ms,
        transform var(--dur-mid) var(--ease-out-quart) 50ms;
    }
    .acc__item[data-open="true"] .acc__body {
      opacity: 1;
      transform: translateY(0);
    }

    /* ============================================================
       NAV PREVIEW
    ============================================================ */
    .site-nav-preview {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: var(--sp-5);
      padding: 10px;
      background: color-mix(in oklch, var(--c-surface-base) 80%, transparent);
      backdrop-filter: blur(12px);
      border: 1px solid var(--c-border);
      border-radius: var(--r-pill);
    }
    .site-nav-preview__brand {
      justify-self: start;
      display: inline-flex;
      align-items: center;
      line-height: 0;
      margin-left: 4px;
    }
    .site-nav-preview__links { justify-self: center; }
    .site-nav-preview > .btn { justify-self: end; }
    .site-nav-preview__logo {
      height: 30px;
      width: auto;
      aspect-ratio: 2236.29 / 570.3;
      display: block;
    }
    .site-nav-preview__logo--dark { display: none; }
    .site-nav-preview__logo--light { display: block; }
    .site-nav-preview__links {
      display: flex;
      gap: var(--sp-5);
      list-style: none;
    }
    .site-nav-preview__links a {
      font-family: var(--ff-display);
      font-weight: 500;
      font-size: var(--fs-body-sm);
      color: var(--c-text-mid);
    }
    .site-nav-preview__links a:hover { color: var(--c-text-hi); }
    @media (max-width: 768px) { .site-nav-preview__links { display: none; } }

    /* ============================================================
       MOBILE STICKY CTA
    ============================================================ */
    .mobile-cta-demo {
      position: relative;
      border: 1px dashed var(--c-border-strong);
      border-radius: var(--r-lg);
      padding: var(--sp-4) var(--sp-4) var(--sp-9);
      background: var(--c-surface-raise);
      overflow: hidden;
    }
    .mobile-cta-demo__bar {
      position: absolute;
      left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
      background: color-mix(in oklch, var(--c-surface-base) 92%, transparent);
      backdrop-filter: blur(12px);
      border: 1px solid var(--c-border-accent);
      border-radius: var(--r-pill);
      padding: 8px 8px 8px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--sp-3);
    }
    .mobile-cta-demo__bar-label {
      font-family: var(--ff-display);
      font-weight: 600;
      color: var(--c-text-hi);
      font-size: var(--fs-body-sm);
    }

    /* ============================================================
       APP COMPONENTS — tabs, breadcrumb, pagination, table, tooltip,
       modal, skeleton, progress, empty state
    ============================================================ */
    /* Tabs */
    .tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--c-border);
      margin-bottom: var(--sp-5);
      overflow-x: auto;
      scrollbar-width: none;
    }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs__tab {
      padding: 12px 18px;
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      font-family: var(--ff-display);
      font-weight: 600;
      font-size: var(--fs-body-sm);
      color: var(--c-text-mid);
      cursor: pointer;
      margin-bottom: -1px;
      transition: color var(--dur-fast), border-color var(--dur-fast);
      white-space: nowrap;
    }
    .tabs__tab:hover { color: var(--c-text-hi); }
    .tabs__tab[aria-selected="true"] {
      color: var(--c-text-hi);
      border-bottom-color: var(--c-amber);
    }
    .tabs__tab[aria-selected="true"] { border-bottom-color: var(--c-hot); }

    /* Breadcrumb */
    .crumb {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: var(--fs-body-sm);
      font-family: var(--ff-body);
      flex-wrap: wrap;
    }
    .crumb a, .crumb span {
      color: var(--c-text-mid);
    }
    .crumb a:hover { color: var(--c-text-hi); }
    .crumb__sep { color: var(--c-text-lo); font-size: 0.875em; }
    .crumb__current { color: var(--c-text-hi); font-weight: 500; }

    /* Pagination */
    .pagi {
      display: flex;
      align-items: center;
      gap: var(--sp-1);
      font-family: var(--ff-display);
    }
    .pagi__btn {
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid var(--c-border);
      color: var(--c-text-mid);
      font-size: var(--fs-body-sm);
      font-weight: 500;
      border-radius: var(--r-sm);
      cursor: pointer;
      transition: all var(--dur-fast);
    }
    .pagi__btn:hover {
      color: var(--c-text-hi);
      border-color: var(--c-border-strong);
      background: var(--c-surface-top);
    }
    .pagi__btn[aria-current="true"] {
      background: var(--c-amber);
      color: var(--c-btn-on-accent);
      border-color: var(--c-amber);
    }
    .pagi__btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .pagi__ellipsis {
      color: var(--c-text-lo);
      padding: 0 6px;
    }

    /* Table */
    .table-wrap {
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      background: var(--c-surface-raise);
      overflow-x: auto;
    }
    .table {
      width: 100%;
      border-collapse: collapse;
      font-size: var(--fs-body-sm);
    }
    .table thead th {
      text-align: left;
      padding: 14px 18px;
      font-family: var(--ff-display);
      font-weight: 700;
      color: var(--c-text-hi);
      font-size: var(--fs-micro);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      border-bottom: 1px solid var(--c-border);
      background: var(--c-surface-base);
      white-space: nowrap;
    }
    .table tbody td {
      padding: 14px 18px;
      border-bottom: 1px solid var(--c-border);
      color: var(--c-text-body);
      vertical-align: middle;
    }
    .table tbody tr:last-child td { border-bottom: none; }
    .table tbody tr { transition: background var(--dur-fast); }
    .table tbody tr:hover { background: var(--c-surface-top); }
    .table__row-primary { color: var(--c-text-hi); font-weight: 500; }
    .table__muted { color: var(--c-text-lo); }

    /* Tooltip */
    .tooltip-demo { position: relative; display: inline-flex; }
    .tooltip-demo[data-tip]::after {
      content: attr(data-tip);
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      padding: 6px 10px;
      background: var(--c-text-hi);
      color: var(--c-surface-base);
      font-family: var(--ff-body);
      font-size: var(--fs-micro);
      font-weight: 500;
      border-radius: var(--r-sm);
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out-quart);
    }
    .tooltip-demo[data-tip]::before {
      content: '';
      position: absolute;
      bottom: calc(100% + 3px);
      left: 50%;
      transform: translateX(-50%);
      width: 0; height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid var(--c-text-hi);
      opacity: 0;
      transition: opacity var(--dur-fast);
    }
    .tooltip-demo:hover::after,
    .tooltip-demo:focus-within::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    .tooltip-demo:hover::before, .tooltip-demo:focus-within::before { opacity: 1; }

    /* Skeleton */
    .skel {
      background: linear-gradient(90deg,
        var(--c-surface-raise) 0%,
        var(--c-surface-top) 50%,
        var(--c-surface-raise) 100%);
      background-size: 200% 100%;
      animation: skel-shimmer 1.6s linear infinite;
      border-radius: var(--r-sm);
    }
    @keyframes skel-shimmer {
      from { background-position: 200% 0; }
      to   { background-position: -200% 0; }
    }
    .skel--line { height: 14px; }
    .skel--title { height: 24px; width: 60%; }
    .skel--avatar { width: 40px; height: 40px; border-radius: 50%; }

    /* Progress bar */
    .progress {
      width: 100%;
      height: 8px;
      background: var(--c-surface-top);
      border-radius: var(--r-pill);
      overflow: hidden;
      border: 1px solid var(--c-border);
    }
    .progress__fill {
      height: 100%;
      background: linear-gradient(90deg, var(--c-hot), var(--c-amber));
      border-radius: var(--r-pill);
      transform-origin: left;
      transition: transform var(--dur-mid) var(--ease-out-quart);
    }

    /* Modal (demo) */
    .modal-demo {
      border: 1px dashed var(--c-border-strong);
      border-radius: var(--r-lg);
      padding: var(--sp-6);
      background: var(--c-surface-base);
      display: flex; align-items: center; justify-content: center;
      min-height: 300px;
    }
    .modal {
      background: var(--c-surface-raise);
      border: 1px solid var(--c-border-strong);
      border-radius: var(--r-lg);
      padding: var(--sp-6);
      max-width: 420px;
      width: 100%;
      box-shadow: var(--shadow-lg);
    }
    .modal__title { font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; color: var(--c-text-hi); margin-bottom: var(--sp-3); }
    .modal__body  { font-size: var(--fs-body-sm); color: var(--c-text-mid); margin-bottom: var(--sp-5); line-height: 1.55; }
    .modal__actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; }

    /* Empty state — uses sun icon */
    .empty {
      text-align: center;
      padding: var(--sp-7) var(--sp-5);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      background: var(--c-surface-raise);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--sp-3);
    }
    .empty__mark {
      width: 64px; height: 64px;
      color: var(--c-border-strong);
      opacity: 0.8;
      margin-bottom: var(--sp-2);
    }
    .empty__title { font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem; color: var(--c-text-hi); }
    .empty__desc { font-size: var(--fs-body-sm); color: var(--c-text-mid); max-width: 40ch; line-height: 1.55; }

    /* Spinner (sun icon) */
    .spinner {
      width: 32px; height: 32px;
      color: var(--c-amber);
      animation: sun-rot 1.4s linear infinite;
    }
    .spinner { color: var(--c-hot); }

    /* ============================================================
       MOTION
    ============================================================ */
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition:
        opacity var(--dur-slow) var(--ease-out-expo),
        transform var(--dur-slow) var(--ease-out-expo);
      transition-delay: calc(var(--i, 0) * 70ms);
    }
    .reveal.is-in { opacity: 1; transform: translateY(0); }

    /* Scroll progress — transform, not width (GPU-composited) */
    .scroll-prog {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 2px;
      z-index: 100;
      pointer-events: none;
    }
    .scroll-prog__bar {
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, var(--c-hot), var(--c-amber));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 80ms linear;
      will-change: transform;
    }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 900px) {
      .shell { grid-template-columns: 1fr; }
      .sidenav {
        position: fixed;
        top: 0; left: 0; right: 0;
        max-height: none;
        padding: var(--sp-3) var(--sp-4);
        z-index: 50;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
      }
      .sidenav__brand  { margin-bottom: 0; margin-right: var(--sp-4); }
      .sidenav__group  { display: none; }
      .sidenav__group--mobile { display: block; margin: 0; }
      .sidenav__group--mobile .sidenav__group-label { display: none; }
      .sidenav__group--mobile .sidenav__list {
        flex-direction: row;
        gap: var(--sp-1);
        overflow-x: auto;
        scrollbar-width: none;
      }
      .sidenav__group--mobile .sidenav__list::-webkit-scrollbar { display: none; }
      .sidenav__link  { white-space: nowrap; padding: 6px 12px; font-size: var(--fs-micro); }
      .sidenav__link[aria-current="true"]::before { display: none; }
      .main { padding: calc(80px + var(--sp-4)) var(--sp-4) var(--sp-10); }
      .page { margin-bottom: var(--sp-8); }
      .type-row { grid-template-columns: 1fr; gap: var(--sp-2); }
    }

    /* Main footer */
    .sg-footer {
      max-width: var(--max-content);
      margin: var(--sp-10) auto 0;
      padding-top: var(--sp-6);
      border-top: 1px solid var(--c-border);
      color: var(--c-text-lo);
      font-size: var(--fs-body-sm);
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .reveal { opacity: 1; transform: none; }
      .scroll-prog { display: none; }
    }

/* ============================================================
   WORDPRESS THEME ADDITIONS — wrappers + overrides specific to
   WP template output that the standalone styleguide does not need.
   ============================================================ */

/* Logo wrapper — used by daima_logo() helper in functions.php */
.daima-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.daima-logo__svg {
  height: var(--logo-h, 30px);
  width: auto;
  aspect-ratio: 2236.29 / 570.3;
  display: block;
}

/* WordPress content wrappers */
.site-main {
  min-height: calc(100vh - 200px);
  position: relative;
  z-index: 1;
}
.entry-content {
  max-width: var(--max-prose);
  margin: var(--sp-7) auto;
  padding: 0 var(--sp-5);
}
.entry-content > * + * { margin-top: var(--sp-5); }
.entry-content h2 { margin-top: var(--sp-7); }
.entry-content h3 { margin-top: var(--sp-6); }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { padding-left: var(--sp-5); }
.entry-content li + li { margin-top: var(--sp-2); }
.entry-content blockquote {
  border-left: 3px solid var(--c-amber);
  padding: var(--sp-3) var(--sp-5);
  color: var(--c-text-mid);
  font-style: italic;
}
.entry-content img { border-radius: var(--r-md); }
.entry-content code {
  font-family: var(--ff-mono);
  font-size: 0.9em;
  color: var(--c-amber);
  background: var(--c-surface-raise);
  padding: 2px 6px;
  border-radius: 4px;
}
.entry-content pre {
  background: var(--c-surface-raise);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  overflow-x: auto;
  font-family: var(--ff-mono);
  font-size: var(--fs-body-sm);
}

/* Page title */
.page-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
  color: var(--c-text-hi);
  max-width: var(--max-prose);
  margin: var(--sp-8) auto var(--sp-4);
  padding: 0 var(--sp-5);
}

/* WP-specific: admin bar adjustment */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}


/* ============================================================
   WORDPRESS-ONLY COMPONENTS
   Site chrome: skip link, sticky header shell, footer grid,
   floating theme toggle, page-level wrappers.
   ============================================================ */

/* Skip link (keyboard accessibility) */
.u-skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-amber);
  color: var(--c-btn-on-accent);
  font-family: var(--ff-display);
  font-weight: 700;
  border-radius: var(--r-pill);
  z-index: 1000;
  text-decoration: none;
}
.u-skip-link:focus-visible {
  left: var(--sp-4);
  outline: 2px solid var(--c-hot);
  outline-offset: 2px;
}

/* Sticky header wrapper around the pill nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--sp-3) var(--sp-4);
  background: color-mix(in oklch, var(--c-surface-base) 75%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-nav-shell {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* WP nav menu <ul> — strip default list styling */
.site-nav-preview__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-preview__links a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  color: var(--c-text-mid);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.site-nav-preview__links a:hover {
  color: var(--c-text-hi);
  background: var(--c-surface-top);
}
.site-nav-preview__links .current-menu-item > a,
.site-nav-preview__links [aria-current="page"] {
  color: var(--c-hot);
  background: var(--c-surface-top);
}

/* Floating theme toggle — bottom-right, unobtrusive */

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-10);
  padding: var(--sp-9) var(--sp-5) var(--sp-7);
  border-top: 1px solid var(--c-border);
  background: color-mix(in oklch, var(--c-surface-base) 95%, var(--c-surface-raise));
}
.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--sp-9);
}
@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-7); }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.site-footer__logo {
  display: inline-flex;
  line-height: 0;
}
.site-footer__logo-img {
  width: auto;
  height: 120px;
  display: block;
}
.site-footer__tagline {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text-hi);
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 18ch;
}
.site-footer__tagline em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-hot);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}
/* Bottom copyright band — sits below the column grid, separated by a hairline.
   Replaces the old .site-footer__legal block that lived inside the brand area. */
.site-footer__bottom {
  max-width: var(--max-content);
  margin: var(--sp-7) auto 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  text-align: center;
  color: var(--c-text-lo);
  font-size: var(--fs-micro);
  letter-spacing: 0.02em;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
.site-footer__col-title {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-lo);
  margin-bottom: var(--sp-3);
}
.site-footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.site-footer__col-list a {
  color: var(--c-text-mid);
  font-size: var(--fs-body-sm);
  font-family: var(--ff-body);
  transition: color var(--dur-fast);
}
.site-footer__col-list a:hover {
  color: var(--c-text-hi);
}
.site-footer__col-empty {
  color: var(--c-text-lo);
}

/* Page-level wrapper */
.page-article {
  padding-bottom: var(--sp-9);
}
.page-header {
  max-width: var(--max-content);
  margin: 0 auto;
  text-align: left;
}

/* Search form */
.search-form {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}
.search-form .input {
  flex: 1;
}

/* Card: docs-style card used by index.php archive fallback */
.card-docs__thumb {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-3);
  aspect-ratio: 16 / 9;
  background: var(--c-surface-top);
}
.card-docs__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pagination list (paginate_links) */
.pagi ul, ul.page-numbers {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0;
  margin: 0;
}
ul.page-numbers li .page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-mid);
  font-family: var(--ff-display);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--dur-fast);
}
ul.page-numbers li .page-numbers:hover {
  color: var(--c-text-hi);
  border-color: var(--c-border-strong);
  background: var(--c-surface-top);
}
ul.page-numbers li .page-numbers.current {
  background: var(--c-amber);
  color: var(--c-btn-on-accent);
  border-color: var(--c-amber);
}

/* ============================================================
   MOBILE DRAWER + HAMBURGER
   Hidden on desktop, visible on mobile.
   ============================================================ */

/* Hamburger button — hidden by default, shown below 768px */
.site-nav-preview__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  justify-self: end;
  grid-column: 3;
}
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  color: var(--c-text-hi);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.nav-burger:hover {
  background: var(--c-surface-top);
  border-color: var(--c-amber);
}
.nav-burger svg { width: 20px; height: 20px; margin: auto; }

@media (max-width: 768px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  /* Demote desktop install button on mobile — drawer carries it */
  .site-nav-preview__actions .btn { display: none; }
}

/* Drawer base — hidden until JS opens */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: block;
}
.mobile-drawer[hidden] { display: none; }

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(5% 0.02 300 / 0.65);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out-quart);
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--c-surface-base);
  border-left: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-out-expo);
  box-shadow: -24px 0 48px oklch(5% 0.05 300 / 0.5);
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.mobile-drawer__brand { display: inline-flex; line-height: 0; }
.mobile-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.mobile-drawer__close:hover {
  color: var(--c-text-hi);
  background: var(--c-surface-top);
  border-color: var(--c-hot);
}
.mobile-drawer__close svg { width: 18px; height: 18px; }

.mobile-drawer__nav { padding: var(--sp-5) 0; flex: 1; }
.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer__list a {
  display: block;
  padding: var(--sp-4) var(--sp-3);
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-text-hi);
  border-radius: var(--r-md);
  letter-spacing: -0.01em;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mobile-drawer__list a:hover,
.mobile-drawer__list a:focus-visible {
  background: var(--c-surface-top);
  color: var(--c-cream);
}
.mobile-drawer__list .current-menu-item > a,
.mobile-drawer__list [aria-current="page"] {
  background: var(--c-surface-top);
  color: var(--c-hot);
}

.mobile-drawer__foot {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.mobile-drawer__foot .btn { width: 100%; }

/* Lock body scroll when drawer is open */
body.is-drawer-open {
  overflow: hidden;
  /* preserve scrollbar gutter so layout doesn't shift */
  padding-right: var(--scrollbar-w, 0);
}

/* Hide floating theme toggle while drawer is open (it has its own inside) */
body.is-drawer-open

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer__panel { transition: none; }
  .mobile-drawer__backdrop { transition: none; }
}

/* The pill nav layout needs to be a 3-col grid so .site-nav-preview__actions sits at right */
.site-nav-preview {
  grid-template-columns: auto 1fr auto;
}

/* ============================================================
   GUTENBERG ALIGNMENTS — alignwide + alignfull
   These let content authors break out of the prose width
   for full-bleed images, banner sections, and wide content.
   Must use CSS grid on .entry-content for the trick to work.
   ============================================================ */

/* Re-architect entry-content as a grid so wide/full alignments break out cleanly */
.entry-content {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--sp-5), 1fr)
    [wide-start] minmax(0, 80px)
    [content-start] min(var(--max-prose), 100% - var(--sp-5) * 2) [content-end]
    minmax(0, 80px) [wide-end]
    minmax(var(--sp-5), 1fr) [full-end];
  max-width: none;
  margin: var(--sp-7) 0;
  padding: 0;
}

.entry-content > * {
  grid-column: content;
}
.entry-content > .alignwide {
  grid-column: wide;
  width: 100%;
  max-width: none;
}
.entry-content > .alignfull {
  grid-column: full;
  width: 100%;
  max-width: none;
}

/* Center alignment within content column */
.entry-content > .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Left/right floats for inline images */
.entry-content > .alignleft {
  float: left;
  margin-right: var(--sp-5);
  margin-bottom: var(--sp-3);
}
.entry-content > .alignright {
  float: right;
  margin-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}

/* Restore expected vertical rhythm after grid */
.entry-content > * + * { margin-top: var(--sp-5); }
.entry-content > h2 { margin-top: var(--sp-7); }
.entry-content > h3 { margin-top: var(--sp-6); }

/* Full-bleed image polish — round less aggressively at full-bleed */
.entry-content > .alignfull img,
.entry-content > .wp-block-image.alignfull img {
  width: 100%;
  border-radius: 0;
}
.entry-content > .alignwide img {
  border-radius: var(--r-md);
}

/* Cover blocks (Gutenberg's "Cover" block) — preserve full-bleed */
.entry-content > .wp-block-cover.alignfull,
.entry-content > .wp-block-cover.alignwide {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Group blocks at full width — useful for branded section bands */
.entry-content > .wp-block-group.alignfull {
  padding: var(--sp-8) var(--sp-5);
}


/* ============================================================
   HOMEPAGE — front-page.php
   Sections: hero (.home-hero/.cover__grid), trust strip, comparison
   rail, affiliate spotlight, pricing pair, final CTA band.
   ============================================================ */

/* HERO — asymmetric cover with rotating gradient sun */
.home-hero {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.cover__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 820px) {
  .cover__grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.cover__col-copy { display: flex; flex-direction: column; gap: var(--sp-4); }
.cover__col-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}
@media (max-width: 820px) {
  .cover__col-visual { max-width: 240px; margin: 0 auto; }
}
.cover__col-visual .sun {
  width: 100%;
  height: auto;
  color: var(--c-hot);
  transform: rotate(var(--cover-rot, 0deg));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .cover__col-visual .sun { transform: none; }
}
.cover__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}
.cover__trust {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-body-sm);
  color: var(--c-text-mid);
}
.cover__trust svg { color: var(--c-amber); flex-shrink: 0; }

/* TRUST STRIP */
.trust-strip {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
  background: color-mix(in oklch, var(--c-surface-base) 96%, var(--c-surface-raise));
}
.trust-strip__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2) var(--sp-7);
  margin: 0;
  padding: 0;
  font-family: var(--ff-display);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--c-text-mid);
  letter-spacing: -0.005em;
}
.trust-strip__list li { position: relative; }
.trust-strip__list li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--sp-7) * -0.5 - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-amber);
  opacity: 0.6;
}
@media (max-width: 640px) {
  .trust-strip__list { gap: var(--sp-2) var(--sp-4); }
  .trust-strip__list li:not(:last-child)::after { display: none; }
}

/* COMPARISON RAIL */
.comparison-band { padding-top: var(--sp-9); }
.price-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  align-items: stretch;
}
@media (max-width: 900px) {
  .price-rail { grid-template-columns: repeat(2, 1fr); }
  .price-rail__item--featured { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .price-rail { grid-template-columns: 1fr; }
}
.price-rail__item {
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-raise);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
@media (hover: hover) {
  .price-rail__item:hover { transform: translateY(-2px); border-color: var(--c-border-strong); }
}
.price-rail__name {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-lo);
  font-weight: 700;
}
.price-rail__price {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text-mid);
  line-height: 1;
}
.price-rail__price span {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--c-text-lo);
  letter-spacing: 0;
}
.price-rail__item--featured {
  border-color: var(--c-border-accent);
  background:
    linear-gradient(180deg, oklch(56% 0.17 32 / 0.10) 0%, transparent 50%),
    var(--c-surface-raise);
}
.price-rail__item--featured .price-rail__name { color: var(--c-amber); }
.price-rail__item--featured .price-rail__price { color: var(--c-cream); }
.price-rail__tag {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  color: var(--c-amber);
  font-weight: 600;
  margin-top: var(--sp-1);
}

/* AFFILIATE SPOTLIGHT */
.spotlight-band { padding-top: var(--sp-9); }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
  margin-top: var(--sp-6);
}
@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}
.spotlight-mock {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface-raise);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.spotlight-mock__head {
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-base);
}
.spotlight-mock__title {
  font-family: var(--ff-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-lo);
}
.spotlight-mock__option {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.spotlight-mock__option:last-child { border-bottom: none; }
.spotlight-mock__option strong {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--c-text-hi);
}
.spotlight-mock__option span {
  font-family: var(--ff-body);
  font-size: var(--fs-body-sm);
  color: var(--c-text-mid);
}
.spotlight-mock__option--active {
  background: color-mix(in oklch, var(--c-hot) 8%, transparent);
}
.spotlight-mock__option--active::before {
  content: '';
  position: absolute;
  top: 50%;
  right: var(--sp-5);
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-hot);
}
.spotlight-mock__option--active::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(var(--sp-5) + 5px);
  transform: translateY(-50%);
  width: 12px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  rotate: -45deg;
  margin-top: -2px;
}

/* PRICING PAIR */
.pricing-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  max-width: 880px;
  margin: var(--sp-6) auto 0;
}
@media (max-width: 720px) {
  .pricing-pair { grid-template-columns: 1fr; }
}
.pricing-foot {
  text-align: center;
  color: var(--c-text-mid);
  font-size: var(--fs-body-sm);
  margin-top: var(--sp-5);
  max-width: var(--max-prose);
  margin-left: auto;
  margin-right: auto;
}

/* FINAL CTA BAND */
.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-9);
  padding: var(--sp-10) 0;
  background:
    radial-gradient(ellipse at 30% 50%, oklch(56% 0.17 32 / 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, oklch(76% 0.16 66 / 0.08) 0%, transparent 60%),
    var(--c-surface-base);
  border-top: 1px solid var(--c-border);
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, oklch(56% 0.17 32 / 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta__title {
  font-family: var(--ff-display);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--c-text-hi);
  margin-bottom: var(--sp-4);
}
.final-cta__title em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-hot);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}
.final-cta__sub {
  font-size: var(--fs-body-lg);
  color: var(--c-text-mid);
  max-width: 50ch;
  margin: 0 auto var(--sp-5);
  line-height: 1.5;
}
.final-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* Container utility — used by every section across the site */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}

/* NOTE: Legacy `.home-features { display: grid; ... }` rule removed 2026-04-26.
   The new homepage at daima-static/index.php uses .home-features as a wrapping
   <section> containing a .container with .sec-head + .home-features__grid.
   The old 3-col grid here was forcing the section into a 3-col layout that
   crammed the inner container into 1/3 width and stacked the feature cards
   into a single column. Grid layout for the cards now lives in index.php's
   inline <style> block as `.home-features__grid`. */


/* ─────────────────────────────────────────────────────────────────────────
   SHARED PAGE PATTERNS — added 2026-04-27
   These were previously inlined on the homepage and pricing page only.
   Moved to main.css so every page (including /vs-recharge/, /vs-loop/, and
   future Features/Changelog pages) renders them with proper spacing.

   Patterns: .container--narrow, .big-head, .pr-section__head, .cta-band.
   ───────────────────────────────────────────────────────────────────────── */

/* NOTE: .container--narrow is referenced in markup across the site but is
   intentionally NOT styled — it stays at the default .container max-width.
   Sections that need narrower content already constrain their inner elements
   (.cta-band__sub uses max-width: 56ch, etc.). Adding a max-width here once
   broke every page that uses the class. Don't add a rule for it.            */

/* ── BIG-HEAD — homepage section opener (numbered, asymmetric) ── */
.big-head {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-top: var(--sp-4);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.big-head__num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 0.85;
  color: var(--c-hot);
  letter-spacing: -0.06em;
  font-feature-settings: 'tnum';
  z-index: 2;
}
.big-head__num-ghost {
  position: absolute;
  top: -1rem;
  left: -2vw;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 0.85;
  color: var(--c-hot);
  opacity: 0.05;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 640px) { .big-head__num-ghost { display: none; } }
.big-head__body {
  z-index: 1;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.big-head__kicker {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-mid);
}
.big-head__title { margin: 0; }
.big-head__lede  { margin: 0; max-width: 64ch; }

/* ── PR-SECTION__HEAD — centered variant for pricing-page-style sections ── */
.pr-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pr-section__kicker {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-hot);
}
.pr-section__title { margin: 0; }
.pr-section__lede  { margin: 0 auto; max-width: 60ch; }

/* ── CTA-BAND — atmospheric closing CTA section ── */
.cta-band {
  position: relative;
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, oklch(56% 0.17 32 / 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 30% 50%, oklch(76% 0.16 66 / 0.05) 0%, transparent 70%),
    var(--c-surface-base);
}
.cta-band__inner  { position: relative; z-index: 1; }
.cta-band__title  { margin: 0; }
.cta-band__sub    { margin: var(--sp-4) auto 0; max-width: 56ch; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}


/* ─────────────────────────────────────────────────────────────────────────
   WIDGET MOCK — added 2026-04-27
   Mirrors the actual Daima app's Subscribe & Save widget. Variant-driven
   via CSS custom properties — JS cycler in main.js writes 4 brand archetypes
   onto the .widget-mock element every 3.5s. Used on the homepage feature
   spotlight and on /features/#widget. Promoted to main.css so any page can
   include the widget by markup alone.
   ───────────────────────────────────────────────────────────────────────── */
.widget-mock {
  /* Variant-driven CSS variables (defaults to Daima brand). JS overrides these. */
  --wm-accent:        #c8391a;
  --wm-accent-soft:   color-mix(in srgb, #c8391a 12%, white);
  --wm-button-radius: 999px;
  --wm-widget-radius: 12px;
  --wm-bg:            #ffffff;
  --wm-text:          #1a1a1a;
  --wm-text-soft:     #6d7175;
  --wm-border-color:  #e1e3e5;
  --wm-border-width:  1px;
  --wm-shadow:        0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  margin-top: auto;
  background: var(--wm-bg);
  border: var(--wm-border-width) solid var(--wm-border-color);
  border-radius: var(--wm-widget-radius);
  box-shadow: var(--wm-shadow);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 11.5px;
  color: var(--wm-text);
  overflow: hidden;
  pointer-events: none;
  position: relative;
  /* Smooth cross-variant transition */
  transition:
    background 600ms ease,
    border 600ms ease,
    border-radius 600ms ease,
    box-shadow 600ms ease,
    color 600ms ease;
}

/* Tabs */
.wm__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--wm-border-color);
}
.wm__tab {
  padding: 10px 8px;
  background: #f6f6f7;
  border: none;
  border-right: 1px solid var(--wm-border-color);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text-soft);
  text-align: center;
  position: relative;
  transition: background 300ms ease, color 300ms ease;
}
.wm__tab:last-child { border-right: none; }
.wm__tab--active {
  background: var(--wm-bg);
  color: var(--wm-text);
}
.wm__tab--active::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--wm-accent);
  transition: background 600ms ease;
}
.wm__tab-label { display: block; font-size: 11px; font-weight: 600; line-height: 1.2; }
.wm__tab-savings {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--wm-accent);
  margin-top: 2px;
  transition: color 600ms ease;
}

/* Panel */
.wm__panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Benefits list */
.wm__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wm__benefits li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wm-text);
  line-height: 1.4;
}
.wm__check {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--wm-accent);
  transition: color 600ms ease;
}

/* Frequency dropdown */
.wm__freq { display: flex; flex-direction: column; gap: 4px; }
.wm__freq-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--wm-text-soft);
}
.wm__freq-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--wm-border-color);
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text);
}
.wm__freq-savings {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  background: var(--wm-accent-soft);
  color: var(--wm-accent);
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  transition: background 600ms ease, color 600ms ease;
}

/* Total line */
.wm__total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.wm__total-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--wm-text);
}
.wm__total-amounts { text-align: right; }
.wm__total-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.wm__total-savings {
  display: inline-block;
  padding: 1px 5px;
  background: var(--wm-accent-soft);
  color: var(--wm-accent);
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 3px;
  transition: background 600ms ease, color 600ms ease;
}
.wm__total-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--wm-text);
  letter-spacing: -0.01em;
}
.wm__total-strike {
  font-size: 10.5px;
  font-weight: 400;
  text-decoration: line-through;
  color: #999;
  margin-top: 2px;
}

/* Trust line */
.wm__trust {
  font-size: 10px;
  color: #888;
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* Add to Cart button — radius and color cycle per variant */
.wm__cta {
  width: 100%;
  padding: 10px;
  background: var(--wm-accent);
  color: white;
  border: none;
  border-radius: var(--wm-button-radius);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  transition: background 600ms ease, border-radius 600ms ease;
}

/* Variant indicator dots — bottom of widget, hints at cycling without being a control */
.wm__dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 0 0 10px;
}
.wm__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wm-border-color);
  transition: background 300ms ease, width 400ms var(--ease-out-expo);
}
.wm__dot--active {
  width: 16px;
  border-radius: 999px;
  background: var(--wm-accent);
}

@media (prefers-reduced-motion: reduce) {
  .widget-mock, .widget-mock * { transition: none !important; }
}


/* ─────────────────────────────────────────────────────────────────────────
   /docs/ — shared layout, sidebar nav, and article typography (added 2026-04-27)
   Used by every doc page that includes header.php + docs-nav.php.
   Layout: 280px sticky sidebar on desktop, stacks above content on mobile.
   ───────────────────────────────────────────────────────────────────────── */

.docs-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem);
  align-items: start;
}
@media (max-width: 880px) {
  .docs-shell { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ── SIDEBAR NAV ── */
.docs-nav {
  position: sticky;
  top: var(--sp-7);
  font-family: var(--ff-display);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-right: 1px solid var(--c-border);
  max-height: calc(100vh - var(--sp-9));
  overflow-y: auto;
  align-self: start;
}
@media (max-width: 880px) {
  .docs-nav {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--c-border);
    padding: 0 0 var(--sp-5);
    max-height: none;
  }
}

.docs-nav__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-display);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--c-text-mid);
  text-decoration: none;
  margin-bottom: var(--sp-5);
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.docs-nav__home:hover { color: var(--c-hot); }
.docs-nav__home-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.docs-nav__home:hover .docs-nav__home-arrow { transform: translateX(-3px); }

.docs-nav__section {
  margin-bottom: var(--sp-5);
}
.docs-nav__section:last-of-type { margin-bottom: 0; }
.docs-nav__section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  margin: 0 0 var(--sp-3);
}
.docs-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav__item { line-height: 1; }
.docs-nav__link {
  display: block;
  padding: 6px 10px 6px 12px;
  font-family: var(--ff-body);
  font-size: var(--fs-body-sm);
  color: var(--c-text-body);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.docs-nav__link:hover {
  color: var(--c-hot);
  border-left-color: oklch(56% 0.17 32 / 0.30);
}
.docs-nav__link--active {
  color: var(--c-hot);
  font-weight: 600;
  border-left-color: var(--c-hot);
}
.docs-nav__link--soon {
  color: var(--c-text-lo);
  font-style: italic;
  cursor: not-allowed;
  pointer-events: none;
}
.docs-nav__link--soon:hover { color: var(--c-text-lo); border-left-color: transparent; }

/* Pro feature pill — small badge next to article labels in the docs sidebar */
.docs-nav__pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--ff-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-hot);
  background: oklch(56% 0.17 32 / 0.10);
  border-radius: 999px;
  vertical-align: 1px;
  font-style: normal;
}


/* ── BREADCRUMB ── */
.docs-crumb {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  margin: 0 0 var(--sp-4);
}
.docs-crumb a {
  color: var(--c-text-mid);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-quart);
}
.docs-crumb a:hover { color: var(--c-hot); }
.docs-crumb-sep {
  margin: 0 8px;
  color: var(--c-text-lo);
  font-weight: 400;
}


/* ── ARTICLE ── */
.docs-article {
  max-width: 72ch;
  font-family: var(--ff-body);
}
.docs-article__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-text-hi);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}
.docs-article__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-hot);
  text-decoration: underline;
  text-decoration-color: var(--c-hot);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}
.docs-article__lede {
  font-family: var(--ff-body);
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  color: var(--c-text-body);
  margin: 0 0 var(--sp-6);
  max-width: 65ch;
}
.docs-article__meta {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-lo);
  margin: 0 0 var(--sp-7);
}

/* Article body typography */
.docs-article h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--c-text-hi);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: clamp(2rem, 4vw, 3rem) 0 var(--sp-4);
  scroll-margin-top: 80px;
}
.docs-article h3 {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--c-text-hi);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: var(--sp-6) 0 var(--sp-3);
  scroll-margin-top: 80px;
}
.docs-article p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text-body);
  margin: 0 0 var(--sp-4);
}
.docs-article p:last-child { margin-bottom: 0; }
.docs-article a {
  color: var(--c-hot);
  font-weight: 500;
}
.docs-article a:hover { color: var(--c-hot-lo); }
.docs-article ul,
.docs-article ol {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text-body);
  padding-left: var(--sp-6);
  margin: 0 0 var(--sp-4);
}
.docs-article li { margin-bottom: var(--sp-2); }
.docs-article li::marker { color: var(--c-hot); }
.docs-article strong { color: var(--c-text-hi); font-weight: 600; }
.docs-article em { font-style: italic; }
.docs-article hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-7) 0;
}

.docs-article code {
  font-family: var(--ff-mono);
  font-size: 0.9em;
  background: var(--c-surface-top);
  padding: 1px 6px;
  border-radius: var(--r-xs);
  color: var(--c-text-body);
  border: 1px solid var(--c-border);
}
.docs-article pre {
  font-family: var(--ff-mono);
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  background: var(--c-surface-top);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  overflow-x: auto;
  margin: 0 0 var(--sp-4);
}
.docs-article pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}


/* ── CALLOUT BOXES ── */
.docs-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
  border-radius: var(--r-md);
  background: var(--c-surface-top);
  border: 1px solid var(--c-border);
}
.docs-callout__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  line-height: 1;
}
.docs-callout__body { font-size: var(--fs-body-sm); line-height: 1.6; color: var(--c-text-body); }
.docs-callout__body p { font-size: inherit; line-height: inherit; margin: 0 0 8px; }
.docs-callout__body p:last-child { margin-bottom: 0; }
.docs-callout__body strong { color: var(--c-text-hi); }

.docs-callout--tip {
  background: oklch(56% 0.17 32 / 0.05);
  border-color: oklch(56% 0.17 32 / 0.20);
}
.docs-callout--tip .docs-callout__icon { background: var(--c-hot); }

.docs-callout--note {
  background: var(--c-surface-top);
  border-color: var(--c-border);
}
.docs-callout--note .docs-callout__icon { background: var(--c-text-mid); }

.docs-callout--warning {
  background: oklch(76% 0.16 66 / 0.10);
  border-color: oklch(76% 0.16 66 / 0.30);
}
.docs-callout--warning .docs-callout__icon { background: oklch(60% 0.18 66); }


/* ── PREV/NEXT ── */
.docs-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}
@media (max-width: 640px) {
  .docs-prevnext { grid-template-columns: 1fr; }
}
.docs-prevnext__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4);
  background: var(--c-surface-raise);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out-quart),
              transform var(--dur-fast) var(--ease-out-quart);
}
.docs-prevnext__link:hover {
  border-color: var(--c-hot);
  transform: translateY(-2px);
}
.docs-prevnext__link--next { text-align: right; }
.docs-prevnext__direction {
  font-family: var(--ff-display);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-text-mid);
}
.docs-prevnext__title {
  font-family: var(--ff-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--c-text-hi);
  letter-spacing: -0.01em;
}
.docs-prevnext__link:hover .docs-prevnext__title { color: var(--c-hot); }
