/* Vidora — shared site styles.
   Tokens mirror the app's Figma (file 4hOHhXHoPPNtfMJpviqlnJ): flat Primary/500
   #F3246D accent, Inter, dark "liquid glass" surfaces. */

:root {
  color-scheme: dark;
  --bg: #0f0e12;
  --bg-alt: #131217;
  --surface: #18171c;
  --surface-2: #201e25;
  --line: #2a2830;
  --line-strong: #3a3741;
  --text: #f4f3f6;
  --text-2: #c2c0c8;
  --muted: #9d9ba5;
  --dim: #75737c;
  --accent: #f3246d;
  --accent-hover: #ff3d80;
  --accent-ink: #ff6f9f;
  --accent-soft: rgba(243, 36, 109, 0.14);
  --accent-glow: rgba(243, 36, 109, 0.35);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 9vw, 112px); scroll-margin-top: var(--header-h); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.h1 {
  font-weight: 700; font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.03; letter-spacing: -0.035em; margin: 22px 0 0;
  text-wrap: balance;
}
.h2 {
  font-weight: 700; font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1; letter-spacing: -0.025em; margin: 0;
  text-wrap: balance;
}
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; color: var(--text-2); margin: 22px 0 0; max-width: 560px; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--glass); border-color: var(--glass-line); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--block { width: 100%; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #000; border: 1px solid var(--line-strong); color: #fff; text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.store-btn:hover { border-color: #5a5663; background: #0b0b0d; }
.store-btn svg { flex: none; width: 26px; height: 26px; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__top { font-size: 11px; color: #cfcdd4; letter-spacing: 0.01em; }
.store-btn__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { border-color: var(--line-strong); background: #000; }
.store-btn.is-soon .store-btn__top { color: var(--accent-ink); font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 14, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }
.topnav { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; }
.topnav a { text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 10px; transition: background-color .15s, color .15s; }
.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.topnav .btn { padding: 10px 16px; font-size: 14px; margin-left: 8px; color: #fff; }
.topnav .btn:hover { background: var(--accent-hover); color: #fff; }
.navtoggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); cursor: pointer;
}

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .navtoggle { display: inline-flex; }
  .topnav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 14px; }
  .topnav.is-open { display: flex; }
  .topnav a { text-align: center; padding: 12px; }
  .topnav .btn { margin: 6px 0 0; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 18%, rgba(243, 36, 109, 0.28), transparent 70%),
    radial-gradient(520px 380px at 6% 92%, rgba(124, 58, 237, 0.18), transparent 70%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 96px);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 44px 0 0; padding: 0; list-style: none; }
.hero__facts strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.hero__facts span { color: var(--dim); font-size: 13.5px; }
.hero__visual { position: relative; display: flex; justify-content: center; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 8px; }
}

/* ---------- Phone mockup ---------- */

.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 375 / 812; flex: none;
  padding: calc(var(--w) * 0.03); border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(160deg, #2b2830, #0b0a0d 40%, #16141a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 30px 90px -40px var(--accent-glow);
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.12); background: #000;
  container-type: inline-size;
}
.phone__screen > video,
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone__island {
  position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 30%; height: 3.3%; border-radius: 999px; background: #000;
}

.hero .phone { --w: min(310px, 74vw); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 16px;
  background: rgba(24, 23, 28, 0.72); border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  font-size: 13px; line-height: 1.3;
}
.float-card img { width: 34px; height: 34px; border-radius: 9px; }
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); font-size: 12px; }
.float-card--notif { top: 14%; left: max(-40px, calc(50% - 250px)); max-width: 250px; }
.float-card--spec { bottom: 12%; right: max(-24px, calc(50% - 230px)); gap: 8px; font-weight: 600; }
.float-card--spec .pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

@media (max-width: 520px) {
  .float-card--notif { left: 0; top: 6%; }
  .float-card--spec { right: 0; bottom: 6%; }
}

/* ---------- Photo → video demo ---------- */

.demo { display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; gap: clamp(12px, 2vw, 22px); align-items: center; }
.demo__media {
  position: relative; aspect-ratio: 9 / 14; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.demo__media img,
.demo__media video { width: 100%; height: 100%; object-fit: cover; }
.demo__media--photo img { filter: saturate(0.9); }
.tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.6); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600;
}
.tag--accent { background: var(--accent); border-color: transparent; }
.demo__arrow { color: var(--dim); display: flex; justify-content: center; }
.demo__prompt {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.demo__label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.demo__label span:last-child { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.demo__text {
  min-height: 118px; padding: 14px; border-radius: 14px;
  background: #121116; border: 1px solid var(--line);
  font-size: 15px; line-height: 1.55; color: var(--text);
}
.demo__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo__opts { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); font-size: 13px; font-weight: 600; color: var(--text-2);
}
.chip.is-on { background: var(--accent-soft); border-color: rgba(243, 36, 109, 0.5); color: var(--accent-ink); }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr 1fr; }
  .demo__prompt { grid-column: 1 / -1; order: -1; }
  .demo__arrow { display: none; }
}
@media (max-width: 520px) {
  .demo { grid-template-columns: 1fr 1fr; gap: 10px; }
  .demo__media { aspect-ratio: 9 / 15; border-radius: var(--radius); }
}

