/* proximapp.com — one stylesheet for every page. Colours are the app's
   (ProximDesign/Tokens.swift); the site is dark like the app. */
:root {
  --bg: #0b0b10;
  --surface: #14141b;
  --surface-2: #1c1c26;
  --surface-3: #23232f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f6;
  --text-dim: #a2a2b0;
  --text-mute: #6c6c7a;
  --accent: #7c5cff;
  --accent-2: #b084ff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --good: #4ade80;
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface-2); padding: 8px 12px; }

/* ── Header and footer ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(11, 11, 16, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.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(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--text-dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .wide { display: none; } .nav { gap: 16px; } }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 56px; color: var(--text-mute); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: 0;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn svg { width: 20px; height: 20px; }

/* ── Home: hero ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent 70%);
  filter: blur(20px);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 20px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
.grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-dim); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .note { color: var(--text-mute); font-size: 14px; }
@media (max-width: 880px) {
  .hero { padding: 56px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* A phone frame around a real screenshot (Simulator, sample data). */
.phone {
  width: min(320px, 100%); margin: 0 auto;
  border-radius: 52px; padding: 10px;
  background: linear-gradient(160deg, #2a2a36, #15151c);
  box-shadow: 0 40px 120px rgba(124, 92, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: auto; border-radius: 42px; }
.phone.small { width: min(260px, 100%); border-radius: 44px; padding: 8px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone.small img { border-radius: 36px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.shots figcaption { color: var(--text-dim); font-size: 16px; max-width: 18em; }
.shots figcaption strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }
@media (max-width: 880px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: center; }
}

/* ── Sections ──────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2, .split h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p, .split p { color: var(--text-dim); margin: 0; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--text-dim); font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 16px; }
@media (max-width: 880px) { .steps, .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .features { grid-template-columns: 1fr; } section { padding: 48px 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(176, 132, 255, 0.04)); border: 1px solid var(--line); border-radius: 28px; padding: 48px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b084ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; } }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.price p { margin: 0; color: var(--text-dim); font-size: 16px; }
.price .price-label { color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.price .amount { color: var(--text); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price .amount span { font-size: 18px; font-weight: 500; color: var(--text-dim); letter-spacing: 0; margin-left: 4px; }
.price-note { color: var(--text-mute); font-size: 15px; margin: 20px 0 0; }
@media (max-width: 600px) { .prices { grid-template-columns: 1fr; } }

.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 0 0 14px; }
.closing p { color: var(--text-dim); margin: 0 auto 28px; max-width: 32em; font-size: 18px; }
.closing .cta { justify-content: center; }

/* ── Documents: privacy, terms, support ────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
@media (max-width: 600px) { .doc { padding: 40px 16px 0; } }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.doc .meta { color: var(--text-mute); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 48px 0 12px; scroll-margin-top: 80px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d6d6de; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 0 0 32px; }
.summary h2 { margin-top: 0; font-size: 19px; }
.summary ul { margin: 0; }
.toc { border-left: 2px solid var(--line); padding-left: 18px; margin: 0 0 24px; font-size: 15px; }
.toc ol { margin: 0; padding-left: 18px; }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--text); background: var(--surface); font-weight: 600; }
td { color: #d6d6de; }
tr:last-child td { border-bottom: 0; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-dim); font-size: 16px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin: 10px 0; }
details[open] { padding-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 10px; color: var(--text-dim); }

.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.center-page img { width: 96px; margin: 0 auto 24px; border-radius: 22px; }
.center-page h1 { font-size: 34px; margin: 0 0 10px; }
.center-page p { color: var(--text-dim); margin: 0 auto 28px; max-width: 28em; }

/* ── Password gate (until launch) ──────────────────────────────────── */
.gate main {
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  gap: 12px; padding: 48px 16px; text-align: center;
}
.gate-logo { width: 128px; height: auto; margin-bottom: 8px; }
.gate h1 { font-size: 40px; letter-spacing: -0.03em; margin: 0; }
.gate main > p { color: var(--text-dim); margin: 0 0 24px; max-width: 32ch; }
.gate form { display: grid; gap: 8px; width: min(360px, 100%); text-align: left; }
.gate label { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.gate-row { display: flex; gap: 8px; }
.gate input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-error { color: #ff8a8a; font-size: 14px; margin: 4px 0 0; }
