/* PMAXX — marketing site. Same palette and type as the app (Theme.swift). */
/* Fonts are self-hosted so the site makes no third-party requests (privacy policy: "fonts and images are served from the site itself"). */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/InstrumentSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/InstrumentSans_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/InstrumentSans_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url("assets/fonts/SpaceMono_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url("assets/fonts/SpaceMono_700Bold.ttf") format("truetype"); }
:root {
  --ground: #0A0D1C;
  --sheet: #131730;
  --ink: #F2EDE3;
  --emulsion: #9AA1C0;
  --marker: #A78BFA;
  --gold: #E3C27E;
  --gold-deep: #C9A75C;
  --mint: #7BD8A8;
  --rule: rgba(167, 139, 250, 0.22);
  --cta: linear-gradient(90deg, #A855F7, #6366F1, #3B82F6);
  /* The app's display face is the system serif (New York on iOS); same idea here. */
  --serif: "Iowan Old Style", "New York", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 68rem;
  --measure: 44rem;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(40rem 20rem at 90% 30%, rgba(227, 194, 126, 0.07), transparent 60%);
}
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
img { max-width: 100%; display: block; }

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

/* ── Nav ─────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; color: var(--gold); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; color: var(--emulsion); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  font-size: 1rem; line-height: 1; white-space: nowrap; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35); }
.btn-ghost { border: 1px solid var(--rule); color: var(--ink); }
.btn-small { padding: .6rem 1rem; font-size: .9rem; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding-top: 4.5rem; padding-bottom: 3.5rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--marker); margin: 0 0 1.25rem; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 1.25rem; }
.lede { font-size: 1.2rem; color: var(--emulsion); max-width: 34rem; margin: 0 0 2rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-note { font-size: .85rem; color: var(--emulsion); margin-top: 1rem; }

/* Phone mock */
.phone { justify-self: center; width: min(320px, 80vw); aspect-ratio: 9 / 19; border-radius: 42px; padding: 12px; background: #05070f; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(167,139,250,.15); }
.screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, #0f1330, var(--ground)); padding: 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 1rem; overflow: hidden; }
.screen .kicker { margin: 0; font-size: .6rem; }
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid9 span { aspect-ratio: 1; border-radius: 6px; background: #1a1f45; position: relative; }
.grid9 span.o::after, .grid9 span.x::after { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.grid9 span.o::after { content: "○"; }
.grid9 span.x::after { content: "✕"; }
.score { font-family: var(--serif); font-size: 3.2rem; line-height: 1; background: linear-gradient(180deg, var(--ink), var(--marker)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; font-family: var(--mono); font-size: .55rem; color: var(--emulsion); text-align: center; }
.dial { width: 34px; height: 34px; margin: 0 auto .3rem; border-radius: 50%; border: 3px solid var(--sheet); border-top-color: var(--marker); border-right-color: var(--marker); }
.dial.b { border-top-color: var(--gold); border-right-color: var(--gold); border-bottom-color: var(--gold); }
.dial.c { border-top-color: var(--mint); }
.read { font-size: .78rem; color: var(--ink); line-height: 1.5; border-left: 2px solid var(--gold); padding-left: .6rem; }

/* ── Sections ────────────────────────────────────────── */
section.wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.1; margin: 0 0 .75rem; letter-spacing: -.01em; }
.sub { color: var(--emulsion); max-width: var(--measure); margin: 0 0 2.25rem; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 1.6rem; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: .5rem 0 .5rem; }
.card p { margin: 0; color: var(--emulsion); }
.card .kicker { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--gold); font-size: .8rem; letter-spacing: .1em; }
.step h3 { font-size: 1.15rem; margin: .5rem 0 .35rem; font-weight: 600; }
.step p { margin: 0; color: var(--emulsion); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 46rem; }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(227,194,126,.25), 0 20px 50px rgba(0,0,0,.35); }
.plan .name { font-family: var(--serif); font-size: 1.4rem; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 1rem; color: var(--emulsion); }
.plan .note { color: var(--emulsion); font-size: .95rem; margin: 0; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ground); background: var(--gold); padding: .3rem .55rem; border-radius: 6px; }
.fine { color: var(--emulsion); font-size: .9rem; max-width: var(--measure); margin-top: 1.5rem; }

.cta-band { text-align: center; padding-top: 4rem; padding-bottom: 4rem; }
.cta-band h2 { margin-bottom: 1.5rem; }

/* ── Footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--emulsion); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { margin: 1rem 0 0; font-size: .82rem; opacity: .85; }

/* ── Legal pages ─────────────────────────────────────── */
.legal { max-width: var(--measure); padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .35rem; }
.legal .meta { font-family: var(--mono); font-size: .8rem; color: var(--emulsion); margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal strong { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .legal { padding-top: 2rem; }
  .phone { order: -1; width: min(260px, 70vw); }
  .cards, .steps, .plans { grid-template-columns: 1fr; }
  .nav-links { gap: 1rem; flex-wrap: nowrap; white-space: nowrap; }
  /* Phone: the wordmark plus the two legal links is the whole nav. */
  .nav-links .btn, .nav-links a[href^="#"], .nav-links a[href^="./#"] { display: none; }
}
