/* Prevana website prototype (2026-11). Shared by index.html and clinics.html. */

:root {
  --ink: #0A0B0D;
  --ink-2: #4B5059;
  --ink-3: #6B717C;
  --line: rgba(10, 11, 13, .08);
  --line-2: rgba(10, 11, 13, .13);
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --night: #07080B;
  --surface: #FFFFFF;                 /* cards, menus, form fields in focus */
  --tint: rgba(10, 11, 13, .06);      /* quiet button fills */
  --tint-2: rgba(10, 11, 13, .1);
  --header-bg: rgba(255, 255, 255, .82);
  --footer-bg: #ECEFF3;                /* darker than the page and the shaded sections */

  --blue: #0B6EF2;
  --blue-hover: #0A62D9;
  --blue-soft: #EAF2FE;
  --blue-fill: #0B6EF2;               /* button fill; --blue is for text and icons */
  --gold: #F5B301;
  --green: #068730;
  --green-soft: #E8F5EC;
  --red: #DC2626;
  --c-warn: #B54708;  --c-warn-soft: #FFF1E5;

  /* Feature colours, as on the app's Home cards */
  --c-ask: #0B6EF2;   --c-ask-soft: #E6F0FF;
  --c-dx: #4656D8;    --c-dx-soft: #EDEFFD;
  --c-an: #7E2DC8;    --c-an-soft: #F3EDFC;
  --c-care: #088378;  --c-care-soft: #E5F4F0;
  --c-offer: #F94D00; --c-offer-soft: #FEEFE4;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --shadow-1: 0 1px 2px rgba(10, 11, 13, .04), 0 8px 24px rgba(10, 11, 13, .06);
  --shadow-2: 0 2px 6px rgba(10, 11, 13, .05), 0 24px 56px rgba(16, 24, 40, .12);

  --max: 1200px;
  --gutter: 24px;
  --header: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 18px; height: 18px; }
.ico.fill { fill: currentColor; stroke: none; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 700;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 700;
  text-wrap: balance;
}
html[lang="vi"] .display { line-height: 1.13; letter-spacing: -.032em; }
html[lang="vi"] .h2 { line-height: 1.16; letter-spacing: -.028em; }
html[lang="vi"] .h3 { line-height: 1.2; letter-spacing: -.022em; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--blue);
}
.muted { color: var(--ink-2); }
.fine { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.section { padding: 128px 0; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 20px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--blue-fill); color: #fff;
  box-shadow: 0 8px 20px -6px rgba(11, 110, 242, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(11, 110, 242, .6), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(10, 11, 13, .28); }
.btn-dark-ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.btn-dark-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 60px; padding-block: 0; padding-inline: 24px 30px; font-size: 17.5px; }
.btn .ico.fill { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.site-header.scrolled, .site-header.open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.open { background: var(--bg); transition: none; }
.nav { height: var(--header); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 8px rgba(11, 110, 242, .25); }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 11px 0 11px; border: 0; border-radius: 999px; white-space: nowrap;
  background: var(--tint); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lang-btn:hover { background: var(--tint-2); }
.lang-btn .ico { width: 18px; height: 18px; }
.lang-btn .chev { width: 16px; height: 16px; opacity: .6; transition: transform .2s ease; }
.lang-menu.open .chev { transform: rotate(180deg); }
.lang-list {
  display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; min-width: 210px; max-height: min(520px, 70vh);
  overflow: auto; padding: 6px; border-radius: 18px; background: var(--surface); color: var(--ink); overscroll-behavior: contain;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}
.lang-menu.open .lang-list { display: block; }
.lang-menu.left .lang-list { inset-inline-end: auto; inset-inline-start: 0; }
.lang-menu.up .lang-list { top: auto; bottom: calc(100% + 8px); }
.lang-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px;
  border: 0; border-radius: 12px; background: none; color: inherit; font-size: 15px; font-weight: 500; text-align: start; cursor: pointer;
}
.lang-list button:hover, .lang-list button:focus-visible { background: var(--bg-soft); outline: none; }
.lang-list button > .ico { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.4; visibility: hidden; }
.lang-list button[aria-checked="true"] { font-weight: 600; }
.lang-list button[aria-checked="true"] > .ico { visibility: visible; }
.lang-list .opt { display: inline-flex; align-items: center; gap: 10px; }
/* Languages: English name, and the language's own name under it */
.lang-list button[data-lang] { padding-block: 8px; }
.lang-list .names { display: grid; gap: 1px; line-height: 1.3; }
.lang-list .names .own { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.lang-list .opt .ico { width: 18px; height: 18px; color: var(--ink-2); }
/* Theme picker: the button shows the chosen option's icon */
.theme-menu .lang-list { min-width: 180px; }
.theme-menu .lang-btn .t { display: none; }
html[data-theme-pref="light"] .theme-menu .t-light,
html[data-theme-pref="dark"] .theme-menu .t-dark,
html[data-theme-pref="system"] .theme-menu .t-system { display: block; }
.theme-menu.short .lang-btn { width: 40px; padding: 0; justify-content: center; }
.tools { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; width: 42px; height: 42px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tint); align-items: center; justify-content: center;
}
.menu-btn .ico-x { display: none; }
.site-header.open .menu-btn .ico-x { display: block; }
.site-header.open .menu-btn .ico-menu { display: none; }
.mobile-menu {
  display: none; position: absolute; top: var(--header); left: 0; right: 0;
  background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 24px 40px rgba(10, 11, 13, .08);
  padding: 8px var(--gutter) 24px;
}
.mobile-menu > a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.site-header.open .mobile-menu { display: block; }

