/* 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; }
.shots.pinned { overflow: visible; scroll-snap-type: none; }
.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 .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; }
