/* Kourtiva marketing site.
 *
 * Plain CSS on purpose. The server deploy runs composer but not npm, and a
 * framework would cost more bytes than this whole file. Fewer bytes is also
 * a ranking input, so the constraint and the goal agree.
 *
 * Dark by default, light via prefers-color-scheme, and an explicit
 * [data-theme] override for the toggle.
 */

/* ─── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --bg:        #08080a;
  --bg-2:      #0e0e12;
  --surface:   #141419;
  --surface-2: #1b1b22;
  --line:      #26262f;
  --line-soft: #1d1d24;

  --fg:        #f4f4f6;
  --fg-2:      #a8a8b3;
  --fg-3:      #7e7e8b;   /* >=4.5:1 on --bg; used for small labels */

  --gold:      #e5c185;
  --gold-dim:  #c9a668;
  --purple:    #7c6bf0;
  --purple-dim:#5f4fd0;
  --on-accent: #14140f;

  --ok:        #4ade80;

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1160px;

  --shadow: 0 1px 2px rgb(0 0 0 / .28), 0 12px 40px -12px rgb(0 0 0 / .55);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #fbfaf8;
    --bg-2:      #f4f2ee;
    --surface:   #ffffff;
    --surface-2: #f7f5f1;
    --line:      #e4e0d8;
    --line-soft: #ece9e2;

    --fg:        #14141a;
    --fg-2:      #55555f;
    --fg-3:      #6e6e79;

    --gold:      #8a6a2f;
    --gold-dim:  #6f5526;
    --purple:    #5b49c9;
    --purple-dim:#4a3aa8;
    --on-accent: #ffffff;

    --shadow: 0 1px 2px rgb(20 20 26 / .06), 0 14px 40px -18px rgb(20 20 26 / .22);

    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg:        #fbfaf8;
  --bg-2:      #f4f2ee;
  --surface:   #ffffff;
  --surface-2: #f7f5f1;
  --line:      #e4e0d8;
  --line-soft: #ece9e2;
  --fg:        #14141a;
  --fg-2:      #55555f;
  --fg-3:      #6e6e79;
  --gold:      #8a6a2f;
  --gold-dim:  #6f5526;
  --purple:    #5b49c9;
  --purple-dim:#4a3aa8;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(20 20 26 / .06), 0 14px 40px -18px rgb(20 20 26 / .22);
  color-scheme: light;
}

/* ─── Base ────────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 640;
  text-wrap: balance;
  /* A long unbroken word at a large size would otherwise force the page to
     scroll sideways, which no amount of container width can fix. */
  overflow-wrap: break-word;
}

/* Fluid type: no breakpoint jumps between phone and desktop. */
h1 { font-size: clamp(2.35rem, 1.35rem + 4.4vw, 4.15rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.7rem);  letter-spacing: -.028em; }
h3 { font-size: clamp(1.14rem, 1rem + .55vw, 1.36rem); }

p { margin: 0 0 1.1em; color: var(--fg-2); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { color: var(--fg); font-weight: 620; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--on-accent);
  padding: .7rem 1.1rem; z-index: 200; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .765rem; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}

.lead { font-size: clamp(1.06rem, .98rem + .42vw, 1.24rem); color: var(--fg-2); max-width: 62ch; }
.muted { color: var(--fg-3); }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }

section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section-head { max-width: 66ch; margin-bottom: 3.4rem; }
.center .section-head, .section-head.center { margin-inline: auto; text-align: center; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background-color .18s, border-color .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gold); color: var(--on-accent); }
.btn-primary:hover { background: var(--gold-dim); }

.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg-3); background: var(--surface); }

