:root {
  --bg: #0b0f1a;
  --surface: #131a2a;
  --surface-2: #1a2336;
  --ink: #eef2fb;
  --muted: #94a0b8;
  --line: #26314a;
  --go: #4ade80;
  --go-ink: #04140a;
  --hit: #ff5c7a;
  --gold: #fbbf24;
  --focus: #7aa2ff;
  --head: "Chakra Petch", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  /* colours for the shared sign-in / account cards (account.css) */
  --acct-surface: var(--surface);
  --acct-ink: var(--ink);
  --acct-muted: var(--muted);
  --acct-rule: var(--line);
  --acct-rule-2: #34405c;
  --acct-soft: var(--surface-2);
  --acct-brand: var(--go);
  --acct-brand-ink: var(--go-ink);
  --acct-bad: var(--hit);
  --acct-bad-soft: #3a1620;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button, input { font: inherit; color: inherit; }
img, svg, canvas { max-width: 100%; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px;
  border-bottom: 1px solid var(--line); background: rgba(11, 15, 26, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 700 22px/1 var(--head); letter-spacing: .02em; }
.bar-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) { .bar { padding: 10px 16px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #3d4a68; }
.btn.primary { background: var(--go); color: var(--go-ink); border-color: var(--go); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.big { font-size: 18px; padding: 14px 26px; }
.btn:disabled { opacity: .45; cursor: default; }

main { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
@media (max-width: 560px) { main { padding: 22px 16px 48px; } }
h1, h2, h3 { font-family: var(--head); letter-spacing: .01em; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.02; margin: 0 0 16px; }
h2 { font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.lede { color: var(--muted); font-size: 19px; max-width: 58ch; margin: 0 0 26px; }
.eyebrow { font: 600 13px var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--go); margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 28px 0 40px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 24px; } }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--surface-2); color: var(--go); font: 700 18px var(--head); margin-bottom: 12px; }
.step p { margin: 0; color: var(--muted); }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .figs { grid-template-columns: repeat(2, 1fr); } }
.fig { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fig b { display: block; font: 700 32px/1.1 var(--head); color: var(--gold); }
.fig span { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-weight: 600; }
.note { background: var(--surface); border-left: 3px solid var(--gold); border-radius: 8px; padding: 14px 16px; color: var(--muted); }

/* ---------- members' area ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.panel h2 { margin-bottom: 6px; }
.demo { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 720px) { .demo { grid-template-columns: 1fr; } }
.board { width: 100%; aspect-ratio: 7 / 10; display: block; background: #070a12; border-radius: 12px; border: 1px solid var(--line); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--bg); }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { font: 700 24px/1.2 var(--head); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: 120px; display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.mind { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.mind div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--muted); position: relative; overflow: hidden; }
.mind i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--go); transition: width .15s; }
ol.howto { padding-left: 1.2em; margin: 8px 0 0; }
ol.howto li { margin-bottom: 8px; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: 14px; }

.site-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 26px 16px 34px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- dashboard ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 20; }
.menu-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; cursor: pointer; font-weight: 600; }
.menu-item:hover { background: var(--surface-2); }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 69px; z-index: 9; scrollbar-width: none; }
.tabs a { flex: none; padding: 14px 14px 12px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--go); }
@media (max-width: 560px) { .tabs { padding: 0 8px; top: 65px; } .tabs a { padding: 12px 10px 10px; } }
.dash-title { font-size: clamp(30px, 6vw, 44px); margin: 0 0 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--go); white-space: nowrap; }
.progress { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--go); border-radius: inherit; transition: width .4s; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li::before { content: counter(c); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line); color: var(--muted); font: 700 14px var(--head); }
.checklist li.done::before { content: "✓"; background: var(--go); border-color: var(--go); color: var(--go-ink); }
.checklist li.done b { color: var(--muted); text-decoration: line-through; }
.checklist b { grid-column: 2; }
.checklist span { grid-column: 2; color: var(--muted); font-size: 14px; }
.checklist .acts { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 6px; }
.checklist li.done .acts .btn:not(:last-child) { display: none; }
@media (max-width: 480px) { .checklist li { grid-template-columns: 34px 1fr; } .checklist .acts { grid-column: 2; grid-row: auto; margin-top: 8px; } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles .tile:last-child { grid-column: span 2; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.tile span { display: block; color: var(--muted); font-size: 14px; }
.tile b { font: 700 26px/1.2 var(--head); font-variant-numeric: tabular-nums; }
.cards2, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 720px) { .cards2, .grid2 { grid-template-columns: 1fr; } }
.grid2 .panel { margin-bottom: 0; }
.action { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; }
.action:hover { border-color: var(--go); }
.action b { display: block; font: 700 19px var(--head); margin-bottom: 4px; color: var(--go); }
.action span { color: var(--muted); font-size: 15px; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.genre-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
@media (max-width: 560px) { .genre-list { grid-template-columns: 1fr; } }
.genre-list div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.genre-list b { display: block; } .genre-list span { color: var(--muted); font-size: 14px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }

/* ---------- home: extra sections ---------- */
.topnav { display: flex; gap: 22px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 860px) { .topnav { display: none; } }
.btn.ghost-link { border-color: transparent; background: none; }
@media (max-width: 420px) { .bar-right .btn { padding: 8px 12px; min-height: 40px; font-size: 15px; } }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; }
.trust li::before { content: "✓ "; color: var(--go); font-weight: 700; }
.features, .genres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 860px) { .features, .genres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features, .genres { grid-template-columns: 1fr; } }
.feature, .genre { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature p, .genre p { margin: 0; color: var(--muted); font-size: 16px; }
.ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); font-size: 21px; margin-bottom: 12px; }
.genre.add { border-style: dashed; }

