:root {
  color-scheme: light dark;
  --accent: #ff3b30;
  --accent-strong: #d9202b;
  --ink: #151515;
  --muted: #66666d;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --surface-3: rgba(255, 255, 255, 0.78);
  --line: rgba(20, 20, 24, 0.1);
  --shadow: 0 22px 60px rgba(60, 18, 22, 0.12);
  --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - 40px), var(--page)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.header-row { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 760; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 8px 24px rgba(255,59,48,.13); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a, .header-action { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 590; padding: 10px 12px; border-radius: 12px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-switch { display: flex; background: var(--surface-2); padding: 3px; border-radius: 11px; }
.language-switch button { border: 0; background: transparent; color: var(--muted); padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 760; }
.language-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 15px; padding: 0 19px; text-decoration: none; font-weight: 680; cursor: pointer; background: var(--accent); color: #fff; transition: transform .18s ease, background .18s ease; }
.button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.button.secondary { background: var(--surface-2); color: var(--ink); }
.button.secondary:hover { background: color-mix(in srgb, var(--surface-2) 84%, var(--ink)); }
.mobile-menu { display: none; border: 0; background: var(--surface-2); color: var(--ink); width: 42px; height: 42px; border-radius: 13px; cursor: pointer; }

.hero { position: relative; overflow: clip; padding: 92px 0 84px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; right: -230px; top: -250px; background: radial-gradient(circle, rgba(255,59,48,.18), rgba(255,59,48,0) 67%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr); align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 14px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(48px, 7vw, 84px); line-height: .98; }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; }
h3 { font-size: 21px; }
.lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; color: var(--muted); font-size: 14px; }
.phone { width: min(100%, 390px); margin-inline: auto; padding: 14px; border-radius: 48px; background: #121214; box-shadow: 0 38px 90px rgba(16,16,20,.28); transform: rotate(2deg); }
.phone-screen { min-height: 610px; border-radius: 37px; background: #f8f8fa; color: #141416; padding: 26px 18px 20px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 42px; font-weight: 700; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #ffe7e5; }
.chat { display: grid; gap: 11px; }
.bubble { width: fit-content; max-width: 86%; padding: 12px 15px; border-radius: 19px; background: #e9e9ee; font-size: 15px; line-height: 1.35; }
.bubble.mine { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.theirs { border-bottom-left-radius: 6px; }
.nearby-pill { margin: 31px auto 0; width: fit-content; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #e8f7ed; color: #19743a; font-size: 13px; font-weight: 650; }
.nearby-dot { width: 8px; height: 8px; border-radius: 50%; background: #25b657; box-shadow: 0 0 0 4px rgba(37,182,87,.13); }

.section { padding: 94px 0; }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; padding: 26px; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #ffe9e7; color: var(--accent); margin-bottom: 22px; font-weight: 800; }
.card p { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--line); }
.stat { padding: 30px; background: var(--surface); }
.stat strong { display: block; margin-bottom: 8px; font-size: 22px; }
.stat span { color: var(--muted); line-height: 1.45; }
.cta { padding: 42px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #e3212d, #ff5449); box-shadow: var(--shadow); }
.cta h2 { max-width: 680px; margin-bottom: 13px; }
.cta p { max-width: 680px; margin-bottom: 24px; color: rgba(255,255,255,.83); font-size: 18px; }
.cta .button { background: #fff; color: #b41720; }

.page-hero { padding: 76px 0 44px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 70px); }
.page-hero .lead { max-width: 800px; }
.content-layout { display: grid; grid-template-columns: 240px minmax(0, 800px); gap: 64px; align-items: start; padding-bottom: 96px; }
.side-nav { position: sticky; top: 100px; display: grid; gap: 5px; }
.side-nav a { padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-size: 14px; }
.side-nav a:hover { color: var(--ink); background: var(--surface-2); }
.prose { min-width: 0; }
.prose section { scroll-margin-top: 110px; margin-bottom: 58px; }
.prose h2 { font-size: 34px; }
.prose h3 { margin-top: 30px; font-size: 21px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; }
.notice { padding: 18px 20px; border: 1px solid rgba(255,59,48,.18); border-radius: 18px; background: rgba(255,59,48,.07); color: var(--muted); line-height: 1.55; }
.notice strong { color: var(--ink); }

.help-search { position: relative; max-width: 680px; margin: 30px 0 46px; }
.help-search input { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 17px; padding: 0 18px 0 50px; background: var(--surface-2); color: var(--ink); outline: none; }
.help-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,59,48,.12); }
.help-search::before { content: "⌕"; position: absolute; left: 18px; top: 12px; color: var(--muted); font-size: 25px; }
.faq-group { margin-bottom: 50px; }
.faq-group h2 { font-size: 28px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 42px 20px 0; font-size: 17px; font-weight: 650; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 24px; color: var(--muted); }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 44px 22px 0; color: var(--muted); line-height: 1.65; }
.empty-help { display: none; padding: 42px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: 22px; }

.founder-hero { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; }
.portrait { aspect-ratio: 1; border-radius: 34px; display: grid; place-items: center; background: linear-gradient(145deg, #ffebe9, #f6f6f8); color: var(--accent); font-size: 72px; font-weight: 760; box-shadow: var(--shadow); }
.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--surface); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-brand p { color: var(--muted); max-width: 400px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
[data-lang-content][hidden] { display: none !important; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f4f6; --muted: #a4a4ad; --surface: #080809; --surface-2: #171719; --surface-3: rgba(14,14,16,.76); --line: rgba(255,255,255,.12); --shadow: 0 26px 70px rgba(0,0,0,.42); }
  .phone { background: #26262a; }
  .card-icon { background: rgba(255,59,48,.15); }
  .portrait { background: linear-gradient(145deg, #351719, #18181b); }
}

@media (max-width: 940px) {
  .mobile-menu { display: grid; place-items: center; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 78px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
  .main-nav.open { display: grid; }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone { width: 360px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .side-nav { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--page)); }
  .brand span { display: none; }
  .header-row { min-height: 64px; gap: 10px; }
  .header-actions { gap: 5px; }
  .header-action { padding: 9px 7px; font-size: 13px; }
  .hero { padding: 58px 0 64px; }
  .hero-grid { gap: 48px; }
  h1 { font-size: 47px; }
  .phone { width: min(100%, 340px); }
  .phone-screen { min-height: 550px; }
  .section { padding: 70px 0; }
  .grid-2, .grid-3, .stat-band { grid-template-columns: 1fr; }
  .cta { padding: 30px 24px; }
  .page-hero { padding-top: 54px; }
  .founder-hero { grid-template-columns: 1fr; }
  .portrait { width: 210px; }
  .footer-grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
