/* Biolink Health — site stylesheet, built on the Biolink Health design system tokens.
   One file for every page; no build step. Fonts are self-hosted (OFL); icons are inline SVG (Lucide, ISC). */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/InstrumentSans-Italic-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --blue-25: #f7fafd; --blue-50: #eff5fa; --blue-100: #e1ecf6; --blue-200: #c4d9ec; --blue-300: #9bbedd;
  --blue-400: #76a4ce; --blue-500: #538cbe; --blue-600: #3c74a8; --blue-700: #2d5d8a; --blue-800: #22476a; --blue-900: #17314a;
  --neutral-25: #fafbfc; --neutral-50: #f5f7f9; --neutral-100: #edf0f3; --neutral-200: #dfe4e9; --neutral-300: #c9d0d8;
  --neutral-400: #a3adb8; --neutral-500: #7a8592; --neutral-600: #5b6672; --neutral-700: #434c57; --neutral-800: #2a323c; --neutral-900: #0d1520;
  --green-50: #ebf5ee; --green-200: #b9dcc5; --green-700: #2a6e45;
  --amber-50: #fcf4e4; --amber-200: #f1d9a6; --amber-700: #8a5a00;
  --red-50: #fbedeb; --red-200: #f1c2bc; --red-700: #a4281e;

  --text-primary: var(--neutral-900); --text-secondary: var(--neutral-600); --text-tertiary: var(--neutral-500);
  --text-link: var(--blue-700); --text-brand: var(--blue-700);
  --surface-subtle: var(--neutral-50);
  --border-subtle: var(--neutral-100); --border-default: var(--neutral-200); --border-strong: var(--neutral-300);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px; --container-reading: 720px; --gutter: 24px; --header-h: 68px; --section: 112px;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;
  --shadow-sm: 0 1px 3px rgba(13, 21, 32, .06), 0 1px 2px rgba(13, 21, 32, .04);
  --shadow-popover: 0 8px 24px rgba(13, 21, 32, .10), 0 1px 3px rgba(13, 21, 32, .06);
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text-primary);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--blue-100); }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--text-primary); text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 1em; }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
.icon { width: 20px; height: 20px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--neutral-900); color: #fff; border-radius: var(--radius-md); font-size: 15px; }
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; line-height: 1.55; }