/* Header over a dark hero */
.site-header.on-dark:not(.scrolled):not(.open) { color: #fff; }
.site-header.on-dark:not(.scrolled):not(.open) .nav-links a { color: rgba(255, 255, 255, .72); }
.site-header.on-dark:not(.scrolled):not(.open) .nav-links a:hover,
.site-header.on-dark:not(.scrolled):not(.open) .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header.on-dark:not(.scrolled):not(.open) .lang-btn { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header.on-dark:not(.scrolled):not(.open) .lang-btn:hover { background: rgba(255, 255, 255, .16); }
.site-header.on-dark:not(.scrolled):not(.open) .menu-btn { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Phone frame around a 1206 x 2622 capture ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none; align-self: flex-start;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .17);
  background: linear-gradient(145deg, #4A4E57, #17181C 42%, #2B2D33);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 50px 90px -30px rgba(16, 24, 40, .45),
    0 24px 40px -24px rgba(16, 24, 40, .35);
}
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .138); background: #fff; }
.phone .screen img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; }
.phone .island {
  position: absolute; left: 50%; top: calc(var(--w) * .056); z-index: 2;
  width: calc(var(--w) * .29); height: calc(var(--w) * .085);
  transform: translateX(-50%); border-radius: 999px; background: #000;
}

/* ---------- App store links (secondary to the chat button) ---------- */
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; font-size: 14.5px; }
.app-links.center { justify-content: center; }
.app-links .label { flex-basis: 100%; color: var(--ink-2); } /* its own line, both stores together under it */
.app-link {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.app-link:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 11, 13, .22); }
.app-link .ico { width: 17px; height: 17px; }

.qr-card {
  display: inline-flex; align-items: center; gap: 20px; margin-top: 36px; padding: 14px 26px 14px 14px;
  border-radius: 24px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line);
  text-align: start; max-width: 460px;
}
.qr-card img { width: 128px; height: 128px; padding: 10px; flex: none; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 11, 13, .06); }
.qr-card p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.qr-card b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header) + 56px);
  background: linear-gradient(180deg, #CFE2FF 0%, #E4EEFF 32%, #F4F8FF 66%, #FFFFFF 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.hero::before { /* the sun, as in the app's morning sky */
  width: 620px; height: 620px; right: -140px; top: -260px;
  background: radial-gradient(circle, rgba(255, 224, 140, .85) 0%, rgba(255, 224, 140, .35) 32%, rgba(255, 224, 140, 0) 66%);
  animation: glow 14s ease-in-out infinite alternate;
}
.hero::after { /* a soft cloud of light on the left */
  width: 760px; height: 420px; left: -240px; top: 120px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
@keyframes glow { from { opacity: .85; transform: translate(0, 0); } to { opacity: 1; transform: translate(-16px, 10px); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 124px; } /* room for the doctor line at the hero's bottom */
.pill { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; } /* a dot and text, no background */
.pill-dot { width: 8px; height: 8px; margin-inline-start: 3px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(11, 110, 242, .16); }
.hero .display { margin: 24px 0 22px; text-wrap: initial; }
.hero .lead { max-width: 36em; max-width: 540px; }
.hero-actions { margin-top: 44px; }
.hero .app-links { margin-top: 40px; }
.try-link { margin-top: 24px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; } /* above the fog */
.hero-meta { max-width: 520px; font-size: 13px; }
/* Fog at the bottom of the hero, like the app's header: the phone's bottom edge blurs and fades into
   the page. The hero shows the whole screen, so the fog starts under the chat box. Only over the
   phone's column, under the floating cards. */
.hero-fog { --fog: 80px; position: absolute; left: -24px; right: -24px; bottom: 0; height: var(--fog); z-index: 2; pointer-events: none; }
.hero-fog::before, .hero-fog::after { content: ""; position: absolute; inset: 0; }
.hero-fog::before {
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--fog) * .6));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--fog) * .6));
}
.hero-fog::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 0%, transparent) 0, color-mix(in srgb, var(--bg) 25%, transparent) calc(var(--fog) * .3),
    color-mix(in srgb, var(--bg) 75%, transparent) calc(var(--fog) * .62), var(--bg) calc(var(--fog) * .88));
}

