/* ===========================================================
   Late Fee — support & marketing site
   Palette pulled directly from the app's own ticket-stub UI
   (TicketSectionHeader.swift): navy #1E3A8A, gold #FFC72C,
   cream #F5F1E6. Everything else is derived from those three.
   =========================================================== */

:root {
  --navy: #1e3a8a;
  --navy-deep: #12235c;
  --navy-ink: #0b1533;
  --gold: #ffc72c;
  --gold-dim: #e0a814;
  --cream: #f5f1e6;
  --cream-dim: #e7e0cc;
  --teal: #2dd4bf;
  --ink: #14161c;
  --paper: #fffdf7;
  --paper-line: #e5ddc8;
  --text-on-dark: #f5f1e6;
  --text-on-dark-dim: #c7c2ae;
  --text-on-light: #1c1a14;
  --text-on-light-dim: #5c5847;

  /* Semantic tokens for text sitting on a *theme-following* background (the paper-colored
     sections — features, support body, the ticket form) — not the always-dark brand navy
     of the hero/header/footer, which stays cream/gold regardless of theme on purpose.
     Distinct from --navy/--navy-ink themselves so those stay reusable as pure brand color
     (card backgrounds, borders) without also carrying "and flip for dark mode" baggage. */
  --heading: var(--navy-ink);
  --link: var(--navy);
  --eyebrow-on-paper-bg: rgba(30, 58, 138, 0.08);
  --eyebrow-on-paper-border: rgba(30, 58, 138, 0.18);
  --status-success: #1a7a4c;
  --status-error: #b3261e;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(11, 21, 51, 0.18);
  --shadow-ticket: 0 18px 40px rgba(11, 21, 51, 0.35);

  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -----------------------------------------------------------
   Perforated ticket edge — a repeating radial-gradient "punch"
   pattern, used wherever a section should read as a torn stub.
   ----------------------------------------------------------- */
.perf-edge-bottom {
  position: relative;
}
.perf-edge-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 24px;
  background-image: radial-gradient(circle, var(--paper) 9px, transparent 10px);
  background-size: 36px 24px;
  background-position: 0 -12px;
  background-repeat: repeat-x;
}

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-ink);
  border-bottom: 1px solid rgba(255, 199, 44, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-on-dark);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-word {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  color: var(--gold);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--text-on-dark-dim);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav a.nav-support {
  color: var(--ink);
  background: var(--gold);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.nav a.nav-support:hover {
  background: var(--gold-dim);
  color: var(--ink);
}

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 199, 44, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy-ink) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: var(--text-on-dark);
  padding: 88px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 199, 44, 0.12);
  border: 1px solid rgba(255, 199, 44, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 22px;
  color: var(--cream);
  text-wrap: balance;
}

.hero h1 span {
  color: var(--gold);
}

.hero p.lede {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-on-dark-dim);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  font-family: var(--font-body);
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(255, 199, 44, 0.28);
}

.btn-gold:hover {
  background: var(--gold-dim);
}

.btn-outline {
  background: transparent;
  border-color: rgba(245, 241, 230, 0.35);
  color: var(--cream);
}

.btn-outline:hover {
  border-color: var(--cream);
  background: rgba(245, 241, 230, 0.06);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-navy:hover {
  background: var(--navy-deep);
}

.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-on-dark-dim);
}

/* Membership-card visual, standalone (not a screenshot) */
.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.membership-card {
  width: min(340px, 100%);
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow-ticket);
  position: relative;
  padding: 26px 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card:hover .membership-card {
  transform: rotate(-1deg) scale(1.02);
}

.membership-card::before,
.membership-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  background: var(--navy-ink);
  border-radius: 50%;
  transform: translateY(-50%);
}

.membership-card::before {
  left: -13px;
}

.membership-card::after {
  right: -13px;
}

.membership-card .rule {
  border: none;
  border-top: 1px solid rgba(255, 199, 44, 0.5);
  margin: 0 0 16px;
}

.membership-card .card-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2.3rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1;
}

.membership-card .card-sub {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  margin-top: 6px;
}

.membership-card .card-strip {
  background: var(--gold);
  color: var(--navy-ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 9px 12px;
  border-radius: 6px;
  margin-top: 16px;
}

/* -----------------------------------------------------------
   Section shells
   ----------------------------------------------------------- */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  color: var(--link);
  background: var(--eyebrow-on-paper-bg);
  border-color: var(--eyebrow-on-paper-border);
}

.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: var(--heading);
  text-wrap: balance;
}

.section-head p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-on-light-dim);
  margin: 0;
}

/* -----------------------------------------------------------
   Features
   ----------------------------------------------------------- */
.features {
  background: var(--paper);
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.feature-card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
}

.feature-card h3 {
  font-size: 1.12rem;
  margin: 0 0 8px;
  color: var(--heading);
}

.feature-card p {
  margin: 0;
  color: var(--text-on-light-dim);
  line-height: 1.55;
  font-size: 0.96rem;
}

/* -----------------------------------------------------------
   Screenshot reel ("Now Showing")
   ----------------------------------------------------------- */
.reel {
  background: var(--navy-ink);
  color: var(--text-on-dark);
  position: relative;
}

.reel .section-head .eyebrow {
  color: var(--gold);
  background: rgba(255, 199, 44, 0.12);
  border-color: rgba(255, 199, 44, 0.35);
}

.reel .section-head h2 {
  color: var(--cream);
}

.reel .section-head p {
  color: var(--text-on-dark-dim);
}

