/* MailYo — site vitrine. Palette « encre » de l'application (src/ui/theme.ts). */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f4f8;
  --surface: #ffffff;
  --surface-alt: #f1f2f6;
  --border: #e3e5ec;
  --separator: #ecedf2;
  --text: #15171e;
  --text-2: #5b6072;
  --text-3: #8b90a1;
  --primary: #3a4cd1;
  --primary-strong: #2b3bb3;
  --on-primary: #ffffff;
  --primary-soft: #e7e9fb;
  --on-primary-soft: #1d2780;
  --violet: #6a4cf2;
  --danger: #d2383f;
  --danger-soft: #fce9ea;
  --success: #1e8e5a;
  --bubble-in: #ffffff;
  --bubble-out: #e4e7fb;
  --chat-bg: #f3f4f8;

  --t1-bg: #e3e7fc; --t1-fg: #2f3da8;
  --t2-bg: #ddf1ea; --t2-fg: #17694a;
  --t3-bg: #fbe8d7; --t3-fg: #99510f;
  --t4-bg: #f7e1e7; --t4-fg: #a3304f;
  --t5-bg: #ebe2f8; --t5-fg: #5d3699;
  --t6-bg: #dceef6; --t6-fg: #1c6383;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 30, 0.06), 0 1px 1px rgba(21, 23, 30, 0.04);
  --shadow: 0 10px 30px -12px rgba(29, 39, 128, 0.25), 0 4px 12px -6px rgba(21, 23, 30, 0.08);
  --shadow-lg: 0 40px 80px -30px rgba(29, 39, 128, 0.45), 0 18px 36px -18px rgba(21, 23, 30, 0.25);
  --max: 1160px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter",
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101217;
    --bg-soft: #13161c;
    --surface: #171a21;
    --surface-alt: #1f232c;
    --border: #2a2e39;
    --separator: #252932;
    --text: #eceef3;
    --text-2: #a4a9b7;
    --text-3: #757b8c;
    --primary: #97a3ff;
    --primary-strong: #b3bcff;
    --on-primary: #121848;
    --primary-soft: #272e5e;
    --on-primary-soft: #dee2ff;
    --danger: #f27a7f;
    --danger-soft: #3a1d21;
    --success: #55c690;
    --bubble-in: #1f232c;
    --bubble-out: #2b3370;
    --chat-bg: #101217;
    --t1-bg: #2b3266; --t1-fg: #c9d0ff;
    --t2-bg: #173d31; --t2-fg: #9fe0c5;
    --t3-bg: #45301c; --t3-fg: #f5c799;
    --t4-bg: #472331; --t4-fg: #f4b3c5;
    --t5-bg: #362752; --t5-fg: #d5c1f5;
    --t6-bg: #16394a; --t6-fg: #a5d7ee;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 21px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 550; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface-alt); color: var(--text); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 28%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -20%; width: 700px; height: 700px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 14px; font-weight: 650;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; }
.eyebrow .dot svg { width: 13px; height: 13px; color: var(--on-primary); }
h1 {
  margin: 20px 0 18px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03;
  letter-spacing: -0.045em; font-weight: 800;
}
h1 .accent {
  background: linear-gradient(100deg, var(--violet), var(--primary) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px;
  border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 650;
}
.store:hover { text-decoration: none; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.75; line-height: 1.1; }
.store span { line-height: 1.15; font-size: 17px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--text-2); font-size: 14.5px; font-weight: 550; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- Phone mockups ---------- */
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 300px; height: 612px; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2a2d3a, #12141b);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; width: 86px; height: 24px;
  transform: translateX(-50%); background: #0b0c10; border-radius: 20px; z-index: 3;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone-back { right: 0; top: 0; transform: rotate(5deg); }
.phone-front { left: 0; top: 26px; transform: rotate(-4deg); z-index: 2; }

.status { height: 46px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 26px 6px; font-size: 12px; font-weight: 650; color: var(--text); }
.status i { display: inline-block; width: 16px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; margin-left: 4px; position: relative; }
.status i::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: currentColor; border-radius: 1px; }

.app-bar { display: flex; align-items: center; gap: 10px; padding: 6px 16px 8px; }
.app-bar .menu { width: 18px; height: 12px; border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); position: relative; }
.app-bar .menu::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--text); }
.app-bar strong { font-size: 21px; letter-spacing: -0.04em; flex: 1; }
.app-bar .ic { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-2); }

.search { margin: 2px 14px 10px; height: 38px; border-radius: 999px; background: var(--surface-alt); display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text-3); font-size: 13px; }
.search::before { content: ""; width: 11px; height: 11px; border: 2px solid var(--text-3); border-radius: 50%; }
.chips { display: flex; gap: 6px; padding: 0 14px 8px; overflow: hidden; }
.chip { flex: none; height: 27px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--on-primary-soft); }
.chip b { color: var(--text-3); font-weight: 650; }
.chip.on b { color: var(--primary); }