.hero-visual { position: relative; min-height: 724px; align-self: stretch; display: flex; justify-content: center; } /* as tall as the hero, so the fog sits at its bottom */
.hero-visual .phone { --w: 330px; margin-top: 8px; }
.float {
  position: absolute; z-index: 3; width: 252px; padding: 16px 18px; border-radius: 22px;
  background: var(--float-bg, rgba(255, 255, 255, .9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, var(--shadow-2);
  animation: drift 9s ease-in-out infinite;
}
.float.a { left: -6px; top: 150px; }
.float.b { right: -14px; top: 392px; animation-delay: -4.5s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float .t { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 650; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.float .tag { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.float .ok { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #EAF6EE; color: #0B3D1C; font-size: 13.5px; font-weight: 600; }
.float .ok .ico { width: 16px; height: 16px; color: var(--green); }
.float .today { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #FDECEC; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.float .today::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.float .sub { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.float .t + .sub { margin-top: 6px; }
.float .today + .t { margin-top: 10px; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); padding: 44px 0; }
.stats-row > div { padding: 4px 24px; text-align: center; }
.stats-row > div + div { border-inline-start: 1px solid var(--line); }
.stats-row dt { min-height: 1.1em; display: flex; align-items: flex-end; justify-content: center; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.stats-row dt.word { font-size: clamp(22px, 2.1vw, 29px); min-height: calc(clamp(30px, 3vw, 40px) * 1.1); letter-spacing: -.02em; }
.stats-row dd { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center;
  margin-top: 112px;
}
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } /* art panels keep one width */
.feature:nth-of-type(even) .feature-art { order: -1; }
.feature-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--soft); color: var(--c);
}
.feature-kicker { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--c); }
.feature .h3 { margin-top: 8px; }
.feature-copy > p:not(.feature-kicker) { margin-top: 18px; font-size: 18px; line-height: 1.6; max-width: 480px; text-wrap: pretty; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.checks .tick {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px;
  border-radius: 999px; background: var(--soft); color: var(--c);
}
.checks .tick .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.checks .tick:not(:has(svg)) { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.checks li > span:last-child { min-width: 0; }
.feature-art {
  position: relative; overflow: hidden; height: 600px; border-radius: var(--r-lg);
  display: flex; justify-content: center; padding-top: 64px;
  background: linear-gradient(180deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 55%, var(--bg)) 100%);
  box-shadow: inset 0 0 0 1px rgba(10, 11, 13, .035);
}
.feature-art .phone { --w: 310px; z-index: 1; }
.feature-art .pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c); pointer-events: none; }
.feature-art .sheet { fill: #fff; fill-opacity: .45; }
.feature-art.dots::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--c) 22%, transparent) 1.2px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}

