/* PR Mode web: the app's "Varsity" design standard (docs/DESIGN-STANDARD.md).
   Cream/navy, red accent, gold highlights; Oswald headings, Roboto Slab body;
   raised cards and "key" buttons. Light by default, dark when the OS is. */

@font-face { font-family: "Oswald"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Oswald-600.ttf") format("truetype"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Oswald-700.ttf") format("truetype"); }
@font-face { font-family: "Roboto Slab"; font-weight: 400; font-display: swap; src: url("/assets/fonts/RobotoSlab-400.ttf") format("truetype"); }
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url("/assets/fonts/RobotoSlab-600.ttf") format("truetype"); }

:root {
  --bg: #F4EEE1;
  --surface: #FFFBF2;
  --text: #14213D;
  --muted: #5F6673;
  --accent: #C8102E;
  --on-accent: #FFFFFF;
  --gold: #F4C430;
  --track: #E7DECB;
  --nav: #14213D;
  --ok: #1F7A7A;
  --hi: rgba(255, 255, 255, 0.95);
  --lo: rgba(20, 33, 61, 0.10);
  --drop: rgba(20, 33, 61, 0.16);
  --deep: rgba(20, 33, 61, 0.28);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1628;
    --surface: #16213A;
    --text: #F4EEE1;
    --muted: #9FB0D0;
    --accent: #DE2F3D;
    --track: #24304B;
    --nav: #070C18;
    --ok: #2BB3A8;
    --hi: rgba(255, 255, 255, 0.07);
    --lo: rgba(0, 0, 0, 0.35);
    --drop: rgba(0, 0, 0, 0.45);
    --deep: rgba(0, 0, 0, 0.65);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

h1, h2, h3, .brand, .price, nav a, .btn {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}
h1, h2, h3 { text-transform: uppercase; line-height: 1.15; }
h1 { font-size: 2.3rem; font-weight: 700; margin: 0.4em 0; }
h2 { font-size: 1.35rem; font-weight: 600; margin: 1.6em 0 0.4em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.2em 0 0.3em; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

/* The emblem has a black background, so it always sits in a dark tile. */
.emblem {
  display: inline-grid;
  place-items: center;
  background: #000;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px var(--drop);
}
.brand .emblem { width: 40px; height: 40px; }
.brand .emblem img { width: 34px; height: auto; }

nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-weight: 600; text-transform: uppercase; }
nav a:hover { color: var(--text); }

main { max-width: 620px; margin: 0 auto; padding: 16px 20px 64px; }
main.doc { max-width: 720px; }

p.lead { color: var(--muted); font-size: 1.1rem; }

.hero { text-align: center; padding: 32px 0 8px; }
.hero .emblem { width: 168px; height: 168px; border-radius: 24px; }
.hero .emblem img { width: 150px; height: auto; }

.card {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 92%, #fff) 0%,
    var(--surface) 45%,
    color-mix(in srgb, var(--surface) 94%, #000) 100%);
  border-radius: 10px;
  padding: 24px;
  margin: 20px 0;
  box-shadow:
    inset 0 1px 0 var(--hi),
    inset 0 -2px 0 var(--lo),
    0 1px 1px var(--lo),
    0 4px 8px var(--drop),
    0 16px 28px -10px var(--deep);
}

.price { font-size: 2.8rem; font-weight: 700; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }

ul.perks { padding-left: 1.2em; }
ul.perks li { margin: 6px 0; }
ul.perks li::marker { color: var(--accent); }

.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 80%, #fff) 0%,
    var(--accent) 50%,
    color-mix(in srgb, var(--accent) 85%, #000) 100%);
  color: var(--on-accent);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 3px 0 color-mix(in srgb, var(--accent) 60%, #000),
    0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-1px);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 1px 0 var(--hi), 0 3px 0 var(--track), 0 6px 12px var(--drop);
}

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 0;
  background: var(--track);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 2px 4px var(--drop);
}
input:focus { outline: 2px solid var(--accent); }

.msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--track); }
.msg.error { color: var(--accent); }
.msg.ok { color: var(--ok); }

.fine { color: var(--muted); font-size: 0.88rem; }
.updated { color: var(--muted); font-size: 0.9rem; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; }

main.doc li { margin: 4px 0; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 32px 20px;
}
footer a { color: var(--muted); margin: 0 8px; }

/* ---------------------------------------------------------------------------
   Landing page
   --------------------------------------------------------------------------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

body.landing main { max-width: none; padding: 0; }

header.site { display: block; max-width: none; margin: 0; padding: 0; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand .mark { width: 34px; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
@media (prefers-color-scheme: light) {
  /* Gold on cream needs a touch more contrast. */
  .brand .mark { filter: drop-shadow(0 0 1px rgba(20, 33, 61, 0.55)); }
}

