/* Ladderline website — one stylesheet, no build step. Phones first. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0D1017; --bg2: #10141B; --panel: #151920; --line: #232833; --line2: #2E3546;
  --text: #E6E8EC; --soft: #C1C8D4; --dim: #A3ACBC; --white: #FFFFFF;
  --gold: #E8C36A; --gold-ink: #1A1206; --green: #7EC8A0; --discord: #5865F2;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--gold); }
a:hover { color: #F3D894; }
img, svg { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 0 0 10px 0; z-index: 50; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #F3D894; color: var(--gold-ink); }
.btn-line { border-color: var(--line2); color: var(--text); background: transparent; font-weight: 600; }
.btn-line:hover { border-color: var(--dim); color: var(--white); }
.btn-sm { min-height: 44px; font-size: 15px; padding: 0 16px; border-radius: 10px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(13,16,23,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-size: 20px; font-weight: 700; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 10px 12px; color: var(--soft); text-decoration: none; font-size: 15px; border-radius: 8px; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav .btn { color: var(--gold-ink); margin-left: 6px; }
.nav .signin { border: 1px solid var(--line2); color: var(--text); margin-left: 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn, .nav .signin { margin: 10px 0 0; border-radius: 12px; border-bottom: 0; justify-content: center; }
}

/* sections */
section { scroll-margin-top: 72px; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec { padding-top: 72px; padding-bottom: 72px; }
.sec-head { max-width: 680px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
h1, h2, h3 { color: var(--white); margin: 0; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); }
.lead { margin: 0; font-size: 17px; color: var(--soft); line-height: 1.55; }
.kicker { font-size: 15px; font-weight: 600; color: var(--green); }
main { overflow-x: clip; }
@media (max-width: 600px) { .sec { padding-top: 52px; padding-bottom: 52px; } .hero { padding-top: 40px; gap: 36px; } }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--green); border: 1px solid #2F5A45; border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.5px; }
.hero .lead { font-size: 19px; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.small { font-size: 14px; color: var(--dim); }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }

/* hero stage: the climbing gold line (logo motif) behind the phone, or a Spline scene */
.stage { position: relative; width: min(100%, 520px); display: flex; justify-content: center; padding: 28px 0; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(232,195,106,0.16), rgba(232,195,106,0) 70%); z-index: -2; pointer-events: none; }
.climb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; transition: opacity .6s ease; }
.spline-slot { position: absolute; inset: -6% -14%; z-index: -1; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.spline-slot spline-viewer { width: 100%; height: 100%; display: block; }
.stage.has-3d .spline-slot { opacity: 1; pointer-events: auto; }
.stage.has-3d .climb { opacity: 0; }
.stage .phone { position: relative; }
.screen { position: relative; }
.ladder { display: flex; flex-direction: column; gap: 7px; }
.ladder .rk { color: #A3ACBC; }
.ladder .r:nth-child(1) { border-color: #5A4718; }
.ladder .r:nth-child(1) .rk { color: #E8C36A; }
.ladder .r:nth-child(2) .rk { color: #C9D0DA; }
.ladder .r:nth-child(3) .rk { color: #D9A066; }
.ladder .r.lit { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 8px 24px rgba(232,195,106,0.18); }
.elo.up { color: var(--green); }
.elo.down { color: #FF9C8A; }
.toast { position: absolute; left: 10px; right: 10px; bottom: 44px; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 12px; background: #1C2230; border: 1px solid #5A4718; box-shadow: 0 12px 30px rgba(0,0,0,0.45); visibility: hidden; }
.toast b { color: var(--gold); font-size: 12.5px; }
.toast span { font-size: 11px; color: var(--soft); }
@media (max-width: 600px) { .stage { padding: 12px 0; } }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; color: var(--soft); }
.strip b { color: var(--white); }

/* phone frames (drawn screens) */
.phone { width: 270px; border-radius: 34px; border: 1px solid var(--line2); background: #0B0E14; padding: 11px; box-shadow: 0 26px 70px rgba(0,0,0,0.5); flex: none; }
.screen { height: 470px; overflow: hidden; border-radius: 24px; background: var(--bg); border: 1px solid #1E2430; padding: 14px 11px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.screen .t { font-size: 15px; font-weight: 700; color: var(--white); }
.screen .l { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.r { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.r .g { flex: 1; min-width: 0; }
.r small { display: block; font-size: 10.5px; color: var(--dim); }
.av { width: 28px; height: 28px; border-radius: 14px; background: #232B3A; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }
.rk { width: 16px; text-align: center; font-weight: 700; }
.mono { font-family: var(--mono); font-weight: 600; }
.box { padding: 9px; border-radius: 9px; border: 1px solid var(--line2); }
.bar { height: 7px; border-radius: 4px; background: var(--line); }
.bar i { display: block; height: 7px; border-radius: 4px; }
.tag { border-radius: 6px; padding: 2px 7px; font-weight: 700; font-size: 10.5px; }
.num { width: 22px; height: 22px; border-radius: 11px; background: #E0A030; color: var(--gold-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.navbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; font-size: 10px; color: #8B94A6; text-align: center; }

.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: thin; }
.shot { flex: none; width: 270px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.shot b { font-size: 16px; color: var(--white); }
.shot span { font-size: 14px; color: var(--dim); line-height: 1.45; margin-top: -6px; }

/* features */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li { border-top: 2px solid var(--gold); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font-family: var(--mono); color: var(--gold); font-weight: 600; }
.steps .lottie { display: block; width: 72px; height: 72px; margin: -4px 0 2px -8px; }
.steps .lottie svg { width: 100% !important; height: 100% !important; }
.steps b { font-size: 19px; color: var(--white); }
.steps span { font-size: 15px; color: var(--soft); line-height: 1.55; }

/* switch */
.switch { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.switch > div { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.switch ol { flex: 1 1 420px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.switch li { display: flex; gap: 14px; align-items: flex-start; }
.switch li > span:first-child { flex: none; width: 36px; height: 36px; border-radius: 18px; background: rgba(232,195,106,0.14); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.switch li b { display: block; font-size: 17px; color: var(--white); }
.switch li p { margin: 4px 0 0; font-size: 15px; color: var(--soft); line-height: 1.55; }

/* pricing tabs */
.pricing { max-width: 860px; margin: 0 auto; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.tabs button { min-height: 58px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; }
.tabs button b { font-size: 15px; }
.tabs button span { font-size: 12px; opacity: 0.85; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.plan { margin-top: 14px; background: var(--panel); border: 1px solid var(--gold); border-radius: 16px; padding: 22px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.plan[hidden] { display: none; }
.plan .price { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.plan .price .per { color: var(--dim); font-size: 13px; }
.plan .big { font-size: 44px; font-weight: 700; color: var(--white); line-height: 1.1; }
.plan .big small { font-size: 16px; font-weight: 400; color: var(--dim); }
.plan ul { flex: 1 1 240px; margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--soft); }
.plan .btn { flex: 1 1 100%; }

/* trust / help / faq */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px 32px; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point > span { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(126,200,160,0.14); color: var(--green); display: flex; align-items: center; justify-content: center; }
.point b { display: block; font-size: 16px; color: var(--white); }
.point p { margin: 4px 0 0; font-size: 14.5px; color: var(--soft); line-height: 1.55; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.guides a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.guides a:hover { border-color: var(--line2); }
.guides b { font-size: 16px; color: var(--white); }
.guides span { font-size: 14px; color: var(--dim); line-height: 1.5; }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { min-height: 56px; display: flex; align-items: center; font-size: 17px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--dim); font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.final { background: var(--panel); border: 1px solid #5A4718; border-radius: 20px; padding: 40px 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.final > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.final h2 { font-size: 30px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--dim); }
.foot-row span { flex: 1 1 320px; }
.foot-row a { color: var(--soft); }

/* plain pages (privacy, 404) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 36px; margin-bottom: 16px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--soft); line-height: 1.65; }

/* v0.3.0: legal, support and player pages */
.doc { max-width: 780px; }
.doc .updated { font-size: 14px; color: var(--dim); margin: 0 0 24px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--gold); }
.doc strong { color: var(--white); }
.doc .intro { font-size: 18px; color: var(--soft); line-height: 1.6; }
.doc .box { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.doc .box p { margin: 0; }
.doc .box p + p { margin-top: 8px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line2); border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--white); border-color: var(--dim); }
.tablewrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--soft); line-height: 1.5; }
.doc th { color: var(--white); background: var(--panel); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.tbc { background: rgba(232,195,106,0.16); color: #F3D894; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.doc-foot { border-top: 1px solid var(--line); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 58px; padding: 8px 16px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--dim); }
.store b { color: var(--white); font-size: 16px; }
.store span { font-size: 13px; }
.doc .steps { margin: 18px 0; }
.doc .steps li { margin: 0; }
.strip a { color: var(--soft); text-decoration-color: var(--line2); }
.plan .alt { font-size: 14px; color: var(--soft); }

.faq-more { margin: 8px 0 0; }

/* help centre */
.help-search { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 12px 0 14px; margin: 0 0 8px; }
.help-search label { display: block; font-size: 15px; color: var(--soft); margin-bottom: 8px; }
.help-search input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A3ACBC' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 15px center; color: var(--white); font: inherit; font-size: 17px; }
.help-search input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.help-count { font-size: 14px; color: var(--dim); margin: 8px 0 0; min-height: 21px; }
.help-group { margin-top: 28px; }
.help-group h2 { margin: 0 0 12px; }
.help-group[hidden], .help-item[hidden] { display: none; }
.help-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.help-item summary { min-height: 56px; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; padding: 10px 0; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--dim); font-size: 22px; }
.help-item[open] summary::after { content: "\2212"; }
.help-item .tag-guide { flex: none; font-size: 12px; font-weight: 600; color: var(--green); border: 1px solid #2F5A45; border-radius: 999px; padding: 2px 8px; }
.help-item .body { padding-bottom: 16px; }
.help-item .body p, .help-item .body li { color: var(--soft); font-size: 15.5px; line-height: 1.6; margin: 0 0 8px; }
.help-item .body ol, .help-item .body ul { margin: 0 0 8px; padding-left: 22px; }
.help-item mark { background: rgba(232,195,106,0.28); color: var(--white); border-radius: 3px; padding: 0 2px; }
.help-empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 18px; color: var(--soft); }
.toc[hidden], .help-empty[hidden] { display: none; }
.help-item, .help-group { scroll-margin-top: 190px; }

/* v0.6.0: same main menu on every page; "On this page" bar on the home page */
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
@media (max-width: 900px) { .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0; padding-left: 14px; } }
.section-bar { position: sticky; top: 64px; z-index: 15; background: rgba(13,16,23,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sb-row { display: flex; align-items: center; gap: 4px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.sb-row::-webkit-scrollbar { display: none; }
.sb-label { flex: none; font-size: 13px; color: var(--dim); margin-right: 8px; white-space: nowrap; }
.section-bar a { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 14px; color: var(--soft); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
.section-bar a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.section-bar a.active { color: var(--gold-ink); background: var(--gold); }
@media (max-width: 600px) { .sb-label { display: none; } .sb-row { padding-right: 20px; } }
.home section { scroll-margin-top: 124px; }

/* v0.7.0: compare, plan finder, founding offer, what's new, status */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--soft); line-height: 1.45; }
.cmp thead th { color: var(--white); font-size: 15px; font-weight: 700; background: var(--bg2); }
.cmp tbody th { color: var(--white); font-weight: 600; width: 30%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .us { background: rgba(232,195,106,0.07); color: var(--text); }
.cmp thead .us { color: var(--gold); }
.cmp .yes { color: var(--green); font-weight: 700; margin-right: 4px; }
.finder { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 14px; }
.finder label { display: block; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.finder-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.finder input { width: 140px; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--white); font: inherit; font-size: 17px; }
.finder input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.finder p { flex: 1 1 240px; margin: 0; color: var(--soft); font-size: 15px; }
.founding { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 14px 18px; border-radius: 14px; border: 1px dashed #5A4718; background: rgba(232,195,106,0.06); }
.founding[hidden] { display: none; }
.founding b { color: var(--gold); }
.founding span { color: var(--soft); font-size: 15px; }
.keep-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.keep-row [hidden] { display: none; }
.news { list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--line2); }
.news li { position: relative; padding: 0 0 22px 22px; margin: 0; }
.news li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 6px; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.news .when { display: block; font-size: 13.5px; color: var(--dim); }
.news b { display: block; color: var(--white); font-size: 17px; margin: 2px 0 4px; }
.news p { margin: 0; }
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0; }
.roadmap section { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.roadmap h3 { margin: 0 0 10px; color: var(--gold); font-size: 16px; }
.roadmap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.roadmap li { margin: 0; }
.roadmap li b { display: block; color: var(--white); font-size: 15px; }
.roadmap li span { font-size: 14px; color: var(--dim); line-height: 1.5; }
.st-banner { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); margin: 8px 0 18px; }
.st-banner b { display: block; color: var(--white); font-size: 19px; }
.st-banner span:not(.st-dot) { color: var(--soft); font-size: 15px; }
.st-dot { flex: none; width: 14px; height: 14px; border-radius: 7px; background: var(--dim); }
[data-state="ok"] > .st-dot, .st-dot[data-state="ok"] { background: var(--green); box-shadow: 0 0 0 4px rgba(126,200,160,0.18); }
[data-state="degraded"] > .st-dot, .st-dot[data-state="degraded"], .st-dot[data-state="soon"] { background: var(--gold); box-shadow: 0 0 0 4px rgba(232,195,106,0.18); }
[data-state="down"] > .st-dot, .st-dot[data-state="down"] { background: #FF8A78; box-shadow: 0 0 0 4px rgba(255,138,120,0.2); }
[data-state="maintenance"] > .st-dot, .st-dot[data-state="maintenance"] { background: #9FC0EA; }
.st-banner[data-state="down"] { border-color: #7A3A33; }
.st-banner[data-state="degraded"], .st-banner[data-state="maintenance"] { border-color: #5A4718; }
.st-notice { border: 1px solid #5A4718; background: rgba(232,195,106,0.07); border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; }
.st-notice[hidden] { display: none; }
.st-notice b { color: var(--white); }
.st-list { list-style: none; padding: 0; margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; }
.st-list li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.st-list li:last-child { border-bottom: 0; }
.st-list b { color: var(--white); flex: 1; }
.st-val { color: var(--soft); font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.foot-row a[hidden] { display: none; }
.doc .st-list, .doc .roadmap ul { padding-left: 0; }
.doc .news { padding-left: 0; margin-left: 6px; }

/* v0.7.3: buttons inside pages keep their own colours (".doc a" was turning gold buttons gold-on-gold) */
.doc a.btn { text-decoration: none; }
.doc a.btn-gold, .doc a.btn-gold:hover { color: var(--gold-ink); }
.doc a.btn-line { color: var(--text); }
.doc a.btn-line:hover { color: var(--white); }

/* v0.8.0: the app screen being shown gets a gold edge */
.shots { position: relative; }
.shot .phone { transition: border-color .4s ease, box-shadow .4s ease, transform .4s ease; }
.shot.active .phone { border-color: #8A7333; box-shadow: 0 26px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,195,106,0.35); }
@media (prefers-reduced-motion: no-preference) { .shot.active .phone { transform: translateY(-4px); } }

/* v0.8.1: buttons and dots under the app screens instead of a scroll bar */
.shots { scrollbar-width: none; padding-bottom: 8px; }
.shots::-webkit-scrollbar { display: none; }
.shots-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.sn-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sn-btn:hover { border-color: var(--gold); color: var(--gold); }
.sn-dots { display: flex; gap: 2px; }
.sn-dots button { width: 28px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sn-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--line2); transition: width .3s ease, background .3s ease; }
.sn-dots button[aria-current="true"]::before { width: 22px; background: var(--gold); }
.sn-dots button:hover::before { background: var(--dim); }
.sn-dots button[aria-current="true"]:hover::before { background: var(--gold); }

/* v0.9.0: choose how to pay, then pay now or start a free trial */
.billing { flex: 1 1 100%; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.billing legend { font-size: 14px; color: var(--soft); margin-bottom: 8px; padding: 0; }
.billing label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; background: var(--bg); }
.billing label:hover { border-color: var(--dim); }
.billing input { accent-color: var(--gold); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.billing label:has(input:checked) { border-color: var(--gold); background: rgba(232,195,106,0.07); }
.billing label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.billing b { display: block; color: var(--white); font-size: 15px; }
.billing small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 640px) { .billing { grid-template-columns: 1fr; } }
.plan-cta { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px; }
.plan-cta .btn { flex: 1 1 200px; }
.plan-cta [hidden] { display: none; }

/* v0.9.1: phones */
/* Tables become one card per row, so nothing is cut off at the edge */
@media (max-width: 640px) {
  .cmp-wrap, .tablewrap { overflow: visible; border: 0; background: none; }
  .cmp, .doc .tablewrap table { min-width: 0; }
  .doc .tablewrap td { border-bottom: 0; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td,
  .tablewrap table, .tablewrap tbody, .tablewrap tr, .tablewrap th, .tablewrap td { display: block; width: auto; }
  .cmp thead, .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr, .tablewrap tr { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 0 0 10px; overflow: hidden; }
  .cmp tbody th, .cmp td, .tablewrap td, .tablewrap th { border-bottom: 0; padding: 10px 14px; }
  .cmp tbody th { width: auto; font-size: 16px; padding-top: 14px; }
  .cmp td::before, .tablewrap td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; color: var(--dim); margin-bottom: 2px; }
  .cmp td.us::before { color: var(--gold); }
  .cmp td:last-child { padding-bottom: 14px; }
  .tablewrap td:first-child { color: var(--white); font-weight: 600; padding-top: 14px; }
  .tablewrap td:first-child::before { display: none; }
  .tablewrap td:last-child { padding-bottom: 14px; }
}
/* Page-contents chips line up with the text */
.doc .toc, .help .toc, ul.toc { padding-left: 0; margin-left: 0; }
/* "Check again" is big enough to tap */
#st-again { min-height: 44px; padding: 10px 14px; margin-left: -14px; }

/* v0.10.0: free-trial request form (start.html) */
.trial-form { margin-top: 28px; }
.trial-form fieldset { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 18px 18px 6px; margin: 0 0 20px; min-width: 0; }
.trial-form legend { padding: 0 8px; margin-left: -8px; font-weight: 700; color: var(--white); font-size: 18px; }
.field { margin: 0 0 16px; min-width: 0; }
.field label { display: block; font-weight: 600; color: var(--white); margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--white); font: inherit; font-size: 17px; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A3ACBC' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: #6E7789; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #E07A7A; }
.field .hint { margin: 6px 0 0; font-size: 14px; color: var(--dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.req { font-size: 12px; font-weight: 600; color: var(--dim); margin-left: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; color: var(--soft); cursor: pointer; line-height: 1.5; }
.check input { accent-color: var(--gold); width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid #E07A7A; outline-offset: 2px; }
.form-error { color: #F2A3A3; background: rgba(224,122,122,0.12); border: 1px solid rgba(224,122,122,0.4); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; }
.trial-form button[disabled] { opacity: .7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.trial-done { margin-top: 28px; }
.trial-done:focus { outline: none; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .trial-form fieldset { padding: 16px 14px 4px; } .trial-form .btn { width: 100%; } }

/* v0.11.0: 150+ plan player count */
.xl-size { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.xl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; font-weight: 400; color: var(--dim); }
.xl-row input { width: 110px; min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--white); font: inherit; font-size: 17px; }
.xl-row input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: transparent; }

/* v0.12.0: real app screenshots in the phone frames */
.screen.shot-img { height: auto; aspect-ratio: 390 / 844; padding: 0; display: block; gap: 0; background: #0D1017; }
.screen.shot-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-frames img { position: absolute; inset: 0; }
.hero-frames img + img { opacity: 0; }

/* v0.13.0: Discord community */
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #6D78F5; color: #fff; }
.doc a.btn-discord, .doc a.btn-discord:hover { color: #fff; }
.community { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, rgba(88,101,242,0.16), rgba(88,101,242,0.04)); border: 1px solid rgba(88,101,242,0.45); }
.community .ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(88,101,242,0.22); color: #B4BAFF; }
.community > div { flex: 1 1 320px; }
.community h2 { font-size: 24px; margin: 0 0 6px; }
.community p { margin: 0; color: var(--soft); line-height: 1.55; }
@media (max-width: 600px) { .community { padding: 22px 18px; } .community .btn { width: 100%; } }
.community[hidden], #community[hidden], .community [hidden], .nav a[hidden], [data-discord-only][hidden] { display: none; }

/* Club directory (clubs.html) */
.doc.doc-wide { max-width: 1040px; }
.dir-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 0 14px; align-items: end; margin: 8px 0 4px; }
.dir-filters[hidden] { display: none; }
.dir-check { display: flex; align-items: center; gap: 8px; min-height: 50px; margin: 0 0 16px; color: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; }
.dir-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.dir-count { color: var(--dim); font-size: 15px; margin: 0 0 8px; }
.dir-error { color: #FF9C8A; }
.doc h2.dir-region { font-size: 18px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin: 28px 0 12px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dir-club { min-width: 0; }
.dir-club h3 { margin: 0; overflow-wrap: anywhere; }
.dir-top { display: flex; gap: 12px; align-items: center; }
.dir-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg); }
.doc .dir-where { margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.dir-games { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.doc .dir-games li { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; }
.dir-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.dir-facts dt { color: var(--dim); }
.dir-facts dd { margin: 0; color: var(--soft); overflow-wrap: anywhere; }
.doc .dir-about { font-size: 14px; overflow-wrap: anywhere; }
.dir-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.dir-cta { margin-top: 32px; }
.doc .dir-note { font-size: 14px; color: var(--dim); }
@media (max-width: 720px) { .dir-filters { grid-template-columns: minmax(0, 1fr); } .dir-check { min-height: 0; } }
.dir-club .dir-report { align-self: flex-start; font-size: 13px; color: var(--dim); }
.dir-club .dir-report:hover { color: var(--soft); }

/* Club directory map */
.dir-map-wrap { margin: 4px 0 20px; }
.dir-map { height: 360px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); overflow: hidden; }
.dir-map .leaflet-popup-content-wrapper, .dir-map .leaflet-popup-tip { background: var(--panel); color: var(--text); }
.dir-pop { display: flex; flex-direction: column; gap: 4px; font: inherit; font-size: 14px; }
.dir-pop b { color: var(--white); }
.dir-pop small { color: var(--dim); }
.dir-pop a { color: var(--gold); }
.dir-map .leaflet-control-attribution { font-size: 10px; background: rgba(13,16,23,0.8); color: var(--dim); }
.dir-map .leaflet-control-attribution a { color: var(--soft); }
.doc .dir-map-note { font-size: 13px; color: var(--dim); margin: 6px 0 0; }
.doc .dir-near { color: var(--soft); font-size: 15px; margin: 0 0 10px; }
@media (max-width: 720px) { .dir-map { height: 260px; } }

/* Home page pricing teaser (full pricing is on pricing.html) */
.price-teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.price-teaser a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s; }
.price-teaser a:hover, .price-teaser a:focus-visible { border-color: var(--gold); }
.price-teaser b { color: var(--white); font-size: 18px; }
.price-teaser span { color: var(--dim); font-size: 14px; }
.price-teaser em { font-style: normal; color: var(--gold); font-weight: 700; margin-top: 6px; }
.price-teaser i { font-style: normal; color: var(--dim); font-size: 13px; }
.teaser-note { color: var(--dim); font-size: 13px; margin: 12px 0 0; }
.teaser-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
@media (max-width: 820px) { .price-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .price-teaser { grid-template-columns: minmax(0, 1fr); } }

/* On every screen: computer, club TV and Discord */
.bigshots { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.bigshot.wide { grid-column: 1; }
.bigshot:not(.wide) { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 140px; }
.bigshot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bigshot .screen-frame { border-radius: 14px; border: 1px solid var(--line2); background: #0B0E14; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); overflow: hidden; }
.bigshot .screen-frame img { display: block; width: 100%; height: auto; border-radius: 8px; }
.bigshot .screen-frame.chat { max-width: 420px; }
.bigshot figcaption { display: flex; flex-direction: column; gap: 4px; }
.bigshot figcaption b { font-size: 16px; color: var(--white); }
.bigshot figcaption span { font-size: 14px; color: var(--dim); line-height: 1.45; }
@media (max-width: 820px) { .bigshots { grid-template-columns: minmax(0, 1fr); } .bigshot.wide, .bigshot:not(.wide) { grid-column: 1; grid-row: auto; position: static; } }

/* Founding clubs */
.founding .founding-code { flex-basis: 100%; color: var(--dim); font-size: 13px; margin-top: 4px; }
.founding-pill { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 10px; border: 1px solid #E8C36A; border-radius: 999px; color: #E8C36A; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; }

/* Utilities (replace inline styles so the CSP needs no 'unsafe-inline') */
.u-center { text-align:center !important; }
.u-logo404 { margin:0 auto 20px !important; border-radius:16px !important; }
.u-m0 { margin:0 !important; }
.u-pt24 { padding-top:24px !important; }
.u-pb72 { padding-bottom:72px !important; }
.u-h2s { font-size:clamp(26px,3.5vw,34px) !important; }
.u-fs16 { font-size:16px !important; }
.u-selfstart { align-self:flex-start !important; margin-top:6px !important; }
.u-pt0 { padding-top:0 !important; }
.u-mt24 { margin:24px 0 0 !important; }
.u-pb28 { padding-bottom:28px !important; }
.u-pb80 { padding-bottom:80px !important; }
.u-full { flex:1 1 100% !important; margin:0 !important; }
.u-mt14 { margin:14px 0 0 !important; }
.ico.ico-gold { background:rgba(232,195,106,0.14); color:#E8C36A; }
.ico.ico-green { background:rgba(126,200,160,0.14); color:#7EC8A0; }
.ico.ico-blue { background:rgba(159,192,234,0.14); color:#9FC0EA; }
.ico.ico-lilac { background:rgba(210,180,240,0.14); color:#D2B4F0; }
.ico.ico-orange { background:rgba(255,178,122,0.14); color:#FFB27A; }
.ico.ico-discord { background:rgba(88,101,242,0.16); color:#9AA2FF; }

/* Add to your phone (install.html) */
.tabs.tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 6px; }
.install-detected { color: var(--dim); font-size: 13px; margin: 6px 0 0; }
.install-panel h2 { margin-top: 28px; }
.install-steps { margin: 16px 0; }
.install-steps b { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ui-ico { display: inline-block; flex: none; color: var(--gold); vertical-align: -4px; }
.install-alt { color: var(--soft); font-size: 15px; }

/* Something to play for (home) */
.playfor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.playfor figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.playfor .phone { max-width: 270px; width: 100%; margin: 0 auto; }
.playfor figcaption { display: flex; flex-direction: column; gap: 6px; }
.playfor figcaption b { font-size: 16px; color: var(--white); }
.playfor figcaption span { font-size: 14px; color: var(--dim); line-height: 1.45; }
@media (max-width: 860px) { .playfor { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; } }
.skill-shot { margin: 22px 0; display: flex; gap: 20px; align-items: center; }
.skill-shot .phone { width: 220px; flex: none; }
.skill-shot figcaption { color: var(--soft); font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) { .skill-shot { flex-direction: column; align-items: stretch; } .skill-shot .phone { margin: 0 auto; } }