/* ---------- Type ---------- */
.eyebrow { font: 600 14px/20px var(--font-sans); color: var(--text-brand); margin-bottom: 12px; }
.display-1 { font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; }
.display-2 { font-size: 44px; line-height: 1.14; letter-spacing: -0.02em; }
.h1 { font-size: 32px; line-height: 1.25; letter-spacing: -0.015em; }
.h2 { font-size: 24px; line-height: 1.33; letter-spacing: -0.01em; }
.h3 { font-size: 19px; line-height: 1.37; letter-spacing: -0.005em; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-secondary); text-wrap: pretty; }
.lead + .lead { margin-top: 12px; }
.body { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.caption { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.mono { font: 500 14px/20px var(--font-mono); color: var(--text-secondary); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--reading { max-width: calc(var(--container-reading) + var(--gutter) * 2); }
.section { padding-top: var(--section); }
.band { margin-top: var(--section); background: var(--surface-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.band > .container { padding-top: 96px; padding-bottom: 96px; }
.intro { max-width: 680px; }
.intro .lead { margin-top: 16px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split--rev { flex-direction: row-reverse; }
.split--top { align-items: flex-start; }
.split-text { flex: 1 1 400px; min-width: 0; }
.split-text .lead { margin-top: 16px; max-width: 560px; }
.split-media { flex: 1.1 1 440px; min-width: 0; }
.page-top { padding-top: 80px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; font: 500 14px/20px var(--font-sans);
  border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; line-height: 22px; }
.btn-lg .icon { width: 18px; height: 18px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-primary:active { background: var(--blue-800); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--neutral-50); color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-brand); }
.btn-ghost:hover { background: var(--neutral-50); color: var(--text-brand); }
.btn-inverse { background: #fff; color: var(--neutral-900); }
.btn-inverse:hover { background: var(--neutral-100); color: var(--neutral-900); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { background: var(--neutral-200); color: var(--neutral-400); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link-arrow { font-weight: 500; font-size: 15px; }
.link-arrow::after { content: " \2192"; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-badge { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 9px; overflow: hidden; outline-offset: 2px; }
.store-badge img { height: 48px; width: auto; }
.store-badge--play { width: 162px; }
.store-badge--play img { height: 72px; flex: none; max-width: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border-subtle); }
.site-header .container { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { font: 500 15px/20px var(--font-sans); color: var(--text-secondary); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--blue-500); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-button {
  display: none; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  font: 500 14px/1 var(--font-sans); color: var(--text-primary); cursor: pointer;
}
.menu-button svg { width: 18px; height: 18px; }
.menu-sheet { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; overflow-y: auto; }
.menu-sheet-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-close { height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: 500 14px/1 var(--font-sans); color: var(--text-primary); cursor: pointer; }
.menu-sheet nav { display: flex; flex-direction: column; margin-top: 8px; }
.menu-sheet nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border-subtle); font: 500 18px/1.3 var(--font-sans); color: var(--text-primary); }
.menu-sheet nav a:hover { color: var(--text-brand); text-decoration: none; }
.menu-sheet .btn { margin-top: 24px; width: 100%; height: 48px; font-size: 16px; }
.menu-secondary { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.menu-secondary a { font-size: 15px; color: var(--text-secondary); }
body.menu-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-default); margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-about img { height: 28px; width: auto; }
.footer-about p { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--text-secondary); max-width: 320px; }
.footer-grid h2 { font: 600 14px/20px var(--font-sans); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li a { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.footer-grid li a:hover { color: var(--text-primary); text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 32px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }

/* ---------- Screenshot frames ---------- */
.frame { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.frame figcaption { font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.frame-phone { aspect-ratio: 1179 / 2556; border-radius: 40px; padding: 7px; background: var(--neutral-900); box-shadow: var(--shadow-popover); }
.frame-phone .screen { width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #fff; }
.frame-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.frame-phone .screen--bottom { background: #f5f3ee; display: flex; align-items: flex-end; }
.frame-phone .screen--bottom img { height: auto; object-fit: contain; }
.frame--phone { width: 300px; max-width: 100%; }
.frame--phone-sm { width: 220px; max-width: 100%; }
.frame--phone figcaption, .frame--phone-sm figcaption { text-align: center; }
.frame-crop { border-radius: 28px; padding: 7px; background: var(--neutral-900); box-shadow: var(--shadow-popover); }
.frame-crop img { width: 100%; border-radius: 22px; }
.frame-browser { border-radius: var(--radius-xl); border: 1px solid var(--border-default); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.frame-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--border-default); background: var(--surface-subtle); }
.frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--neutral-300); }
.frame-bar .label { margin: 0 auto; padding-right: 39px; font: 400 11px/14px var(--font-mono); color: var(--text-tertiary); }
.frame-browser img { width: 100%; }
.frame-plain { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-default); background: #fff; }
.frame-plain img { width: 100%; }
.center { display: flex; justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; }
.hero .split { gap: 64px; }
.hero-text { flex: 1.6 1 600px; min-width: 0; }
.hero-media { flex: 1 1 320px; display: flex; justify-content: center; }
.hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; padding-right: .1em; }
.hero h1 .em { color: var(--blue-700); }
.hero h1 .em .plain { color: var(--text-primary); }
.hero .lead { margin-top: 20px; max-width: 520px; }
.hero .actions { margin-top: 32px; }
.hero-note { display: flex; gap: 8px; align-items: center; margin-top: 28px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.hero-note .icon { width: 16px; height: 16px; }

/* ---------- Icon rows (definition lists) ---------- */
.rows { margin: 0; border-top: 1px solid var(--border-default); }
.rows > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--border-default); }
.rows .icon { grid-row: span 2; margin-top: 2px; color: var(--text-brand); }
.rows dt { font: 600 16px/24px var(--font-sans); }
.rows dd { margin: 0; font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.rows-note { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* ---------- Ownership diagram ---------- */
.own { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr); align-items: start; gap: 8px; margin-top: 56px; max-width: 820px; }
.own-node { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.own-icon { width: 56px; height: 56px; border-radius: var(--radius-xl); border: 1px solid var(--border-default); background: #fff; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.own-icon .icon { width: 24px; height: 24px; }
.own-node--main .own-icon { width: 72px; height: 72px; border-color: var(--blue-300); background: var(--blue-50); color: var(--blue-700); }
.own-node--main .own-icon .icon { width: 30px; height: 30px; }
.own-node strong { font: 600 16px/22px var(--font-sans); }
.own-node span { font-size: 13px; line-height: 20px; color: var(--text-secondary); max-width: 210px; }
.own-line { height: 1px; background: var(--border-strong); margin-top: 36px; }

/* ---------- Ink CTA panel ---------- */
.cta { background: var(--neutral-900); border-radius: var(--radius-xl); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 32px; line-height: 40px; letter-spacing: -0.015em; }
.cta p { margin-top: 8px; font-size: 18px; line-height: 28px; color: var(--neutral-300); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- Cards, badges, options ---------- */
.card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; padding: 32px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; align-items: stretch; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: stretch; }
.founders { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; border-color: var(--blue-200); background: var(--blue-25); }
.founders-text { flex: 1 1 380px; min-width: 0; }
.founders-text h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; margin-bottom: 8px; }
.founders-text > p { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.founders-text .dash-list { margin-top: 12px; }
.founders-code { flex: 0 1 300px; min-width: 0; }
.founders-note { margin-top: 8px; }
.option { display: flex; flex-direction: column; gap: 24px; }
.option-head { display: flex; flex-direction: column; gap: 12px; }
.option-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.option-top .eyebrow { margin: 0; }
.option-top .icon { width: 24px; height: 24px; color: var(--text-brand); }
.option h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.option-head p { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.option-media { margin: 0; display: flex; justify-content: center; }
.option-media img { width: 100%; max-width: 240px; height: auto; }
.price-grid { border-top: 1px solid var(--border-default); padding-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; row-gap: 6px; align-items: baseline; margin: 0; }
.price-grid dt { font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.price-grid dd { margin: 0; font-size: 15px; line-height: 24px; font-variant-numeric: tabular-nums; }
.price-grid .big { font: 600 20px/28px var(--font-sans); }
.price-grid .big span { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.option-list { border-top: 1px solid var(--border-default); }
.option-list-title { font: 600 14px/20px var(--font-sans); padding: 16px 0 4px; }
.option-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); align-items: start; }
.option-item .icon { grid-row: span 2; margin-top: 2px; color: var(--text-brand); }
.option-item strong { font: 600 16px/24px var(--font-sans); }
.option-item p { grid-column: 2 / span 2; font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.option-item--plain { grid-template-columns: 28px minmax(0, 1fr); }
.option-item--plain span { font-size: 15px; line-height: 24px; }
.option-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.option-foot .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.option-foot .note { font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font: 500 13px/18px var(--font-sans); white-space: nowrap; background: var(--neutral-100); color: var(--neutral-700); }
.badge--sm { height: 20px; padding: 0 6px; font-size: 12px; line-height: 16px; }
.badge--brand { background: var(--blue-50); color: var(--blue-700); }
.badge--success { background: var(--green-50); color: var(--green-700); }
.badge--warning { background: var(--amber-50); color: var(--amber-700); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
.steps li { border-top: 2px solid var(--neutral-900); padding-top: 16px; }
.steps .n { font: 500 14px/20px var(--font-mono); color: var(--text-secondary); }
.steps h2, .steps h3 { font-size: 19px; line-height: 26px; margin-top: 8px; letter-spacing: -0.005em; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--text-secondary); }

/* ---------- Questions (plus/minus) ---------- */
.qa { border-top: 1px solid var(--border-default); }
.qa details { border-bottom: 1px solid var(--border-default); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 18px/26px var(--font-sans); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { width: 18px; height: 18px; color: var(--text-secondary); }
.qa summary .minus { display: none; }
.qa details[open] summary .plus { display: none; }
.qa details[open] summary .minus { display: block; }
.qa .answer { padding: 0 0 22px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.qa .answer p + p { margin-top: .7em; }

/* ---------- Topic cards ---------- */
.topics { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; color: var(--text-primary); transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.topic:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); color: var(--text-primary); text-decoration: none; }
.topic .icon { color: var(--text-brand); }
.topic strong { font: 600 16px/24px var(--font-sans); }
.topic span { font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* ---------- Phone tab grid ---------- */
.tab-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 24px; }
.tab-card { display: flex; flex-direction: column; gap: 20px; }
.tab-card .frame { margin: 0 auto; }
.tab-card-text { border-top: 1px solid var(--border-default); padding-top: 16px; }
.tab-card-text h3 { display: flex; gap: 8px; align-items: center; font-size: 19px; line-height: 26px; }
.tab-card-text h3 .icon { width: 18px; height: 18px; color: var(--text-brand); }
.tab-card-text p { margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--text-secondary); }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--blue-200); background: var(--blue-25); font-size: 14px; line-height: 20px; color: var(--text-primary); }
.notice > .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--blue-700); }
.notice--warn { border-color: var(--amber-200); background: var(--amber-50); color: var(--amber-700); }
.notice--error { border-color: var(--red-200); background: var(--red-50); color: var(--red-700); }
.notice--neutral { border-color: var(--border-default); background: var(--surface-subtle); }

/* ---------- Inner pages: heads, panels, forms (store pages) ---------- */
.page-head { padding: 80px 0 48px; }
.page-head h1 { font-size: 44px; line-height: 1.14; letter-spacing: -0.02em; max-width: 18ch; }
.page-head .lede, .page-head .lead { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.page-head .eyebrow + h1 { margin-top: 0; }
.page-body { padding: 0; }
.content-narrow { max-width: 720px; }
.lede { font-size: 18px; line-height: 28px; color: var(--text-secondary); }
.panel { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.panel h3 { font-size: 19px; line-height: 26px; }
.panel-title { font-size: 28px; line-height: 36px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-links { display: flex; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 15px; font-weight: 500; }
.panel-note { margin-top: 12px; min-height: 1.4em; }
.panel-explain { margin: 0 0 16px; }
.panel .kv { margin: 16px 0 20px; }
.after-panel { margin-top: 24px; }
.centered-panel { margin: 0 auto; }
.page-body--center { padding-top: 64px; }
.email-big { margin-top: 12px; font-size: 20px; font-weight: 500; }
.field-label { display: block; font: 600 14px/20px var(--font-sans); margin-bottom: 8px; }
.input { width: 100%; height: 44px; padding: 0 12px; font: 400 15px/1.4 var(--font-sans); color: var(--text-primary); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-md); transition: border-color 140ms var(--ease); }
.input:hover { border-color: var(--neutral-400); }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
.form-row { display: flex; gap: 10px; }
.form-row .input { flex: 1; min-width: 0; }
.form-row .btn { height: 44px; }
.choices { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 4px; font: 600 14px/20px var(--font-sans); }
.choices legend .muted { font-weight: 400; color: var(--text-secondary); }
.choice { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: border-color 140ms var(--ease); }
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--blue-500); background: var(--blue-25); }
.choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue-700); cursor: pointer; }
.choice strong { display: block; font: 500 15px/22px var(--font-sans); }
.choice small { display: block; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.hint { margin-top: 10px; font-size: 14px; color: var(--text-secondary); min-height: 1.4em; }
.form-error { color: var(--red-700); min-height: 1.4em; }
.text-button { background: none; border: 0; padding: 8px 0; font: 500 15px/1.4 var(--font-sans); color: var(--text-link); cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-icon { font-size: 22px; line-height: 1; margin-bottom: 14px; color: var(--text-brand); }
.card-text { margin-top: 8px; overflow-wrap: anywhere; }
.card-action { margin-top: 20px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0 0; font-size: 15px; }
.kv dt { color: var(--text-secondary); }
.kv dd { margin: 0; }
.code-box { font: 500 20px/1.3 var(--font-mono); letter-spacing: .04em; padding: 16px 18px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-subtle); word-break: break-all; }
.code-block { margin-top: 24px; }
.code-block .code-box { margin-top: 0; user-select: all; }
.code-block + .notice { margin-top: 16px; }
.waiting { margin-bottom: 18px; }
.waiting span { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); animation: waitPulse 1.6s ease-in-out infinite; }
@keyframes waitPulse { 50% { opacity: .3; } }
#fallback { padding-top: 48px; padding-bottom: 48px; }
.account-intro { margin-bottom: 24px; overflow-wrap: anywhere; }
.account-gap { margin: 0 0 20px; }
.account-foot { margin-top: 24px; }
.tone { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.tone[data-tone="#2F6B58"] { color: var(--green-700); }
.tone[data-tone="#8A5C2B"] { color: var(--amber-700); }
.tone[data-tone="#B03A3A"] { color: var(--red-700); }
.confirm { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.confirm .actions-row { margin-top: 14px; }
.sha { margin-top: 8px; font: 12px/1.5 var(--font-mono); color: var(--text-secondary); overflow-wrap: anywhere; }
.dash-list { margin: 16px 0 0; padding: 0; list-style: none; }
.dash-list li { position: relative; padding-left: 20px; color: var(--text-secondary); }
.dash-list li + li { margin-top: 10px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--blue-500); }
.stack > * + * { margin-top: 10px; }
.status-line { font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* Store pages are rendered by support.js; keep the page height natural. */
html:root, html:root body { height: auto; }
body #dc-root, body #dc-root > .sc-host { height: auto; }

/* ---------- Tables and technical page ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
.table thead th { font: 600 13px/18px var(--font-sans); color: var(--text-secondary); background: var(--surface-subtle); border-bottom: 1px solid var(--border-default); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 500; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--radius-sm); font: 500 12px/16px var(--font-sans); white-space: nowrap; background: var(--neutral-100); color: var(--neutral-700); }
.tag--beta { background: var(--blue-50); color: var(--blue-700); }
.tag--soon { background: var(--amber-50); color: var(--amber-700); }
.tag--ok { background: var(--green-50); color: var(--green-700); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-default); font-size: 15px; }
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 40px 0 0; border: 1px solid var(--border-default); border-radius: var(--radius-lg); }
.spec { padding: 20px 22px; }
.spec + .spec { border-left: 1px solid var(--border-default); }
.spec dt { font: 600 13px/18px var(--font-sans); color: var(--text-secondary); }
.spec dd { margin: 6px 0 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.doc-section { padding: 72px 0; border-top: 1px solid var(--border-default); }
.doc-section:first-of-type { margin-top: 48px; }
.doc-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
.doc-grid h2 { font-size: 28px; line-height: 36px; letter-spacing: -0.015em; }
.doc-grid .intro { margin-top: 12px; color: var(--text-secondary); font-size: 15px; line-height: 24px; }
.doc-body > * + * { margin-top: 20px; }
.doc-body h3 { font-size: 19px; line-height: 26px; margin-top: 36px; }
.doc-body p, .doc-body li { color: var(--text-secondary); font-size: 16px; line-height: 26px; }
.doc-body ul { padding-left: 20px; }
.doc-body li + li { margin-top: 6px; }
@media (min-width: 901px) { .doc-grid > :first-child { position: sticky; top: 96px; align-self: start; } }
.egress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.egress-col { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.doc-body .egress h3 { margin-top: 0; font-size: 16px; line-height: 22px; }
.doc-body .egress-col p { margin-top: 4px; font-size: 13px; line-height: 20px; }
.egress-col ul { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border-subtle); }
.doc-body .egress-col li { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--text-primary); }
.doc-body .egress-col li:first-child { margin-top: 0; }
.egress-col--stay { background: var(--blue-25); border-color: var(--blue-200); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 680px; }
.prose h2 { font-size: 22px; line-height: 30px; margin-top: 44px; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0 0; }
.prose li + li { margin-top: 6px; }
.prose .updated { color: var(--text-secondary); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 20px; }
  .site-header .container { gap: 28px; }
}
@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 900px) {
  :root { --section: 88px; }
  .hero { padding-top: 56px; }
  .display-2, .page-head h1 { font-size: 36px; line-height: 1.17; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { border-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--border-default); }
  .band > .container { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .hero { padding-top: 40px; }
  .page-top, .page-head { padding-top: 48px; }
  .display-2, .page-head h1 { font-size: 30px; line-height: 1.2; }
  .lead, .page-head .lede, .page-head .lead, .lede { font-size: 17px; line-height: 26px; }
  .split { gap: 40px; }
  .own { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .own-line { width: 1px; height: 24px; margin: 0; }
  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 26px; line-height: 32px; }
  .card, .panel { padding: 22px 18px; }
  .steps--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa summary { font-size: 17px; }
  .qa .answer { font-size: 16px; line-height: 26px; }
  .form-row { flex-direction: column; }
  .form-row .btn { width: 100%; height: 48px; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--border-default); }
  .egress { grid-template-columns: 1fr; }
  .table th, .table td { padding: 10px 12px; }
  .table td:first-child { white-space: normal; }
  .doc-section { padding: 52px 0; }
  .price-grid { column-gap: 16px; }
}
/* ---------- Data hub (homepage "Your data") ---------- */
.hub-wrap { margin-top: 48px; container-type: inline-size; }
.hub { margin: 0; display: grid; grid-template-columns: max-content 56px minmax(260px, 320px) 56px max-content; grid-template-areas: "lin . lmid . lout" "src lin2 srv lout2 out"; justify-content: center; align-items: center; row-gap: 16px; padding: 36px 32px; border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: linear-gradient(180deg, #fff, var(--blue-25)); }
.hub-label { margin: 0 !important; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.hub-label--in { grid-area: lin; } .hub-label--mid { grid-area: lmid; text-align: center; } .hub-label--out { grid-area: lout; }
.hub-sources { grid-area: src; } .hub-lines--in { grid-area: lin2; } .hub-server { grid-area: srv; } .hub-lines--out { grid-area: lout2; } .hub-outputs { grid-area: out; }
.hub-sources, .hub-outputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hub-sources li, .hub-outputs li { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); font: 500 15px/1.2 var(--font-sans); color: var(--text-primary); white-space: nowrap; }
.hub-outputs li { border-color: var(--blue-200); background: var(--blue-25); }
.hub-sources .icon, .hub-outputs .icon { width: 18px; height: 18px; color: var(--blue-700); }
.hub-sources small { display: block; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--text-tertiary); }
.hub-lines { width: 56px; fill: none; stroke: var(--blue-300); stroke-width: 1.5; stroke-dasharray: 3 4; overflow: visible; }
.hub-lines--in { height: 468px; } .hub-lines--out { height: 228px; }
.hub-lines path { animation: hub-flow 1s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -14; } }
.hub-server { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px 22px; border: 1px solid var(--blue-300); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-popover); }
.hub-server-icon { width: 64px; height: 64px; margin-bottom: 6px; border-radius: var(--radius-xl); background: var(--blue-50); color: var(--blue-700); display: flex; align-items: center; justify-content: center; }
.hub-server-icon .icon { width: 30px; height: 30px; }
.hub-server strong { font: 600 18px/24px var(--font-sans); }
.hub-server > span:not([class]) { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.hub-lock { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); font: 500 12px/16px var(--font-sans); white-space: nowrap; }
.hub-lock .icon { width: 14px; height: 14px; }
.hub-ai { align-self: stretch; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hub-ai-title { font: 600 12px/16px var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); }
.hub-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hub-pills span { padding: 4px 10px; border: 1px solid var(--border-default); border-radius: 999px; background: var(--neutral-25); font: 500 13px/18px var(--font-sans); color: var(--text-primary); }
.hub-ai-note { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
@container (max-width: 900px) {
  .hub { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lin" "src" "lin2" "lmid" "srv" "lout2" "lout" "out"; justify-content: stretch; padding: 24px 16px; row-gap: 12px; }
  .hub-label--mid { text-align: left; }
  .hub-sources, .hub-outputs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hub-sources li, .hub-outputs li { height: auto; min-height: 48px; padding: 8px 10px; font-size: 14px; line-height: 1.25; white-space: normal; }
  .hub-lines { display: none; }
  .hub-label--mid, .hub-label--out { margin-top: 20px !important; }
  .hub-server { justify-self: center; width: 100%; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
