/*
 * RizzKings marketing site: the app's black & gold design language, on the web.
 * Tokens mirror apps/mobile/src/theme/colors.ts and tailwind.config.js.
 * Display serif: Bodoni Moda (self-hosted, latin subset), used sparingly.
 */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/bodoni-moda-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --ink: #0a0908;
  --ink-raised: #0f0d0a;
  --card: rgba(23, 19, 16, 0.92);
  --ivory: #f7f3e8;
  --muted: #a89f8c;
  --faint: #8a8272;
  --gold: #e2b94f;
  --gold-light: #f4de9c;
  --gold-deep: #b98a2f;
  --gold-faint: rgba(226, 185, 79, 0.12);
  --gold-border: rgba(226, 185, 79, 0.35);
  --hairline: rgba(226, 185, 79, 0.18);
  --gold-glow: rgba(226, 185, 79, 0.45);
  --on-gold: #241a05;
  --bronze: #dba268;
  --silver: #c7ccd6;
  --platinum: #9fd8e8;
  --success: #4ade80;
  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */

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

.section {
  padding: 88px 0;
}

.section--raised {
  background: var(--ink-raised);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* Gold letterspaced eyebrow, the app's screen-header signature. */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head .display {
  font-size: clamp(28px, 4.5vw, 40px);
  margin: 10px 0 8px;
}

.section-head p {
  color: var(--muted);
}

.center {
  text-align: center;
}

.center.section-head {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
}

.brand:hover {
  color: var(--ivory);
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}

/* ---------- Buttons & store badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
  color: var(--gold-light);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  border-color: transparent;
  color: var(--on-gold);
}

.btn--gold:hover {
  filter: brightness(1.06);
  color: var(--on-gold);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 176px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--hairline);
  color: #fff;
  cursor: default;
  transition: border-color 0.2s ease;
}

.badge:hover {
  border-color: var(--gold-border);
  color: #fff;
}

.badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.badge small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: #cfc7b0;
  letter-spacing: 0.02em;
}

.badge strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badges-note {
  width: 100%;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 640px;
  background: radial-gradient(closest-side, var(--gold-faint), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  margin: 14px 0 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}

/* ---------- Phone mock, the signature element ---------- */

.phone {
  width: min(330px, 88vw);
  margin: 0 auto;
  border: 1px solid var(--gold-border);
  border-radius: 38px;
  background: var(--ink-raised);
  box-shadow: 0 0 80px rgba(226, 185, 79, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 14px;
}

.phone-screen {
  border-radius: 26px;
  background: var(--ink);
  border: 1px solid var(--hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.phone-top .seal {
  width: 34px;
  height: 34px;
  font-size: 15px;
}

.phone-top-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.phone-top-tier {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.phone-chat {
  padding: 16px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bubble--them {
  align-self: flex-start;
  background: #171310;
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 5px;
  color: var(--ivory);
}

.bubble--you {
  align-self: flex-end;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-bottom-right-radius: 5px;
  color: var(--ivory);
}

.verdict {
  margin: 12px 14px 16px;
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(226, 185, 79, 0.16), rgba(226, 185, 79, 0.04) 55%, rgba(240, 169, 59, 0.12));
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.verdict-score {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(226, 185, 79, 0.35), inset 0 0 10px rgba(226, 185, 79, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gold-light);
}

.verdict-label {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.verdict-line {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Seals (tier rings, monograms) ---------- */

.seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  background: var(--gold-faint);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
}

/* ---------- Feature cards & hairline rows ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: var(--gold-border);
}

.card .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* The one featured gold-sheen card per screen. */
.card--featured {
  background: linear-gradient(150deg, rgba(226, 185, 79, 0.17), rgba(226, 185, 79, 0.05) 45%, rgba(240, 169, 59, 0.13));
  border-color: var(--gold-border);
}

.rows {
  border-top: 1px solid var(--hairline);
}

.row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hairline);
}

.row-key {
  flex: none;
  width: 170px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

.row-body {
  color: var(--muted);
  font-size: 15px;
}

.row-body strong {
  color: var(--ivory);
  font-weight: 600;
}

/* ---------- Tier ladder ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tier {
  text-align: center;
  padding: 30px 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}

.tier .seal {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.tier h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tier p {
  font-size: 13.5px;
  color: var(--muted);
}

.tier--bronze .seal { border-color: rgba(219, 162, 104, 0.55); color: var(--bronze); background: rgba(219, 162, 104, 0.12); }
.tier--bronze h3 { color: var(--bronze); }
.tier--silver .seal { border-color: rgba(199, 204, 214, 0.5); color: var(--silver); background: rgba(199, 204, 214, 0.1); }
.tier--silver h3 { color: var(--silver); }
.tier--gold .seal { border-color: var(--gold-border); color: var(--gold); background: var(--gold-faint); }
.tier--gold h3 { color: var(--gold); }
.tier--platinum .seal { border-color: rgba(159, 216, 232, 0.5); color: var(--platinum); background: rgba(159, 216, 232, 0.1); }
.tier--platinum h3 { color: var(--platinum); }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 30px 26px;
}

.plan--featured {
  background: linear-gradient(160deg, rgba(226, 185, 79, 0.17), rgba(226, 185, 79, 0.05) 45%, rgba(240, 169, 59, 0.13));
  border-color: var(--gold-border);
}

.plan-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

.plan-price {
  margin: 12px 0 4px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
}

.plan-price small {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
}

.plan-tag {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.plan ul {
  list-style: none;
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}

.plan li {
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
  position: relative;
}

.plan li strong {
  color: var(--ivory);
  font-weight: 600;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.plan li.plan-li--off {
  color: var(--faint);
}

.plan li.plan-li--off::before {
  background: #4a4335;
}

.plans-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--body);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 68ch;
}

.faq details p + p {
  margin-top: -12px;
}

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(226, 185, 79, 0.17), rgba(226, 185, 79, 0.05) 45%, rgba(240, 169, 59, 0.13));
  padding: 56px 40px;
  text-align: center;
}

.cta-band .display {
  font-size: clamp(26px, 4vw, 36px);
  margin: 10px 0 12px;
}

.cta-band p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.cta-band .badges {
  justify-content: center;
}

.cta-band .badges-note {
  text-align: center;
  margin-top: 4px;
}

/* ---------- Legal prose ---------- */

.prose {
  max-width: 760px;
}

.prose h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin: 10px 0 6px;
}

.prose .updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: 40px;
}

.prose h2 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul {
  margin: 0 0 14px 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ivory);
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px;
  background: var(--ink-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--faint);
  max-width: 30ch;
}

.footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 9px;
}

.footer li a {
  color: var(--muted);
  font-size: 14px;
}

.footer li a:hover {
  color: var(--gold);
}

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 72px 0 8px;
}

.page-hero .display {
  font-size: clamp(32px, 5vw, 44px);
  margin: 12px 0 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.lost .seal {
  width: 88px;
  height: 88px;
  font-size: 30px;
  margin-bottom: 26px;
}

/* ---------- Reveal animation (app entrance: FadeInDown ~300ms) ---------- */

/* Hidden start state only when JS is running, so no-JS visitors see everything. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

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

  .hero {
    padding: 64px 0 80px;
  }

  .tiers,
  .plans,
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 64px 0;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .brand span {
    display: none;
  }

  .tiers,
  .plans,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
    gap: 6px;
  }

  .row-key {
    width: auto;
  }

  .cta-band {
    padding: 40px 22px;
  }
}
