/* Portfolio site styles. No build step: edit and reload.
   Sections: tokens, base, header/footer, page opener, scene component,
   scene visuals (diagram, big numbers, timeline, TODO), next link. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (light, then dark twice: system preference and manual toggle) ---------- */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --ink: #111214;
  --muted: #5d6169;
  --faint: #9a9ea6;
  --past: #868a92;
  --line: #e4e1da;
  --accent: #1d49c9;
  --accent-soft: #e6ecfb;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 12px 32px rgba(17, 18, 20, .07);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-number: "Fraunces", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --max: 1040px;
  --radius: 18px;

  /* Type scale */
  --t-statement: clamp(2.1rem, 1.2rem + 4.6vw, 4.6rem);
  --t-title: clamp(2.6rem, 1.4rem + 6vw, 6rem);
  --t-number: clamp(3.4rem, 2rem + 7vw, 7.5rem);
  --t-caption: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  --t-small: .875rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0f;
    --surface: #17191c;
    --surface-2: #1d2024;
    --ink: #f2f1ed;
    --muted: #a5a9b0;
    --faint: #6c7078;
    --past: #3e4148;
    --line: #2a2d33;
    --accent: #93adff;
    --accent-soft: #1c2540;
    --on-accent: #0d1020;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d0f;
  --surface: #17191c;
  --surface-2: #1d2024;
  --ink: #f2f1ed;
  --muted: #a5a9b0;
  --faint: #6c7078;
  --past: #3e4148;
  --line: #2a2d33;
  --accent: #93adff;
  --accent-soft: #1c2540;
  --on-accent: #0d1020;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
}

