/* Court Rhythm website — draft 2026-10-16
   One stylesheet for every page. Brand tokens follow docs/brand-court-rhythm.md
   in the app repo: navy base, emerald for actions, orange only for live numbers. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0b1326;
  --navy-deep: #081020;
  --surface: #101b2f;
  --surface-2: #172541;
  --ink: #dae2fd;
  --ink-strong: #ffffff;
  --muted: #a3afcb;
  --line: rgba(218, 226, 253, 0.10);
  --chalk: rgba(218, 226, 253, 0.20);
  --em-300: #6ee7b7;
  --em-400: #34d399;
  --em-500: #10b981;
  --em-line: rgba(52, 211, 153, 0.28);
  --deep: #003824;
  --orange: #ec6a06;
  --orange-text: #ff8a3d;
  --danger: #fca5a5;

  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --section-space: clamp(52px, 6vw, 88px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(16,185,129,.08), transparent 24%),
    radial-gradient(circle at top right, rgba(110,231,183,.05), transparent 18%),
    var(--navy);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--em-300); text-underline-offset: 3px; }
a:hover { color: var(--ink-strong); }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink-strong);
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-weight: 800;
}
h3 { letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--em-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--em-400); color: var(--deep);
  padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 38, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink-strong);
  font-family: var(--display); font-weight: 800;
  font-size: 1.3rem; letter-spacing: -0.03em; word-spacing: .1em;
  flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; }
.brand span span { color: var(--em-400); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink-strong); background: rgba(218,226,253,.06); }
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; margin-left: 8px;
}
.lang-switch a, .lang-switch span {
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; text-decoration: none;
  color: var(--muted);
}
.lang-switch [aria-current="true"] { background: var(--surface-2); color: var(--ink-strong); }
.lang-switch a:hover { color: var(--ink-strong); background: transparent; }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border-radius: 14px; border: 1px solid transparent;
  font: 700 0.98rem/1.2 var(--display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, rgba(110,231,183,0.95), rgba(16,185,129,0.9));
  color: var(--deep);
  box-shadow: 0 8px 18px -10px rgba(16, 185, 129, 0.56);
}
.btn-primary:hover { color: var(--deep); box-shadow: 0 10px 24px -12px rgba(16, 185, 129, 0.68); }
.nav .btn-primary {
  background: linear-gradient(135deg, rgba(22, 35, 57, 0.96), rgba(12, 22, 39, 0.96));
  color: var(--em-300);
  border-color: rgba(110, 231, 183, 0.18);
  box-shadow: none;
}
.nav .btn-primary:hover {
  background: linear-gradient(135deg, rgba(29, 42, 67, 0.98), rgba(15, 26, 43, 0.98));
  color: var(--ink-strong);
  box-shadow: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.02); color: var(--em-300); border-color: var(--em-line);
}
.btn-secondary:hover { color: var(--ink-strong); border-color: var(--em-400); background: rgba(52,211,153,.08); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .75; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px);
  overflow: hidden;
}
.hero::before {
  /* softer ambient glow for a more premium, lower-contrast finish */
  content: ""; position: absolute; inset: -20% 40% 30% -20%;
  background: radial-gradient(closest-side, rgba(16,185,129,.10), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 600; color: var(--em-300);
  margin-bottom: 28px;
}
.live-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: var(--em-400); flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(52,211,153,0.12);
}
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(52,211,153,0.6);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  letter-spacing: -0.03em;
  line-height: .98;
  max-width: 11ch;
}
.hero h1 .line-2 { display: block; color: var(--em-400); }
:lang(pl) .hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); max-width: 14ch; }
.hero .lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: var(--ink); max-width: 34em;
  margin: 28px 0 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.motto {
  margin-top: 36px; color: var(--muted); font-size: .98rem;
}
.motto .wave { margin-left: 8px; vertical-align: middle; }
.motto em { font-style: normal; color: var(--ink); font-weight: 600; }
.wave { display: inline-flex; gap: 4px; }
.wave i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--em-400);
  animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .12s; }
.wave i:nth-child(3) { animation-delay: .24s; }
@keyframes wave { 0%, 100% { opacity: .35; transform: translateY(2px); } 50% { opacity: 1; transform: none; } }