.preview { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0d1117; max-width: 760px; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #161b22; border-bottom: 1px solid #2a313c; }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a414c; }
.preview-bar span { margin-left: 8px; color: var(--muted); font-size: 13px; }
.preview-body { padding: 18px; }
.pv-label { font: 600 12px var(--head); letter-spacing: .1em; text-transform: uppercase; color: #8b949e; margin: 4px 0 8px; }
.pv-genres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
@media (max-width: 560px) { .pv-genres { grid-template-columns: 1fr; } .pv-genres div:nth-child(3) { display: none; } }
.pv-genres div { background: #161b22; border: 1px solid #2a313c; border-radius: 10px; padding: 10px 12px; }
.pv-genres div.on { border-color: #1f6feb; box-shadow: 0 0 0 1px #1f6feb inset; }
.pv-genres b { display: block; font-size: 15px; } .pv-genres small { color: #8b949e; }
.pv-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pv-seg { display: inline-flex; background: #161b22; border: 1px solid #2a313c; border-radius: 9px; padding: 3px; }
.pv-seg b { padding: 6px 10px; border-radius: 6px; color: #8b949e; font-size: 14px; font-weight: 600; }
.pv-seg b.on { background: #1f6feb; color: #fff; }
.pv-go { background: #3fb950; color: #04140a; font-weight: 700; padding: 8px 22px; border-radius: 9px; }
.pv-status { background: #161b22; border: 1px solid #2a313c; border-radius: 12px; padding: 12px 14px; }
.pv-status p { margin: 0 0 10px; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-stats small { display: block; color: #8b949e; font-size: 12px; } .pv-stats b { font: 700 17px var(--head); }
.pv-line { width: 100%; height: 50px; margin-top: 8px; }
.pv-line polyline { fill: none; stroke: #3fb950; stroke-width: 2.5; stroke-linejoin: round; }

.compare-wrap { overflow-x: auto; margin-top: 18px; }
.compare { width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.compare tbody th { color: var(--muted); font-weight: 500; }
.compare .us { color: var(--go); font-weight: 600; }
.compare thead .us { color: var(--go); }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--go); font: 700 20px/1 var(--head); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band { margin: 24px 0 8px; padding: 40px 24px; text-align: center; border-radius: 18px;
  background: radial-gradient(120% 140% at 50% 0%, #17321f 0%, var(--surface) 60%); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(26px, 5vw, 36px); }
.cta-band p { color: var(--muted); margin: 0 0 20px; }

.saved-ai { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.saved-ai.win { border-color: var(--go); color: var(--ink); }
