/* Keepers — site styles. Tokens mirror Sources/Theme.swift. */

:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --fill: #EFEBE4;
  --label: #1C1A17;
  --label2: #6B655C;
  --label3: #8F887C;
  --sep: #E1DBD1;
  --accent: #C8722E;
  --accent-ink: #9C5A22;
  --accent-wash: #F3E3CE;
  --cinema: #0E0D0C;

  --speech: #E7C9A6;
  --faces: #D9A96E;
  --motion: #C8842F;
  --quality: #9C5A22;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 16px;
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1C1A18;
    --fill: #262320;
    --label: #F4F1EC;
    --label2: #A8A197;
    --label3: #857E73;
    --sep: #34302B;
    --accent: #E08B42;
    --accent-ink: #E8A263;
    --accent-wash: #3A2A1A;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label3);
  margin: 0 0 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--sep);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--label);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--label2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--label); }

@media (max-width: 720px) {
  .nav a:not(.button) { display: none; }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}

.button:hover { filter: brightness(1.06); }
.button.small { padding: 9px 16px; border-radius: 11px; font-size: 14px; }
.button svg { width: 18px; height: 18px; }

/* Before the App Store link exists — the same shape, not clickable. */
.button.soon { background: var(--fill); color: var(--label) !important; cursor: default; filter: none; }

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1320 / 2868;
  border-radius: 13.5% / 6.2%;
  padding: 9px; /* fixed: a % here resolves against the parent, not the phone */
  background: #1A1816;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -12px rgba(20, 15, 10, 0.35),
    0 12px 24px -8px rgba(20, 15, 10, 0.18);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11.2% / 5.2%;
}

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

.hero { padding: 88px 0 72px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.hero .lede { font-size: 20px; line-height: 1.5; color: var(--label2); max-width: 540px; margin: 0 0 32px; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero .cta-note { font-size: 14px; color: var(--label3); }
.hero .phone { width: 300px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .phone { margin: 0 auto; width: 260px; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; border-top: 1px solid var(--sep); }

section h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

section .intro { font-size: 18px; color: var(--label2); max-width: 620px; margin: 0 0 48px; }

@media (max-width: 720px) {
  section { padding: 60px 0; }
}

/* How it works — four phones in a row */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps .phone { max-width: 240px; }

.steps h3 {
  font-size: 18px;
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.steps h3::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

.steps p { margin: 0; font-size: 15px; color: var(--label2); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps .phone { max-width: 260px; margin: 0 auto; }
}

/* The mix */

.mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 860px) { .mix { grid-template-columns: 1fr; gap: 40px; } }

.mix-card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: 24px;
  padding: 28px;
}

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.presets button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--sep);
  background: var(--surface);
  color: var(--label);
  cursor: pointer;
}

.presets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.bar {
  display: flex;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
}

.bar span { transition: flex-basis 0.45s cubic-bezier(0.3, 0.7, 0.2, 1); min-width: 0; }
.bar .speech  { background: var(--speech); }
.bar .faces   { background: var(--faces); }
.bar .motion  { background: var(--motion); }
.bar .quality { background: var(--quality); }

.bar-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--label2);
}

.bar-legend b { display: block; font-family: var(--mono); font-size: 13px; color: var(--label); }

.mix-note { font-size: 13px; color: var(--label3); margin: 20px 0 0; }

/* Signals */

.signals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 960px) { .signals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .signals { grid-template-columns: 1fr; } }

.signal {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  padding: 22px;
}

.signal .swatch { width: 28px; height: 8px; border-radius: 4px; margin-bottom: 18px; }
.signal h3 { font-size: 17px; margin: 0 0 6px; }
.signal p { font-size: 15px; color: var(--label2); margin: 0; }

.craft {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px dashed var(--sep);
}

@media (max-width: 860px) { .craft { grid-template-columns: 1fr; gap: 24px; } }

.craft h3 { font-size: 16px; margin: 0 0 6px; }
.craft p { font-size: 15px; color: var(--label2); margin: 0; }

/* Privacy band — the cinema screen of the site */

.band {
  background: var(--cinema);
  color: #F4F1EC;
  border-top: 0;
}

.band .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 72px;
  align-items: center;
}

.band .phone { width: 260px; }
.band h2 { color: #F4F1EC; }
.band .intro { color: #B4AC9E; }
.band .eyebrow { color: #E8A263; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.facts li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 17px;
  color: #E6E0D6;
}

.facts li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E08B42;
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; gap: 48px; }
  .band .phone { order: 2; margin: 0 auto; width: 240px; }
}

/* Pricing / details */

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.detail {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  padding: 24px;
}

.detail h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label3); margin: 0 0 10px; }
.detail .big { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.detail p { margin: 0; font-size: 15px; color: var(--label2); }

.mark {
  display: inline-block;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--fill);
  color: var(--label);
  white-space: nowrap;
}

/* Dark mode showcase */

.duo { display: flex; gap: 32px; justify-content: center; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.duo .phone { width: 260px; flex: none; }

/* Final call */

.get { text-align: center; }
.get h2 { margin-bottom: 24px; }
.get .icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 12px 30px -10px rgba(20, 15, 10, 0.35); }
.get .cta-note { display: block; margin-top: 16px; font-size: 14px; color: var(--label3); }

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

.site-footer {
  border-top: 1px solid var(--sep);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--label3);
}

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--label2); text-decoration: none; }
.site-footer a:hover { color: var(--label); }

/* ---------- Document pages (privacy, support, terms) ---------- */

.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
.doc .meta { color: var(--label3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--label2); }
.doc strong { color: var(--label); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

.summary {
  background: var(--accent-wash);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 8px;
}

.summary p { color: var(--label); margin: 0; }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 16px;
}

.contact-card p { margin: 0; color: var(--label2); }
.contact-card strong { display: block; font-size: 18px; }

details {
  border-bottom: 1px solid var(--sep);
  padding: 4px 0;
}

details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--label3);
}

details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; }
