/* Wellness Studio — публичный сайт. Стиль повторяет тему приложения «спокойное стекло»:
   тёплый песочный фон, какао и велюровый акцент, системный шрифт Apple, скруглённые стеклянные карточки.
   Раскладка: один столбец на телефоне, две колонки «текст + визуал» от 900px. */
:root {
  --bg: #eee9df;
  --bg-2: #e6dfd2;
  --card: #fffcf5;
  --glass: rgba(255, 252, 245, 0.72);
  --ink: #302d26;
  --ink-2: #726653;
  --ink-3: #8f8370;
  --accent: #77563e;
  --accent-2: #654b36;
  --accent-ink: #ffffff;
  --accent-soft: rgba(151, 113, 78, 0.15);
  --line: rgba(104, 100, 81, 0.16);
  --sand: #d6cbbb;
  --shadow: 0 2px 4px rgba(48, 45, 38, 0.04), 0 18px 48px rgba(48, 45, 38, 0.10);
  --shadow-soft: 0 1px 2px rgba(48, 45, 38, 0.05), 0 8px 24px rgba(48, 45, 38, 0.06);
  --phone-frame: #2a2420;
  --ok: #47765b;
  --warn: #a8743a;
  --stop: #a04a3c;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --radius-xl: 28px;
  --radius-l: 20px;
  --radius-m: 14px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #29231e; --bg-2: #231e1a; --card: #3b3028; --glass: rgba(59, 48, 40, 0.74);
    --ink: #f4f0e5; --ink-2: #d0c2a4; --ink-3: #a8997f; --accent: #e2c29f; --accent-2: #dfc2a0; --accent-ink: #302319;
    --accent-soft: rgba(184, 140, 94, 0.22); --line: rgba(201, 198, 181, 0.18); --sand: #665447;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 48px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    --phone-frame: #1a1613; --ok: #b3d1bc; --warn: #e0b47a; --stop: #e59a8c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #29231e; --bg-2: #231e1a; --card: #3b3028; --glass: rgba(59, 48, 40, 0.74);
  --ink: #f4f0e5; --ink-2: #d0c2a4; --ink-3: #a8997f; --accent: #e2c29f; --accent-2: #dfc2a0; --accent-ink: #302319;
  --accent-soft: rgba(184, 140, 94, 0.22); --line: rgba(201, 198, 181, 0.18); --sand: #665447;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 18px 48px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
  --phone-frame: #1a1613; --ok: #b3d1bc; --warn: #e0b47a; --stop: #e59a8c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 10px; }
.skip:focus { left: 16px; z-index: 100; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow--light { color: rgba(255, 250, 242, 0.85); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.lead--center { margin-inline: auto; text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; line-height: 1.5; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Monogram, as on the app's splash screen */
.monogram {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  font-family: var(--font-serif); font-weight: 400; font-size: 20px; color: var(--accent);
  line-height: 1; padding-top: 1px;
}
.monogram--big { width: 96px; height: 96px; font-size: 58px; margin: 0 auto 18px; box-shadow: var(--shadow-soft); }
.monogram--tiny { width: 24px; height: 24px; font-size: 14px; vertical-align: -6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--solid { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 10px 24px rgba(119, 86, 62, 0.28); }
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(119, 86, 62, 0.32); }
.btn--ghost { background: var(--glass); color: var(--ink); border-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: var(--card); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn:active { transform: translateY(0) scale(0.98); }

/* Top bar: compact translucent glass, like the app's dock */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1180px; margin: 0 auto;
  padding-block: 10px; padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a.is-current { background: var(--accent-soft); color: var(--ink); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2); padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 70%;
  background: radial-gradient(60% 60% at 70% 30%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; gap: 40px; align-items: center;
}
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions--center { justify-content: center; }
.hero__note { color: var(--warn); font-size: 0.92rem; }
.hero__facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero__facts li { display: grid; gap: 4px; min-width: 0; }
.hero__facts strong { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero__facts span { font-size: 0.82rem; color: var(--ink-2); line-height: 1.35; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 480px; }

/* Phone frame */
.phone {
  position: relative; width: 300px; max-width: 78vw; aspect-ratio: 375 / 812;
  border-radius: 48px; background: var(--phone-frame); padding: 10px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: var(--phone-frame); z-index: 2;
}
.phone__screen { width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: #eee9df; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--hero { animation: float 7s ease-in-out infinite; }
.phone--small { width: 240px; margin: 0 auto; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(-0.4deg); } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft); font-size: 0.86rem; font-weight: 600; color: var(--ink);
}
.chip svg { width: 18px; height: 18px; color: var(--accent); }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(71, 118, 91, 0.18); }
.chip__ring { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--accent); border-right-color: var(--sand); }
.chip--a { top: 12%; left: 0; animation: chip 9s ease-in-out infinite; }
.chip--b { top: 48%; right: 0; animation: chip 11s ease-in-out infinite reverse; }
.chip--c { bottom: 12%; left: 4%; animation: chip 10s ease-in-out infinite 1s; }
@keyframes chip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
  .hero__visual { min-height: 640px; }
  .phone--hero { width: 320px; }
  .chip--a { left: 6%; } .chip--b { right: 4%; } .chip--c { left: 10%; }
}

/* Bands and sections */
.band { padding-block: clamp(56px, 8vw, 112px); }
section[id], .hero { scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.band--tint { background: var(--bg-2); }
.band__inner { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 36px; text-align: center; justify-items: center; }
.split { display: grid; gap: 32px; align-items: center; }
.split__copy { display: grid; gap: 18px; min-width: 0; }
.split__copy p { color: var(--ink-2); }
.split__visual { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__copy { order: 2; }
  .split--reverse .split__visual { order: 1; }
}

.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.feature {
  display: grid; grid-template-rows: 190px auto; text-decoration: none; overflow: hidden;
  border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature img { width: 100%; height: 100%; object-fit: cover; }
.feature__img--portrait { object-position: top; }
.feature__body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.feature__body p { color: var(--ink-2); font-size: 0.95rem; }

.tile { border-radius: var(--radius-xl); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.tile img { height: 170px; width: 100%; object-fit: cover; }
.tile__body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.tile__body p { color: var(--ink-2); font-size: 0.94rem; }

/* Chips for the plan demo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.chips button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips button:hover:not([aria-selected="true"]) { background: var(--accent-soft); }

.plan-card {
  border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 24px; display: grid; gap: 18px;
}
.plan-card__head { display: grid; gap: 6px; }
.plan-card__scheme { color: var(--ink-2); font-size: 0.95rem; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ex; }
.plan-list li {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-m); background: var(--bg); min-width: 0;
  animation: rise .5s ease both; animation-delay: calc(var(--i, 0) * 60ms);
}
.plan-list li::before {
  counter-increment: ex; content: counter(ex);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums;
}
.plan-list .ex { display: grid; gap: 2px; min-width: 0; }
.plan-list .ex__name { font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere; }
.plan-list .ex__role { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-list .ex__dose { font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--ink-2); text-align: right; white-space: nowrap; }
.plan-list li[data-role="main"] { background: var(--accent-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Contraindication search */
.search-card { border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 14px; }
.search-label { font-size: 0.9rem; color: var(--ink-2); }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 14px 0; outline: none; }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.search-results:empty { display: none; }
.search-results button {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid transparent; background: var(--bg); color: var(--ink); padding: 11px 14px; border-radius: var(--radius-m);
  font: inherit; cursor: pointer; transition: background .15s, border-color .15s;
}
.search-results button:hover, .search-results button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.search-results .name { min-width: 0; overflow-wrap: anywhere; }
.tier { flex: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.tier--shape { background: rgba(71, 118, 91, 0.16); color: var(--ok); }
.tier--specialist { background: rgba(168, 116, 58, 0.16); color: var(--warn); }
.tier--noGym { background: rgba(160, 74, 60, 0.16); color: var(--stop); }
.verdict { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius-l); background: var(--bg); border: 1px solid var(--line); }
.verdict__tier { justify-self: start; }
.verdict p { color: var(--ink-2); font-size: 0.95rem; }
.search-empty { padding: 12px 14px; color: var(--ink-3); font-size: 0.92rem; }

/* Avatar stage */
.avatar-stage { display: grid; gap: 28px; align-items: center; justify-items: center; }
.hair-stage { position: relative; display: grid; justify-items: center; gap: 12px; width: min(100%, 360px); }
.hair-stage__ring {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--card), var(--bg-2) 70%);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}
.hair-stage img { position: relative; width: 300px; height: 300px; object-fit: contain; object-position: center; transition: opacity .25s ease; }
.hair-stage__name { font-weight: 600; font-size: 1.1rem; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.segmented button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.segmented button.is-active { background: var(--accent); color: var(--accent-ink); }
.hair-strip {
  display: flex; gap: 10px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 14px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hair-strip::-webkit-scrollbar { display: none; }
.hair-strip button {
  flex: none; width: 84px; height: 84px; border-radius: 50%; scroll-snap-align: center; cursor: pointer; padding: 0;
  border: 2px solid transparent; background: var(--card); overflow: hidden; transition: transform .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-soft);
}
.hair-strip button img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.15); }
.hair-strip button[aria-pressed="true"] { border-color: var(--accent); transform: scale(1.06); }
.hair-strip button:hover { transform: scale(1.06); }
@media (min-width: 900px) {
  .avatar-stage { grid-template-columns: 1fr 1fr 260px; }
  .hair-strip { grid-column: 1 / 3; }
  .hair-stage { grid-column: 1; }
  .avatar-stage .phone--small { grid-column: 3; grid-row: 1 / 3; }
}
@media (min-width: 900px) and (max-width: 1100px) { .avatar-stage { grid-template-columns: 1fr 1fr; } .avatar-stage .phone--small { grid-column: 2; grid-row: 1; } }

/* Checks list */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377563e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 8'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* Photo card with scan badge */
.photo-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; max-width: 520px; margin: 0 auto; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card__overlay { position: absolute; inset: auto 0 0; padding: 28px 24px; background: linear-gradient(180deg, transparent, rgba(40, 30, 22, 0.78)); color: #fffaf2; display: grid; gap: 6px; }
.photo-card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.scan-badge {
  position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px; background: rgba(255, 252, 245, 0.86); color: #302d26; font-size: 0.86rem; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.scan-badge__bar { width: 26px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #302d26 0 2px, transparent 2px 4px); position: relative; overflow: hidden; }
.scan-badge__bar::after { content: ""; position: absolute; inset: -2px auto; width: 2px; background: var(--stop); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { left: 0; } 50% { left: 24px; } }

/* Chat demo */
.chat { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chat__label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.chat__bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; font-size: 0.97rem; line-height: 1.45; }
.chat__bubble--me { justify-self: end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat__bubble--ai { justify-self: start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat__typing { display: inline-flex; gap: 5px; padding: 12px 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.4s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: .2s; } .chat__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* CTA band */
.band--cta { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.cta { max-width: 640px; margin: 0 auto; text-align: center; display: grid; gap: 18px; justify-items: center; padding: 40px 24px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta p { color: var(--ink-2); }

.footer { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; gap: 8px; }

/* Reveal on scroll: visible at rest, gently settles when it enters */
.reveal { opacity: 1; transform: translateY(14px); transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s ease; }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
  .phone--hero, .chip, .chip__ring, .scan-badge__bar::after, .chat__typing span, .plan-list li { animation: none !important; }
  html { scroll-behavior: auto; }
}
