/* Landing page styles. Colours are the app's Theme.swift tokens; fonts are the app's bundled fonts
   (Plus Jakarta Sans and JetBrains Mono, both SIL Open Font License 1.1, subset to Latin as woff2). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F1EA; --card: #FBFAF6; --line: #E6E2D8; --rule: #DEDAD0; --wash: #EDE9E0;
  --ink: #16181B; --body: #57534B; --muted: #6E6A62;
  --magenta: #B8236B; --magenta-wash: #F8E4EE; --blue: #1F5FA8; --blue-wash: #E3ECF7;
  --panel: #16181B; --on-panel: #F4F1EA; --on-panel-muted: #C9C3B6;
  --bezel: #0E0F11;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 24px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111315; --card: #1B1E22; --line: #2C3036; --rule: #3A3F46; --wash: #23272C;
    --ink: #F2EFE8; --body: #C4BFB4; --muted: #A6A196;
    --magenta: #E35C9F; --magenta-wash: #3B1C2B; --blue: #72A9EA; --blue-wash: #1A2B40;
    --panel: #1B1E22; --bezel: #000;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--magenta); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.top nav ul { display: flex; gap: 4px; }
.top nav a {
  display: inline-block; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.top nav a:hover { color: var(--ink); background: var(--wash); }

/* ---------- Hero (dark in both modes, like the store art) ---------- */
.hero {
  position: relative; overflow: hidden; color: #E9E4EA;
  background:
    radial-gradient(70% 90% at 8% 0%, rgba(184, 35, 107, 0.85), rgba(184, 35, 107, 0) 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(31, 95, 168, 0.55), rgba(31, 95, 168, 0) 70%),
    #0C0B10;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.eyebrow-hero { color: #F2B8D3; }
.hero h1 { color: #fff; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero-sub { color: #F1DCE6; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; margin-top: 22px; font-weight: 500; letter-spacing: -0.01em; }
.hero-body { color: #CFC6CC; margin-top: 14px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #B9AEB5; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--sans); text-decoration: none; transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-light { background: #F4F1EA; color: #16181B; }
.btn-light:hover { background: #fff; }
.btn-price { font: 500 14px/1 var(--mono); color: #B8236B; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.hero :focus-visible { outline-color: #fff; }

/* Phones: the screenshots are 1320x2868 iPhone screens; the bezel and corners are drawn here. */
.phone {
  position: relative; padding: 2.6%; background: var(--bezel); border-radius: 15% / 7%;
  box-shadow: 0 1px 0 1px rgba(255, 255, 255, 0.06) inset, 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 12px 24px -12px rgba(0, 0, 0, 0.3);
}
.phone img { border-radius: 12.6% / 5.8%; width: 100%; }

.hero-phones { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; isolation: isolate; }
.hero-phones .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -24px rgba(0, 0, 0, 0.7); }
.phone-center { z-index: 2; }
.phone-side { opacity: 0.94; }
.phone-left { transform: translateX(14%) rotate(-6deg) scale(0.92); }
.phone-right { transform: translateX(-14%) rotate(6deg) scale(0.92); }

/* ---------- Test facts strip ---------- */
.facts { background: var(--card); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 8px; text-align: center; }
.facts-row li + li { border-left: 1px solid var(--line); }
.fact-n { color: var(--ink); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.fact-l { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Feature sections ---------- */
.feature { padding: 112px 0; }
.feature-alt { background: var(--wash); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature-grid.flip .feature-copy { order: 2; }
.feature-copy { max-width: 32em; }
.feature h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; }
.feature-copy p + p { margin-top: 14px; }
.feature-copy > p:not(.eyebrow):not(.ladder-caption):not(.acs) { font-size: 18px; }
.feature-art { display: flex; justify-content: center; }
.feature-art > .phone { width: min(320px, 78%); }
.art-pair { gap: 0; align-items: flex-start; }
.art-pair .phone { width: min(290px, 50%); }
.art-pair .phone-offset { margin-left: -6%; margin-top: 18%; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li {
  font: 500 13px/1 var(--mono); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  padding: 9px 12px; border-radius: 999px;
}

.ladder { display: flex; align-items: flex-end; gap: 6px; margin-top: 28px; max-width: 420px; }
.ladder li { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.ladder span {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  font: 600 13px/1 var(--mono); color: var(--paper); background: var(--magenta); border-radius: 8px 8px 3px 3px;
}
.ladder li:nth-child(1) span { height: 30px; }
.ladder li:nth-child(2) span { height: 42px; }
.ladder li:nth-child(3) span { height: 56px; }
.ladder li:nth-child(4) span { height: 72px; }
.ladder li:nth-child(5) span { height: 90px; }
.ladder li:nth-child(6) span { height: 110px; }
.ladder li:nth-child(7) span { height: 132px; }
.ladder-caption { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--body); margin-top: 10px; }

.acs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.acs span {
  font: 500 13px/1 var(--mono); color: var(--magenta); background: var(--magenta-wash); padding: 9px 12px; border-radius: 8px;
}

/* ---------- Private (dark panel) ---------- */
.private { background: var(--panel); color: var(--on-panel-muted); padding: 112px 0; }
.private h2 { color: var(--on-panel); font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.private-lead { color: var(--on-panel); font-size: clamp(19px, 2vw, 24px); margin-top: 16px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.details li { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); padding: 26px 24px; background: rgba(255, 255, 255, 0.03); }
.details h3 { color: var(--on-panel); font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.details p { font-size: 16px; }

/* ---------- Get it ---------- */
.get { padding: 112px 0 72px; }
.get-card {
  max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.get-icon { width: 80px; height: 80px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -12px rgba(0, 0, 0, 0.25); margin-bottom: 22px; }
.get h2 { font-size: clamp(26px, 3vw, 34px); }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.price-n { color: var(--ink); font-size: clamp(56px, 8vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-l { font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); }
.get-body { margin-top: 14px; font-size: 18px; }
.store {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; margin-top: 30px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 17px/1 var(--sans); text-decoration: none;
}
a.store:hover { opacity: 0.88; }
.store-soon { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); cursor: default; }
.get-meta { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }

.disclaimer { padding: 0 0 72px; }
.disclaimer p {
  max-width: 760px; margin: 0 auto; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center;
  border-top: 1px solid var(--line); padding-top: 32px;
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(36px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand-small { font-size: 16px; }
.brand-small img { width: 24px; height: 24px; border-radius: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--magenta); text-decoration: underline; }
.copy { color: var(--muted); margin-left: auto; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; gap: 48px; }
  .hero-phones { max-width: 520px; width: 100%; margin: 0 auto; }
  .feature { padding: 80px 0; }
  .private { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid.flip .feature-copy { order: 0; }
  .details { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none; }
  .top nav a { padding: 8px 10px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row li:nth-child(3) { border-left: 0; }
  .facts-row li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature h2 { font-size: 32px; }
  .feature-art > .phone { width: 66%; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .copy { margin-left: 0; width: 100%; }
}
