/* Courtmark website. Layout concept: a deep court-green opening with the real app on a phone,
   then calm chalk pages ruled like a court: clear sections, generous space, the serif doing the talking. */
:root {
  --court: #0D3B2E;
  --court-deep: #082419;
  --night: #0A1411;
  --chalk: #F3EFE6;
  --trophy: #C8A769;
  --optic: #D6F04B;

  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --ink: #0B1512;
  --muted: #56615B;
  --line: #E3DCCF;
  --accent: #0D3B2E;
  --accent-ink: #F3EFE6;
  --gold-text: #7A5C25;
  --shadow: 0 18px 40px rgba(16, 32, 24, 0.10), 0 2px 6px rgba(16, 32, 24, 0.06);

  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Geist', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mark: 'Archivo', 'Arial Black', Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1613;
    --surface: #13201B;
    --ink: #EEF0EA;
    --muted: #A3ADA7;
    --line: #26352E;
    --accent: #C8A769;
    --accent-ink: #0A1411;
    --gold-text: #D9BE86;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1613;
  --surface: #13201B;
  --ink: #EEF0EA;
  --muted: #A3ADA7;
  --line: #26352E;
  --accent: #C8A769;
  --accent-ink: #0A1411;
  --gold-text: #D9BE86;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--trophy); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 34em; }
.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text);
}
.muted { color: var(--muted); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 500 15.5px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--chalk); color: var(--night); }
.btn-ghost { border-color: rgba(243, 239, 230, 0.35); color: var(--chalk); }
.btn-dark { background: var(--accent); color: var(--accent-ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }

/* ---------- nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chalk); }
.brand b { font-family: var(--mark); font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: rgba(243, 239, 230, 0.8); text-decoration: none; font-size: 15px; }
.nav ul a:hover { color: var(--chalk); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; color: var(--chalk);
  background: radial-gradient(120% 90% at 85% 10%, #145A43 0%, var(--court) 42%, var(--court-deep) 100%);
}
.hero .courtlines { position: absolute; right: -8%; top: -6%; width: 62%; height: 120%; opacity: 0.09; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 150px 90px; }
.hero h1 em { color: var(--trophy); }
.hero .lede { color: rgba(243, 239, 230, 0.8); margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 14px; color: rgba(243, 239, 230, 0.7); }
.hero .facts span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--trophy); margin-right: 9px; vertical-align: 2px; }
.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 290px; border-radius: 44px; padding: 9px; background: #050A08;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 36px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; }
.phones .p1 { left: 4%; top: 0; transform: rotate(-4deg); z-index: 2; }
.phones .p2 { right: 0; top: 70px; transform: rotate(5deg); }
@media (prefers-reduced-motion: no-preference) {
  .phones .p1 { animation: rise1 1s cubic-bezier(.2, .7, .2, 1) both; }
  .phones .p2 { animation: rise2 1.15s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise1 { from { transform: translateY(26px) rotate(-4deg); } to { transform: rotate(-4deg); } }
  @keyframes rise2 { from { transform: translateY(40px) rotate(5deg); } to { transform: rotate(5deg); } }
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 120px 40px; }
  .phones { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 220px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
}
@media (max-width: 420px) {
  .phones { height: 400px; }
  .phone { width: 180px; }
}

/* ---------- sections */
section { padding-block: clamp(72px, 10vw, 128px); }
.head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* who it's for */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.role { display: grid; grid-template-rows: auto 1fr; gap: 26px; }
.role .shot { background: var(--surface); border-radius: 28px; padding: 22px 22px 0; box-shadow: var(--shadow); overflow: hidden; }
.role .shot img { border-radius: 22px 22px 0 0; width: 100%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: top; }
.role h3 { margin-bottom: 12px; }
.role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.role li { padding-left: 22px; position: relative; font-size: 16px; line-height: 1.5; }
.role li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--gold-text); }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; max-width: 520px; } }