.btn-lg { width: auto; padding: 15px 26px; font-size: 1.15rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 64px;
  text-align: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0.2em 0; }
.hero .lead { font-size: 1.2rem; max-width: 34em; margin: 0 auto 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 170px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-align: left;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px var(--drop);
}
.store-small { font-size: 0.72rem; opacity: 0.85; }
.store-big { font-family: "Oswald", sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }

.hero-phones {
  position: relative;
  height: clamp(420px, 70vw, 600px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  margin: 0;
  width: 250px;
  aspect-ratio: 506 / 1100;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2a3350, #0b1020 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 2px var(--lo),
    0 14px 28px var(--drop),
    0 40px 60px -20px var(--deep);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }

.hero-phones .phone { position: absolute; }
.hero-phones .center { z-index: 2; width: clamp(200px, 30vw, 270px); transform: translateY(-6px); }
.hero-phones .tilt-left { width: clamp(170px, 25vw, 230px); transform: translateX(-62%) rotate(-8deg) translateY(28px); opacity: 0.96; }
.hero-phones .tilt-right { width: clamp(170px, 25vw, 230px); transform: translateX(62%) rotate(8deg) translateY(28px); opacity: 0.96; }

.features { display: grid; gap: 72px; padding-top: 32px; padding-bottom: 72px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; text-align: center; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0.1em 0 0.3em; }
.feature-copy p { font-size: 1.1rem; color: var(--muted); max-width: 32em; margin-left: auto; margin-right: auto; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: 260px; }
.feature-media.pair { gap: 18px; }
.feature-media.pair .phone { width: 210px; }
.feature-media.pair .phone:last-child { transform: translateY(28px); }

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0;
}

.prompts, .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; width: 100%; max-width: 420px; text-align: left; }
.prompts li {
  justify-self: start;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 16px;
  border-radius: 12px 12px 12px 4px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000), 0 8px 16px var(--drop);
}
.prompts li:nth-child(even) { justify-self: end; border-radius: 12px 12px 4px 12px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 color-mix(in srgb, var(--accent) 60%, #000);
}
.checklist li::after {
  content: "";
  position: absolute; left: 7px; top: calc(0.3em + 4px);
  width: 5px; height: 10px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.center { text-align: center; }
.how { padding-bottom: 72px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
.steps .card { margin: 0; text-align: center; }
.step-num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #14213D;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #a07d12;
}
.steps h3 { margin-top: 0.6em; }
.steps p { color: var(--muted); margin: 0; }

.pricing { display: flex; justify-content: center; padding-bottom: 72px; }
.price-card { width: 100%; max-width: 460px; text-align: center; }
.price-card .checklist { margin: 18px auto 24px; }
.price-card .btn { width: 100%; }

.faq { max-width: 820px; padding-bottom: 72px; }
.faq details { margin: 12px 0; padding: 18px 22px; }
.faq summary { cursor: pointer; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

footer.site { border-top: 1px solid var(--track); padding: 28px 0; text-align: left; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
footer.site nav a { margin: 0 16px 0 0; color: var(--muted); }
footer.site p { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 1fr; text-align: left; padding-top: 56px; }
  .hero .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; }
  .feature { grid-template-columns: 1fr 1fr; text-align: left; gap: 64px; }
  .feature-copy p { margin-left: 0; }
  .feature.flip .feature-copy { order: 2; }
}

@media (max-width: 480px) {
  nav a:not([data-account-link]) { display: none; }
  .btn-lg { width: 100%; }
  .hero-phones .tilt-left { transform: translateX(-52%) rotate(-8deg) translateY(28px); }
  .hero-phones .tilt-right { transform: translateX(52%) rotate(8deg) translateY(28px); }
}

/* Grid tracks must be allowed to shrink below their content's width, or the
   two-phone row widens every feature on small screens. */
.features, .feature, .hero { grid-template-columns: minmax(0, 1fr); }
.feature-media .phone { max-width: 100%; }
.feature-media.pair .phone { width: min(210px, 46%); }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.hero-mark { width: 120px; height: auto; filter: drop-shadow(0 2px 3px var(--drop)); }

/* Moderation page */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.preview { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--track); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.btn.danger { color: var(--accent); }

/* Neon logo band above the landing footer (the logo is drawn for black). */
.brand-band { background: #000; display: grid; place-items: center; padding: 56px 24px; }
.brand-band img { width: min(420px, 80%); height: auto; }
