/* Comfort Trade — night pitch theme */
:root {
  --pitch: #0d2a20;
  --pitch-deep: #091f17;
  --turf: #133a2c;
  --turf-2: #1b4b39;
  --chalk: #eef2e8;
  --muted: #9fb6a8;
  --line: rgba(238, 242, 232, 0.14);
  --line-strong: rgba(238, 242, 232, 0.32);
  --gold: #dbb45e;
  --gold-hi: #f0cf7e;
  --gold-ink: #2a1f06;
  --ok: #86d9a6;
  --warn: #f0c36a;
  --bad: #ee8b74;
  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius-s: 6px;
  --radius-m: 10px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pitch); color: var(--chalk);
  font: 17px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column;
  /* mowing stripes */
  background-image: repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,0.018) 120px 240px);
}
main { flex: 1; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--chalk); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; font-stretch: semi-condensed; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 0.92em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.big { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 0.2em 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(9, 31, 23, 0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--chalk); }
.logo-small { font-size: 1.05rem; }
.logo-small .logo-mark { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { color: var(--chalk); text-decoration: none; font-size: 0.95rem; opacity: 0.85; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { border: 1px solid var(--gold); color: var(--gold-hi); padding: 6px 14px; border-radius: 999px; opacity: 1; }
.nav .nav-cta:hover { background: var(--gold); color: var(--gold-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.98rem/1 var(--body); padding: 12px 20px; border-radius: var(--radius-s); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hi); color: var(--gold-ink); }
.btn-line { background: transparent; color: var(--chalk); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--chalk); color: var(--chalk); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { color: var(--chalk); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.pitch-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(circle at 72% 50%, transparent 0 199px, var(--line) 200px 202px, transparent 203px),
    radial-gradient(circle at 72% 50%, var(--line) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent calc(72% - 1px), var(--line) calc(72% - 1px) calc(72% + 1px), transparent calc(72% + 1px));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: 1.14rem; color: #d4ddd2; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Scoreboard demo */
.board { margin: 0; background: linear-gradient(180deg, #0f3326, #0a2219); border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 22px 24px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.board-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.board-mode { font-size: 0.82rem; color: var(--gold-hi); border: 1px solid rgba(219,180,94,0.5); border-radius: 999px; padding: 2px 10px; }
.board-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board-teams div { display: flex; flex-direction: column; }
.board-teams .right { text-align: right; align-items: flex-end; }
.board-teams strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.board-flow { width: 70px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board-score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.coins { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.coins-of { color: var(--muted); }
.board-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.board-bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width .4s ease; }
.board-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.board-steps li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.95rem; transition: color .3s; }
.board-steps li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background-color .3s, border-color .3s; }
.board-steps li.is-active { color: var(--chalk); }
.board-steps li.is-active::before { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(219,180,94,0.18); }
.board-steps li.is-done { color: #c9d5cb; }
.board-steps li.is-done::before { background: var(--ok); border-color: var(--ok); }
.board figcaption { border-top: 1px dashed var(--line); padding-top: 10px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.2em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.feature { border-top: 2px solid var(--chalk); padding-top: 18px; }
.feature p { color: #c7d3c9; margin: 0; }
.section-steps { background: var(--pitch-deep); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 70px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; font-family: var(--display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.steps p { color: #c7d3c9; margin: 0; }

/* Pricing */
.pricing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cur-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.cur-switch button { background: none; border: 0; color: var(--muted); font: 600 0.95rem var(--body); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.cur-switch button[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--turf); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 26px 24px 24px; }
.plan header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { margin: 0; font-size: 1.3rem; }
.plan-featured { border-color: var(--gold); background: linear-gradient(180deg, #1d4a39, var(--turf)); }
.plan-badge { font-size: 0.78rem; background: var(--gold); color: var(--gold-ink); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.plan-price { font-family: var(--display); font-weight: 700; font-size: 2.6rem; margin: 18px 0 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-sub { margin: 0 0 18px; font-size: 0.92rem; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-list li { padding: 7px 0 7px 22px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: #c7d3c9; padding-bottom: 8px; max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--pitch-deep); }
.footer-row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-row p { max-width: 46ch; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--chalk); }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 0.93rem; font-weight: 600; }
.form label .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--chalk); background: var(--pitch-deep);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 11px 13px;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(219,180,94,0.25); }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; grid-template-columns: none; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 600; margin-bottom: 8px; font-size: 0.93rem; }
.radio-card { display: flex !important; gap: 14px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 14px; cursor: pointer; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--gold); background: rgba(219,180,94,0.06); }
.radio-card input { margin-top: 4px; accent-color: var(--gold); }
.radio-card span { display: grid; gap: 2px; }
.inline { display: flex; gap: 24px; flex-wrap: wrap; }

.auth { display: grid; place-items: center; }
.auth-card { width: min(100% - 40px, 440px); background: var(--turf); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 32px 28px; }
.auth-card h1 { font-size: 2rem; }

.flash { border-radius: var(--radius-s); padding: 12px 16px; margin: 18px 0; border: 1px solid; }
.flash-ok { border-color: rgba(134,217,166,0.5); background: rgba(134,217,166,0.1); }
.flash-error { border-color: rgba(238,139,116,0.6); background: rgba(238,139,116,0.12); }

/* Account / panels */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.account-head h1 { margin-bottom: 0.1em; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--turf); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; margin-bottom: 0; }
.narrow > .panel, .narrow > form.panel { margin-bottom: 20px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 0.4em; }
.panel-wide { grid-column: 1 / -1; }
.panel-license { border-color: rgba(219,180,94,0.5); }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.panel-actions form { margin: 0; }
.key-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--pitch-deep); border: 1px dashed var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px; margin: 10px 0; }
.key-box code { font-size: 1.05rem; letter-spacing: 0.04em; color: var(--gold-hi); word-break: break-all; flex: 1; min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pill-active { color: var(--ok); border-color: rgba(134,217,166,0.5); }
.pill-pending { color: var(--warn); border-color: rgba(240,195,106,0.5); }
.pill-expired, .pill-revoked { color: var(--bad); border-color: rgba(238,139,116,0.5); }
.pill-none { color: var(--muted); border-color: var(--line-strong); }
.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.84rem; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td form { display: inline; }
.pay-steps { padding-left: 1.3em; }
.pay-steps li { margin-bottom: 8px; }
.pay-details { background: var(--pitch-deep); border-radius: var(--radius-s); padding: 14px 16px; margin: 12px 0; }
.pay-details p { margin: 0 0 4px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose p { color: #d0dad2; max-width: 68ch; }

/* Admin */
.admin-nav, .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-nav a, .tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a[aria-current], .tabs a[aria-current] { color: var(--chalk); border-bottom-color: var(--gold); }
.tabs { margin-bottom: 16px; }
.admin h2 { margin-top: 1.4em; }
.admin .panel h2 { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.stat { padding: 18px 20px; display: grid; gap: 4px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.search { display: flex; gap: 10px; margin-bottom: 20px; max-width: 520px; }
.inline-form { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); align-items: end; }
.plan-edit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 14px; }
.plan-edit label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.plan-edit .span2 { grid-column: span 2; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pitch-lines { opacity: 0.3; }
  .features { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .account-grid, .two-col { grid-template-columns: 1fr; }
  .plan-edit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .nav { gap: 2px 14px; }
  .nav a:not(.nav-cta) { font-size: 0.88rem; }
  .board { padding: 18px; }
  .table { display: block; overflow-x: auto; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.form { align-content: start; }
.title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.title-row h1 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* --- v4: brand coin, language switch, modes --- */
.logo-mark { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; margin-left: 4px; }
.lang-switch a { font-size: 0.8rem !important; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--muted) !important; opacity: 1 !important; }
.lang-switch a[aria-current] { background: var(--chalk); color: var(--pitch) !important; }

.board-head { align-items: center; }
.mode-switch { display: inline-flex; border: 1px solid rgba(219,180,94,0.55); border-radius: 999px; padding: 2px; }
.mode-switch button { background: none; border: 0; color: var(--gold-hi); font: 600 0.84rem var(--body); padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.mode-switch button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.board-coin { width: 40px; height: 40px; align-self: center; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.board[data-spin="1"] .board-coin { animation: coin-flip 0.6s ease-in-out; }
@keyframes coin-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.1); } 100% { transform: scaleX(1); } }

.section-intro { color: #c7d3c9; max-width: 60ch; margin-top: -0.6em; margin-bottom: 32px; }
.section-title-sub { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 72px; }
.modes { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.mode { border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 28px 28px 24px; background: rgba(9,31,23,0.5); }
.mode-main { border-color: var(--gold); background: linear-gradient(160deg, rgba(219,180,94,0.12), rgba(9,31,23,0.5) 60%); }
.mode header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mode h3 { font-size: 1.9rem; margin: 0; }
.mode p { color: #d0dad2; margin: 0; }
.mode-tag { font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.mode-tag-alt { background: transparent; color: var(--chalk); border: 1px solid var(--line-strong); }
.page-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.auth-card .check span a { color: var(--gold-hi); }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }
.board-steps[hidden] { display: none; }

/* --- v6: video, grant form --- */
.section-video { background: var(--pitch-deep); }
.video-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.video-head .section-title { margin: 0; }
.video-head p { margin: 0; max-width: 46ch; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7); }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.grant { margin-bottom: 28px; }
.grant summary { cursor: pointer; list-style: none; }
.grant summary::-webkit-details-marker { display: none; }
.grant summary h2 { display: inline; margin: 0; }
.grant-form { grid-template-columns: repeat(4, 1fr); align-items: end; margin-top: 12px; }
.grant-form .span2 { grid-column: span 2; }
.grant-form label[hidden] { display: none; }
select { width: 100%; font: 400 1rem var(--body); color: var(--chalk); background: var(--pitch-deep); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 11px 13px; }
input[type=date] { width: 100%; font: 400 1rem var(--body); color: var(--chalk); background: var(--pitch-deep); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 10px 13px; color-scheme: dark; }
@media (max-width: 900px) { .grant-form { grid-template-columns: 1fr 1fr; } }

/* --- v7: polish --- */
.hero { padding-bottom: clamp(64px, 9vw, 120px); }
.floodlights { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 38% 55% at 8% -12%, rgba(238,242,232,0.10), transparent 70%),
    radial-gradient(ellipse 38% 55% at 92% -12%, rgba(238,242,232,0.10), transparent 70%); }
.pitch-lines { opacity: 1;
  background:
    radial-gradient(circle at 72% 52%, transparent 0 329px, rgba(238,242,232,0.13) 330px 332px, transparent 333px),
    linear-gradient(90deg, transparent calc(72% - 1px), rgba(238,242,232,0.10) calc(72% - 1px) calc(72% + 1px), transparent calc(72% + 1px)); }
.hero h1 { text-wrap: balance; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #c7d3c9; font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.ico { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.board { position: relative; background: linear-gradient(180deg, rgba(19,58,44,0.96), rgba(9,31,23,0.96)); box-shadow: 0 40px 80px -36px rgba(0,0,0,0.85), 0 0 0 1px rgba(219,180,94,0.10), inset 0 1px 0 rgba(255,255,255,0.07); }
.board::after { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.coins { text-shadow: 0 0 28px rgba(219,180,94,0.35); }

.mode { display: flex; flex-direction: column; gap: 4px; }
.mode p { flex: 1; }
.mode-flow { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.mode-flow li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(238,242,232,0.07); border: 1px solid var(--line); }
.mode-main .mode-flow li { background: rgba(219,180,94,0.12); border-color: rgba(219,180,94,0.35); }
.mode-flow-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: var(--chalk); color: var(--pitch); }
.mode-main .mode-flow-n { background: var(--gold); color: var(--gold-ink); }

.feature { display: flex; gap: 16px; align-items: flex-start; border-top: 1px solid var(--line-strong); }
.feature-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(219,180,94,0.10); border: 1px solid rgba(219,180,94,0.28); }
.feature-ico .ico { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 0.35em; }

.plans { align-items: end; }
.plan { position: relative; transition: transform .2s ease, border-color .2s ease; }
.plan header { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.plan header .plan-badge { margin-left: auto; }
.plan-coin { display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.plan:hover { border-color: var(--line-strong); }
.plan-featured { padding-top: 34px; padding-bottom: 30px; box-shadow: 0 30px 60px -30px rgba(219,180,94,0.45), 0 0 0 1px rgba(219,180,94,0.4); }
.plan-featured .plan-price { color: var(--gold-hi); }
.plan-featured:hover { border-color: var(--gold-hi); }

.cta-band { border-top: 1px solid var(--line); background:
  radial-gradient(ellipse 60% 120% at 15% 50%, rgba(219,180,94,0.14), transparent 70%), var(--pitch-deep); }
.cta-row { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; padding: clamp(48px, 7vw, 80px) 0; }
.cta-coin { flex: none; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.cta-copy { flex: 1 1 360px; min-width: 0; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .35em; text-wrap: balance; }
.cta-copy p { color: #c7d3c9; margin: 0; max-width: 52ch; }
@media (max-width: 900px) {
  .pitch-lines { background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(238,242,232,0.07) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
  .cta-coin { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: no-preference) {
  .plan:hover { transform: translateY(-3px); }
}

/* --- v8: pitch markings centred on the demo card --- */
.pitch-lines { display: none; }
.board-pitch { position: relative; }
.board-pitch::before { content: ""; position: absolute; left: 50%; top: -1000px; bottom: -1000px; width: 2px; margin-left: -1px; background: rgba(238,242,232,0.12); pointer-events: none; }
.pitch-circle { position: absolute; left: 50%; top: 50%; width: min(660px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(238,242,232,0.13); border-radius: 50%; pointer-events: none; }
.pitch-spot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(238,242,232,0.25); pointer-events: none; }
.board-pitch .board { position: relative; z-index: 1; }