.filmstrip {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 12px 24px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.filmstrip::-webkit-scrollbar {
  height: 8px;
}
.filmstrip::-webkit-scrollbar-thumb {
  background: rgba(255, 199, 44, 0.35);
  border-radius: var(--radius-pill);
}

.frame {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: center;
  text-align: center;
}

.frame .phone {
  border: 6px solid #0a0f24;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  background: #0a0f24;
}

.frame .phone img {
  width: 100%;
  display: block;
}

.frame .cap {
  margin-top: 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--gold);
}

/* -----------------------------------------------------------
   CTA band
   ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: var(--ink);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.cta-band p {
  font-size: 1.05rem;
  margin: 0 0 30px;
  color: rgba(20, 22, 28, 0.75);
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
  background: var(--navy-ink);
  color: var(--text-on-dark-dim);
  padding: 50px 0 36px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(245, 241, 230, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-brand-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--cream);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-on-dark-dim);
  font-size: 0.92rem;
}

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

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* -----------------------------------------------------------
   Support page
   ----------------------------------------------------------- */
.support-hero {
  background: linear-gradient(180deg, var(--navy-ink) 0%, var(--navy-deep) 100%);
  color: var(--text-on-dark);
  padding: 72px 0 64px;
  text-align: center;
}

.support-hero .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.support-hero h1 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  margin: 0 0 14px;
  color: var(--cream);
}

.support-hero p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--text-on-dark-dim);
  font-size: 1.05rem;
  line-height: 1.6;
}

.support-body {
  padding: 72px 0 100px;
  background: var(--paper);
}

.support-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-item {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.help-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--heading);
}

.help-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-on-light-dim);
  line-height: 1.5;
}

.help-item a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.help-item a:hover {
  text-decoration: underline;
}

/* Ticket-shaped contact form */
.ticket-form {
  background: var(--cream);
  border: 2px dashed var(--navy);
  border-radius: 18px;
  padding: 36px 34px 30px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.ticket-form::before,
.ticket-form::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  background: var(--paper);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket-form::before {
  left: -15px;
}
.ticket-form::after {
  right: -15px;
}

.ticket-form .ticket-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
  color: var(--heading);
  margin: 0 0 4px;
}

.ticket-form .ticket-sub {
  font-size: 0.88rem;
  color: var(--text-on-light-dim);
  margin: 0 0 26px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--heading);
  margin-bottom: 7px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--paper-line);
  background: #fff;
  color: var(--text-on-light);
  transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: var(--status-success);
}

.form-status[data-state="error"] {
  color: var(--status-error);
}

.form-status[data-state="sending"] {
  color: var(--text-on-light-dim);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    order: -1;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .support-layout {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 16px;
  }
  .nav a:not(.nav-support) {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 64px 0 88px;
  }
  section {
    padding: 68px 0;
  }
  .ticket-form {
    padding: 30px 20px 26px;
  }
}

/* -----------------------------------------------------------
   Dark mode — the viewer's own preference, not the app's own
   navy theming (which stays constant regardless, since it's
   brand color, not a light/dark UI mode).
   ----------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161c;
    --paper-line: #2a2d38;
    --text-on-light: #f2f0e8;
    --text-on-light-dim: #a9a693;
    /* The bug Kyle actually hit: --heading/--link stayed pinned to dark navy (meant for a
       light paper background) even once --paper itself went near-black above — dark text
       on a dark background, reading as "disappeared." These two are the fix. */
    --heading: var(--cream);
    --link: var(--teal);
    --eyebrow-on-paper-bg: rgba(45, 212, 191, 0.14);
    --eyebrow-on-paper-border: rgba(45, 212, 191, 0.35);
    --status-success: #4ade80;
    --status-error: #f87171;
  }
  .feature-card,
  .help-item {
    background: #1b1e28;
  }
  .ticket-form {
    background: #1b1e28;
  }
  .ticket-form::before,
  .ticket-form::after {
    background: var(--paper);
  }
  .form-row input,
  .form-row select,
  .form-row textarea {
    background: #14161c;
    color: var(--text-on-light);
    border-color: #2a2d38;
  }
}

:root[data-theme="dark"] {
  --paper: #14161c;
  --paper-line: #2a2d38;
  --text-on-light: #f2f0e8;
  --text-on-light-dim: #a9a693;
  --heading: var(--cream);
  --link: var(--teal);
  --eyebrow-on-paper-bg: rgba(45, 212, 191, 0.14);
  --eyebrow-on-paper-border: rgba(45, 212, 191, 0.35);
  --status-success: #4ade80;
  --status-error: #f87171;
}
:root[data-theme="dark"] .feature-card,
:root[data-theme="dark"] .help-item,
:root[data-theme="dark"] .ticket-form {
  background: #1b1e28;
}
:root[data-theme="dark"] .form-row input,
:root[data-theme="dark"] .form-row select,
:root[data-theme="dark"] .form-row textarea {
  background: #14161c;
  color: var(--text-on-light);
  border-color: #2a2d38;
}

:root[data-theme="light"] {
  --paper: #fffdf7;
  --paper-line: #e5ddc8;
  --text-on-light: #1c1a14;
  --text-on-light-dim: #5c5847;
  --heading: var(--navy-ink);
  --link: var(--navy);
  --eyebrow-on-paper-bg: rgba(30, 58, 138, 0.08);
  --eyebrow-on-paper-border: rgba(30, 58, 138, 0.18);
  --status-success: #1a7a4c;
  --status-error: #b3261e;
}
