/* ── Workspace sales pages ─────────────────────────────────────────────────────────────────────────────────────
   The pages that sell the Sapienic workspace (home, /features, /grants, /plans, /for and /for/<slug>) load this after
   sales.css and put class="ws" on <body>. Same look as the rest of the site: navy ink, the peach / peri / mint / sage
   pastel tints from sales.css and rounded cards; this file adds the workspace layouts and a dark mode.

   Dark mode follows the visitor's system setting (prefers-color-scheme), only on these pages, so the older pages stay
   consistent until they move over. Pastel surfaces are "islands": they keep navy text in both modes, so their contrast
   never changes. Every pairing is checked against WCAG 2.2 (4.5:1 body, 3:1 large text and controls); the numbers are
   next to the tokens. Nothing loops, pulses or blinks. */

body.ws {
  --ws-bg: #ffffff;
  --ws-ink: var(--navy);    /* on white 18.1:1 */
  --ws-ink-2: #1e2a63;
  --ws-muted: #454c6e;      /* on white 8.6:1; on every pastel tint 5.0:1 or more */
  --ws-line: var(--sage-200);
  --ws-panel: var(--sage-50);
  --ws-card: #ffffff;
  background: var(--ws-bg);
  color: var(--ws-ink);
}
@media (prefers-color-scheme: dark) {
  body.ws {
    color-scheme: dark;
    --ws-bg: #0b1030;
    --ws-ink: #f1f3fb;      /* on bg 16.8:1 */
    --ws-ink-2: #dfe3f4;
    --ws-muted: #b9bfd9;    /* on bg 10.2:1, on panel 9.0:1 */
    --ws-line: #283063;
    --ws-panel: #151b45;
    --ws-card: #151b45;
    --ink: var(--ws-ink);
    --ink-2: var(--ws-ink-2);
    --muted: var(--ws-muted);
    --line: var(--ws-line);
    --bg: var(--ws-bg);
    --bg-2: var(--ws-panel);
  }
}
/* Pastel and white surfaces: always light with navy text, in both modes. */
body.ws :is(.ws-island, .ws-icons a, .ws-icons div, .ws-cards > *, .pcard, .ws-hero, .page-hero, .mega, .mobile-panel.open, .site-header.floating, .form-card, .viz, .float-cta, .ws-outcomes > div, .ws-group, .ws-tiers > div, .ws-feature, .ws-detail ul, .tile, .plans-band, .ribbon, .footnotes, .compare-wrap) {
  color-scheme: light;
  --ws-bg: #ffffff; --ws-ink: var(--navy); --ws-ink-2: #1e2a63; --ws-muted: #454c6e; --ws-line: rgba(0, 12, 77, 0.12);
  --ws-panel: var(--sage-50); --ws-card: #ffffff;
  --ink: var(--navy); --ink-2: #1e2a63; --muted: #454c6e; --line: var(--sage-200); --bg: #ffffff; --bg-2: var(--sage-50);
  color: var(--navy);
}

