/* Court Work's own website (docs/designs/marketing-site.md).
   One calm column, white page, the app's orange for actions only, one cream band per page.
   Colours and type match web/src/design/tokens.css. No outside fonts: the system's rounded face. */
:root {
  --accent: #D95C1A;
  --accent-press: #B94C14;
  --accent-soft: #FDF1E8;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --surface: #FFFFFF;
  --text: #1C1C1E;
  --muted: #5B5B61;
  --line: #E4E4E7;
  --good: #218C4D;
  --alert: #C72626;
  --ink: #1C1C1E;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #FF7A29; --accent-press: #FF9350; --accent-soft: #2A1C14;
    --bg: #121214; --bg-soft: #1A1A1D; --surface: #212126; --text: #F2F2F4; --muted: #A8A8AF;
    --line: #34343A; --good: #4CC27E; --alert: #FF6B6B; --ink: #44444B; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 20px; align-content: start; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
nav.main { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.main a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
nav.main a:hover { color: var(--accent); }
nav.main a[aria-current="page"] { color: var(--accent); }
nav.main a.signin { color: var(--muted); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; color: var(--text); cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; padding: 13px 22px; font-size: 1rem; font-family: var(--font-body); cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-press); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.small { padding: 9px 16px; font-size: 0.95rem; white-space: nowrap; }
.btn.quiet { background: transparent; color: var(--accent); padding-left: 4px; padding-right: 4px; }
.btn.quiet:hover { background: transparent; text-decoration: underline; }

@media (max-width: 860px) {
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
  header.site .btn.small { display: none; }
}

/* Bands */
.band { padding-block: 72px; }
.band.soft { background: var(--bg-soft); }
.band.cream { background: var(--accent-soft); }
.band.tight-bottom { padding-bottom: 0; }
@media (max-width: 600px) { .band { padding-block: 52px; } }

/* Hero */
.hero { padding-block: 64px 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 0.95rem; color: var(--muted); }
.court { position: absolute; right: -120px; bottom: -160px; width: 640px; height: 640px; opacity: 0.6; pointer-events: none; }
.court * { fill: none; stroke: var(--line); stroke-width: 2; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .court { display: none; } }

/* Phone drawings of the app's screens */
.phone { width: 270px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 40px; background: var(--surface); border: 10px solid var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,0.14); padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.35; margin: 0 auto; position: relative; overflow: hidden; }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; background: var(--ink); border-radius: 12px; }
.phone .tt { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin-top: 14px; }
.phone .card { background: var(--bg-soft); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.phone .card b { font-size: 13px; }
.phone .row { display: flex; justify-content: space-between; gap: 8px; }
.phone .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; }
.phone .live { color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }
.phone .live.top { margin-top: 14px; }
.phone .score { font-family: var(--font-display); font-weight: 800; font-size: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.phone .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone .keys span { background: var(--bg-soft); border-radius: 10px; text-align: center; padding: 10px 0; font-weight: 700; }
.phone .keys span.on { background: var(--accent); color: #fff; }
.phone .pbtn { background: var(--accent); color: #fff; border-radius: 999px; text-align: center; padding: 10px; font-weight: 700; margin-top: auto; }
.phone .bubble { background: var(--bg-soft); border-radius: 14px 14px 14px 4px; padding: 8px 10px; max-width: 85%; }
.phone .bubble.me { background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; margin-left: auto; }
.phone .who { font-size: 11px; color: var(--muted); }
.phone .foot { margin-top: auto; text-align: center; }
.phone .saved { font-size: 11px; color: var(--good); text-align: center; }
.phone .film { aspect-ratio: 16 / 10; background: #1C1C1E; color: #fff; align-content: end; }
.phone .film span { font-size: 11px; }

/* Feature grid */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.feat { display: grid; gap: 8px; align-content: start; }
.feat .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.feat .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--muted); }
.head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 40em; }
.head.flush { margin-bottom: 0; }
.more { margin-top: 36px; }

/* Split rows (Features) */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 300px 1fr; }
.split.flip .phone-col { order: -1; }
.split .copy { display: grid; gap: 14px; min-width: 0; }
.split ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.plan-line { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .phone-col { order: 0; } }

/* Promises */
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 40px; }
.promises li { display: flex; gap: 12px; align-items: baseline; font-size: 1.05rem; }
.promises li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--accent); transform: translateY(-1px); }
@media (max-width: 700px) { .promises { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; padding: 0; margin: 0; counter-reset: s; }
.steps li { list-style: none; display: grid; gap: 6px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.6rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Closing band */
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta .copy { display: grid; gap: 8px; max-width: 36em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.plan-card .price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; font-variant-numeric: tabular-nums; }
.plan-card .per { color: var(--muted); font-size: 0.95rem; }
.plan-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; font-size: 0.97rem; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 40px; margin-top: 28px; }
.rules p { padding-left: 18px; position: relative; }
.rules p::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; padding: 22px; } }
.calc label { display: grid; gap: 6px; font-weight: 600; }
.calc input[type=number] { font: inherit; font-size: 1.1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); width: 100%; font-variant-numeric: tabular-nums; }
.calc label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.calc .check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.total { display: grid; gap: 10px; align-content: start; }
.total .big { font-family: var(--font-display); font-weight: 800; font-size: 3rem; font-variant-numeric: tabular-nums; line-height: 1; }
.lines { display: grid; gap: 4px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.97rem; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.small-note { font-size: 0.9rem; color: var(--muted); }

details.q { border-bottom: 1px solid var(--line); padding-block: 16px; }
details.q summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details.q[open] summary::after { content: "–"; }
details.q p { color: var(--muted); margin-top: 10px; max-width: 42em; }

/* Story */
.story { max-width: 38em; display: grid; gap: 20px; font-size: 1.15rem; }
.story .sig { font-family: var(--font-display); font-weight: 700; }
.story .sig span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); }

/* Forms */
form.f { display: grid; gap: 18px; max-width: 520px; }
form.f label { display: grid; gap: 6px; font-weight: 600; }
form.f input, form.f select, form.f textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); width: 100%; }
form.f [aria-invalid="true"] { border-color: var(--alert); }
form.f textarea { min-height: 130px; resize: vertical; }
form.f .hint { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
form.f .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--alert); font-weight: 600; }
.sent { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; max-width: 520px; display: grid; gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.addr { display: grid; gap: 18px; }
.addr div { display: grid; gap: 2px; }
.addr .mail { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; color: var(--text); user-select: all; }

/* Legal */
.legal { max-width: 42em; display: grid; gap: 16px; }
.legal h2 { font-size: 1.4rem; margin-top: 16px; }
.legal h3 { margin-top: 8px; }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.legal .table { overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 0.95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

.h3 { font-size: 1.2rem; font-weight: 700; }