/* ---------- Safety ---------- */
.safety { background: var(--bg-soft); }
.cards-4 { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 30px 28px 32px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 11, 13, .03);
}
.card .icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--soft, var(--blue-soft)); color: var(--c, var(--blue)); }
.card h3 { margin-top: 22px; font-size: 19px; font-weight: 650; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.notice {
  margin: 28px auto 0; max-width: 760px; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px; font-weight: 500; text-align: start;
}
.notice .ico { color: var(--red); }

/* ---------- Make it yours ---------- */
.yours { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; align-items: center; }
.yours-art {
  position: relative; height: 600px; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(118deg, #DCE9FF 0%, #EEF4FF 49.9%, #0E1117 50.1%, #05060A 100%);
}
.yours-art::after { /* faint glow on the dark half */
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 45, 200, .35), transparent);
}
.yours-art .phone { position: absolute; --w: 270px; z-index: 1; }
.yours-art .phone.back { left: 9%; top: 72px; transform: rotate(-6deg); }
.yours-art .phone.front { right: 9%; top: 128px; z-index: 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 90px -30px rgba(0, 0, 0, .8); }
.swatches { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 999px; background: var(--s); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 1px var(--line); }
.langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 7px 13px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 500; }
.subhead { margin-top: 36px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.subhead + .swatches, .subhead + .langs { margin-top: 12px; }

/* ---------- Offers ---------- */
.offers { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.offers-art {
  --c: var(--c-offer); --soft: var(--c-offer-soft);
  position: relative; border-radius: var(--r-lg); padding: 72px 56px;
  background: linear-gradient(160deg, #FFF4EA 0%, #FEEADB 100%);
  overflow: hidden;
}
.offers-art .sparkle { position: absolute; color: #F7A35C; }
.ticket {
  position: relative; display: grid; grid-template-columns: 92px 1fr; min-height: 132px;
  border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
.ticket + .ticket { margin-top: 18px; }
.ticket .stub {
  display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, var(--t1), var(--t2)); color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.ticket .stub::after { /* perforation */
  content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px; width: 2px;
  background: radial-gradient(circle, var(--surface) 1.2px, transparent 1.6px) 0 0 / 2px 8px repeat-y;
}
.ticket .body { padding: 18px 22px 18px 22px; }
.ticket .who { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.ticket .live { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; }
.ticket .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(6, 135, 48, .15); }
.ticket h4 { margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.ticket .meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--ink-3); }
.ticket .meta b { color: var(--ink); font-weight: 600; }
.chip-points {
  position: absolute; right: 28px; top: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1.5px #FBE3A2;
  font-size: 17px; font-weight: 700;
}
.chip-points .ico { width: 20px; height: 20px; color: var(--gold); }
.toast {
  position: absolute; left: 28px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: #0A0B0D; color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-2);
}
.toast b { display: grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--gold); color: #0A0B0D; font-size: 13px; font-weight: 700; }

/* ---------- Dark band (for clinics) ---------- */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 72px 64px;
  background: var(--night); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end;
}
.band .pulse { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.band > * { position: relative; }
.band .eyebrow { color: #7DB7FF; }
.band .h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); max-width: 19ch; }
.band p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 560px; }

/* ---------- Final CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--r-lg); padding: 96px 32px;
  background: linear-gradient(180deg, #D3E5FF 0%, #EAF2FF 55%, #F7FAFF 100%);
}
.cta::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 140, .75), rgba(255, 224, 140, 0) 64%);
}
.cta > * { position: relative; }
.cta .app-icon { width: 88px; height: 88px; margin: 0 auto; border-radius: 22px; box-shadow: 0 18px 40px -12px rgba(11, 110, 242, .55); }
.cta .h2 { margin: 28px auto 0; max-width: 15ch; }
.cta .lead { margin: 18px auto 0; max-width: 520px; }
.cta-chat { margin-top: 40px; }
.cta .app-links { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 48px; background: var(--footer-bg); box-shadow: inset 0 1px 0 var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.foot-grid ul { margin-top: 16px; display: grid; gap: 12px; }
.foot-grid ul a { font-size: 15.5px; font-weight: 500; }
.foot-grid ul a:hover { color: var(--blue); }
.foot-brand p { margin-top: 16px; font-size: 15.5px; color: var(--ink-2); max-width: 300px; }
.foot-bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
}
.foot-bottom .fine { max-width: 760px; }

/* ---------- Clinics page ---------- */
.c-hero {
  position: relative; overflow: hidden; background: var(--night); color: #fff;
  padding: calc(var(--header) + 72px) 0 112px;
}
.c-hero .glow { position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.c-hero .glow.g1 { width: 720px; height: 720px; left: 48%; top: -260px; background: radial-gradient(closest-side, rgba(31, 108, 255, .42), transparent); }
.c-hero .glow.g2 { width: 520px; height: 520px; left: -200px; bottom: -300px; background: radial-gradient(closest-side, rgba(58, 176, 255, .18), transparent); }
.c-hero .pulse-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 320px; pointer-events: none; opacity: .9; }
.c-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.c-hero .pill { color: #fff; }
.c-hero .pill-dot { background: #5AA8FF; box-shadow: 0 0 0 3px rgba(90, 168, 255, .25); }
.c-hero .ai-text { white-space: normal; }
.c-hero .ai-text, html[data-theme="dark"] .ai-text { background-image: linear-gradient(90deg, #5C9DFF 0%, #9A8CFF 50%, #5C9DFF 100%); }
.c-hero .link-arrow { color: #fff; opacity: .85; }
.c-hero .link-arrow:hover { opacity: 1; }
.c-hero .display { margin-top: 24px; font-size: clamp(40px, 5vw, 64px); text-wrap: initial; }
.c-hero .lead { margin-top: 24px; color: rgba(255, 255, 255, .8); max-width: 560px; }
.c-hero .actions { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.c-hero .fine { margin-top: 36px; color: rgba(255, 255, 255, .56); }

.mock { position: relative; height: 440px; }
.mock-card {
  position: absolute; border-radius: 24px; background: #fff; color: var(--ink); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
.mock-offer { width: 320px; left: 0; top: 0; z-index: 1; }
.mock-offer .banner {
  height: 132px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #4DA3FF 0%, #0B6EF2 45%, #0846A8 100%);
}
.mock-offer .banner .clinic { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: .95; }
.mock-offer .banner .clinic i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--blue); font-style: normal; font-size: 10px; font-weight: 700; }
.mock-offer .banner strong { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.mock-offer .content { padding: 18px 20px 20px; }
.mock-offer h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.mock-offer .row { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.mini-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.mini-chip.pts { background: #FFF6DA; }
.mini-chip.pts .ico { width: 15px; height: 15px; color: var(--gold); }
.mini-chip.left { background: #FFF0E6; color: #B54708; }
.mini-btn { white-space: nowrap; margin-left: auto; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--blue-fill); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.mock-member {
  width: 224px; right: 0; top: 64px; z-index: 2; padding: 20px; color: #fff;
  background: linear-gradient(150deg, #23262E 0%, #111317 100%);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.mock-member .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mock-member .tier { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.mock-member .tier i { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(145deg, #E9EEF5, #9AA3B2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.mock-member .bar { margin-top: 18px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mock-member .bar span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3AB0FF, #1F5CFF); }
.mock-member .next { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.mock-stats { width: 300px; left: 80px; top: 300px; z-index: 3; padding: 20px 22px; }
.mock-stats .lbl { font-size: 13.5px; font-weight: 600; }
.mock-stats .bars { margin-top: 16px; display: grid; gap: 10px; }
.mock-stats .bars div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.mock-stats .bars i { display: block; height: 10px; border-radius: 999px; background: var(--blue-soft); position: relative; overflow: hidden; }
.mock-stats .bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #4DA3FF, var(--blue)); }

.problems { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem { padding: 28px; border-radius: var(--r-md); background: var(--bg-soft); }
.problem .num { font-size: 14px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.problem h3 { margin-top: 40px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.problem p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.scope-note { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.scope-note .ico { width: 20px; height: 20px; color: var(--blue); }
.scope-note.center { justify-content: center; text-align: center; }

.layers { margin-top: 72px; position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 1.25fr 1fr; gap: 16px; align-items: stretch; }
.layers::before { /* the thread through the layers */
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px;
  background: linear-gradient(90deg, rgba(11, 110, 242, 0), rgba(11, 110, 242, .35) 12%, rgba(11, 110, 242, .35) 88%, rgba(11, 110, 242, 0));
}
.layer {
  position: relative; padding: 26px 24px; border-radius: var(--r-md); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.layer .k { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.layer h3 { margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.layer p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.layer.end { background: var(--bg-soft); box-shadow: none; display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center; }
.layer.end .icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--surface); color: var(--blue); box-shadow: var(--shadow-1); }
.layer.end h3 { font-size: 17px; }
.journey { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.journey span { padding: 8px 15px; border-radius: 999px; background: var(--bg-soft); font-size: 14.5px; font-weight: 500; }
.journey .ico { width: 16px; height: 16px; color: var(--ink-3); }

.modules { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { padding: 32px 30px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.module .icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.module .k { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.module h3 { margin-top: 4px; font-size: 21px; font-weight: 600; letter-spacing: -.022em; line-height: 1.3; }
.module p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.module ul { margin-top: 16px; display: grid; gap: 8px; }
.module li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 500; }
.module li .ico { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }

.steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 30px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.step .n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px;
}
.step h3 { margin-top: 22px; font-size: 21px; font-weight: 600; letter-spacing: -.022em; }
.step p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.step .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.step .tags span { padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 500; }
.timing {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--blue-soft); color: #0846A8; font-weight: 600; font-size: 15px;
}
.timing .ico { width: 20px; height: 20px; }

.compare { margin-top: 56px; border-radius: var(--r-md); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 26px; text-align: start; vertical-align: top; font-size: 15.5px; line-height: 1.5; }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--ink-3); padding-top: 22px; padding-bottom: 18px; }
.compare thead th.us { color: var(--blue); }
.compare tbody th { width: 22%; font-weight: 600; }
.compare tbody td { color: var(--ink-2); width: 39%; }
.compare tbody td.us { color: var(--ink); font-weight: 500; background: rgba(11, 110, 242, .04); }
.compare thead th.us { background: rgba(11, 110, 242, .04); }
.compare tbody tr { border-top: 1px solid var(--line); }

.verify { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding: 48px; border-radius: var(--r-lg); background: var(--bg-soft); }
.verify .h3 { margin-top: 12px; }
.verify p { margin-top: 14px; font-size: 17px; line-height: 1.6; }
.verify .not { padding: 26px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.verify .not h4 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.verify .not ul { margin-top: 14px; display: grid; gap: 12px; }
.verify .not li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.verify .not li .ico { width: 18px; height: 18px; color: var(--ink-3); }

.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.signup .benefits { margin-top: 32px; display: grid; gap: 14px; }
.signup .benefits li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.signup .benefits .tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); flex: none; }
.signup .benefits .tick .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.form-card { padding: 36px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
.form-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.022em; }
.form-card .fine { margin-top: 6px; }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px transparent; font-size: 16px; transition: box-shadow .2s, background-color .2s;
}
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--blue); }
.form-card .btn { width: 100%; margin-top: 20px; }
.form-done { display: none; text-align: center; padding: 40px 8px; }
.form-done .icon-tile { margin: 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.form-done h3 { margin-top: 18px; }
.form-done p { margin-top: 8px; color: var(--ink-2); }
.form-card.sent form { display: none; }
.form-card.sent .form-done { display: block; }

/* ---------- Inner pages: policies, support ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header) + 64px) 0 48px;
  background: linear-gradient(180deg, #D9E8FF 0%, #EDF3FF 55%, var(--bg) 100%);
}
.page-hero::before { /* the morning sun, as on the home page */
  content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 224, 140, .7) 0%, rgba(255, 224, 140, .25) 34%, rgba(255, 224, 140, 0) 66%);
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow + .h2 { margin-top: 12px; }
.page-hero .h2 { max-width: 20ch; }
.page-hero .lead { margin-top: 16px; max-width: 620px; }
.note-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 15px 8px 11px; border-radius: 999px;
  background: var(--tint); font-size: 14px; line-height: 1.4; color: var(--ink-2);
}
.note-pill .ico { width: 18px; height: 18px; flex: none; color: var(--blue); }
html[lang="en"] .not-en, html[lang="vi"] .not-vi { display: none; }

/* Policies: the official English text, with a contents list beside it */
.legal-section { padding: 24px 0 112px; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100vh - var(--header) - 48px); overflow: auto; }
.toc summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { display: none; width: 18px; height: 18px; transition: transform .2s ease; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.toc a {
  display: block; margin-inline-start: -1px; padding: 6px 12px; border-inline-start: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--ink-2); transition: color .2s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--blue); border-color: var(--blue); font-weight: 600; }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose > p:first-child { font-size: 18px; line-height: 1.65; color: var(--ink); }
.prose h2 { margin-top: 52px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: calc(var(--header) + 24px); }
.prose h3 { margin-top: 30px; font-size: 17.5px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.prose :is(h2, h3) + * { margin-top: 10px; }
.prose ul, .prose ol { padding-inline-start: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Not found (404.html): the hero is the whole page */
.page-hero.not-found { min-height: 64vh; padding-bottom: 112px; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

/* Support */
.support-section { padding: 24px 0 112px; }
.support-mail {
  display: grid; justify-items: start; gap: 6px; padding: 36px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.support-mail:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }
.support-mail .icon-tile { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.support-mail .k { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.support-mail .addr { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: var(--blue); overflow-wrap: anywhere; }
.support-mail .sub { font-size: 15.5px; color: var(--ink-2); }
.support-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-grid .links { display: grid; justify-items: start; gap: 8px; margin-top: 18px; }
.support-grid .link-arrow { font-size: 15.5px; }
.support .notice { margin-top: 28px; }

html[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #0E1B36 0%, #0C1428 55%, var(--bg) 100%); }
html[data-theme="dark"] .page-hero::before { background: radial-gradient(circle, rgba(160, 186, 255, .24) 0%, rgba(160, 186, 255, .08) 34%, rgba(160, 186, 255, 0) 66%); }
html[data-theme="dark"] .support-mail { box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .support-mail:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; max-height: none; padding: 0 18px; border-radius: 16px; background: var(--bg-soft); }
  .toc summary { padding: 14px 0; font-size: 15px; color: var(--ink); pointer-events: auto; cursor: pointer; }
  .toc summary .chev { display: block; }
  .toc[open] summary .chev { transform: rotate(180deg); }
  .toc ol { margin-bottom: 14px; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { padding: calc(var(--header) + 40px) 0 32px; }
  .support-mail { padding: 26px 22px; }
}

/* ---------- AI touches ---------- */
html:is([lang="vi"], [lang="en"]) .ai-text { white-space: nowrap; } /* "Hỏi Prevana AI." stays on one line */
.ai-text {
  padding-block: .08em;
  background: linear-gradient(90deg, #1F6BFF 0%, #6C5CFF 50%, #1F6BFF 100%) 0 0 / 200% 100%; /* blue to a blue-leaning violet */
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ai-shimmer 10s linear infinite;
}
@keyframes ai-shimmer { to { background-position: -200% 0; } }
.hero-visual::before { /* a soft blue and blue-violet aura behind the phone */
  content: ""; position: absolute; left: 50%; top: 80px; width: 560px; height: 560px; margin-left: -280px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background:
    radial-gradient(closest-side at 34% 38%, rgba(58, 176, 255, .55), transparent),
    radial-gradient(closest-side at 68% 52%, rgba(108, 92, 255, .42), transparent),
    radial-gradient(closest-side at 46% 76%, rgba(140, 150, 255, .24), transparent);
  filter: blur(36px);
}
.hero-visual::before { opacity: 1; animation: ai-breathe 14s ease-in-out infinite alternate; }
@keyframes ai-breathe { from { transform: scale(.94) rotate(0deg); } to { transform: scale(1.05) rotate(24deg); } }
.float .ai-badge {
  display: grid; place-items: center; position: absolute; top: -17px; left: -17px; width: 36px; height: 36px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 0 0 1px rgba(108, 92, 255, .15), 0 6px 14px -6px rgba(108, 92, 255, .45);
}
.ai-badge .ico { width: 22px; height: 22px; }
.feature.is-ai .feature-icon,
.module.is-ai .icon-tile { color: #fff; background: linear-gradient(135deg, #3A9BFF, #4F66FF 55%, #7B5CFF); box-shadow: 0 8px 18px -8px rgba(108, 92, 255, .6); }
.cta .app-icon { box-shadow: 0 18px 44px -12px rgba(108, 92, 255, .6), 0 0 70px -6px rgba(58, 176, 255, .55); }
.c-hero .glow.g1 { background: radial-gradient(closest-side at 40% 45%, rgba(31, 108, 255, .45), transparent), radial-gradient(closest-side at 65% 60%, rgba(108, 92, 255, .3), transparent); }

/* ---------- Dark theme ----------
   theme.js sets html[data-theme="dark"] for Dark, or for System when the OS (or Dark Reader) is dark.
   Mostly token swaps; the rest are the few places that paint a light picture of their own. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F1F3F6;
  --ink-2: #AEB4BF;
  --ink-3: #8C93A0;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --bg: #0B0D11;
  --bg-soft: #12151B;
  --surface: #171A21;
  --tint: rgba(255, 255, 255, .08);
  --tint-2: rgba(255, 255, 255, .13);
  --header-bg: rgba(11, 13, 17, .78);
  --footer-bg: #161920;                /* lighter than the page and the shaded sections */
  --float-bg: rgba(25, 28, 36, .88);

  --blue: #5AA2FF;
  --blue-hover: #1F7BFF;
  --blue-soft: rgba(90, 162, 255, .14);
  --green: #4CCB7E;  --green-soft: rgba(76, 203, 126, .14);
  --red: #FF6B6B;
  --c-warn: #F59E52; --c-warn-soft: rgba(245, 158, 82, .14);

  --c-ask: #5AA2FF;   --c-ask-soft: #10203A;
  --c-dx: #8E9BFF;    --c-dx-soft: #181C3A;
  --c-an: #B98AF2;    --c-an-soft: #201733;
  --c-care: #3FC4B4;  --c-care-soft: #0D2623;
  --c-offer: #FF8A4C; --c-offer-soft: #2C190E;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 56px rgba(0, 0, 0, .55);
}
.if-dark { display: none; }
html[data-theme="dark"] .if-light { display: none; }
html[data-theme="dark"] .if-dark { display: block; }
html[data-theme="dark"] .phone .screen { background: #0B0D11; } /* no white flash while a capture loads */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* The black logo square needs an edge on a dark page */
html[data-theme="dark"] .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
html[data-theme="dark"] .cta .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 44px -12px rgba(108, 92, 255, .7), 0 0 70px -6px rgba(58, 176, 255, .45); }

/* Night sky: moonlight where the sun was */
html[data-theme="dark"] .hero { background: linear-gradient(180deg, #0E1B36 0%, #0C1428 34%, #0B0F1A 68%, var(--bg) 100%); }
html[data-theme="dark"] .hero::before { background: radial-gradient(circle, rgba(160, 186, 255, .26) 0%, rgba(160, 186, 255, .09) 32%, rgba(160, 186, 255, 0) 66%); }
html[data-theme="dark"] .hero::after { background: radial-gradient(closest-side, rgba(70, 110, 220, .12), rgba(70, 110, 220, 0)); }
html[data-theme="dark"] .hero-visual::before { opacity: .75; }
html[data-theme="dark"] .float { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
html[data-theme="dark"] .float .ok { background: rgba(76, 203, 126, .14); color: #A6EBC0; }
html[data-theme="dark"] .float .today { background: rgba(255, 107, 107, .15); }
html[data-theme="dark"] .float .ai-badge { box-shadow: 0 0 0 1px rgba(140, 130, 255, .32), 0 6px 14px -6px rgba(108, 92, 255, .7); }
html[data-theme="dark"] .app-link { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .app-link:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
html[data-theme="dark"] .qr-card { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

html[data-theme="dark"] .feature-art { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
html[data-theme="dark"] .feature-art .sheet { fill-opacity: .025; }
html[data-theme="dark"] .card, html[data-theme="dark"] .module, html[data-theme="dark"] .step { box-shadow: inset 0 0 0 1px var(--line); }

html[data-theme="dark"] .yours-art { background: linear-gradient(118deg, #26324A 0%, #1C2539 49.9%, #0E1117 50.1%, #05060A 100%); box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .offers-art { background: linear-gradient(160deg, #2A1B12 0%, #1F140D 100%); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, .1); }
html[data-theme="dark"] .ticket { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
html[data-theme="dark"] .chip-points { box-shadow: var(--shadow-1), inset 0 0 0 1.5px rgba(245, 179, 1, .4); }
html[data-theme="dark"] .toast { background: #2A2F3A; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
html[data-theme="dark"] .band { box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .cta { background: linear-gradient(180deg, #0F1D39 0%, #0D162C 55%, #0C111D 100%); box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .cta::before { background: radial-gradient(circle, rgba(160, 186, 255, .2), rgba(160, 186, 255, 0) 64%); }

/* Clinics */
html[data-theme="dark"] .c-hero { box-shadow: inset 0 -1px 0 var(--line); }
html[data-theme="dark"] .mock-card { /* product mocks stay light, as in the app's light theme */
  --ink: #0A0B0D; --ink-2: #4B5059; --blue: #0B6EF2; --blue-soft: #EAF2FE;
}
html[data-theme="dark"] .timing { color: #9CC6FF; }
html[data-theme="dark"] .compare tbody td.us, html[data-theme="dark"] .compare thead th.us { background: rgba(90, 162, 255, .08); }
html[data-theme="dark"] .layer { box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .layers::before { background: linear-gradient(90deg, rgba(90, 162, 255, 0), rgba(90, 162, 255, .35) 12%, rgba(90, 162, 255, .35) 88%, rgba(90, 162, 255, 0)); }
html[data-theme="dark"] .form-card { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); }
html[data-theme="dark"] .field :is(input, select, textarea):not(:focus) { box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .float, .ai-text, .hero-visual::before { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 10px; }
  .feature, .offers, .yours, .signup { gap: 48px; }
  .cards-4, .problems { grid-template-columns: repeat(2, 1fr); }
  .layers { grid-template-columns: 1fr 1fr 1fr; }
  .layers::before { display: none; }
  .layer.end { display: none; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .mock { transform: scale(.9); transform-origin: top center; }
}
@media (max-width: 1040px) { /* the header's links, language, theme and button need ~1015 px in Russian */
  .nav-links, .nav-right .lang-menu, .nav-right .btn { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  :root { --header: 62px; }
  .lang-menu.foot .lang-list { inset-inline-end: auto; inset-inline-start: 0; }
  .section { padding: 88px 0; }
  .hero { padding-top: calc(var(--header) + 40px); }
  .hero-grid, .c-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual { height: 636px; min-height: 0; } /* the whole screen, chat box included */
  .hero-fog { --fog: 64px; bottom: -120px; height: calc(var(--fog) + 120px); } /* solid on down past the doctor line */
  .hero-foot { position: relative; bottom: auto; padding-bottom: 28px; } /* under the phone, not over it */
  .hero-visual .phone { --w: 290px; }
  .float.a { left: calc(50% - 250px); top: 110px; }
  .float.b { right: calc(50% - 250px); top: 330px; }
  .qr-card { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; padding: 36px 0; }
  .stats-row > div:nth-child(3) { border-inline-start: 0; }
  .feature, .feature:nth-of-type(even), .offers, .yours, .signup, .verify { grid-template-columns: 1fr; }
  .feature { margin-top: 80px; gap: 36px; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
  .feature-art { height: 520px; padding-top: 48px; }
  .feature-art .phone { --w: 280px; }
  .yours-art { order: 2; height: 520px; }
  .band { grid-template-columns: 1fr; padding: 56px 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { grid-template-columns: 1fr; }
  .c-hero { padding-bottom: 80px; }
  .mock { height: 440px; transform: none; max-width: 520px; width: 100%; margin: 24px auto 0; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 640px; }
  .verify { padding: 36px 28px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --r-lg: 26px; }
  body { font-size: 16px; }
  br.d { display: none; }
  .c-hero br.d { display: inline; }
  .c-hero .display { font-size: 35px; }
  .hero .display { text-wrap: balance; }
  .section { padding: 72px 0; }
  .hero-visual { height: 552px; }
  .hero-fog { --fog: 58px; height: calc(var(--fog) + 120px); }
  .hero-foot { padding-bottom: 20px; }
  .hero-visual .phone { --w: 250px; }
  .float { display: none; }
  .stats-row dt { font-size: 28px; }
  .stats-row > div { padding: 4px 12px; }
  .feature-art { height: 470px; padding-top: 40px; }
  .feature-art .phone { --w: 252px; }
  .cards-4, .problems, .modules, .steps { grid-template-columns: 1fr; }
  .layers { grid-template-columns: 1fr; }
  .problem h3 { margin-top: 20px; }
  .yours-art { height: 440px; }
  .yours-art .phone { --w: 200px; }
  .yours-art .phone.back { left: 5%; top: 56px; }
  .yours-art .phone.front { right: 5%; top: 100px; }
  .offers-art { padding: 76px 18px 84px; }
  .ticket { grid-template-columns: 70px 1fr; }
  .ticket .body { padding: 16px 16px 16px 18px; }
  .chip-points { right: 18px; top: 18px; }
  .toast { left: 18px; bottom: 20px; }
  .band { padding: 44px 24px; }
  .cta { padding: 72px 20px; }
  .notice { border-radius: 20px; align-items: flex-start; justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-menu .row { flex-wrap: wrap; } /* language and theme on one line, a full-width button under them */
  .mobile-menu .row > .btn { flex-basis: 100%; height: 48px; font-size: 16px; }
  .mock { height: auto; display: grid; gap: 14px; margin-top: 8px; }
  .mock-card { position: relative; inset: auto; width: 100%; }
  .mock-member { display: none; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .verify { padding: 28px 20px; }
  .compare th, .compare td { padding: 16px 18px; }
}
@media (max-width: 380px) {
  .hero .display { font-size: 36px; }
}

/* ---------- Languages ---------- */
.i18n-wait body { opacity: 0; }
html:is([lang="ar"], [lang="ur"]) { --font: "Inter", "Noto Sans Arabic", system-ui, sans-serif; }
html:is([lang="hi"], [lang="ne"]) { --font: "Inter", "Noto Sans Devanagari", system-ui, sans-serif; }
html[lang="bn"] { --font: "Inter", "Noto Sans Bengali", system-ui, sans-serif; }
html[lang="ja"] { --font: "Inter", "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh"] { --font: "Inter", "Noto Sans SC", system-ui, sans-serif; }
/* Tight tracking and line height suit Latin type; joined and stacked scripts need room */
html:is([lang="ar"], [lang="ur"], [lang="hi"], [lang="ne"], [lang="bn"], [lang="ja"], [lang="zh"]) body * { letter-spacing: 0 !important; }
html:is([lang="ar"], [lang="ur"], [lang="hi"], [lang="ne"], [lang="bn"]) :is(.display, .h2, .h3) { line-height: 1.32; }
html:is([lang="ja"], [lang="zh"]) :is(.display, .h2, .h3) { line-height: 1.24; }
html[lang="ja"] :is(h1, h2, h3, h4, .lead) { word-break: auto-phrase; } /* break Japanese between phrases, not mid-word */
html:is([lang="ar"], [lang="ur"], [lang="hi"], [lang="ne"], [lang="bn"]) :is(.lead, .feature-copy > p, .card p, .checks li) { line-height: 1.75; }
/* Longer headlines get a smaller hero title */
html:is([lang="es"], [lang="fr"], [lang="pt"], [lang="de"], [lang="ru"], [lang="bn"], [lang="ne"], [lang="ur"], [lang="hi"]) .hero .display { font-size: clamp(36px, 4.6vw, 62px); }
html:is([lang="ja"], [lang="zh"]) .hero .display { font-size: clamp(34px, 4.2vw, 58px); }
html:is([lang="es"], [lang="fr"], [lang="pt"], [lang="de"], [lang="ru"], [lang="bn"], [lang="ne"], [lang="ur"], [lang="hi"], [lang="ja"]) .c-hero .display { font-size: clamp(34px, 4.4vw, 58px); }
@media (min-width: 601px) { html:is([lang="ja"], [lang="zh"]) .ai-text { white-space: nowrap; } }
/* Right to left: arrows point the reading way */
[dir="rtl"] :is(.link-arrow .ico, .btn .ico.sm) { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(3px); }