.btn-lg { padding: 1rem 1.85rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

.arrow { transition: transform .18s; }
.btn:hover .arrow, .textlink:hover .arrow { transform: translateX(3px); }

.textlink {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-weight: 600; font-size: .95rem;
}
.textlink:hover { color: var(--gold-dim); }

/* ─── Header ──────────────────────────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.hdr[data-stuck="true"] { border-bottom-color: var(--line-soft); }

.hdr-in { display: flex; align-items: center; gap: 1.4rem; height: 66px; }

.logo { display: flex; align-items: center; gap: .58rem; font-weight: 680; font-size: 1.07rem; letter-spacing: -.02em; flex: none; }
.logo-mark {
  width: 27px; height: 27px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  display: grid; place-items: center;
  color: var(--on-accent); font-size: .82rem; font-weight: 800;
}

.nav { display: flex; gap: .3rem; margin-left: auto; }
.nav a {
  padding: .5rem .8rem; border-radius: 8px;
  font-size: .925rem; font-weight: 520; color: var(--fg-2);
  transition: color .16s, background-color .16s;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

.hdr-actions { display: flex; align-items: center; gap: .55rem; flex: none; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--fg-2); cursor: pointer;
  transition: color .16s, border-color .16s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--fg-3); }

.burger { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 66px 0 auto; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem 22px 1.4rem; margin: 0;
    transform: translateY(-130%); transition: transform .3s cubic-bezier(.3,.8,.3,1);
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .85rem .4rem; font-size: 1.03rem; border-bottom: 1px solid var(--line-soft); }
  .burger { display: grid; }
  .hdr-actions .btn { display: none; }
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }

/* Two blurred radial blooms. Cheaper than an image and it scales to any width. */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 780px; z-index: -1;
  background:
    radial-gradient(58% 46% at 22% 30%, color-mix(in oklab, var(--purple) 30%, transparent), transparent 68%),
    radial-gradient(48% 42% at 80% 12%, color-mix(in oklab, var(--gold) 24%, transparent), transparent 66%);
  filter: blur(58px); opacity: .82; pointer-events: none;
}

.hero h1 { max-width: 17ch; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem); margin-block: 1.4rem 2.1rem; }

.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.06fr .94fr; } }

.trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); }
.trust div { min-width: 84px; }
.trust b { display: block; font-size: 1.5rem; font-weight: 680; letter-spacing: -.03em; }
.trust span { font-size: .8rem; color: var(--fg-3); }

/* ─── Device mock ─────────────────────────────────────────────────────────── */

.mock {
  position: relative; border-radius: 26px; padding: 1.4rem;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mock-bar { display: flex; gap: .38rem; margin-bottom: 1.1rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-row { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--gold) 15%, transparent); color: var(--gold); }
.mock-txt { flex: 1; min-width: 0; }
/* Court names and player lists are user data of unpredictable length. Truncate
   rather than wrap, so a row stays one line however narrow the screen gets. */
.mock-txt b,
.mock-txt span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-txt b { font-size: .9rem; font-weight: 600; }
.mock-txt span { font-size: .79rem; color: var(--fg-3); }

/* Very narrow phones: reclaim the padding and drop the status pill, which is
   the least important part of the row once space runs out. */
@media (max-width: 420px) {
  .mock { padding: 1rem; }
  .mock-row { gap: .6rem; }
  .mock-ico { width: 30px; height: 30px; }
  .pill { display: none; }
}
.pill { font-size: .715rem; font-weight: 650; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: color-mix(in oklab, var(--ok) 17%, transparent); color: var(--ok); }
.pill-wait { background: color-mix(in oklab, var(--gold) 17%, transparent); color: var(--gold); }

/* ─── Cards & bento ───────────────────────────────────────────────────────── */

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in oklab, var(--gold) 40%, var(--line)); transform: translateY(-2px); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }

.card-ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--gold) 14%, transparent);
  color: var(--gold);
}

/* Bento: the first card spans two columns on wide screens. */
.bento { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
@media (min-width: 940px) { .bento > :first-child { grid-column: span 2; } }

.ticks { display: grid; gap: .55rem; margin-top: 1.15rem; }
.ticks li { display: flex; gap: .6rem; font-size: .91rem; color: var(--fg-2); line-height: 1.5; }
.ticks svg { flex: none; margin-top: .3rem; color: var(--gold); }

/* ─── Steps ───────────────────────────────────────────────────────────────── */

.steps { counter-reset: s; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--gold);
  display: block; margin-bottom: .9rem;
}