/* Per-product accent. Each product page sets a class on <body>. */
.p-ysos { --accent: #2e7590; --accent-soft: #e3f2f6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-ysos { --accent: #5fb6ca; --accent-soft: #13303a; }
}
:root[data-theme="dark"] .p-ysos { --accent: #5fb6ca; --accent-soft: #13303a; }
.p-icd { --accent: #1976d2; --accent-soft: #e3f2fd; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-icd { --accent: #64b5f6; --accent-soft: #0f2a40; }
}
:root[data-theme="dark"] .p-icd { --accent: #64b5f6; --accent-soft: #0f2a40; }
.p-voice { --accent: #a4552f; --accent-soft: #f7ede6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-voice { --accent: #dfa27e; --accent-soft: #2c211b; }
}
:root[data-theme="dark"] .p-voice { --accent: #dfa27e; --accent-soft: #2c211b; }
.p-orthos { --accent: #5a2d8c; --accent-soft: #efe8f8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-orthos { --accent: #b99ae8; --accent-soft: #251b36; }
}
:root[data-theme="dark"] .p-orthos { --accent: #b99ae8; --accent-soft: #251b36; }

.p-lerabbit { --accent: #3f5b45; --accent-soft: #f4eddd; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-lerabbit { --accent: #74a07e; --accent-soft: #23302a; }
}
:root[data-theme="dark"] .p-lerabbit { --accent: #74a07e; --accent-soft: #23302a; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 56px;
}
.brand { font-weight: 650; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { white-space: nowrap;
  color: var(--ink); text-decoration: none; font-size: .9rem;
  padding: 8px 10px; border-radius: 8px;
}
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current] { font-weight: 600; }
@media (max-width: 419px) {
  .brand { font-size: .88rem; }
  .site-nav { gap: 0; }
  .site-nav a { font-size: .8rem; padding: 8px 4px; }
  .site-nav .theme-toggle { width: 30px; margin-right: -6px; }
}
@media (max-width: 359px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 6px; }
  .site-nav { margin-left: -4px; }
}

.theme-toggle {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  display: inline-grid; place-items: center;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: var(--t-small); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a[aria-current] { color: var(--ink); }

/* ---------- Text page (privacy) ---------- */

.prose { max-width: calc(68ch + 2 * var(--gutter)); padding-block: clamp(48px, 9vh, 96px); }
.prose h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.2rem); }
.prose-lede { margin-top: 18px; color: var(--muted); font-size: var(--t-caption); line-height: 1.45; }
.prose section { margin-top: 40px; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.prose ul { margin: 0 0 12px; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Product page opener ---------- */

.opener {
  /* Fills the first screen below the sticky header (56px + 1px border).
     Title and tagline centre in the space above the facts; facts and arrow sit at the bottom. */
  min-height: calc(100vh - 57px); min-height: calc(100svh - 57px);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  text-align: center; gap: 18px;
  padding: 40px var(--gutter) 8px;
}
.opener h1 { margin-top: auto; }
.opener .tagline { margin-bottom: auto; }
.opener + .scene { border-top: 1px solid var(--line); }
.opener .eyebrow { color: var(--accent); font-weight: 600; font-size: var(--t-small); letter-spacing: .02em; }
.opener h1 { font-size: var(--t-title); margin-bottom: 10px; }
.opener .tagline { color: var(--muted); font-size: var(--t-caption); max-width: 60ch; text-wrap: balance; }
.opener .tagline a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.opener .tagline a:hover { color: var(--accent); }
.opener .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; margin-top: 48px; }
.opener .facts div { display: flex; flex-direction: column; gap: 2px; }
.opener .facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.opener .facts dd { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
@media (max-width: 560px) {
  .opener .facts { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: 6px 12px; text-align: left; }
  .opener .facts div { display: contents; }
  .opener .facts dt { text-align: right; }
}
.scroll-cue {
  margin-top: 12px; color: var(--faint); cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  transition: color .2s ease, background-color .2s ease;
}
.scroll-cue svg { width: 22px; height: 22px; transition: transform .25s ease; }
.scroll-cue:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.scroll-cue:hover svg { transform: translateY(3px); }
.scroll-cue:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* On the home page the hero is left-aligned, so the arrow is pinned to its bottom centre. */
.hero { position: relative; }
.hero .scroll-cue { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { transition: none; } .scroll-cue:hover svg { transform: none; } }
#scene-1, #work, #path, #contact { scroll-margin-top: 57px; }

/* ---------- Scene component ----------
   <section class="scene">
     <h2 class="scene-statement">…</h2>
     <div class="scene-visual">…</div>
     <div class="scene-video" data-video="…mp4">  (optional; js/scenes.js builds the player)
     <p class="scene-caption">…</p>
     <p class="scene-source"><a>Source ↗</a></p>   (optional)
   </section> */

.scene {
  min-height: min(92svh, 980px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(24px, 4vh, 44px);
  padding: clamp(64px, 10vh, 120px) var(--gutter);
  text-align: center;
  max-width: var(--max); margin: 0 auto;
}
.scene + .scene { border-top: 1px solid var(--line); }

.scene-statement { font-size: var(--t-statement); max-width: 16ch; }
.scene-statement em { font-style: normal; color: var(--accent); }

.scene-visual { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* Extra breathing room between the statement and its visual. */
.scene-statement + .scene-visual { margin-top: clamp(12px, 3vh, 36px); }

.scene-caption { font-size: var(--t-caption); color: var(--muted); max-width: 76ch; text-wrap: balance; line-height: 1.45; }
.scene-caption strong { color: var(--ink); font-weight: 600; }

.scene-note { font-size: var(--t-small); color: var(--faint); max-width: 76ch; margin-top: -12px; }

.scene-source { font-size: var(--t-small); margin-top: -12px; color: var(--faint); text-wrap: balance; }
.scene-source a { color: var(--faint); }
.scene-source a:hover { color: var(--ink); }

.scene-video { width: 100%; max-width: 720px; }
.scene-video video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }

/* Reveal on scroll: js/scenes.js marks scenes below the first screen as .pending
   and removes it as they come into view. Without JS nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  .scene > * { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .scene > *:nth-child(2) { transition-delay: .08s; }
  .scene > *:nth-child(3) { transition-delay: .16s; }
  .scene > *:nth-child(n+4) { transition-delay: .22s; }
  .scene.pending > * { opacity: 0; transform: translateY(14px); }
}

/* ---------- Visual: TODO placeholder (a visual still to supply) ---------- */

.todo {
  width: 100%; max-width: 560px; aspect-ratio: 16 / 10;
  display: grid; place-content: center; gap: 6px; padding: 20px;
  border: 2px dashed var(--faint); border-radius: var(--radius);
  color: var(--muted); font-size: var(--t-small);
}
.todo.portrait { max-width: 220px; aspect-ratio: 9 / 16; }
.todo b { font-size: 1.1rem; letter-spacing: .12em; color: var(--ink); }

/* ---------- Visual: bubble diagram (audience) ---------- */

.audience { width: 100%; max-width: 560px; }
.audience svg { width: 100%; height: auto; overflow: visible; }
.audience .frame { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; }
.audience .frame-label { fill: var(--faint); font-size: 15px; font-family: var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.audience .group circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.audience .group text { fill: var(--ink); font-size: 17px; font-weight: 600; font-family: var(--font-body); text-anchor: middle; dominant-baseline: middle; }
.audience .group.more circle { fill: none; stroke-dasharray: 4 5; }
.audience .group.more text { fill: var(--muted); font-weight: 500; }
/* Narrowed: the chosen groups solid, the rest faded */
.audience.narrowed .group circle { fill: none; stroke: var(--line); stroke-dasharray: 4 5; }
.audience.narrowed .group text { fill: var(--faint); font-weight: 500; }
.audience.narrowed .group.focus circle { fill: var(--accent); stroke: var(--accent); stroke-dasharray: none; }
.audience.narrowed .group.focus text { fill: var(--on-accent); font-weight: 700; }

.pair { display: grid; gap: 28px; width: 100%; align-items: center; justify-items: center; }
@media (min-width: 760px) { .pair { grid-template-columns: 1.4fr 1fr; } }

/* ---------- Visual: big numbers ---------- */

.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; }
/* Space between a numbers row and the screenshot (or TODO) below it. */
.numbers + .todo, .numbers + img { margin-top: 24px; }
.timeline + .numbers { margin-top: 32px; }
.number { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.number .value { font-family: var(--font-number); font-weight: 500; font-size: var(--t-number); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums; }
.number .value.accent { color: var(--accent); }
.number .label { color: var(--muted); font-size: var(--t-small); max-width: 32ch; text-wrap: balance; }
/* A second, smaller row of supporting numbers under the headline ones. */
.numbers.minor { flex-wrap: nowrap; gap: 24px 56px; margin-top: 12px; }
.numbers.minor .value { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }

/* Progress toward a target (real numbers only) */
.target { width: 100%; max-width: 520px; display: grid; gap: 8px; text-align: left; }
.target .bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.target .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.target .ends { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--t-small); }

/* ---------- Visual: timeline ---------- */

.timeline { width: 100%; max-width: 820px; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; text-align: left; }
.timeline li { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 26px; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); margin-top: 1px; }
.timeline li.key .dot { background: var(--accent); }
.timeline li.after .dot { border-style: dashed; border-color: var(--faint); }
.timeline .when { display: block; font-size: var(--t-small); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.timeline .what { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.timeline li.after .what { color: var(--muted); font-weight: 500; }
/* An unlabelled last step: the story continues (told later on the page). */
.timeline li.more .dot { border-style: dashed; border-color: var(--faint); background: transparent; }
.timeline li:has(+ li.more)::before { background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px); }

@media (min-width: 760px) {
  .timeline { grid-template-columns: repeat(var(--steps, 3), 1fr); }
  .timeline li { grid-template-columns: 1fr; align-content: start; justify-items: center; text-align: center; gap: 12px; padding: 0 12px; }
  .timeline li::before { left: calc(50% + 11px); right: calc(-50% + 11px); top: 10px; bottom: auto; width: auto; height: 2px; }
  .timeline li:has(+ li.more)::before { background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px); }
}

/* ---------- Previous / next product links ---------- */

.pager {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 96px;
  border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; color: var(--ink); display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.pager .label { display: block; color: var(--muted); font-size: var(--t-small); margin-bottom: 8px; }
.next { grid-column: 2; text-align: right; justify-items: end; }
.next .title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -.03em; }
.next .title span { display: inline-block; transition: transform .25s ease; color: var(--accent); }
.next:hover .title span { transform: translateX(6px); }
.prev { grid-column: 1; justify-items: start; }
.prev .title { align-self: center; }
.prev .title { color: var(--muted); font-size: var(--t-small); font-weight: 600; transition: color .2s ease; }
.prev .title span { display: inline-block; transition: transform .25s ease; }
.prev:hover .title { color: var(--ink); }
.prev:hover .title span { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) {
  .next .title span, .prev .title span { transition: none; }
  .next:hover .title span, .prev:hover .title span { transform: none; }
}

/* ======================================================================
   Home page
   ====================================================================== */

.hero {
  min-height: calc(100vh - 57px); min-height: calc(100svh - 57px); max-width: 1100px; margin: 0 auto;
  display: grid; align-content: center; gap: 28px; padding: 64px var(--gutter) 56px;
}
.hero-who { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.hero-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hero-who small { display: block; color: var(--muted); font-weight: 400; font-size: var(--t-small); }
.hero h1 { font-size: clamp(3rem, 1.6rem + 7vw, 7.4rem); line-height: .96; text-wrap: initial; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 .past { color: var(--past); font-size: .5em; letter-spacing: -.02em; margin-bottom: .12em; }
.hero h1 em { font-style: normal; color: var(--accent); }
@media (min-width: 700px) { .hero h1 .m-br { display: none; } }
.hero h1 s { text-decoration-thickness: .06em; }
.hero h1 .cursor {
  display: inline-block; width: .07em; height: .78em; margin-left: .06em;
  background: currentColor; vertical-align: -.04em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
.hero-line { color: var(--muted); font-size: var(--t-caption); max-width: 38ch; margin: 0; }
.hero .actions { justify-content: flex-start; margin-top: 0; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 22px;
  border-radius: 99px; font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-ghost { color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }

.band { padding: clamp(64px, 10vh, 112px) 0; border-top: 1px solid var(--line); }
/* Home section heads: a statement and an optional subtitle, like the product scenes */
.band-head { display: grid; justify-items: center; gap: 16px; text-align: center; margin-bottom: clamp(36px, 6vh, 64px); }
.band-statement { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); max-width: 18ch; }
.band-statement em, .contact h2 em { font-style: normal; color: var(--accent); }
.band-sub { margin: 0; color: var(--muted); font-size: var(--t-caption); max-width: 52ch; text-wrap: balance; line-height: 1.45; }

/* Products, grouped by stage: shipped, in progress, pitched */
.stage + .stage { margin-top: clamp(48px, 8vh, 80px); }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; margin-bottom: 20px; }
.stage-head h3 { font-family: var(--font-head); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; }
.stage-head p { margin: 0; color: var(--muted); flex-basis: 100%; padding-left: 26px; }
@media (min-width: 760px) { .stage-head p { flex-basis: auto; padding-left: 0; } }
.stage-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none; align-self: center;
  border: 2px solid var(--accent);
}
.shipped .stage-dot { background: var(--accent); }
.progress .stage-dot { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }

/* Product cards: a visual panel, a header, then Insight → Decision → Result or Next. */
.cards { display: grid; gap: 20px; }

.card {
  position: relative;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; transition: none; } }

/* ---------- Visual panel, tinted with the product colour ---------- */
.card-visual {
  position: relative; overflow: hidden;
  aspect-ratio: 2 / 1;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-topic { color: var(--accent); }
/* A square store graphic, shown whole on the tint. */
.card-square img {
  position: static; width: calc(100% - 36px); height: auto; max-width: 340px;
  border-radius: 12px; box-shadow: var(--shadow);
}
.card-dark { background: #111; }
.card-cream { background: #F4EDDD; }
.card-contain img { object-fit: contain; padding: 10px; }
.card-audience .audience { position: absolute; inset: 14px 18px; width: auto; margin: 0; max-width: none; }
.card-audience .audience svg { width: 100%; height: 100%; }
.card-audience .audience .frame { stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
.card-audience .audience.narrowed .group:not(.focus) circle { stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
.card-audience .audience.narrowed .group:not(.focus) text,
.card-audience .audience .frame-label { fill: var(--muted); }
.card-bubble { justify-items: end; align-content: center; gap: 8px; padding: 20px; }
.card-bubble .bubble { max-width: 92%; font-size: .98rem; }
.card-bubble .bubble-note { color: var(--muted); }

/* ---------- Header ---------- */
.card-body { display: grid; align-content: start; min-width: 0; padding: 20px 20px 22px; }
.card-name {
  justify-self: start; margin: 0 0 8px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: -.005em;
}
.card-meta { font-size: var(--t-small); color: var(--muted); line-height: 1.4; text-wrap: pretty; }
.card-role { color: var(--ink); font-weight: 500; }
.card-headline {
  margin-top: 10px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -.028em;
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.95rem); line-height: 1.1;
  text-wrap: balance;
}

/* ---------- The chain ---------- */
.card-chain { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.card-step { position: relative; padding: 0 0 12px 26px; }
.card-step:last-child { padding-bottom: 0; }
.card-step::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--accent);
}
.card-step:not(:last-child)::after {
  content: ""; position: absolute; left: 5px; top: 22px; bottom: 4px;
  border-left: 2px solid var(--accent);
}
/* Not shipped yet: the last link is dashed and the last marker is hollow. */
.card-open .card-step:nth-last-child(2)::after { border-left-style: dashed; }
.card-open .card-step:last-child::before { background: var(--surface); }

.card-label {
  display: block; margin-bottom: 2px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.card-step p { margin: 0; font-weight: 500; font-size: .98rem; line-height: 1.38; color: var(--ink); }

/* Result: the big serif number */
.card-result p { display: grid; gap: 3px; }
.card-value {
  font-family: var(--font-number); font-weight: 500;
  font-size: clamp(2.3rem, 1.9rem + 1.2vw, 2.55rem); line-height: 1; letter-spacing: -.02em;
  color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums;
  margin: 2px 0 4px;
}
.card-value-label { font-weight: 600; font-size: .92rem; line-height: 1.3; text-wrap: balance; }
.card-value-more span { white-space: nowrap; }
.card-value-more { font-weight: 400; font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ---------- Link: the whole card is the target ---------- */
.card-more {
  justify-self: start; margin-top: 18px;
  color: var(--accent); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.card-more::after { content: ""; position: absolute; inset: 0; }
.card-more span[aria-hidden] { display: inline-block; transition: transform .25s ease; }
.card:hover .card-more { text-decoration: underline; }
.card:hover .card-more span[aria-hidden] { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-more span[aria-hidden] { transform: none; } }

/* ---------- Tablet and up: visual panel on the left, full card height ---------- */
@media (max-width: 759px) { .card-square { aspect-ratio: auto; padding: 18px 0; } }
@media (min-width: 760px) {
  .card { grid-template-columns: minmax(220px, 30%) 1fr; }
  .card-visual { aspect-ratio: auto; min-height: 260px; }
  .card-body { padding: 26px 30px 28px; }
}

/* Narrow screens and tablets: the label runs into its sentence and the chain runs down. */
@media (max-width: 959px) {
  .card-step:not(.card-result) .card-label { display: inline; margin-right: 6px; }
  .card-step:not(.card-result) p { display: inline; }
  .card-step:not(:last-child)::after { top: 20px; bottom: 0; }
}

/* ---------- Desktop: the chain reads left to right ---------- */
@media (min-width: 960px) {
  .card-chain { grid-template-columns: 1fr 1fr 1fr; column-gap: 26px; margin-top: 22px; }
  .card-shipped .card-chain { grid-template-columns: 1fr 1fr 1.4fr; }
  .card-step { padding: 24px 0 0; }
  .card-step::before { top: 0; }
  .card-step:not(:last-child)::after {
    left: 20px; right: -20px; top: 6px; bottom: auto;
    border-left: 0; border-top: 2px solid var(--accent);
  }
  .card-open .card-step:nth-last-child(2)::after { border-left: 0; border-top-style: dashed; }
}

/* The X-ray file has a light strip on its bottom edge: crop it out. */
.card-dark img { transform: scale(1.03); }

.bubble {
  max-width: 82%; padding: 14px 18px; border-radius: 22px 22px 6px 22px;
  background: var(--accent); color: var(--on-accent); font-size: 1.05rem; font-weight: 500; line-height: 1.35;
}
.bubble-note { font-size: .78rem; color: var(--faint); }

/* Compact career timeline */
.career { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.career li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.career li:last-child { border-bottom: 0; }
.career .years { color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; padding-top: 2px; }
.career .role { font-weight: 600; }
.career .org { display: block; color: var(--muted); font-size: .95rem; font-weight: 400; }
@media (max-width: 420px) { .career li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact { text-align: center; display: grid; justify-items: center; gap: 18px; }
.contact h2 { max-width: 14ch; }

/* ======================================================================
   Scene visuals used from the ICD page on
   ====================================================================== */

/* Store screenshots, each with an optional user quote underneath */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; width: 100%; max-width: 900px; align-items: start; }
.shots .wide { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
@media (min-width: 760px) {
  .shots { grid-template-columns: 1.54fr 1fr 1fr; gap: 18px; }
  .shots .wide { grid-column: auto; max-width: none; }
}
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.shot figcaption { font-size: .92rem; font-style: italic; color: var(--ink); text-align: left; line-height: 1.4; }
.shot figcaption cite { display: block; margin-top: 4px; font-style: normal; font-size: .8rem; color: var(--muted); }

/* Pull quote under a visual */
.quote { max-width: 40ch; font-size: 1.05rem; font-style: italic; color: var(--ink); }
.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: var(--t-small); color: var(--muted); }

/* Two store graphics side by side (ICD 10 and ICD 10 Pro) */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 20px); width: 100%; max-width: 760px; }
.feature-pair img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }
.banner-shot { width: 100%; max-width: 640px; border-radius: 6px; box-shadow: var(--shadow); }
.visual-label { font-size: var(--t-small); color: var(--faint); margin-top: -6px; }

/* A document (email) shown as paper */
.paper { width: 100%; max-width: 560px; max-height: 62vh; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); position: relative; background: #fff; }
.paper img { width: 100%; }
.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, rgba(255,255,255,.95)); }

.review-single .gp-review { max-width: 640px; width: 100%; border-radius: 6px; box-shadow: var(--shadow); text-align: left; }
.email-shot { width: 100%; max-width: 640px; border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.review-single .visual-label { margin-top: 6px; }
.email-quote { display: none; margin: 0; max-width: 640px; width: 100%; padding: 16px 18px; background: #fff; color: #222; border-radius: 8px; box-shadow: var(--shadow); text-align: left; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; }
.email-quote p { margin: 0; }
.email-quote cite { display: block; margin-top: 10px; font-style: normal; color: #666; font-size: 12px; }
@media (max-width: 599px) { .email-quote { display: block; } .email-shot { display: none; } }

/* ======================================================================
   AI Voice Actions page
   ====================================================================== */

/* Scene 1: home → steps → checkout */
.journey { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 760px; }
@media (min-width: 760px) { .journey { flex-direction: row; justify-content: center; gap: 20px; } }
.journey-arrow { color: var(--faint); font-size: 1.4rem; line-height: 1; transform: rotate(90deg); }
@media (min-width: 760px) { .journey-arrow { transform: none; } }
.journey-steps { display: grid; gap: 10px; justify-items: center; width: 100%; max-width: 240px; }
.phone {
  flex: none; width: 150px; aspect-ratio: 9 / 18.5; padding: 16px 10px;
  display: flex; flex-direction: column; gap: 9px; text-align: left;
  border: 2px solid var(--line); border-radius: 26px; background: var(--surface);
  font-size: .68rem; color: var(--muted);
}
.phone i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); }
.ph-title { font-weight: 700; font-size: .82rem; color: var(--ink); }
.ph-search { padding: 6px 8px; border-radius: 9px; background: var(--surface-2); color: var(--faint); }
.ph-chips { display: flex; gap: 5px; }
.ph-chips i { width: 24px; height: 14px; border-radius: 7px; }
.ph-card { display: grid; gap: 5px; }
.ph-card i.img { height: 46px; border-radius: 8px; }
.phone i.short { width: 60%; }
.ph-line { display: flex; justify-content: space-between; gap: 10px; }
.ph-line i { flex: 1; }
.ph-line i.price { flex: none; width: 26px; }
.ph-line.total { padding-top: 8px; border-top: 1px solid var(--line); }
.ph-line.total i { background: var(--faint); opacity: .5; }
.ph-button { margin-top: auto; padding: 8px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-align: center; }
.way-label { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.taps { list-style: none; padding: 0; display: grid; gap: 6px; counter-reset: tap; width: 100%; max-width: 240px; }
.taps li { counter-increment: tap; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--muted); background: var(--surface); text-align: left; }
.taps li::before { content: counter(tap); flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: .72rem; font-weight: 600; color: var(--faint); }

/* Scene 3: example requests as chat bubbles */
.requests { list-style: none; padding: 0; display: grid; justify-items: end; gap: 10px; width: 100%; max-width: 560px; }
.requests .bubble { font-size: .98rem; text-align: left; background: var(--surface-2); color: var(--ink); font-weight: 400; }
.domains { list-style: none; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 860px; }
@media (min-width: 760px) { .domains { grid-template-columns: repeat(3, 1fr); } }
.domains li { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.domain-name { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.domains .bubble { max-width: 100%; font-size: .98rem; font-weight: 400; background: var(--surface-2); color: var(--ink); }
.requests .bubble.echo { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.requests .bubble:nth-child(even) { margin-right: 8%; }
@media (min-width: 760px) {
  .requests { max-width: 900px; grid-template-columns: 1fr 1fr; justify-items: stretch; align-items: start; gap: 12px 16px; }
  .requests .bubble { max-width: none; }
  .requests .bubble:nth-child(even) { margin-right: 0; margin-top: 18px; }
}
.sources { font-size: var(--t-small); color: var(--muted); width: 100%; max-width: 640px; text-align: left; }
.sources summary { cursor: pointer; text-align: center; color: var(--faint); list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "↓"; display: inline-block; margin-left: .3em; }
.sources[open] summary::after { content: " ↑"; }
.sources summary:hover { color: var(--ink); }
.sources dl { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sources dt { font-weight: 600; color: var(--ink); }
.sources dd { margin: 2px 0 0; }

/* Scene 4: what the AI may do on its own, and what needs the user */
.guards { list-style: none; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 520px; }
.guards li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.guard-what { color: var(--ink); font-weight: 500; }
.guard-rule { flex: none; font-size: var(--t-small); font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--muted); background: var(--surface-2); }
.guards .strict .guard-rule { color: var(--on-accent); background: var(--accent); }

/* ======================================================================
   OrthoS page
   ====================================================================== */

/* Scene 1: the old roadmap next to today's */
.roadmaps { display: grid; gap: 16px; width: 100%; max-width: 760px; }
@media (min-width: 760px) { .roadmaps { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.roadmap { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.roadmap-when { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.roadmap ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.roadmap li { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.roadmap.before { opacity: .75; }
.roadmap.before li.key { text-decoration: line-through; text-decoration-color: var(--faint); }
.roadmap.after { border-color: var(--accent); }
.roadmap.after li.key { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Scene 2: five problems and an illustrative 1-star review */
.problems { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; }
.problems li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .95rem; }
.problems li.hot { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.mock-review { display: grid; gap: 6px; width: 100%; max-width: 420px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--faint); text-align: left; }
.mock-stars { color: #e5a00d; letter-spacing: 2px; }
.mock-stars .off { color: var(--line); }
.mock-text { color: var(--ink); font-style: italic; }

/* Scene 3: market map */
.market-map { width: 100%; max-width: 560px; }
.market-map svg { width: 100%; height: auto; overflow: visible; }
.market-map .axis { stroke: var(--faint); stroke-width: 2; }
.market-map .axis-label { fill: var(--faint); font-size: 15px; font-family: var(--font-body); }
.market-map .zone rect { fill: var(--surface-2); stroke: var(--line); }
.market-map .zone text { fill: var(--muted); font-size: 15px; font-weight: 500; font-family: var(--font-body); text-anchor: middle; }
.market-map .us circle { fill: var(--accent); }
.market-map .us text { fill: var(--on-accent); font-size: 17px; font-weight: 700; font-family: var(--font-body); text-anchor: middle; }
.number .label a { color: inherit; }
.numbers.three { gap: 28px 48px; }
@media (min-width: 760px) { .numbers.three { flex-wrap: nowrap; } .numbers.three .value { font-size: clamp(3rem, 1.6rem + 3.6vw, 5rem); } }

/* Scene 5: two stages of the same flow */
.flow { list-style: none; padding: 0; display: grid; gap: 22px; }
@media (min-width: 760px) { .flow { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
.p-orthos .flow { width: 100%; max-width: 720px; }
.left-out { display: grid; gap: 10px; justify-items: center; margin-top: 16px; }
.left-out-label { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.left-out ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.left-out li { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--faint); font-size: var(--t-small); text-decoration: line-through; text-decoration-color: var(--faint); }
.flow li { position: relative; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.flow li.key { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.flow li + li::before { content: "↓"; position: absolute; left: 50%; top: -20px; transform: translateX(-50%); color: var(--faint); }
@media (min-width: 760px) { .flow li + li::before { content: "→"; left: -21px; top: 50%; transform: translateY(-50%); } }

/* Scene 6: a wide screenshot */


/* ---------- LeRabbit ---------- */

.venn { width: 100%; max-width: 520px; }
.venn svg { width: 100%; height: auto; overflow: visible; }
.venn .set { fill: var(--accent); fill-opacity: .12; stroke: var(--accent); stroke-opacity: .5; stroke-width: 2; }
.venn .set-label { fill: var(--muted); font-size: 17px; font-weight: 500; font-family: var(--font-body); text-anchor: middle; }
.venn .us { fill: var(--accent); font-size: 19px; font-weight: 700; font-family: var(--font-body); text-anchor: middle; }

.landing-shot { width: 100%; max-width: 820px; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }

.iterations { list-style: none; padding: 0; display: grid; gap: 14px; width: 100%; max-width: 820px; }
.iterations li { display: grid; gap: 12px; justify-items: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; }
.iterations li.now { border-color: var(--accent); }
.iter-step { font-weight: 600; color: var(--ink); }
.iter-verdict { font-size: var(--t-small); color: var(--faint); }
.iterations li.now .iter-verdict { color: var(--on-accent); background: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.pages { display: flex; gap: 10px; }
.page { display: grid; gap: 7px; align-content: start; width: 64px; height: 84px; padding: 12px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); }
.page i, .key-n, .key-o { display: block; height: 8px; border-radius: 4px; }
.page i.n, .key-n { background: var(--accent); }
.page i.o, .key-o { background: var(--faint); opacity: .65; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page i.o, :root:not([data-theme="light"]) .key-o { background: var(--muted); opacity: .6; }
}
:root[data-theme="dark"] .page i.o, :root[data-theme="dark"] .key-o { background: var(--muted); opacity: .6; }
.key-n, .key-o { display: inline-block; width: 18px; margin: 0 6px 0 2px; vertical-align: middle; }
.key-o { margin-left: 12px; }
@media (min-width: 760px) {
  .iterations { grid-template-columns: repeat(3, 1fr); }
  .iterations li { align-content: start; }
}

.formula { display: grid; justify-items: center; gap: 14px; width: 100%; max-width: 680px; }
.formula-name { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.formula-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.formula .cond { padding: 10px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.formula .op { font-size: var(--t-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 760px) { .formula-top { flex-direction: row; } }

.scope { display: grid; gap: 16px; width: 100%; max-width: 760px; }
.scope-col { display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.scope-when { font-size: var(--t-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.scope ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.scope li { padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.scope .mvp { border-color: var(--accent); }
.scope .mvp li { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.scope .later { opacity: .8; }
.scope .later li.pay { background: none; border: 1px dashed var(--line); }
@media (min-width: 760px) { .scope { grid-template-columns: 1fr 1fr; } }

/* AppBrain proof cards (ICD Apps) */
.appbrain { display: grid; gap: 16px; width: 100%; max-width: 640px; margin-top: 24px; }
.ab-card { margin: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px 10px; text-align: left; }
.ab-card figcaption { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #e6e6e6; margin-bottom: 8px; }
.ab-card figcaption img { width: 36px; height: 36px; border-radius: 8px; }
.ab-card figcaption span { display: flex; flex-direction: column; color: #666; font-size: .8rem; line-height: 1.3; }
.ab-card figcaption b { color: #111; font-size: 1rem; }
.ab-card a, .ab-card a img { display: block; width: 100%; height: auto; }
.appbrain .visual-label { margin-top: 0; text-align: center; }