/* ── Shared chrome in dark mode ────────────────────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  body.ws:not(.has-hero) .site-header:not(.floating) { background: var(--ws-bg); border-bottom-color: var(--ws-line); color: var(--ws-ink); }
  body.ws .promo { color: var(--ws-ink); background: var(--ws-bg); }
  body.ws .promo .tag { background: var(--peach-200); color: var(--navy); }
  body.ws .btn-primary, body.ws .btn-dark { background: #ffffff; color: var(--navy); }
  body.ws .btn-primary:hover, body.ws .btn-dark:hover { background: var(--peri-100); }
  body.ws .btn-outline { border-color: var(--ws-ink); color: var(--ws-ink); }
  body.ws .btn-outline:hover { background: var(--ws-ink); color: var(--ws-bg); }
  body.ws .site-header:not(.floating) :is(.menu-btn:hover, .menu-link:hover, .menu-btn[aria-expanded="true"]) { background: rgba(255, 255, 255, 0.1); }
  body.ws .site-header:not(.floating) .burger span, body.ws .site-header:not(.floating) .burger span::before, body.ws .site-header:not(.floating) .burger span::after { background: var(--ws-ink); }
  /* Islands put the light-mode buttons back. */
  body.ws :is(.ws-island, .ws-icons a, .ws-icons div, .ws-cards > *, .pcard, .ws-hero, .page-hero, .mega, .mobile-panel.open, .site-header.floating, .form-card, .ws-feature) .btn-primary { background: var(--navy); color: #fff; }
  body.ws :is(.ws-island, .ws-icons a, .ws-icons div, .ws-cards > *, .pcard, .ws-hero, .page-hero, .mega, .mobile-panel.open, .site-header.floating, .form-card, .ws-feature) .btn-primary:hover { background: var(--brand-700); }
  body.ws :is(.ws-island, .ws-icons a, .ws-icons div, .ws-cards > *, .pcard, .ws-hero, .page-hero, .mega, .mobile-panel.open, .site-header.floating, .form-card, .ws-feature) .btn-outline { border-color: var(--navy); color: var(--navy); }
  body.ws :is(.ws-island, .ws-icons a, .ws-icons div, .ws-cards > *, .pcard, .ws-hero, .page-hero, .mega, .mobile-panel.open, .site-header.floating, .form-card, .ws-feature) .btn-outline:hover { background: var(--navy); color: #fff; }
  body.ws .site-footer { border-top: 1px solid var(--ws-line); }
  body.ws .compare-wrap { background: #fff; border-radius: var(--r); padding: 8px 16px; }
  body.ws .faq-dark .btn-light { color: var(--navy); }
  body.ws .faq-dark { border-top: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); }
  /* Sapi's navy outlines on the dark page: a light sticker edge, as on the footer scene. */
  body.ws .ws-sapi img { filter: drop-shadow(0 0 1.5px rgb(255 255 255 / 0.85)) drop-shadow(0 0 1px rgb(255 255 255 / 0.85)); }
}
body.ws .btn:focus-visible, body.ws a:focus-visible, body.ws button:focus-visible, body.ws summary:focus-visible, body.ws input:focus-visible {
  outline: 3px solid currentColor; outline-offset: 3px;
}

/* ── Type and layout helpers ──────────────────────────────────────────────────────────────────────────────── */
body.ws .lead, body.ws .eyebrow { color: var(--ws-muted); }
.ws-kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--ws-muted); margin: 0 0 12px; }
.ws-section { padding: clamp(56px, 8vw, 112px) 0; }
.ws-section.tight { padding: clamp(32px, 5vw, 64px) 0; }
.ws-section.panel { background: var(--ws-panel); }
.ws-head { max-width: 820px; margin: 0 0 clamp(28px, 4vw, 48px); }
.ws-head h2, .ws-h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.06; }
.ws-head .lead { margin: 16px 0 0; }
.ws-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ws-head.center .lead { margin-left: auto; margin-right: auto; }
.ws-fine { font-size: 13px; color: var(--ws-muted); margin: 14px 0 0; }
.ws-fine a { color: inherit; }
.ws-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