.sports {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 28px 0 0; padding: 0; list-style: none;
  color: var(--ink); font-weight: 600; font-size: .98rem;
}
.sports li { display: inline-flex; align-items: center; gap: 8px; }
.sports img { width: 22px; height: 22px; }

/* Hero court map (illustration) */
.court-map {
  position: relative; margin: 0;
  border-radius: var(--radius-l);
  background: var(--navy-deep);
  border: 1px solid var(--em-line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  overflow: hidden;
}
.court-map svg { width: 100%; height: auto; }
.court-map figcaption {
  position: absolute; right: 16px; top: 14px;
  font-size: .78rem; color: var(--muted);
  background: rgba(8,16,32,.85); padding: 4px 10px; border-radius: 999px;
}
.cm-street { stroke: var(--chalk); stroke-width: 1.4; fill: none; }
.cm-street.major { stroke: rgba(218,226,253,.32); stroke-width: 3; }
.cm-park { fill: rgba(16,185,129,.07); stroke: rgba(52,211,153,.18); }
.cm-court { fill: none; stroke: rgba(218,226,253,.55); stroke-width: 1.2; }
.cm-court-fill { fill: rgba(19,28,51,.95); }
.cm-pin-ring { fill: none; stroke: var(--em-400); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pin 3s ease-out infinite; }
.cm-pin-ring.d2 { animation-delay: 1s; }
.cm-pin-ring.d3 { animation-delay: 2s; }
@keyframes pin { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.cm-count-bg { fill: var(--navy); stroke: var(--orange); stroke-width: 2; }
.cm-count { fill: var(--orange-text); font: 800 15px var(--display); }
.cm-quiet { fill: var(--surface-2); stroke: rgba(218,226,253,.35); }
.cm-quiet-text { fill: var(--muted); font: 700 13px var(--display); }
.cm-pulse { fill: none; stroke: var(--em-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .4s cubic-bezier(.6,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cm-ball { fill: var(--orange); }
.cm-label { fill: var(--muted); font: 600 12px var(--body); }

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 18px 0 0; max-width: 40em; }

.hero .lead,
.section-head p,
.partner p,
.problem-list p,
.steps p,
.check-list span,
.roadmap p,
.person p,
.store-note,
.notify > p,
.privacy-band p,
.site-footer {
  letter-spacing: -0.01em;
}

/* Problem — three short statements on a court baseline */
.problem-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 0; padding: 0; list-style: none;
}
.problem-list li { border-top: 2px solid var(--em-line); padding-top: 22px; }
.problem-list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.problem-list p { color: var(--muted); margin: 0; }

/* How it works */
.steps {
  counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(48px, 6vw, 80px); padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden;
}
.steps li {
  counter-increment: step;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
}
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--em-400); color: var(--em-300);
  font: 800 1rem var(--display); margin-bottom: 20px;
}
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px); margin: 0;
}
.features div { padding-left: 18px; border-left: 2px solid var(--line); }
.features dt { font: 700 1.05rem var(--display); color: var(--ink-strong); margin-bottom: 6px; letter-spacing: -0.01em; }
.features dd { margin: 0; color: var(--muted); font-size: .98rem; }
.features-title { font-size: 1.35rem; margin-bottom: 28px; }

/* Privacy — the one big statement */
.privacy-band {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.big-zero {
  font: 800 clamp(7rem, 18vw, 14rem)/.8 var(--display);
  letter-spacing: -0.04em; color: var(--em-400); margin: 0 0 18px;
}
.big-zero-caption { font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--display); color: var(--ink-strong); letter-spacing: -0.02em; max-width: 16ch; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 18px 0 18px 40px;
  border-bottom: 1px solid var(--line);
}
.check-list li:first-child { padding-top: 0; }
.check-list li:first-child::before { top: 2px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(52,211,153,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2334d399' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.check-list strong { color: var(--ink-strong); display: block; font-weight: 600; }
.check-list span { color: var(--muted); font-size: .98rem; }

/* Roadmap — the pulse line runs through the stops */
.roadmap { position: relative; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.roadmap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px;
  background: linear-gradient(90deg, var(--em-400) 0 25%, var(--chalk) 25% 100%);
}
.roadmap li { position: relative; padding-top: 48px; }
.roadmap li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--chalk);
}
.roadmap li.is-next::before { background: var(--em-400); border-color: var(--em-400); box-shadow: 0 0 0 6px rgba(52,211,153,.18); }
.roadmap .when { display: block; font-weight: 600; color: var(--em-300); font-size: .95rem; margin-bottom: 6px; }
.roadmap li:not(.is-next) .when { color: var(--muted); }
.roadmap h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 8px; }
.roadmap p { color: var(--muted); margin: 0; font-size: .98rem; }