.row { display: flex; gap: 11px; align-items: center; padding: 8px 14px; }
.av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 650; letter-spacing: 0.02em; }
.av.t1 { background: var(--t1-bg); color: var(--t1-fg); }
.av.t2 { background: var(--t2-bg); color: var(--t2-fg); }
.av.t3 { background: var(--t3-bg); color: var(--t3-fg); }
.av.t4 { background: var(--t4-bg); color: var(--t4-fg); }
.av.t5 { background: var(--t5-bg); color: var(--t5-fg); }
.av.t6 { background: var(--t6-bg); color: var(--t6-fg); }
.row .txt { flex: 1; min-width: 0; }
.row .top { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; font-weight: 600; }
.row .top time { font-size: 11px; font-weight: 500; color: var(--text-3); }
.row.unread .top { font-weight: 750; }
.row.unread .top time { color: var(--primary); font-weight: 650; }
.row .sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.row .sub span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.unread .sub { color: var(--text); }
.badge { flex: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 10px; font-weight: 750; display: grid; place-items: center; }
.subjects { display: block; font-size: 9px; font-weight: 650; color: var(--primary); text-align: center; margin-top: 2px; }
.spam { font-size: 9.5px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 1px 6px; border-radius: 999px; }

.fab { position: absolute; right: 14px; bottom: 66px; width: 48px; height: 48px; border-radius: 16px; background: var(--primary); display: grid; place-items: center; box-shadow: 0 10px 20px -8px var(--primary); }
.fab svg { width: 20px; height: 20px; color: var(--on-primary); }
.tabs { margin-top: auto; height: 58px; border-top: 1px solid var(--separator); display: flex; justify-content: space-around; align-items: center; padding-bottom: 4px; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; color: var(--text-2); }
.tab i { width: 44px; height: 22px; border-radius: 999px; display: grid; place-items: center; }
.tab i::before { content: ""; width: 14px; height: 11px; border: 2px solid currentColor; border-radius: 3px; }
.tab.on { color: var(--text); font-weight: 750; }
.tab.on i { background: var(--primary-soft); color: var(--on-primary-soft); }

/* chat screen */
.chat-head { display: flex; align-items: center; gap: 9px; padding: 4px 14px 10px; border-bottom: 1px solid var(--separator); }
.chat-head .back { width: 9px; height: 9px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); margin-right: 4px; }
.chat-head .av { width: 34px; height: 34px; font-size: 12px; }
.chat-head b { display: block; font-size: 13.5px; line-height: 1.2; }
.chat-head small { font-size: 10.5px; color: var(--text-2); }
.chat { flex: 1; background: var(--chat-bg); padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.day { align-self: center; font-size: 10px; font-weight: 600; color: var(--text-2); background: var(--surface); padding: 3px 10px; border-radius: 999px; }
.bubble { max-width: 82%; padding: 7px 10px 5px; border-radius: 15px; font-size: 12.5px; line-height: 1.4; background: var(--bubble-in); box-shadow: var(--shadow-sm); }
.bubble.out { align-self: flex-end; background: var(--bubble-out); }
.bubble .who { display: block; font-size: 10.5px; font-weight: 700; color: var(--primary); }
.bubble time { display: block; text-align: right; font-size: 9px; color: var(--text-3); margin-top: 2px; }
.quote { display: block; border-left: 3px solid var(--primary); background: color-mix(in srgb, var(--on-primary-soft) 7%, transparent); border-radius: 7px; padding: 4px 7px; margin-bottom: 5px; font-size: 11px; color: var(--text-2); }
.quote b { color: var(--primary); display: block; font-size: 10px; }
.file { display: flex; align-items: center; gap: 8px; background: var(--surface-alt); border-radius: 10px; padding: 7px 8px; margin: 3px 0; }
.file i { width: 26px; height: 30px; border-radius: 6px; background: var(--t4-bg); color: var(--t4-fg); font-style: normal; font-size: 8px; font-weight: 800; display: grid; place-items: center; }
.file b { display: block; font-size: 11px; }
.file small { font-size: 9.5px; color: var(--text-3); }
.composer { display: flex; gap: 7px; align-items: center; padding: 8px 10px 14px; background: var(--chat-bg); }
.composer div { flex: 1; height: 38px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; padding: 0 14px; font-size: 12px; color: var(--text-3); box-shadow: var(--shadow-sm); }
.ring { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; position: relative; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 110; animation: countdown 5s linear infinite; }
.ring::after { content: ""; width: 11px; height: 11px; border-radius: 2px; background: var(--primary); }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 110; } }

