/* Player 1: Diamond Setup — product, support and privacy pages. Tokens match the iOS app (Design/Theme.swift). */
:root {
  --ink: #19171a;
  --ink-muted: #4e4852;
  --canvas: #fffcf3;
  --surface: #ffffff;
  --surface-sunk: #f3ecd9;
  --border: rgba(25, 23, 26, 0.14);
  --gold: #f7c948;
  --gold-pressed: #e0b12a;
  --on-gold: #19171a;
  --pass: #1f7a45;
  --radius-control: 12px;
  --radius-card: 16px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f1e6;
    --ink-muted: #b9b2a6;
    --canvas: #0e0d0f;
    --surface: #1b191d;
    --surface-sunk: #2a272d;
    --border: rgba(245, 241, 230, 0.16);
    --pass: #5bd08a;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-pressed); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 900; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 10px 12px; border-radius: var(--radius-control); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-sunk); }

/* Type */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 800; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 40ch; margin: 18px 0 0; }
.muted { color: var(--ink-muted); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: block; margin-bottom: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius-control);
  font-weight: 800; font-size: 16px; text-decoration: none;
}
.button-primary { background: var(--gold); color: var(--on-gold); }
.button-primary:hover { background: var(--gold-pressed); }
.button-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.button-secondary:hover { background: var(--surface-sunk); }
.badge-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: var(--radius-control); background: var(--ink); color: var(--canvas); font-weight: 800; }
.badge-soon svg { width: 20px; height: 20px; fill: currentColor; }
.fine { font-size: 14px; color: var(--ink-muted); margin-top: 14px; }

/* Hero: the app on an iPhone, drawn in HTML/CSS. The field is a flat plane tilted in 3D. */
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 201, 72, 0.45), rgba(247, 201, 72, 0));
}
.phone {
  position: relative; width: min(300px, 100%); aspect-ratio: 300 / 640; padding: 11px;
  border-radius: 52px; background: #1d1b1f;
  box-shadow: inset 0 0 0 2px #3a363d, 0 30px 60px -20px rgba(25, 23, 26, 0.55), 0 12px 24px -12px rgba(25, 23, 26, 0.4);
}
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; width: 88px; height: 26px; margin-left: -44px;
  border-radius: 13px; background: #000; z-index: 3;
}
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #000; font-family: var(--font); color: #fff; }
.cam {
  position: absolute; inset: 0; overflow: hidden; perspective: 300px; perspective-origin: 50% 21%;
  background: linear-gradient(#8fbfe6 0%, #d6e8f3 21%, #24502f 21%, #2e6337 23.5%, #3f873b 23.5%);
}
.cam::after {
  content: ""; position: absolute; inset: 21% 0 0; pointer-events: none;
  background: linear-gradient(rgba(214, 232, 243, 0.55), rgba(214, 232, 243, 0) 22%);
}
.ground {
  position: absolute; left: 50%; bottom: -8%; width: 4200px; height: 3400px; margin-left: -2100px;
  transform-origin: 50% 100%; transform: rotateX(78deg); transform-style: preserve-3d;
  background: repeating-linear-gradient(90deg, #47933f 0 75px, #3b8037 75px 150px);
}
.ground svg { position: absolute; left: 1200px; bottom: 0; width: 1800px; height: 1200px; }
.pole {
  position: absolute; width: 8px; height: 130px; margin: -130px 0 0 -4px;
  background: linear-gradient(90deg, #ffe27a, #f7c948 50%, #c99a1a);
  transform-origin: 50% 100%; transform: rotateX(-90deg); border-radius: 3px 3px 0 0;
}

.hud-top { position: absolute; top: 58px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.hud-x {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(18, 17, 19, 0.94); font-size: 13px; font-weight: 700;
}
.hud-pill {
  margin: 0 auto; transform: translateX(-21px); padding: 6px 14px; border-radius: 999px; text-align: center;
  background: rgba(18, 17, 19, 0.94); display: flex; flex-direction: column; line-height: 1.2;
}
.hud-pill b { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-pill small { font-size: 10px; color: #c9c3b8; font-weight: 500; }
.hud-card {
  position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 14px; border-radius: 22px;
  background: rgba(18, 17, 19, 0.94); display: flex; flex-direction: column; gap: 8px;
}
.hud-card p { margin: 0; font-size: 12.5px; color: #c9c3b8; }
.hud-chip {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12);
  font-size: 12px; font-weight: 600;
}
.hud-btn {
  display: grid; place-items: center; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, 0.12);
  font-size: 13px; font-weight: 700;
}
.hud-primary { height: 44px; background: var(--gold); color: var(--on-gold); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-muted); margin: 12px 0 0; }

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

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.section-alt .card { background: var(--canvas); }
.card p { margin: 8px 0 0; color: var(--ink-muted); font-size: 16px; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-control); margin-bottom: 16px;
  display: grid; place-items: center; background: rgba(247, 201, 72, 0.22);
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 900;
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunk); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Callout */
.callout { border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 20px 24px; }
.callout p { margin: 0; color: var(--ink-muted); }
.callout p + p { margin-top: 10px; }

/* Document pages (support, privacy) */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .lead { max-width: none; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { margin: 24px 0 8px; }
.doc p, .doc li { color: var(--ink-muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.updated { font-size: 14px; color: var(--ink-muted); margin-top: 12px; }

.summary { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
.summary .card { padding: 18px 20px; }
.summary h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.summary h3 svg { flex: none; width: 22px; height: 22px; stroke: var(--pass); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.summary p { font-size: 15px; }

.contact { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact p { margin: 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 0 20px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 800; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 700; color: var(--ink-muted); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > :last-child { padding-bottom: 18px; margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 15px; color: var(--ink-muted); }
.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 20px; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .steps, .summary { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 8px; }
  .site-nav { margin-left: -12px; }
  .cta-row .button, .badge-soon { width: 100%; justify-content: center; }
}