/* ── Hero: a rounded pastel panel, like the rest of the site ───────────────────────────────────────────────── */
.ws-hero { margin: 10px; border-radius: var(--r-lg); background: var(--hero-brand); padding: clamp(48px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); }
.ws-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ws-hero h1 { font-size: clamp(34px, 5vw, 68px); line-height: 1.04; }
.ws-hero .lead { font-size: clamp(16px, 1.4vw, 19px); margin: 22px 0 30px; color: var(--ink-2); max-width: 600px; }
.ws-hero .ws-kicker, .ws-hero .ws-fine { color: #454c6e; }
.ws-hero.compact .wrap { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.ws-hero.peach { background: radial-gradient(120% 140% at 85% 8%, var(--peach-50) 0%, var(--peach-200) 50%, var(--peach-300) 100%); }
.ws-hero.mint { background: radial-gradient(120% 140% at 85% 8%, var(--mint-50) 0%, var(--mint-200) 50%, var(--mint-300) 100%); }
.ws-hero.peri { background: radial-gradient(120% 140% at 85% 8%, var(--peri-50) 0%, var(--peri-200) 50%, var(--peri-300) 100%); }

/* The "everything in one place" card: an app grid like a launcher, plus Sapi's morning brief. Illustration only. */
.ws-launcher { background: #fff; color: var(--navy); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ws-launcher .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--sage-200); font-size: 12px; color: #454c6e; }
.ws-launcher .apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.ws-launcher .apps span { display: grid; justify-items: center; gap: 8px; padding: 12px 4px 10px; font-size: 12px; font-weight: 700; text-align: center; border-radius: 12px; }
.ws-launcher .apps span:nth-child(4n + 1) { background: var(--peri-100); }
.ws-launcher .apps span:nth-child(4n + 2) { background: var(--peach-100); }
.ws-launcher .apps span:nth-child(4n + 3) { background: var(--mint-100); }
.ws-launcher .apps span:nth-child(4n + 4) { background: var(--sage-100); }
.ws-launcher .apps svg { width: 22px; height: 22px; }
.ws-launcher .brief > div { min-width: 0; }
.ws-launcher .brief { margin: 0 16px 16px; padding: 14px 16px; border-radius: 12px; background: var(--sage-50); display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.ws-launcher .brief img { width: 56px; height: auto; }
.ws-launcher .brief b { display: block; font-size: 14px; margin-bottom: 6px; }
.ws-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; }
.ws-checks li { display: block; position: relative; padding-left: 22px; max-width: none; text-wrap: wrap; }
.ws-checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ── Outcomes (money first): three pastel cards ─────────────────────────────────────────────────────────────── */
.ws-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ws-outcomes > div { border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); min-height: 260px; display: flex; flex-direction: column; }
.ws-outcomes > div:nth-child(1) { background: var(--p-console); }
.ws-outcomes > div:nth-child(2) { background: var(--p-autopilot); }
.ws-outcomes > div:nth-child(3) { background: var(--p-snapshot); }
.ws-outcomes .n { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--display); letter-spacing: -0.03em; display: block; margin-bottom: auto; padding-bottom: 28px; }
.ws-outcomes h3 { font-size: 19px; margin-bottom: 8px; }
.ws-outcomes p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── App catalog: one pastel panel per group, white app cards inside ────────────────────────────────────────── */
.ws-groups { display: grid; gap: 20px; }
.ws-group { display: grid; grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.ws-group.peri { background: var(--p-console); }
.ws-group.mint { background: var(--p-autopilot); }
.ws-group.peach { background: var(--p-snapshot); }
.ws-group.files { background: var(--p-files); }
.ws-group.agency { background: var(--p-agency); }
.ws-group > header h3 { font-size: 22px; margin-bottom: 8px; }
.ws-group > header p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ws-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ws-app { background: rgba(255, 255, 255, 0.86); border-radius: 14px; padding: 16px 16px 18px; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; align-content: start; text-decoration: none; color: var(--navy); }
a.ws-app { transition: transform 0.15s; }
a.ws-app:hover { background: #fff; transform: translateY(-2px); }
a.ws-app:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ws-app svg { width: 24px; height: 24px; grid-row: span 2; margin-top: 1px; }
.ws-app b { font-size: 16px; line-height: 1.3; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.ws-app span { font-size: 14px; color: #454c6e; line-height: 1.5; }
.ws-app.soon { background: rgba(255, 255, 255, 0.55); }
/* Status is text, never color alone. */
.ws-soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; border: 1px dashed currentColor; color: #454c6e; line-height: 1.6; white-space: nowrap; }

/* Feature detail rows on /features */
.ws-detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--ws-line); scroll-margin-top: 88px; }
.ws-detail h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.ws-detail .lead { margin: 0 0 18px; }
.ws-detail ul { margin: 0; padding: 6px 22px; list-style: none; border-radius: var(--r); }
.ws-detail:nth-of-type(4n + 1) ul { background: var(--peri-100); }
.ws-detail:nth-of-type(4n + 2) ul { background: var(--peach-100); }
.ws-detail:nth-of-type(4n + 3) ul { background: var(--mint-100); }
.ws-detail:nth-of-type(4n + 4) ul { background: var(--sage-100); }
.ws-detail li { padding: 14px 0; border-bottom: 1px solid rgba(0, 12, 77, 0.12); max-width: none; }
.ws-detail li:last-child { border-bottom: 0; }
.ws-detail li b { font-weight: 700; }
.ws-detail li span { color: #454c6e; font-size: 14px; display: block; font-weight: 400; }
.ws-detail li span.ws-soon { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; }

/* ── Sapi ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.ws-sapi { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ws-sapi figure { margin: 0; }
.ws-sapi img { width: 100%; height: auto; }
.ws-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.ws-tiers > div { border-radius: var(--r); padding: 20px; }
.ws-tiers > div:first-child { background: var(--p-autopilot); }
.ws-tiers > div:last-child { background: var(--p-agents); }
.ws-tiers h3 { font-size: 18px; margin-bottom: 6px; }
.ws-tiers p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── Steps, lists, chips ───────────────────────────────────────────────────────────────────────────────────── */
.ws-steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ws-steps > div { counter-increment: s; padding: 22px; border-radius: var(--r); background: var(--ws-card); border: 1px solid var(--ws-line); }
.ws-steps > div::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--peach-200); color: var(--navy); font: 800 15px/1 var(--display); margin-bottom: 14px; }
.ws-steps h3 { font-size: 18px; margin-bottom: 6px; }
.ws-steps p { margin: 0; color: var(--ws-muted); font-size: 15px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ws-card); border: 1px solid var(--ws-line); color: var(--ws-ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.ws-chips a:hover { background: var(--peri-100); color: var(--navy); border-color: var(--peri-300); }
.ws-list { margin: 0; padding: 6px 22px; list-style: none; border-radius: var(--r); background: var(--ws-card); border: 1px solid var(--ws-line); }
.ws-list li { padding: 14px 0; border-bottom: 1px solid var(--ws-line); max-width: none; }
.ws-list li:last-child { border-bottom: 0; }
.ws-list li b { display: block; margin-bottom: 2px; }
.ws-list li span { color: var(--ws-muted); font-size: 15px; }
.ws-feature { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); }
.ws-feature.peach { background: var(--p-snapshot); }
.ws-feature.mint { background: var(--p-autopilot); }
.ws-feature.peri { background: var(--p-console); }
.ws-feature.files { background: var(--p-files); }
.ws-feature .lead { color: var(--ink-2); }

/* Usage price table */
.ws-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ws-table caption { text-align: left; font-size: 13px; color: var(--ws-muted); padding-bottom: 10px; }
.ws-table th, .ws-table td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--ws-line); vertical-align: top; }
.ws-table thead th { font-size: 13px; color: var(--ws-muted); }
.ws-table td.num, .ws-table th.num { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 700; }
.ws-table td span { display: block; color: var(--ws-muted); font-size: 13px; }
.ws-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* The closing band: navy, like the site's other bands; a hairline keeps it apart from the dark page. */
.ws-band { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.ws-band::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(254, 184, 156, 0.35), transparent); pointer-events: none; }
.ws-band > * { position: relative; }
.ws-band h2 { font-size: clamp(26px, 3.4vw, 44px); }
.ws-band p { color: #c9cee6; margin: 12px 0 0; } /* on navy 11.6:1 */
body.ws .ws-band .btn-primary { background: #fff; color: var(--navy); }
body.ws .ws-band .btn-primary:hover { background: var(--peri-100); }
body.ws .ws-band .btn-outline { border-color: #fff; color: #fff; }
body.ws .ws-band .btn-outline:hover { background: #fff; color: var(--navy); }
@media (prefers-color-scheme: dark) { .ws-band { border: 1px solid var(--ws-line); } }

/* FAQ (details/summary; no script) */
.ws-faq details { border-bottom: 1px solid var(--ws-line); }
.ws-faq details:first-child { border-top: 1px solid var(--ws-line); }
.ws-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; line-height: 1; }
.ws-faq details[open] summary::after { content: "−"; }
.ws-faq details p { margin: 0 0 20px; color: var(--ws-muted); }

/* ── Few words, big type (the Apple-style layouts) ─────────────────────────────────────────────────────────── */
.ws-hero.center .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.ws-hero.center h1 { font-size: clamp(36px, 7vw, 96px); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; }
.ws-hero.center .lead { margin-left: auto; margin-right: auto; font-size: clamp(18px, 1.8vw, 24px); max-width: 34ch; }
.ws-hero.center .actions { justify-content: center; }
.ws-hero.center .ws-launcher { width: 100%; max-width: 760px; text-align: left; }
/* The real workspace, as a screenshot: the desktop Home, or the phone Home on small screens. */
.ws-shot { display: block; width: 100%; max-width: 1100px; margin-top: clamp(36px, 5vw, 64px); }
.ws-shot img { display: block; width: 100%; height: auto; border-radius: clamp(12px, 1.4vw, 20px); box-shadow: 0 1px 2px rgba(20, 24, 60, 0.06), 0 24px 60px -20px rgba(20, 24, 60, 0.28); outline: 1px solid rgba(20, 24, 60, 0.08); }
@media (max-width: 640px) { .ws-shot { max-width: 340px; } .ws-shot img { border-radius: 28px; } }
.ws-big { text-align: center; max-width: 900px; margin: 0 auto clamp(32px, 5vw, 56px); }
.ws-big h2 { text-wrap: balance; font-size: clamp(34px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.ws-big p { font-size: clamp(18px, 1.8vw, 24px); color: var(--ws-muted); margin: 16px auto 0; max-width: 36ch; }
.ws-big .actions { justify-content: center; margin-top: 24px; }
.ws-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ws-icons > * { flex: 0 1 150px; }
.ws-icons a, .ws-icons div { display: grid; justify-items: center; gap: 12px; padding: 26px 10px 22px; border-radius: var(--r); text-align: center; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 15px; }
.ws-icons > :nth-child(4n + 1) { background: var(--peri-100); }
.ws-icons > :nth-child(4n + 2) { background: var(--peach-100); }
.ws-icons > :nth-child(4n + 3) { background: var(--mint-100); }
.ws-icons > :nth-child(4n + 4) { background: var(--sage-100); }
.ws-icons svg { width: 32px; height: 32px; }
.ws-icons a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ws-icons .ws-soon { margin-top: -4px; }
.ws-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ws-cards > * { border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); min-height: 280px; display: flex; flex-direction: column; text-decoration: none; color: var(--navy); }
.ws-cards > :nth-child(3n + 1) { background: var(--p-console); }
.ws-cards > :nth-child(3n + 2) { background: var(--p-snapshot); }
.ws-cards > :nth-child(3n + 3) { background: var(--p-autopilot); }
.ws-cards h3 { text-wrap: balance; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.02em; }
.ws-cards p { margin: 10px 0 0; color: #454c6e; font-size: 17px; }
.ws-cards .link-arrow { margin-top: auto; padding-top: 24px; }
.ws-sapi-big { display: grid; justify-items: center; text-align: center; }
.ws-sapi-big img { width: clamp(140px, 18vw, 220px); height: auto; margin-bottom: 24px; }
/* What Sapi handles: a centered row of soft pills. Plain labels, not links. */
.sapi-does { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.sapi-does li { max-width: none; padding: 10px 18px; border-radius: 999px; background: var(--ws-card); color: var(--ws-ink); font-weight: 700; font-size: clamp(15px, 1.3vw, 17px); box-shadow: 0 1px 0 var(--ws-line), 0 0 0 1px var(--ws-line) inset; }
.ws-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 760px; margin-top: 32px; }
.ws-pair > div { border-radius: var(--r); padding: 24px; color: var(--navy); }
.ws-pair > div:first-child { background: var(--p-autopilot); }
.ws-pair > div:last-child { background: var(--p-agents); }
.ws-pair b { display: block; font-size: 20px; }
.ws-pair span { color: #454c6e; }
@media (max-width: 960px) { .ws-cards { grid-template-columns: minmax(0, 1fr); } .ws-cards > * { min-height: 0; } }
@media (max-width: 560px) { .ws-icons > * { flex-basis: calc(50% - 6px); } .ws-pair { grid-template-columns: minmax(0, 1fr); } }

/* ── App bar (icons across the top) ────────────────────────────────────────────────────────────────────────── */
.appbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 10px; }
.appbar li { width: 84px; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-align: center; max-width: none; }
.appbar a { display: grid; justify-items: center; gap: 8px; color: var(--ws-ink); text-decoration: none; }
.appbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.appbar-i { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: var(--navy); box-shadow: 0 1px 2px rgba(0, 12, 77, 0.08); }
.appbar li:nth-child(4n + 1) .appbar-i { background: var(--peri-100); }
.appbar li:nth-child(4n + 2) .appbar-i { background: var(--peach-100); }
.appbar li:nth-child(4n + 3) .appbar-i { background: var(--mint-100); }
.appbar li:nth-child(4n + 4) .appbar-i { background: var(--sage-100); }
.appbar-i svg { width: 28px; height: 28px; }
.appbar .ws-soon { font-size: 10px; padding: 0 6px; margin-top: -4px; }

/* ── The story: her day, a photo and the real screen per step ──────────────────────────────────────────────── */
.story { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 112px); }
/* A day at the shop, shown the way Apple shows highlights: large photo slides in a sideways row (the next one
   peeks in), each with its caption on the photo, and a pill of times under the row to jump between them. */
.story .ws-big { margin-bottom: clamp(28px, 4vw, 48px); }
.story-track { --pad: max(var(--gutter), calc((100% - var(--max)) / 2)); list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: clamp(14px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.story-track::-webkit-scrollbar { display: none; }
.story-track:focus-visible { outline: 3px solid var(--brand-700, #2f3a8f); outline-offset: -3px; }
.story-slide { flex: 0 0 min(1000px, 84%); max-width: none; scroll-snap-align: start; }
.story-slide figure { margin: 0; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #1b2140; }
.story-slide .photo { width: 100%; height: 100%; object-fit: cover; object-position: var(--x, 50%) 62%; display: block; user-select: none; }
/* Caption on the photo, top left, over a soft dark fade so white text keeps 4.5:1 or better. */
.story-slide figcaption { position: absolute; inset: 0 0 auto 0; padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 44px) clamp(60px, 8vw, 120px); display: grid; gap: 8px; color: #fff; background: linear-gradient(180deg, rgba(8, 10, 24, 0.72) 0%, rgba(8, 10, 24, 0.45) 55%, rgba(8, 10, 24, 0) 100%); pointer-events: none; }
.story-slide figcaption > * { margin: 0; }
.story-time { font: 700 14px/1 var(--display); color: #e7e9f5; }
.story-q { color: #fff; font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; overflow-wrap: normal; }
.story-a { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.4; color: #eef0f8; max-width: 34ch; }
.story-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: clamp(18px, 2.4vw, 28px); position: relative; }
.story-times { display: inline-flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--ws-panel); }
.story-times button { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 999px; font: 700 14px/1 var(--display); color: var(--ws-muted); transition: background 0.3s ease, color 0.3s ease; }
.story-times button { white-space: nowrap; }
.story-times button:hover { color: var(--ws-ink); }
.story-times button[aria-current=true] { background: var(--ws-ink); color: var(--ws-bg); }
.story-times button:focus-visible { outline: 3px solid var(--brand-700, #2f3a8f); outline-offset: 2px; }
.story-arrows { display: flex; gap: 10px; position: absolute; right: var(--gutter); }
@media (max-width: 860px) { .story-arrows { display: none; } }
@media (max-width: 640px) {
  .story-track { --pad: 20px; }
  .story-slide { flex-basis: 86%; }
  .story-slide figure { aspect-ratio: 4 / 5; border-radius: 22px; }
  .story-slide .photo { object-position: var(--x, 50%) 60%; }
  .story-times button { padding: 9px 9px; font-size: 13px; }
  .story-times .ampm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .story-times button { transition: none; } }

.ind-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.ind-photos a { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; }
.ind-photos img { display: block; width: 100%; height: auto; transition: transform 0.4s ease; }
.ind-photos a:hover img { transform: scale(1.02); }
.ind-photos span { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px 40px; font: 800 clamp(18px, 1.8vw, 24px)/1.1 var(--display); background: linear-gradient(rgba(0, 12, 77, 0.72), rgba(0, 12, 77, 0)); }
@media (max-width: 760px) { .ind-photos { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ind-photos img { transition: none; } .ind-photos a:hover img { transform: none; } }

/* ── Responsive ────────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .ws-hero .wrap, .ws-grid-2, .ws-detail, .ws-sapi, .ws-band, .ws-group { grid-template-columns: minmax(0, 1fr); }
  .ws-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-sapi figure { max-width: 160px; }
}
@media (max-width: 680px) {
  .ws-outcomes, .ws-tiers, .ws-steps { grid-template-columns: minmax(0, 1fr); }
  .ws-outcomes > div { min-height: 0; }
  .ws-launcher .apps { gap: 6px; padding: 12px; }
  .ws-launcher .apps span { font-size: 11px; padding: 10px 2px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  a.ws-app { transition: none; }
  a.ws-app:hover { transform: none; }
}

/* ── Highlights: a sideways row of app cards, each a one-line headline over a real screenshot ─────────────────── */
.hl .ws-big { margin-bottom: clamp(24px, 3.5vw, 40px); }
.hl-scroller { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; --pad: max(var(--gutter), calc((100% - var(--max)) / 2)); padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad); }
.hl-scroller::-webkit-scrollbar { display: none; }
.hl-scroller:focus-visible { outline: 3px solid var(--brand-700, #2f3a8f); outline-offset: -3px; }
.hl-scroller ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; }
.hl-card { scroll-snap-align: start; width: clamp(272px, 30vw, 372px); height: clamp(440px, 44vw, 540px); border-radius: var(--r-lg, 28px); color: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.hl-card.peri { background: var(--peri-100); }
.hl-card.peach { background: var(--peach-100); }
.hl-card.mint { background: var(--mint-100); }
.hl-card.sage { background: var(--sage-100); }
.hl-card h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; padding: clamp(24px, 2.4vw, 32px) clamp(24px, 2.4vw, 32px) 0; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.hl-card img { display: block; margin: auto 0 0 clamp(24px, 2.4vw, 32px); width: calc(100% - clamp(24px, 2.4vw, 32px)); height: 66%; object-fit: cover; object-position: left top; border-radius: 14px 0 0 0; box-shadow: 0 10px 30px -12px rgba(20, 24, 60, 0.3); }
.hl-card.tall img { margin: auto auto 0; width: 62%; height: auto; max-height: 72%; object-position: center top; border-radius: 22px 22px 0 0; }
.hl-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.hl-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ws-panel); color: var(--ws-ink); cursor: pointer; }
.hl-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hl-btn:hover:not(:disabled) { background: var(--ws-line); }
.hl-btn:disabled { opacity: 0.4; cursor: default; }
.hl-btn:focus-visible { outline: 3px solid var(--brand-700, #2f3a8f); outline-offset: 2px; }
@media (max-width: 640px) { .hl-scroller { --pad: 20px; } .hl-nav { padding: 0 20px; } }

/* The closing call to action, on a photo: navy fades over the left so the text keeps its contrast. */
.ws-band.photo { min-height: clamp(360px, 40vw, 520px); align-items: end; background: linear-gradient(90deg, rgba(11, 16, 48, 0.92) 0%, rgba(11, 16, 48, 0.78) 38%, rgba(11, 16, 48, 0.15) 75%), url(/assets/img/story/kayak-dusk.jpg) center 40% / cover no-repeat, var(--navy); }
.ws-band.photo::before { content: none; }
.ws-band.photo { grid-template-columns: minmax(0, 1fr); align-content: end; }
.ws-band.photo .actions { justify-content: flex-start; }
.ws-band.photo h2 { font-size: clamp(28px, 4.6vw, 60px); letter-spacing: -0.03em; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.ws-band.photo p { color: #e3e6f5; }
@media (max-width: 760px) { .ws-band.photo { background: linear-gradient(0deg, rgba(11, 16, 48, 0.95) 0%, rgba(11, 16, 48, 0.8) 50%, rgba(11, 16, 48, 0.2) 100%), url(/assets/img/story/kayak-dusk.jpg) 60% center / cover no-repeat, var(--navy); } }

/* Headings wrap at spaces, never mid-word or before a period. */
.ws-cards h3, .ws-big h2 { overflow-wrap: normal; text-wrap: balance; }
