:root {
  color-scheme: light;
  --brand: #059669;
  --gold: #fbbf24;
  --bg: #f8fafc;
  --surface: #fff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dce5e8;
  --action: #047857;
  --soft: #e4f7ee;
  --warm: #fff3ca;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #172237;
  --text: #f8fafc;
  --muted: #b7c4d5;
  --line: #36465d;
  --action: #65dfb4;
  --soft: #123b35;
  --warm: #493919;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, sans-serif; }
a { color: var(--action); text-underline-offset: .23em; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 4.7vw, 4.75rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.top nav, .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.top nav a:not(.button) { color: var(--muted); text-decoration: none; margin-right: 8px; }
.brand { display: flex; align-items: center; gap: 0; font-weight: 850; font-size: 1.42rem; color: var(--text); text-decoration: none; letter-spacing: -.06em; white-space: nowrap; }
.brand img { margin-right: 9px; }
.brand span { color: var(--action); }
.button, .quiet, .theme { min-height: 42px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; background: #047857; color: white; text-decoration: none; }
.button:hover { background: #065f46; }
.button.outline, .quiet, .theme { background: var(--surface); border-color: var(--line); color: var(--text); text-decoration: none; }
.button.outline:hover, .quiet:hover, .theme:hover { background: var(--soft); }
.theme { min-width: 44px; padding: 6px; font-size: 1.15rem; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(20px, 5vw, 70px); padding-block: clamp(54px, 9vw, 110px); }
.eyebrow { color: var(--action); font-size: .76rem; letter-spacing: .14em; font-weight: 850; }
.hero h1 em { color: var(--action); font-style: normal; }
.lead { max-width: 54ch; color: var(--muted); font-size: 1.13rem; margin-block: 18px 24px; }
.hero-art { min-height: 360px; position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; border-radius: 30px; background: #064e3b; padding: 34px 18px 58px; }
.art-orbit { position: absolute; z-index: -1; width: 370px; height: 370px; border: 1px solid #73e4b277; border-radius: 50%; box-shadow: 0 0 0 36px #05966944, 0 0 0 72px #05966933; }
.club-pass { display: grid; gap: 10px; width: min(260px, 94%); background: #e4f7ee; color: #0f172a; padding: 24px; border-radius: 21px; transform: rotate(-6deg); box-shadow: 0 18px 42px #022b20a0; }
.club-pass .eyebrow { color: #047857; }
.club-pass img { position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; }
.club-pass strong { font-size: 1.6rem; line-height: 1.13; }
.stamps { display: flex; gap: 6px; }
.stamps span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #bcecd8; color: #065f46; font-weight: 800; }
.stamps span:last-child { background: var(--gold); color: #0f172a; }
.art-tag { position: absolute; bottom: 24px; background: var(--gold); color: #0f172a; border-radius: 30px; padding: 6px 14px; font-size: .8rem; font-weight: 800; }
.section { padding-block: clamp(42px, 6vw, 74px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.features, .stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.features article, .stats article, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 2.3vw, 26px); min-width: 0; }
.features span { display: inline-block; color: var(--action); font-weight: 800; margin-bottom: 16px; }
.features p, .muted, .entry p { color: var(--muted); }
.club-strip, .footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .9rem; }
.workspace { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 22px; padding-block: 30px 50px; min-height: 75vh; }
.rail { align-self: start; padding: 18px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); }
.rail h2 { font-size: 1.27rem; overflow-wrap: anywhere; }
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.rail nav a { border-radius: 8px; padding: 7px 10px; text-decoration: none; color: var(--text); }
.rail nav [aria-current] { color: var(--action); background: var(--soft); font-weight: 750; }
.rail nav .store-link { color: var(--action); }
.content h1, .login h1 { font-size: clamp(2rem, 4vw, 3rem); }
.content h2 { font-size: 1.35rem; }
.columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.columns.equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stats { margin-block: 14px 18px; }
.stats span { color: var(--muted); font-size: .88rem; }
.stats strong { display: block; font-size: 1.48rem; }
meter { width: 100%; height: .65rem; accent-color: var(--brand); }
.entry { border-top: 1px solid var(--line); padding-block: 12px; overflow-wrap: anywhere; }
.entry p { margin-block: 4px; }
.entry-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.badge { background: var(--soft); color: var(--action); border-radius: 20px; padding: 4px 10px; font-size: .8rem; font-weight: 750; }
.entry .care { background: var(--warm); color: var(--text); padding: 7px 10px; border-radius: 8px; }
.entry .actions { margin-top: 10px; }
.below { margin-top: 16px; }
.login { max-width: 500px; }
label { display: grid; gap: 5px; margin: 12px 0; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; min-height: auto; }
.inline { display: flex; align-items: end; gap: 8px; margin-block: 12px; flex-wrap: wrap; }
.inline label { margin: 0; }
summary { cursor: pointer; font-weight: 700; }
.notice { border-radius: 9px; background: var(--soft); padding: 10px 12px; color: var(--action); }
.notice.error { background: var(--warm); color: var(--text); }
.alerts { position: fixed; right: 14px; bottom: 14px; z-index: 3; width: min(360px, 100% - 28px); display: grid; gap: 8px; }
.toast { padding: 14px; background: var(--surface); border: 1px solid var(--brand); border-radius: 12px; box-shadow: 0 8px 26px #0002; }
.toast .quiet { margin-left: 6px; }
@media (max-width: 820px) {
  .hero, .workspace { grid-template-columns: 1fr; }
  .hero-art { min-height: 310px; }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 570px) {
  .wrap { width: calc(100% - 28px); }
  .desktop-link { display: none; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 30px; height: 30px; margin-right: 5px; }
  .top nav { gap: 6px; }
  .top nav .button { font-size: .84rem; padding-inline: 9px; }
  .columns, .columns.equal, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stats article:last-child { grid-column: 1 / -1; }
  .rail nav a { padding: 8px 9px; }
}

.store-logo { width: min(360px, 100%); height: auto; border-radius: 18px; margin-block: 18px 24px; }
