/* CourtCast website. No external fonts or scripts: the privacy policy promises no third-party content. */
:root {
  color-scheme: dark;
  --night: #070d1c;
  --navy: #0c1630;
  --panel: #111d3b;
  --panel-2: #16244a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2fa;
  --muted: #9eabc6;
  --lime: #d8f23f;
  --lime-deep: #b9d42a;
  --team-a: #3b82f6;
  --team-b: #f0503f;
  --court: #2457c6;
  --radius: 22px;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wide: 76rem;
  --measure: 38rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--rounded); letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: #000; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--night) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font: 800 1rem/1 var(--rounded); letter-spacing: .16em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-head nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--text); }
.site-head nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--lime); color: #0a0f00;
  font: 700 1.02rem/1 var(--rounded);
  padding: 1rem 1.45rem; border-radius: 999px; text-decoration: none; border: 0;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #e6ff5a; transform: translateY(-1px); }
.btn[aria-disabled="true"] { cursor: default; transform: none; background: var(--lime); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #000; color: #fff; border-radius: 14px; padding: .65rem 1.15rem .65rem .95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); text-decoration: none;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: .72rem; line-height: 1.1; opacity: .8; }
.store-badge strong { display: block; font: 600 1.15rem/1.15 var(--sans); }
.store-badge[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(36, 87, 198, .55), transparent 70%),
    radial-gradient(40% 40% at 15% 10%, rgba(216, 242, 63, .10), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 1.4rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--team-b); box-shadow: 0 0 0 4px rgba(240,80,63,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(240,80,63,0); } }
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.03; max-width: 19ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: #c9d3e8; max-width: var(--measure); margin: 1.5rem 0 2.2rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--muted); font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: .45rem; }
.facts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.hero-media { margin-top: 3rem; }

/* Device frames */
.phone {
  position: relative; background: #05070d; padding: 1.1%;
  border-radius: clamp(18px, 4.2cqi, 54px);
  box-shadow: 0 0 0 1.5px #2a3550, 0 40px 80px -30px rgba(0,0,0,.8), 0 20px 120px -40px rgba(36,87,198,.6);
  container-type: inline-size;
}
.phone > img, .phone > video { width: 100%; border-radius: clamp(12px, 3.4cqi, 44px); background: var(--navy); }
.phone.landscape { aspect-ratio: auto; }
.phone.portrait { padding: 2.6%; border-radius: clamp(26px, 13cqi, 60px); max-width: 320px; }
.phone.portrait > img, .phone.portrait > video { border-radius: clamp(20px, 11cqi, 50px); }
.frame-wrap { container-type: inline-size; }

.stream-frame { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); border: 1px solid var(--line); }
.stream-frame .live-tag {
  position: absolute; right: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(0,0,0,.6); border-radius: 6px; padding: .3rem .6rem; font: 800 .75rem/1 var(--rounded); letter-spacing: .1em;
}
.stream-frame .live-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }

/* Sections */
section { padding: 6.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 3.2rem; }
.kicker { font: 700 .8rem/1 var(--rounded); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; display: block; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: 1.1rem; }
h3 { font-weight: 700; font-size: 1.22rem; line-height: 1.3; }
.alt { background: linear-gradient(180deg, var(--navy), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Stream anatomy */
.anatomy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; list-style: none; padding: 0; }
.anatomy li { border-top: 2px solid var(--line); padding-top: 1rem; color: var(--muted); }
.anatomy li strong { display: block; color: var(--text); font-family: var(--rounded); margin-bottom: .25rem; }
.anatomy li:nth-child(1) { border-color: var(--lime); }
.anatomy li:nth-child(2) { border-color: var(--team-a); }
.anatomy li:nth-child(3) { border-color: var(--team-b); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.4rem;
  border-radius: 50%; background: var(--lime); color: #000; font: 800 1.15rem/1 var(--rounded);
}
.steps p { color: var(--muted); margin-top: .5rem; }

/* Split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 4rem; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: 7rem; }
.split .copy p { color: var(--muted); margin-top: 1rem; }
.split .copy .kicker + h2 { margin-top: 0; }
.checks.flush { margin-top: 0; }
.more { margin-top: 2rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.9rem; color: #d3dbec; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: rgba(216,242,63,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23d8f23f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .9rem; text-align: center; }
.stack { position: relative; }
.stack .phone + .phone { width: 58%; margin: -18% 0 0 auto; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.card .icon { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); margin-bottom: 1.2rem; color: var(--lime); }
.card .icon svg { width: 1.45rem; height: 1.45rem; }
.card p { color: var(--muted); margin-top: .45rem; font-size: 1rem; }

/* Setup row: three portrait phones */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; }
.phones .phone { flex: 1 1 0; max-width: 290px; }
.phones .phone:nth-child(2) { transform: translateY(-2rem); }

/* Privacy band */
.promise { text-align: center; }
.promise h2 { max-width: 22ch; margin: 0 auto; }
.promise p { color: var(--muted); max-width: 40rem; margin: 1.2rem auto 0; font-size: 1.12rem; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.2rem; list-style: none; padding: 0; }
.badges li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font: 600 .95rem/1.2 var(--rounded); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; font: 700 1.12rem/1.4 var(--rounded); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--sans); color: var(--lime); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--muted); }
.faq details > div p + p { margin-top: .8rem; }

/* CTA */
.cta { text-align: center; padding: 6rem 0; }
.cta .box { background: radial-gradient(80% 120% at 50% 0%, rgba(36,87,198,.55), transparent 70%), var(--panel); border: 1px solid var(--line); border-radius: 32px; padding: 4rem 1.5rem; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { color: var(--muted); margin: 1rem auto 2rem; max-width: 34rem; }
.cta .actions { justify-content: center; }

/* Help / legal pages */
.page { padding: 4.5rem 0 6rem; }
.page .wrap { max-width: 50rem; }
.page h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; margin-bottom: 1rem; }
.page .lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 2.5rem; }
.page h2 { font-size: 1.5rem; margin: 3rem 0 .8rem; }
.page h3 { margin: 1.8rem 0 .4rem; }
.page p, .page li { color: #cdd6e8; }
.page p + p { margin-top: .9rem; }
.page ol, .page ul { padding-left: 1.3rem; }
.page li + li { margin-top: .4rem; }
.page a { color: var(--lime); }
.page .muted { color: var(--muted); font-size: .92rem; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0 !important; margin: 1.5rem 0 1rem; }
.page .toc li { margin: 0; }
.toc a { display: inline-block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .92rem; color: var(--text) !important; }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1.2rem; }

/* Footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 60rem) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps, .anatomy { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  section { padding: 4.5rem 0; }
  .site-head nav a:not(.lang):not(.keep) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .phones .phone:nth-child(3) { display: none; }
  .phones .phone:nth-child(2) { transform: none; }
  .hero { padding-top: 3.5rem; }
}