.float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--separator); border-radius: 18px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow); font-size: 13.5px;
  animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13.5px; }
.float-card small { color: var(--text-2); font-size: 12px; }
.float-card .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.float-card .ico img { width: 38px; height: 38px; border-radius: 12px; }
.float-notif { left: 150px; top: -6px; width: 290px; }
.float-unsub { right: -10px; bottom: 40px; animation-delay: -3s; }
.float-unsub .ico { background: var(--t2-bg); color: var(--t2-fg); }
.float-unsub svg { width: 20px; height: 20px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Providers ---------- */
.providers { padding: 8px 0 40px; }
.providers p { text-align: center; color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 18px; }
.provider-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.provider-list li { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 650; font-size: 15px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.kicker { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -0.035em; margin: 10px 0 16px; font-weight: 800; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 19px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--separator); border-radius: var(--radius-lg);
  padding: 28px; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.feature .tile svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }
.tile.t1 { background: var(--t1-bg); color: var(--t1-fg); }
.tile.t2 { background: var(--t2-bg); color: var(--t2-fg); }
.tile.t3 { background: var(--t3-bg); color: var(--t3-fg); }
.tile.t4 { background: var(--t4-bg); color: var(--t4-fg); }
.tile.t5 { background: var(--t5-bg); color: var(--t5-fg); }
.tile.t6 { background: var(--t6-bg); color: var(--t6-fg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.checklist .ck { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.checklist .ck svg { width: 18px; height: 18px; }
.checklist b { display: block; font-size: 17px; }
.checklist span { color: var(--text-2); font-size: 16px; }

.panel { position: relative; border-radius: 32px; background: linear-gradient(150deg, var(--primary-soft), var(--bg-soft)); padding: 36px; border: 1px solid var(--separator); }
.panel .sheet { background: var(--surface); border-radius: 26px 26px 18px 18px; box-shadow: var(--shadow); padding: 10px 0 14px; max-width: 380px; margin: 0 auto; }
.panel .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
.panel h4 { margin: 0 22px 2px; font-size: 18px; }
.panel .sheet > small { display: block; margin: 0 22px 10px; color: var(--text-2); font-size: 13px; }
.panel .row { padding: 10px 22px; }
.panel .row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.panel .row .dot.off { background: transparent; }

/* privacy band */
.privacy-band { background: #12141c; color: #eceef3; border-radius: 36px; padding: 64px; position: relative; overflow: hidden; }
.privacy-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(106, 76, 242, 0.45), transparent 70%); }
.privacy-band .kicker { color: #a9b3ff; }
.privacy-band h2 { color: #fff; max-width: 640px; }
.privacy-band > p { color: #a4a9b7; max-width: 620px; font-size: 19px; margin: 0; position: relative; }
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.pillar { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 24px; }
.pillar svg { width: 26px; height: 26px; color: #a9b3ff; margin-bottom: 14px; }
.pillar b { display: block; font-size: 18px; color: #fff; margin-bottom: 6px; }
.pillar span { color: #a4a9b7; font-size: 15.5px; }
.privacy-band .more { position: relative; display: inline-block; margin-top: 34px; color: #c9d0ff; font-weight: 650; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--separator); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--separator); border-radius: 20px; padding: 4px 24px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* CTA */
.cta { text-align: center; padding: 96px 0 110px; }
.cta img { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-2); font-size: 19px; margin: 0 auto 30px; max-width: 520px; }
.cta .cta-row { justify-content: center; }

/* footer */
.footer { border-top: 1px solid var(--separator); padding: 40px 0 48px; color: var(--text-2); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer nav a { color: var(--text-2); font-weight: 550; }
.footer nav a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 64px 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--separator); }
.legal-hero h1 { font-size: clamp(36px, 4.6vw, 52px); margin: 12px 0 10px; }
.legal-hero p { color: var(--text-2); margin: 0; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc b { display: block; color: var(--text-3); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--primary); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.callout { border-radius: 20px; padding: 20px 22px; background: var(--primary-soft); color: var(--on-primary-soft); margin: 22px 0; }
.callout p { color: inherit; margin: 0; }
.callout strong { color: inherit; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15.5px; border: 1px solid var(--separator); border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--separator); }
.table th { background: var(--bg-soft); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 650; color: var(--text); }
.table code { font-size: 12.5px; background: var(--surface-alt); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.todo { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 650; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .phones { height: 620px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .features, .steps, .pillars { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero { padding: 40px 0 64px; }
  .phones { height: 560px; transform: scale(0.86); transform-origin: top center; margin-bottom: -60px; }
  .phone-back { right: -20px; }
  .float-notif { left: 60px; width: 260px; }
  .features, .steps, .pillars { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .privacy-band { padding: 40px 24px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