/* your brand */
.yours { background: var(--surface); }
.yours .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.yours .phone { position: relative; width: min(300px, 100%); margin: 0 auto; }
.yours figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checks svg { margin-top: 4px; }
@media (max-width: 900px) { .yours .wrap { grid-template-columns: 1fr; } .yours figure { order: 2; } }

/* how it works (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; color: var(--gold-text); }
.step code { font-family: var(--sans); font-size: 15px; background: color-mix(in srgb, var(--trophy) 16%, transparent); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
}

/* pricing */
.pricing { background: var(--night); color: var(--chalk); position: relative; overflow: hidden; }
.pricing .kicker { color: var(--trophy); }
.pricing .muted { color: rgba(243, 239, 230, 0.66); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.big { font-family: var(--serif); font-weight: 500; font-size: clamp(92px, 14vw, 172px); line-height: 0.9; letter-spacing: -0.04em; }
.big small { font-size: 0.42em; letter-spacing: 0; }
.then { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 18px; }
.then em { color: var(--trophy); }
.nots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nots span { border: 1px solid rgba(243, 239, 230, 0.2); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.card-dark { background: rgba(243, 239, 230, 0.05); border: 1px solid rgba(243, 239, 230, 0.12); border-radius: 26px; padding: 30px; }
.sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 16px; }
.sum td { padding: 12px 0; border-bottom: 1px solid rgba(243, 239, 230, 0.12); font-size: 16px; }
.sum td:last-child { text-align: right; font-family: var(--serif); font-weight: 500; font-size: 21px; }
.sum tr.total td { border-bottom: 0; padding-top: 18px; }
.sum tr.total td:last-child { font-size: 34px; color: var(--trophy); }
.msgs { margin-top: 22px; display: grid; gap: 6px; font-size: 15px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 36px; } }

/* families */
.families .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.store { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-size: 14.5px; color: var(--muted); }
.clublink { margin-top: 26px; font-size: 15px; }
.clublink code { font-family: var(--sans); font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .families .wrap { grid-template-columns: 1fr; } }

/* questions */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-size: 22px; color: var(--gold-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); max-width: 36em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* contact */
.contact { background: var(--court); color: var(--chalk); position: relative; overflow: hidden; }
.contact .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.contact .kicker { color: var(--trophy); }
.contact p { color: rgba(243, 239, 230, 0.8); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.email span { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.8vw, 38px); user-select: all; }
.copy { font: 500 14px var(--sans); border-radius: 999px; padding: 9px 16px; border: 1px solid rgba(243, 239, 230, 0.35); background: transparent; color: var(--chalk); cursor: pointer; }
.founder { border-left: 1px solid rgba(243, 239, 230, 0.2); padding-left: 28px; font-size: 16px; }
.founder b { font-weight: 600; color: var(--chalk); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } .founder { border-left: 0; padding-left: 0; } }

/* footer */
footer { padding-block: 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .brand { color: var(--ink); }
footer .brand b { font-size: 18px; }

/* ---------- legal pages */
.legal-top { background: var(--court); color: var(--chalk); }
.legal-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; }
.legal-top a.back { color: rgba(243, 239, 230, 0.8); text-decoration: none; font-size: 15px; }
.legal { padding-block: 64px 96px; }
.legal .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.legal aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); align-self: start; font-size: 14.5px; }
.legal aside ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal aside a { color: var(--muted); text-decoration: none; }
.legal aside a:hover { color: var(--ink); }
.legal article { max-width: 44em; min-width: 0; }
.legal article h1 { font-size: clamp(38px, 5vw, 56px); }
.legal .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.legal article h2 { font-size: 27px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal article h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 26px; }
.legal article p, .legal article li { color: var(--ink); line-height: 1.7; }
.legal article p { margin-top: 14px; }
.legal article ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 6px; }
.legal .table-wrap { overflow-x: auto; margin-top: 18px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.note { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--trophy) 14%, var(--surface)); font-size: 15.5px; }
@media (max-width: 860px) { .legal .wrap { grid-template-columns: 1fr; } .legal aside { position: static; } }
