/* VIKI public pages (/welcome, /privacy). Standalone: the app's tokens, none of its shell. */

:root {
  color-scheme: light;
  --plane: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f2ef;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #6f6d68;
  --line: #e1e0d9;
  --accent: #2f6577;          /* from the Vital360Rx mark; 6.5:1 under white text */
  --accent-ink: #fff;
  --accent-soft: #e6eff1;
  --accent-text: #2f6577;
  --critical: #b42d2d;
  --warn-bg: #fdf3dc;
  --warn-ink: #6b4b00;
  --sh-1: 0 1px 1px rgba(11,11,11,.03), 0 2px 6px rgba(11,11,11,.04), 0 0 0 1px rgba(11,11,11,.055);
  --sh-2: 0 6px 24px rgba(11,11,11,.10), 0 1px 3px rgba(11,11,11,.06), 0 0 0 1px rgba(11,11,11,.06);
  --sh-shot: 0 30px 60px -20px rgba(11,40,40,.28), 0 12px 24px -12px rgba(11,11,11,.18), 0 0 0 1px rgba(11,11,11,.07);
  --material: color-mix(in srgb, var(--plane) 76%, transparent);
  --spring: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plane: #0d0d0d; --surface: #1a1a19; --surface-2: #222221;
    --ink: #fff; --ink-2: #c3c2b7; --ink-3: #a3a198;
    --line: #2c2c2a;
    --accent: #7fb4c1; --accent-ink: #0b1f26; --accent-soft: #132a31; --accent-text: #8cc0cc;
    --critical: #f08080;
    --warn-bg: #3a2e10; --warn-ink: #f3d58a;
    --sh-1: 0 1px 2px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
    --sh-2: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07);
    --sh-shot: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.09);
  }
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--plane); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 2px; }
:where(a, button):focus-visible { outline: 2.5px solid color-mix(in srgb, var(--accent) 75%, transparent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; box-shadow: var(--sh-2); }
.skip:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type: tracking by size */
h1, h2, h3 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(34px, 6.2vw, 60px); line-height: 1.04; letter-spacing: -.034em; font-weight: 750; }
h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1.1; letter-spacing: -.028em; font-weight: 720; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.012em; font-weight: 660; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; letter-spacing: -.011em; color: var(--ink-2); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-text); }
.small { font-size: 13px; line-height: 1.5; color: var(--ink-3); letter-spacing: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 650; letter-spacing: -.006em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .1s var(--spring), background .15s, box-shadow .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-pri:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-sec:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* header: translucent material */
.top { position: sticky; top: 0; z-index: 50; background: var(--material);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 75%, transparent); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--plane); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.top-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 760; font-size: 19px; letter-spacing: -.022em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
@media (prefers-color-scheme: dark) { .brand img { background: #fff; padding: 2px; } }
.brand small { font-size: 12.5px; font-weight: 550; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a.tl { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 550; padding: 8px 10px; border-radius: 8px; }
.top-links a.tl:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ext::after { content: "↗"; font-size: .85em; margin-left: 3px; opacity: .7; }
@media (max-width: 820px) { .top-links .wide { display: none; } }
@media (max-width: 400px) { .brand small { display: none; } .top-links a.tl { padding: 8px 6px; } }

/* hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 70% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
              radial-gradient(40% 45% at 15% 10%, color-mix(in srgb, #a6c1e2 22%, transparent), transparent 70%); }
.hero-copy { max-width: 760px; }
.hero h1 { margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-note { margin-top: 16px; }
.hero-art { position: relative; margin-top: clamp(36px, 6vw, 64px); padding-right: clamp(0px, 9vw, 120px); padding-bottom: clamp(30px, 5vw, 60px); }
.hero-art .phone { position: absolute; right: 0; bottom: 0; width: clamp(130px, 22vw, 260px); }
@media (max-width: 640px) {
  .hero-art { padding-right: 0; padding-bottom: 0; }
  .hero-art .phone { position: relative; width: 62%; margin: -46px auto 0; right: auto; }
}

/* framed screenshots */
.shot { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--sh-shot); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.shot-bar span { margin: 0 auto; font-size: 11.5px; color: var(--ink-3); font-weight: 550; letter-spacing: .01em; padding-right: 40px; }
.shot img { width: 100%; }
.phone { border-radius: 38px; padding: 9px; background: #121212; box-shadow: var(--sh-shot), inset 0 0 0 1.5px #3a3a3a; }
.phone img { border-radius: 30px; width: 100%; }
@media (max-width: 640px) { .phone { border-radius: 30px; padding: 7px; } .phone img { border-radius: 24px; } }
.caption { margin-top: 14px; text-align: center; }

/* roles strip */
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 0 0; list-style: none; margin: 0; }
.roles li { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-1); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* feature sections */
.sec { padding: clamp(56px, 9vw, 112px) 0; }
.sec + .sec { border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { margin: 10px 0 14px; }
.center { text-align: center; margin-inline: auto; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feat.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat.flip .feat-copy { order: 2; }
.feat-copy h2 { margin: 10px 0 14px; }
.feat-copy .lede { margin-bottom: 20px; }
@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: minmax(0, 1fr); }
  .feat.flip .feat-copy { order: 0; }
}
.feat.stack { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.feat .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(28px, 5vw, 72px); align-items: start; }
.feat .split > :nth-child(2) { padding-top: 34px; }
@media (max-width: 900px) { .feat .split { grid-template-columns: minmax(0, 1fr); } .feat .split > :nth-child(2) { padding-top: 0; } }
.feat.stack .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); max-width: 1060px; margin-inline: auto; width: 100%; }
@media (max-width: 640px) { .feat.stack .duo { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232f6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%238cc0cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.ticks strong { color: var(--ink); font-weight: 650; }

/* check-in steps */
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.steps b { display: block; font-weight: 650; letter-spacing: -.008em; }
.steps span { color: var(--ink-2); font-size: 15px; }
.qs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qs span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; line-height: 1.45; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(16px, 3vw, 28px); align-items: end; }
@media (max-width: 640px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo .phone { width: 72%; margin-inline: auto; } }

/* cards grid (security) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 22px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 14px; }
.card .ic svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* product */
.product { border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(80% 90% at 100% 0%, #5e929e 0%, transparent 60%), linear-gradient(140deg, #22506b 0%, #305066 45%, #2f6577 100%); }
.product::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 46px solid rgba(171, 201, 185, .16); pointer-events: none; }
.product .eyebrow { color: #cfe6dc; }
.product h2 { color: #fff; margin: 10px 0 14px; max-width: 760px; }
.product .lede { color: rgba(255,255,255,.88); max-width: 720px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; max-width: 760px; position: relative; z-index: 1; }
@media (max-width: 640px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.pcard { border-radius: 16px; padding: 16px 18px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.pcard b { display: block; font-size: 17px; letter-spacing: -.012em; }
.pcard span { font-size: 14.5px; color: rgba(255,255,255,.84); }
.product .btn-light { background: #fff; color: #183c4f; }
.product .btn-light:hover { background: #eef6f4; }
.product .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.product .btn-ghost:hover { background: rgba(255,255,255,.1); }
.product .cta-row { position: relative; z-index: 1; }
@media (max-width: 560px) { .product .cta-row .btn, .closer .cta-row .btn { flex: 1 1 100%; } .closer .cta-row .btn { flex-basis: 40%; } }
sup { line-height: 0; }
.disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); font-size: 13px; line-height: 1.5;
  color: rgba(255,255,255,.86); max-width: 820px; position: relative; z-index: 1; }

/* closing CTA */
.closer { text-align: center; }
.closer .cta-row { justify-content: center; }
.closer p.lede { max-width: 620px; margin: 14px auto 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-start; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .small { max-width: 560px; }

/* reveal on scroll (motion only when allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--spring), transform .7s var(--spring); }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ── privacy policy ─────────────────────────────────────────── */
.doc { padding: clamp(32px, 6vw, 64px) 0 72px; }
.doc-in { max-width: 760px; margin-inline: auto; }
.draft { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink);
  font-size: 14.5px; font-weight: 600; margin-bottom: 26px; }
.draft svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .meta { margin: 10px 0 24px; color: var(--ink-3); font-size: 14.5px; }
.toc { background: var(--surface); border-radius: 16px; box-shadow: var(--sh-1); padding: 18px 22px; margin: 0 0 36px; }
.doc .toc h2 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14.5px; }
.toc li { break-inside: avoid; padding: 2px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.doc section { scroll-margin-top: 80px; }
.doc section + section { margin-top: 36px; }
.doc h2 { font-size: clamp(22px, 3vw, 26px); letter-spacing: -.02em; margin-bottom: 12px; }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc .callout { background: var(--surface); border-radius: 14px; box-shadow: var(--sh-1); padding: 16px 18px; margin-top: 14px; }
.doc address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