/* ---------- Features ---------- */

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.icon-tile svg { width: 22px; height: 22px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill-row .chip { font-weight: 500; }
.pill-row .chip svg { width: 15px; height: 15px; color: var(--accent-ink); }

@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */

.how { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 18px; font-weight: 600; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.how__phones { position: relative; display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); }
.how__phones .phone { --w: min(260px, 40vw); }
.how__phones .phone:last-child { margin-top: 64px; }

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .how__phones { order: -1; }
}
@media (max-width: 520px) {
  .how__phones .phone { --w: 43vw; }
  .how__phones .phone:last-child { margin-top: 40px; }
}

/* Composer screen, drawn in HTML so it matches the shipped app (prompt cap
   2048 — the API wins over the Figma's 0/2800). Sized in 1/375ths of the
   screen width via container query units. */
.composer {
  --u: calc(100cqw / 375);
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: calc(56 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u));
  background:
    radial-gradient(calc(330 * var(--u)) calc(330 * var(--u)) at 100% 0%, rgba(243, 36, 109, 0.35), transparent 70%),
    #120f14;
  font-size: calc(14 * var(--u));
}
.composer__bar { display: flex; align-items: center; justify-content: space-between; height: calc(36 * var(--u)); }
.composer__logo { display: flex; align-items: center; gap: calc(6 * var(--u)); font-weight: 700; letter-spacing: 0.06em; font-size: calc(15 * var(--u)); }
.composer__logo img { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.composer__round {
  width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
}
.composer__round svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.composer__card {
  position: relative; margin-top: calc(33 * var(--u)); padding: calc(16 * var(--u));
  border-radius: calc(18 * var(--u)); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.composer__tab {
  position: absolute; top: calc(-17 * var(--u)); left: 50%; transform: translateX(-50%);
  padding: calc(4 * var(--u)) calc(34 * var(--u)); border-radius: calc(14 * var(--u)) calc(14 * var(--u)) 0 0;
  background: linear-gradient(180deg, #ff4f8b, var(--accent)); font-weight: 600; font-size: calc(13 * var(--u)); white-space: nowrap;
}
.composer__upload {
  position: relative; aspect-ratio: 1 / 1; border-radius: calc(10 * var(--u)); overflow: hidden;
  border: calc(1.5 * var(--u)) dashed var(--accent); background: #4a3e46;
}
.composer__upload img { width: 100%; height: 100%; object-fit: cover; }
.composer__label { margin: calc(16 * var(--u)) 0 calc(8 * var(--u)); font-weight: 600; font-size: calc(15 * var(--u)); }
.composer__field {
  position: relative; height: calc(92 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: calc(10 * var(--u)); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-2); font-size: calc(13 * var(--u)); line-height: 1.45;
}
.composer__count { position: absolute; right: calc(10 * var(--u)); bottom: calc(8 * var(--u)); color: var(--dim); font-size: calc(12 * var(--u)); }
.composer__actions { display: flex; gap: calc(16 * var(--u)); margin-top: auto; }
.composer__cfg {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  height: calc(48 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); font-size: calc(14 * var(--u));
}
.composer__cfg i { width: 1px; height: calc(16 * var(--u)); background: rgba(255, 255, 255, 0.3); }
.composer__go {
  flex: 1; display: grid; place-items: center; height: calc(48 * var(--u)); border-radius: 999px;
  background: var(--accent); font-weight: 700; font-size: calc(17 * var(--u));
}
.composer__nav {
  display: flex; gap: calc(8 * var(--u)); margin-top: calc(28 * var(--u)); padding: calc(6 * var(--u));
  height: calc(64 * var(--u)); border-radius: 999px;
  background: rgba(243, 36, 109, 0.12); border: 1px solid rgba(255, 255, 255, 0.1);
}
.composer__nav span {
  flex: 1; display: grid; place-items: center; border-radius: 999px; color: var(--muted); font-size: calc(12 * var(--u));
}
.composer__nav span.is-on { background: rgba(255, 255, 255, 0.1); color: var(--text); }

/* ---------- Gems & Pro ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.plan--pro { border-color: rgba(243, 36, 109, 0.55); background: linear-gradient(160deg, rgba(243, 36, 109, 0.16), var(--surface) 55%); }
.plan__badge { position: absolute; top: 20px; right: 20px; padding: 5px 11px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.plan .checks { margin-bottom: 26px; }
.plan h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 6px; }
.plan > p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.checks svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); margin-top: 1px; }
.plan > .plan__note { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq details > div p { margin: 0; }
.faq details > div p + p { margin-top: 10px; }
.faq a { color: var(--accent-ink); }

/* ---------- CTA band ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 60px); border-radius: 28px;
  border: 1px solid rgba(243, 36, 109, 0.35);
  background: radial-gradient(600px 320px at 50% -10%, rgba(243, 36, 109, 0.45), transparent 70%), linear-gradient(160deg, #2a1220, #140f18);
}
.cta img { width: 64px; height: 64px; margin: 0 auto; }
.cta h2 { margin-top: 18px; }
.cta p { color: #e3d3dc; font-size: 17px; margin: 12px auto 30px; max-width: 460px; }
.cta .store-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 32px; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer__brand img { width: 24px; height: 24px; }
.footer__brand strong { font-size: 15px; letter-spacing: 0.06em; }
.footer__brand small { color: var(--dim); font-size: 13.5px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; }
.footer__nav a { text-decoration: none; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__nav a[aria-current="page"] { color: var(--accent-ink); }

/* ---------- Legal documents ---------- */

.page-head { position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 340px at 85% 0%, rgba(243, 36, 109, 0.22), transparent 70%);
}
.page-head .wrap { position: relative; padding-block: clamp(44px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-weight: 700; font-size: clamp(34px, 6vw, 54px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 0; }
.page-head p { color: var(--dim); font-size: 14px; margin: 16px 0 0; }
.page-head p.lead { color: var(--text-2); font-size: 17px; }

.doc-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding-bottom: clamp(60px, 8vw, 100px); }
.doc-toc { align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
.doc-toc__title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 0 0 14px 12px; }
.doc-toc nav { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid var(--line); }
.doc-toc a {
  text-decoration: none; color: var(--muted); font-size: 13.5px; padding: 6px 12px;
  margin-left: -1px; border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { color: var(--accent-ink); font-weight: 600; border-left-color: var(--accent); }

.doc { max-width: 720px; }
.doc__intro { font-size: 17px; line-height: 1.7; color: var(--text-2); margin: 0 0 40px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.doc section { scroll-margin-top: calc(var(--header-h) + 24px); margin-bottom: 44px; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; }
.doc h2 span { font-size: 14px; font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.doc h3 { font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent-ink); }
.doc .kv { display: grid; gap: 10px; margin: 16px 0; }
.doc .kv div { display: flex; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.doc .kv b { min-width: 150px; color: var(--text); font-weight: 600; }
.doc .kv span { color: var(--muted); font-size: 15px; }
.doc .clauses { display: grid; gap: 10px; }
.doc .clauses div { display: flex; gap: 14px; }
.doc .clauses b { flex: none; min-width: 32px; color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .doc-grid { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { display: none; }
}
@media (max-width: 520px) {
  .doc .kv div { flex-direction: column; gap: 4px; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: clamp(60px, 8vw, 100px); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
a.contact-card:hover { border-color: rgba(243, 36, 109, 0.5); }
.contact-card .icon-tile { width: 42px; height: 42px; flex: none; }
.contact-card b { display: block; font-size: 15px; margin-bottom: 3px; }
.contact-card span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.contact-card .accent-text { color: var(--accent-ink); word-break: break-all; }
.contact-card a { color: var(--accent-ink); text-decoration: none; }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-top: 16px; }
.field-row .field { margin-top: 0; }
.field span { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font: 15px/1.5 var(--font); outline: none; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: #6a6872; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }
.form-card .btn { margin-top: 20px; }
.form-note { color: var(--dim); font-size: 12.5px; text-align: center; margin: 14px 0 0; }
.form-note a { color: var(--muted); }
.sent { text-align: center; padding: 40px 12px; }
.sent .icon-tile { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto; }
.sent .icon-tile svg { width: 28px; height: 28px; }
.sent h2 { font-size: 22px; font-weight: 600; margin: 18px 0 8px; }
.sent p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .field-row .field + .field { margin-top: 16px; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound h1 { font-size: clamp(64px, 14vw, 120px); line-height: 1; margin: 0; letter-spacing: -0.04em; }
.notfound p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .phone,
  .demo__caret { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 520px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__facts { gap: 14px 28px; }
}