/* ─── Code ────────────────────────────────────────────────────────────────── */

.code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.code-hd {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; color: var(--fg-3);
}
.code pre { margin: 0; padding: 1.2rem; overflow-x: auto; font-family: var(--mono); font-size: .845rem; line-height: 1.72; }
.code code { color: var(--fg-2); }
.tok-k { color: var(--purple); }
.tok-s { color: var(--gold); }
.tok-c { color: var(--fg-3); font-style: italic; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: .7rem; max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.35rem;
  font-weight: 600; font-size: 1rem; display: flex; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.35rem; font-weight: 400;
  color: var(--gold); line-height: 1; transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 1.35rem 1.25rem; margin: 0; font-size: .95rem; }

/* ─── CTA ─────────────────────────────────────────────────────────────────── */

.cta {
  border-radius: 26px; padding: clamp(2.6rem, 5vw, 4.2rem);
  background: linear-gradient(140deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: -60% 30% auto -20%; height: 400px; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--purple) 26%, transparent), transparent 70%);
  filter: blur(50px); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { max-width: 20ch; margin-inline: auto; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.ftr { border-top: 1px solid var(--line); padding-block: 3.4rem 2.2rem; background: var(--bg-2); }
.ftr-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 2.6rem; }
.ftr-grid > :first-child { min-width: 220px; }
.ftr h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .095em; color: var(--fg-3); margin-bottom: 1rem; font-weight: 650; }
.ftr li { margin-bottom: .55rem; }
.ftr li a { font-size: .92rem; color: var(--fg-2); }
.ftr li a:hover { color: var(--gold); }
.ftr-btm { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); font-size: .855rem; color: var(--fg-3); }

/* ─── Reveal ──────────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* Nothing should stay invisible if JS never runs. */
.no-js .reveal { opacity: 1; transform: none; }

/* ─── Artwork ─────────────────────────────────────────────────────────────── */

.art { width: 100%; height: auto; display: block; }

.art-hero { max-width: 560px; margin-inline: auto; overflow: visible; }

/* The illustrated strip at the head of a feature card. The tinted plate keeps
   the line-art readable against both the dark and light card surfaces. */
.art-card { color: var(--fg); }

.card-art {
  margin: -1.7rem -1.7rem 1.4rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 15% 0%, color-mix(in oklab, var(--purple) 16%, transparent), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  overflow: hidden;
}

/* ─── Full-bleed banner ───────────────────────────────────────────────────── */

.banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 90% at 12% 10%, color-mix(in oklab, var(--purple) 30%, transparent), transparent 68%),
    radial-gradient(55% 80% at 88% 90%, color-mix(in oklab, var(--gold) 24%, transparent), transparent 66%),
    linear-gradient(150deg, var(--surface), var(--bg-2));
  border-block: 1px solid var(--line);
}

/* Court line-art tiled behind the copy. Deliberately faint: it is texture, not
   an illustration competing with the heading. */
.banner-art {
  position: absolute; inset: 0; z-index: -1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  align-items: center; gap: clamp(1rem, 5vw, 4rem);
  padding-inline: 2rem;
  color: var(--fg);
  opacity: .11;
  pointer-events: none;
}
.banner-art span { display: block; transform: rotate(-7deg); }
:root[data-theme="light"] .banner-art { opacity: .14; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .banner-art { opacity: .14; } }
@media (max-width: 780px) { .banner-art { grid-template-columns: repeat(2, 1fr); } }

.banner-in { position: relative; text-align: center; }
.banner-in h2 { max-width: 22ch; margin-inline: auto; }
.banner-in .lead { margin-inline: auto; }

