/* VialVue — site styles */
:root {
  --navy: #1e3a69;
  --navy-deep: #152b50;
  --blue: #3b78f2;
  --blue-brand: #4776ef;
  --blue-tint: #e6edfd;
  --blue-soft: #f0f5ff;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --ink: #142640;
  --body: #3d4b61;
  --muted: #6b7a90;
  --line: #e2e8f1;
  --green: #2f8a6c;
  --amber: #d08a1c;
  --red: #c9463d;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 38, 64, .04), 0 12px 32px -12px rgba(20, 38, 64, .14);
  --shadow-phone: 0 40px 80px -30px rgba(21, 43, 80, .45), 0 18px 36px -18px rgba(21, 43, 80, .3);
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; } }
/* Controls: no tap delay, no text selection or link callout on long-press */
a, button, summary { touch-action: manipulation; }
.btn, .faq summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Side padding grows to clear the notch in landscape (needs viewport-fit=cover) */
.wrap { --gutter: 24px; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
@media (max-width: 560px) { .wrap { --gutter: 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
/* Icon lockup: at 40px tall the icon itself is ~34px, above the brand kit's 24px minimum */
.brand img { display: block; height: 40px; width: auto; }
.wordmark {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
  color: var(--navy);
}
.wordmark .vue {
  --b: var(--blue-brand);
  --t: .075em;   /* bracket stroke */
  --l: .3em;     /* bracket arm length */
  color: var(--blue-brand);
  margin-left: .16em;
  padding: .12em .14em .1em;
  background:
    linear-gradient(var(--b), var(--b)) left top / var(--l) var(--t),
    linear-gradient(var(--b), var(--b)) left top / var(--t) var(--l),
    linear-gradient(var(--b), var(--b)) right top / var(--l) var(--t),
    linear-gradient(var(--b), var(--b)) right top / var(--t) var(--l),
    linear-gradient(var(--b), var(--b)) left bottom / var(--l) var(--t),
    linear-gradient(var(--b), var(--b)) left bottom / var(--t) var(--l),
    linear-gradient(var(--b), var(--b)) right bottom / var(--l) var(--t),
    linear-gradient(var(--b), var(--b)) right bottom / var(--t) var(--l);
  background-repeat: no-repeat;
}
.on-navy .wordmark { color: #fff; }
.on-navy .wordmark .vue { --b: #a9c2fb; color: #a9c2fb; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 252, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); font-weight: 600; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); text-decoration: none; } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--font);
  padding: 15px 24px; border-radius: 14px; border: 0; cursor: pointer; /* rounded rectangle, like the app's buttons */
  transition: transform 160ms var(--ease-out), background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(59, 120, 242, .7); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { text-decoration: none; transform: translateY(-1px); }
  .btn-primary:hover { background: #2f6ae0; }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #c9d4e4; background: #fff; }
}
.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
/* On the navy CTA card the primary button flips to white */
.on-navy .btn-primary { background: #fff; color: var(--navy); box-shadow: 0 14px 28px -14px rgba(11, 18, 32, .6); }
@media (hover: hover) and (pointer: fine) { .on-navy .btn-primary:hover { background: #eaf0fd; } }
/* Press feedback — after the hover rules so it wins while hovered */
.btn:active { transform: scale(0.97); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }
.section-head-wide { max-width: 860px; }
.section-head h2, .section-head p, .spot-copy h2, .story-copy h2, .cta-card h2 { text-wrap: balance; }
.section-head-wide p { max-width: 640px; margin: 0 auto; }
.section-head-wide h2 { font-size: clamp(28px, 3.3vw, 38px); }
.bg-white { background: var(--surface); }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

.phone {
  position: relative;
  aspect-ratio: 660 / 1434;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #2a3b57, #0e1726 60%);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -.035em; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: 19px; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 34px 0 18px; }
.fineprint { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; width: 270px; }
.hero-visual .p-main { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 290px; }
.hero-visual .p-left { left: 0; top: 80px; transform: rotate(-7deg); z-index: 1; opacity: .96; }
.hero-visual .p-right { right: 0; top: 80px; transform: rotate(7deg); z-index: 2; opacity: .96; }

.toast {
  position: absolute; z-index: 5; right: -10px; bottom: 70px; width: 268px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 9px 12px;
  box-shadow: var(--shadow);
  animation: toast-in .7s .5s both var(--ease-out);
}
.toast img { width: 36px; height: 36px; flex: none; }
.toast > div { flex: 1; min-width: 0; }
.toast .t-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; line-height: 1.3; }
.toast .t-title, .toast .t-body { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .t-title { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.toast .t-body { font-size: 12.5px; color: var(--body); line-height: 1.3; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* Stacked: eyebrow and headline, then the phones, then the paragraph and buttons.
   display: contents lets the copy's children be reordered around the phones. */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow, .hero-copy > h1 { order: -1; }
  .hero-copy > .eyebrow { justify-self: center; }
  .hero h1 em { display: block; }  /* "Scan the vial." on its own line */
  .hero-copy > .lede, .hero-copy > .hero-ctas, .hero-copy > .fineprint { order: 1; }
  .hero .lede { margin: 28px auto 0; }
  .hero-ctas { justify-content: center; }
  .hero-visual { height: 680px; max-width: 520px; margin: 28px auto 0; width: 100%; }  /* tall enough for the 290px phone */
  .toast { right: 0; bottom: 20px; text-align: left; }
}
@media (max-width: 560px) {
  .hero { padding: 32px 0 64px; }
  .hero-visual { height: 470px; }
  .hero-visual .phone { width: 180px; border-radius: 32px; padding: 6px; }
  .hero-visual .phone img { border-radius: 27px; }
  .hero-visual .p-main { width: 200px; }
  .hero-visual .p-left { left: -6px; top: 60px; }
  .hero-visual .p-right { right: -6px; top: 60px; }
  .toast { width: calc(100% - 40px); max-width: 268px; bottom: 6px; }
}

.ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue);
}
.ico svg { width: 22px; height: 22px; }
.ico.green { background: #e2f3ec; color: var(--green); }
.ico.amber { background: #fbf0dc; color: var(--amber); }
.ico.navy { background: #e3e9f3; color: var(--navy); }

/* ---------- How it works (scan demo) ---------- */
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #fff; }
.demo-toggle {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: #fff; color: var(--navy); box-shadow: var(--shadow);
  transition: transform 160ms var(--ease-out);
}
.demo-toggle[hidden] { display: none; }
.demo-toggle svg { width: 20px; height: 20px; }
.demo-toggle .i-pause, .demo-toggle.is-playing .i-play { display: none; }
.demo-toggle.is-playing .i-pause { display: block; }
.demo-toggle:active { transform: scale(0.94); }
.demo-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.demo-steps button {
  display: flex; gap: 14px; align-items: flex-start; width: 100%;
  padding: 12px 14px; border: 0; border-radius: var(--radius-sm);
  background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.demo-steps .n {
  flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--line); color: var(--muted);
  transition: background-color 200ms ease, color 200ms ease;
}
.demo-steps strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.3; }
.demo-steps .d { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
/* The section is white, so the active step sits on the page tint */
.demo-steps li.is-active button { background: var(--bg); box-shadow: var(--shadow); }
.demo-steps li.is-active .n { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) { .demo-steps li:not(.is-active) button:hover { background: var(--bg); } }

/* ---------- Cards (support page) ---------- */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) { .feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.feature h3 { font-size: 19px; margin: 20px 0 8px; }
.feature p { font-size: 15.5px; color: var(--muted); }

/* ---------- Feature spotlights ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot + .spot { margin-top: 120px; }
.spot.reverse .spot-visual { order: 2; }
.spot-copy h2 { font-size: clamp(30px, 3.8vw, 42px); margin: 0 0 18px; }
.spot-copy .eyebrow + h2 { margin-top: 14px; }
.spot-copy > p { font-size: 18px; color: var(--body); max-width: 480px; }
.spot-visual {
  position: relative; display: grid; place-items: center;
  background: var(--blue-soft);
  border-radius: 28px; padding: 56px 24px; overflow: hidden;
}
.spot-visual .phone { width: min(300px, 72%); }
/* History: the exported PDF sits over the phone like a printed page */
.spot-visual.has-paper { justify-items: start; padding-left: 9%; }
.paper {
  position: absolute; z-index: 3; right: 4%; bottom: 40px; width: min(72%, 400px);
  background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 50px -24px rgba(21, 43, 80, .5), 0 2px 8px rgba(21, 43, 80, .12);
}
.paper img { display: block; width: 100%; height: auto; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25;
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
/* A medication row, styled like the app's list */
.chip-med { padding: 10px 16px 10px 10px; }
.chip-med .med-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; }
.chip-med .med-ico img { width: auto; height: 32px; }
.chip.tl { top: 44px; left: 24px; }
.chip.br { bottom: 44px; right: 24px; }
/* Chips rise in once their spotlight scrolls into view (.js is set in <head>, so no-JS shows them) */
.js .chip {
  opacity: 0; transform: translateY(8px);
  transition: opacity 500ms var(--ease-out) 150ms, transform 500ms var(--ease-out) 150ms;
}
.js .chip.is-visible { opacity: 1; transform: none; }
.js .ring-fill { stroke-dashoffset: 62; transition: stroke-dashoffset 800ms var(--ease-out) 350ms; }
.js .chip.is-visible .ring-fill { stroke-dashoffset: 0; }
/* Stacked (phones and narrow tablets): heading above the media, explanation below it.
   display: contents lifts the copy's children into the grid so they can be reordered around the visual. */
@media (max-width: 920px) {
  .spot { grid-template-columns: 1fr; gap: 0; }
  .spot + .spot { margin-top: 88px; }
  .spot-copy { display: contents; }
  .spot-copy > .eyebrow, .spot-copy > h2 { order: -1; }
  .spot-copy > h2 { margin-bottom: 24px; }
  .spot .spot-visual, .spot.reverse .spot-visual { order: 0; }
  .spot-copy > p, .spot-copy > ol { order: 1; }
  .spot-copy > p { margin-top: 24px; }
  .spot-copy > p + ol { margin-top: 20px; }
}
@media (max-width: 560px) {
  .spot-visual { padding: 40px 16px; border-radius: 28px; }
  .chip.tl { top: 16px; left: 12px; }
  .chip.br { bottom: 16px; right: 12px; }
  .spot-visual.has-paper { padding-left: 6%; }
  .paper { right: 12px; bottom: 24px; width: 74%; }
}

/* ---------- Privacy, in plain words ---------- */
.privacy-plain { background: var(--navy); color: #c8d5ec; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: start; }
.privacy-plain h2 { color: #fff; font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 14px; text-wrap: balance; }
.privacy-lede { color: #a9b9d6; font-size: 17px; }
.privacy-plain a { color: #b9cdff; text-decoration: underline; text-underline-offset: 3px; }
.privacy-points p { font-size: 17px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.privacy-points p:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
/* A plain list divided by rules, not a stack of cards */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b78f2' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 200ms var(--ease-in-out), scale 160ms var(--ease-out);
}
.faq details[open]:not(.closing) summary::after { transform: rotate(45deg); }
.faq summary:active::after { scale: .88; }
.faq details p { padding: 0 0 22px; color: var(--body); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 112px; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: 28px; padding: 72px 64px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-card h2 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 16px; }
.cta-card p { color: #b8c6df; font-size: 18px; margin-bottom: 32px; max-width: 460px; text-wrap: pretty; }
.cta-art { position: relative; z-index: 1; display: grid; place-items: center; }
.cta-art img { width: 200px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 56px 24px; }
  .cta-card p { margin-left: auto; margin-right: auto; }
  .cta-art { order: -1; }
  .cta-art img { width: 112px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); margin-top: 14px; max-width: 320px; text-wrap: pretty; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--body); }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { color: var(--blue); } }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Legal / text pages ---------- */
.doc { padding: 56px 0 112px; }
.doc-card { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 64px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 46px); margin: 12px 0 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 96px; }
.doc p, .doc li { font-size: 16.5px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc .callout { background: var(--blue-soft); border: 1px solid #d6e2fb; border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 16px; }
.doc .callout.warn { background: #fdf6e9; border-color: #f1dfb8; }
@media (max-width: 640px) { .doc-card { padding: 36px 22px; border-radius: 22px; } .doc { padding: 24px 0 72px; } }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.support-grid .feature h3 { margin-top: 16px; }
@media (max-width: 640px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- Our story ---------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.story-copy h2 { font-size: clamp(32px, 4.2vw, 46px); margin: 0 0 20px; text-wrap: balance; }
.story-copy > p { font-size: 18px; color: var(--body); margin-bottom: 16px; }
.story-stat { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: center; }
.story-stat-num { flex: none; font-size: clamp(40px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1; }
.story-stat figcaption { font-size: 16.5px; color: var(--body); }
@media (max-width: 480px) { .story-stat { flex-direction: column; align-items: flex-start; gap: 10px; } }
sup { font-size: .7em; line-height: 0; margin-left: 2px; }
sup a { font-weight: 700; }
.sources { margin: 20px 0 0; padding-left: 20px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .sources a:hover { color: var(--blue); } }
.sources li { scroll-margin-top: 96px; }
.sources li:target { color: var(--ink); }
.story-card {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: 28px; padding: 48px 40px; color: #c8d5ec; text-align: center;
}
.founders { display: flex; justify-content: center; gap: 28px; margin-bottom: 30px; }
.founder { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.founder { flex: 1 1 0; max-width: 220px; }
.founder strong { color: #fff; font-size: 18px; margin-top: 14px; line-height: 1.3; text-align: center; }
.founder .cred { display: block; font-weight: 600; font-size: 16px; color: #c8d5ec; }
.founder-role { margin-bottom: 12px; }
/* LinkedIn button: real link for Angelo; Santino's is a placeholder until his profile exists.
   margin-top: auto pins both buttons to the bottom, so they line up when the roles wrap differently. */
.founder-link {
  margin-top: auto; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.founder-link svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { a.founder-link[href]:hover { background: rgba(255, 255, 255, .2); text-decoration: none; } }
a.founder-link[href]:active { transform: scale(0.94); }
.founder-link[aria-disabled="true"] { cursor: default; }
.founder small { color: #a9c2fb; font-size: 14px; font-weight: 600; }
.founder-role { color: #c8d5ec; font-size: 13.5px; max-width: 170px; line-height: 1.35; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy);
  font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: 1;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-size: .62em; margin: .55em 0 0 -.04em; }
.story-card .wordmark { font-size: 24px; }
.founders-quote { margin: 0 auto 28px; max-width: 420px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.founders-quote p { font-size: 16px; line-height: 1.6; color: #e4ecfa; font-style: italic; text-wrap: pretty; }
.privacy-points strong { color: #fff; font-weight: 700; }
@media (max-width: 920px) { .story { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) {
  .story-card { padding: 36px 16px; } .avatar { width: 88px; height: 88px; font-size: 34px; } .founders { gap: 12px; }
  .founder strong { font-size: 16px; } .founder .cred { font-size: 14.5px; } .founder-role { font-size: 13px; }
}

.mini-ring { width: 30px; height: 30px; flex: none; }

/* Reduced motion: keep fades and color changes, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { animation-name: fade-in; }
  .btn:active, .btn:hover, .feature:hover, .demo-toggle:active { transform: none; }
  .faq summary::after { transition: none; }
  .js .chip { transform: none; }
  .js .ring-fill { transition: none; stroke-dashoffset: 0; }
}