.later {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px; padding-top: 28px; border-top: 1px dashed var(--chalk);
}
.later h3 { font-size: 1.15rem; }
.later ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 32px; }
.later strong { display: block; color: var(--ink-strong); font-weight: 600; }
.later span { color: var(--muted); font-size: .96rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.person { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; align-items: start; }
.monogram {
  width: 88px; height: 88px; border-radius: 22px;
  display: grid; place-items: center;
  font: 800 1.9rem var(--display); letter-spacing: -0.04em;
  color: var(--deep);
  background: linear-gradient(135deg, var(--em-300), var(--em-500));
}
.person:nth-child(2) .monogram { background: var(--surface-2); color: var(--em-300); border: 1px solid var(--em-line); }
.person h3 { font-size: 1.45rem; }
.person .role { color: var(--em-300); font-weight: 600; margin: 4px 0 12px; font-size: .98rem; }
.person p { color: var(--muted); margin: 0; }

/* Partners */
.partner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px);
}
.partner-head { margin-bottom: 28px; }
.partner-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.partner-head p { color: var(--muted); }
.partner-showcase { margin-top: 8px; }
.partner-showcase-intro {
  margin: 0 0 18px; color: var(--muted); font-size: 1rem;
}
.sponsor-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.sponsor-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 20px; border: 1px solid var(--line);
  border-radius: 20px; background: linear-gradient(180deg, rgba(16,25,40,0.92), rgba(11,18,31,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sponsor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110,231,183,0.34);
  box-shadow: 0 18px 26px -24px rgba(52,211,153,0.5);
}
.sponsor-mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(110,231,183,0.18), rgba(52,211,153,0.12));
  border: 1px solid rgba(110,231,183,0.26); color: var(--em-300);
  font: 700 1.15rem/1 var(--display); letter-spacing: -.04em;
  flex-shrink: 0;
}
.sponsor-copy { min-width: 0; }
.sponsor-label {
  display: inline-block; margin-bottom: 8px; color: var(--em-300);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sponsor-card h3 {
  font-size: 1.15rem; line-height: 1.25; margin-bottom: 6px;
}
.sponsor-card p {
  margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.55;
}
.partner-cta { margin-top: 22px; }

@media (max-width: 780px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-card { padding: 18px 16px; }
  .partner-showcase-intro { margin-bottom: 14px; }
}

/* Get the app */
.get {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 18px 10px 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.store svg { width: 28px; height: 28px; color: var(--ink); }
.store b { display: block; font: 700 1.02rem/1.2 var(--display); color: var(--ink-strong); }
.store small { display: block; font-size: .8rem; color: var(--orange-text); font-weight: 600; }
.store-note { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 32px 0 0; max-width: 440px; }
.countdown div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; }
.countdown b { display: block; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1 var(--display); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.countdown-title { font-size: .98rem; color: var(--ink); font-weight: 600; margin: 32px 0 0; }
.countdown-title + .countdown { margin-top: 12px; }

.notify {
  background: var(--surface); border: 1px solid var(--em-line);
  border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px);
}
.notify h3 { font-size: 1.5rem; margin-bottom: 8px; }
.notify > p { color: var(--muted); }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink-strong); }
.field input[type="email"] {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 500 1rem var(--body); color: var(--ink-strong);
  background: var(--navy); border: 1.5px solid var(--chalk); border-radius: 12px;
}
.field input[type="email"]::placeholder { color: #7581a0; }
.field input[type="email"]:focus { border-color: var(--em-400); outline: none; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin-top: 18px; font-size: .93rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--em-400); }
.field-error { color: var(--danger); font-size: .9rem; margin: 8px 0 0; }
.field-error:empty { display: none; }
.notify .btn { width: 100%; margin-top: 22px; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--em-300); }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0,56,36,.3); border-top-color: var(--deep); animation: spin .8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.scan { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.scan img { width: 112px; height: 112px; background: #fff; padding: 8px; border-radius: 14px; }
.scan-side { flex-direction: column; align-items: flex-start; align-self: center; margin-top: 0; }
.scan-side img { width: 168px; height: 168px; }
@media (max-width: 900px) { .scan-side { flex-direction: row; align-items: center; margin-top: 36px; } .scan-side img { width: 112px; height: 112px; } }
.scan p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 22em; }
.scan strong { color: var(--ink-strong); display: block; }

/* Company + contact */
.company { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.contact-mail {
  display: inline-block; margin: 20px 0 28px;
  font: 700 clamp(1.15rem, 2.4vw, 1.6rem)/1.25 var(--display);
  color: var(--ink-strong); letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 2px solid var(--em-400);
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: var(--em-300); }
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; border: 1px solid var(--line); color: var(--em-300);
}
.socials a:hover { border-color: var(--em-400); color: var(--ink-strong); background: rgba(52,211,153,.08); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.registry { margin: 0; display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.registry dt, .registry dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.registry dt { color: var(--muted); font-size: .95rem; padding-right: 16px; }
.registry dd { color: var(--ink); }
.registry-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }

/* Closing line — the brand statement, once, at the end */
.closing { padding: var(--section-space) 0; border-top: 1px solid var(--line); text-align: center; }
.closing-pulse { width: 100%; height: auto; margin: 0 auto 40px; overflow: visible; }
.closing-pulse path { fill: none; stroke: var(--em-400); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.closing-pulse circle { fill: var(--orange); }
.closing h2 { font-size: clamp(2.4rem, 6.5vw, 5.2rem); letter-spacing: -0.03em; max-width: 16ch; margin: 0 auto; text-wrap: balance; }
.closing p { color: var(--muted); font-size: 1.12rem; margin: 22px auto 32px; max-width: 34em; }
.closing .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--em-300); text-decoration: underline; }
.credits { margin-top: 20px; font-size: .82rem; color: #8592b0; }
.credits a { color: inherit; }

/* ---------- Legal pages ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 var(--section-space); }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.doc .meta { color: var(--muted); margin-bottom: 40px; }
.doc-body { max-width: 72ch; }
.doc-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 56px 0 16px; letter-spacing: -0.03em; scroll-margin-top: 96px; }
.doc-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc-body li { margin-bottom: .45em; }
.doc-body li::marker { color: var(--em-400); }
.doc-summary { background: var(--surface); border: 1px solid var(--em-line); border-radius: var(--radius-m); padding: 24px 28px; }
.doc-summary h2 { margin-top: 0; }
.doc-summary ul { margin: 0; }
.table-scroll { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.doc-body table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc-body th { color: var(--ink-strong); background: var(--surface); font-weight: 600; }
.doc-body tr:last-child td { border-bottom: 0; }
.toc { position: sticky; top: 96px; font-size: .93rem; }
.toc p { font-weight: 700; color: var(--ink-strong); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 6px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--em-300); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 16px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; border-bottom: 0; border-radius: 12px; }
  .lang-switch { align-self: flex-start; margin: 16px 0 0; }
  .lang-switch a, .lang-switch span { border-bottom: 0; padding: 6px 14px; }
  .later { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .privacy-band, .get, .company, .partner { grid-template-columns: 1fr; }
  .problem-list, .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .roadmap { grid-template-columns: 1fr; gap: 0; }
  .roadmap::before { left: 9px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--em-400) 0 18%, var(--chalk) 18% 100%); }
  .roadmap li { padding: 0 0 32px 44px; }
  .roadmap li::before { top: 2px; }
  .later ul { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--surface); border-radius: var(--radius-m); padding: 20px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .problem-list, .features { grid-template-columns: 1fr; }
  .person { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .monogram { width: 64px; height: 64px; border-radius: 16px; font-size: 1.4rem; }
  .registry { grid-template-columns: 1fr; }
  .registry dt { border-bottom: 0; padding-bottom: 0; }
  .cta-row .btn { flex: 1 1 100%; }
  .store { flex: 1 1 100%; }
  .scan img { width: 96px; height: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .cm-pulse { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .notify, .court-map { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .doc-body p, .doc-body li { color: #000; }
}