.banner-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.6rem, 5vw, 4.5rem);
  margin-top: 3rem; padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.banner-stats b {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  font-weight: 680; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.banner-stats span { display: block; margin-top: .5rem; font-size: .86rem; color: var(--fg-3); }

/* ─── Photo slots ─────────────────────────────────────────────────────────── */

.photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; }
.photo figcaption { padding: .8rem 1.1rem; font-size: .82rem; color: var(--fg-3); background: var(--surface); }

/* No photograph yet: show the artwork on a tinted plate rather than a gap. */
.photo-empty { background: linear-gradient(150deg, var(--surface), var(--surface-2)); }
.photo-art {
  display: grid; place-items: center;
  aspect-ratio: 3 / 2; padding: clamp(1.6rem, 6%, 3rem);
  color: var(--gold); opacity: .5;
}

/* ─── Sport strip ─────────────────────────────────────────────────────────── */

.sports {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .55rem; margin-top: 2.4rem;
}
.sports span {
  padding: .46rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .87rem; font-weight: 550; color: var(--fg-2);
}

@media (prefers-reduced-motion: reduce) {
  /* Stop the scan line and the packet animation for anyone who asked for less. */
  .art animate, .art animateMotion { display: none; }
}

/* ─── Hero composition ────────────────────────────────────────────────────── */

/* The court art and the booking card overlap by design. A negative margin
   rather than absolute positioning, so the container still grows with its
   contents and nothing collides on a narrow screen. */
.hero-visual { position: relative; }
.hero-visual .art-hero { margin-bottom: -24%; opacity: .95; }
.hero-visual .mock { position: relative; z-index: 1; }

@media (max-width: 620px) {
  /* Stacked layout: the overlap stops helping once the card is full width. */
  .hero-visual .art-hero { margin-bottom: -14%; }
}

/* ─── Legal pages ─────────────────────────────────────────────────────────── */

/* Long-form reading: a narrower measure and more air between sections than the
   marketing pages, which are scanned rather than read. */
.legal h2 {
  font-size: clamp(1.3rem, 1.15rem + .7vw, 1.6rem);
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal h3 { font-size: 1.06rem; margin-top: 1.8rem; }
.legal p, .legal li { font-size: .975rem; }
.legal .ticks { margin-block: 1.1rem; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.3rem 1.5rem;
  margin-block: 1.8rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--purple); }

.legal-table {
  width: 100%; border-collapse: collapse; margin-block: 1.4rem;
  font-size: .92rem;
  /* Wide tables scroll inside their own box rather than pushing the page. */
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 720px) { .legal-table { display: table; white-space: normal; } }
.legal-table th, .legal-table td {
  text-align: left; padding: .72rem .9rem; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.legal-table th { font-weight: 620; color: var(--fg); font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-table td { color: var(--fg-2); }
.legal-table tbody tr:last-child td { border-bottom: 0; }

.numbered { counter-reset: n; margin-top: 1rem; display: grid; gap: .6rem; }
.numbered li {
  counter-increment: n; display: flex; gap: .7rem; align-items: flex-start;
  font-size: .93rem; color: var(--fg-2);
}
.numbered li::before {
  content: counter(n); flex: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: .1rem;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--gold) 16%, transparent);
  color: var(--gold); font-size: .72rem; font-weight: 700;
}

/* ─── Form fields ─────────────────────────────────────────────────────────── */

.field-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.field {
  width: 100%; padding: .72rem .9rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2);
  color: var(--fg); font: inherit; font-size: .95rem;
}
.field:focus-visible { border-color: var(--gold); }
.field-error { display: block; color: #dc2626; font-size: .82rem; margin-top: .35rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field-error { color: #f87171; } }
:root[data-theme="dark"] .field-error { color: #f87171; }

/* Destructive action: red, so it never gets clicked by muscle memory. */
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); }
.notice-ok { background: color-mix(in oklab, var(--ok) 13%, transparent); color: var(--fg-2); }
.notice-ok svg { color: var(--ok); }
