/* ==========================================================================
   recaris.eu - public website. Builds on base.css (design system).
   ========================================================================== */

body.site { display: flex; flex-direction: column; min-height: 100vh; }
.site main { flex: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-md { max-width: 1080px; }
.wrap-sm { max-width: 920px; }

/* ------------------------------------------------------ announcement bar */

.topbar { background: var(--orange); color: var(--ink); }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; font-size: 14px; font-weight: 600; text-align: center; }
.topbar .pixel { font-size: 12px; }
.topbar a { color: var(--ink); text-decoration: underline; font-weight: 700; }
.topbar a:hover { color: #000; }

/* ---------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(13,12,11,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid var(--surface-2); }
.site-header .header-bar { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--text-body); text-decoration: none; background: none; border: 0; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { color: var(--orange-light); }
.nav-link .caret { font-size: 9px; color: var(--text-faint); }
.nav-menu { position: absolute; top: 100%; left: 0; padding-top: 8px; z-index: 60; display: none; }
.nav-item:hover > .nav-menu, .nav-item.is-open > .nav-menu { display: block; }
.nav-menu-box { width: 300px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 6px; box-shadow: 6px 6px 0 #000; }
.nav-menu a { display: block; padding: 11px 12px; border-radius: 5px; text-decoration: none; }
.nav-menu a:hover { background: var(--surface-hover); }
.nav-menu strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.nav-menu small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.account-link { padding: 9px 14px; font-size: 15px; font-weight: 600; color: var(--text-body); }
.account-link:hover { color: var(--text); }
.btn-play { padding: 10px 18px; box-shadow: 0 4px 0 var(--orange-shadow); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 6px; border: 2px solid var(--border-2); background: transparent; color: var(--text); font-size: 18px; }

.mobile-menu { display: none; border-top: 2px solid var(--surface-2); padding: 12px 24px 20px; }
.mobile-menu.is-open { display: grid; gap: 18px; }
.mobile-menu .group-title { font-family: var(--f-pixel); font-size: 13px; color: var(--orange-light); }
.mobile-menu .group-links { display: grid; gap: 2px; margin-top: 6px; }
.mobile-menu .group-links a { padding: 8px 0; font-size: 17px; color: var(--text); }
.mobile-menu .account { font-size: 17px; }

@media (max-width: 899px) {
    .nav, .header-actions .account-link { display: none; }
    .menu-toggle { display: block; }
    .site-header .header-bar { gap: 12px; }
}

/* ------------------------------------------------------------ page hero */

.page-hero {
    position: relative; overflow: hidden; border-bottom: 2px solid var(--surface-2);
    background-color: var(--bg);
    background-image:
        radial-gradient(800px 360px at 85% 0%, rgba(255,138,31,0.22), transparent 70%),
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}
.page-hero .wrap { padding-top: 48px; padding-bottom: 60px; position: relative; }
.page-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.035em; margin: 20px 0 16px; max-width: 900px; }
.page-hero .lead { font-size: 20px; color: var(--text-body); max-width: 640px; text-wrap: pretty; }
.stairs { position: absolute; right: 24px; bottom: 0; display: grid; grid-template-columns: repeat(4, 32px); opacity: .9; }
.stairs span { height: 32px; }
.stairs .s1 { background: var(--orange); } .stairs .s2 { background: var(--orange-dark); } .stairs .s3 { background: #3a2410; }
.stairs .s0 { background: transparent; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-family: var(--f-pixel); font-size: 12px; color: var(--text-faint); }
.crumbs li { display: flex; gap: 8px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--orange-light); }
.crumbs li:not(:last-child)::after { content: '›'; }

/* photo heroes (home, legacies, server detail, auth) */
.photo-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 2px solid var(--surface-2); }
.photo-hero > .media { position: absolute; inset: 0; }
.photo-hero .shade { position: absolute; inset: 0; pointer-events: none; }
.photo-hero .content { position: relative; width: 100%; pointer-events: none; }
.photo-hero .content a, .photo-hero .content button, .photo-hero .content aside { pointer-events: auto; }
.shade-left { background: linear-gradient(90deg, rgba(13,12,11,0.95) 0%, rgba(13,12,11,0.7) 45%, rgba(13,12,11,0.15) 100%), linear-gradient(0deg, #0d0c0b 0%, transparent 40%); }
.shade-bottom { background: linear-gradient(0deg, #0d0c0b 5%, rgba(13,12,11,0.55) 55%, rgba(13,12,11,0.25)); }

/* ------------------------------------------------------------------ home */

.home-hero { min-height: min(88vh, 860px); }
.home-hero .content { padding: 120px 24px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px; align-items: end; }
.online-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-pixel); font-size: 13px; color: var(--ink); background: var(--orange); padding: 6px 12px; border-radius: 4px; margin: 0 0 22px; }
.home-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, 9vw, 124px); line-height: 0.88; letter-spacing: -0.045em; }
.home-hero .intro { font-size: 20px; line-height: 1.5; color: #dcd5cc; margin: 28px 0 36px; max-width: 540px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ip { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 6px; border: 0; background: var(--orange); color: var(--ink); box-shadow: 0 6px 0 var(--orange-shadow); }
.btn-ip:hover { background: var(--orange-light); }
.btn-ip:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange-shadow); }
.btn-ip .ip { font-family: var(--f-mono); font-weight: 600; font-size: 19px; }
.btn-ip .tag { font-family: var(--f-pixel); font-size: 11px; padding: 4px 8px; border-radius: 3px; background: var(--ink); color: var(--orange-light); }
.btn-howto { display: flex; align-items: center; padding: 16px 22px; border-radius: 6px; background: var(--surface-2); border: 2px solid var(--border-2); color: var(--text); font-weight: 700; font-size: 16px; box-shadow: 0 6px 0 #000; }
.btn-howto:hover { border-color: var(--orange); color: var(--text); }

.status-card { justify-self: end; width: 100%; max-width: 400px; background: rgba(21,20,18,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--orange); }
.status-card-head { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border); }
.status-card-head .up { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ok); }
.status-card-head .up.partial { color: var(--orange-light); }
.status-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--text); }
.status-row:last-child { border-bottom: 0; }
.status-row:hover { background: var(--surface-hover); color: var(--text); }
.status-row .name { flex: 1; min-width: 0; }
.status-row .name strong { display: block; font-weight: 700; font-size: 15px; }
.status-row .name small { display: block; font-size: 13px; color: var(--text-muted); }
.status-row .count { font-family: var(--f-mono); font-size: 13px; color: var(--ok); white-space: nowrap; }
.status-row .count.off { color: var(--text-faint); }

.band { background: var(--orange); color: var(--ink); border-bottom: 2px solid var(--ink); }
.band.band-top { border-top: 2px solid var(--ink); }
.band dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0; }
.band dl > div { padding: 28px 24px; border-left: 2px solid rgba(28,15,2,0.18); }
.band .v { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.band .k { margin-top: 6px; font-family: var(--f-pixel); font-size: 12px; }
.band-sm .v { font-size: 30px; }
.band-sm dl > div { padding: 24px; }
.band-sm .v.mono { font-family: var(--f-mono); font-weight: 600; font-size: 22px; padding-top: 6px; }

.section { padding-top: 110px; }
.section-md { padding-top: 88px; }
.section-sm { padding-top: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; letter-spacing: -0.035em; }
.h2-md { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 680px; }

.worlds { display: flex; flex-wrap: wrap; gap: 20px; }
.world-flagship { flex: 2 1 560px; min-width: 0; position: relative; display: block; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--orange); color: var(--text); box-shadow: 8px 8px 0 var(--orange-shadow); }
.world-flagship:hover { color: var(--text); }
.world-flagship > .media { position: absolute; inset: 0; transition: transform .4s; }
.world-flagship:hover > .media { transform: scale(1.02); }
.world-flagship .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,12,11,0.97) 10%, rgba(13,12,11,0.3) 60%, transparent); }
.world-flagship .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px; }
.world-flagship h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.035em; line-height: 0.95; margin: 18px 0 12px; }
.world-flagship p { margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: #dcd5cc; max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.world-side { flex: 1 1 320px; min-width: 0; display: grid; gap: 20px; }
.world-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 2px solid var(--border); color: var(--text); }
.world-card:hover { border-color: var(--orange); color: var(--text); }
.world-card > .media { height: 150px; }
.world-card .body { padding: 22px; }
.world-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 6px 0; }
.world-card p { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

.why { margin-top: 120px; }
.why .wrap { padding-top: 96px; padding-bottom: 96px; }
.why-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; margin-bottom: 48px; }
.why h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 0.9; letter-spacing: -0.04em; }
.why-head p { font-size: 19px; line-height: 1.55; font-weight: 500; max-width: 480px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.why-card { background: var(--ink); color: var(--text); padding: 30px; border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--orange-shadow); }
.why-card .n { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--orange); letter-spacing: -0.04em; }
.why-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -0.01em; margin: 20px 0 10px; }
.why-card p { font-size: 15px; line-height: 1.6; color: #cfc0ae; text-wrap: pretty; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; }
.framed { position: relative; aspect-ratio: 4 / 3; }
.framed::before { content: ''; position: absolute; inset: 0; transform: translate(16px, 16px); background: var(--orange); border-radius: var(--radius-lg); }
.framed > .media { position: absolute; inset: 0; border-radius: var(--radius-lg); border: 2px solid var(--ink); }
.split h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 20px; }
.split .copy > p { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.tier-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 32px; }
.tier-bars .bar-block { border-radius: 3px; }
.tier-bars .t-label { margin-top: 10px; font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); }
.tier-bars .t-name { font-weight: 700; font-size: 15px; }
.t1 { background: #3a2410; } .t2 { background: var(--orange-shadow); } .t3 { background: var(--orange-dark); } .t4 { background: var(--orange); }
.h-16 { height: 16px; } .h-32 { height: 32px; } .h-48 { height: 48px; } .h-64 { height: 64px; }
.h-40 { height: 40px; } .h-80 { height: 80px; } .h-120 { height: 120px; } .h-160 { height: 160px; }

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.steps3 li { padding: 34px; background: var(--surface); border-right: 2px solid var(--border); }
.steps3 li:last-child { border-right: 0; background: var(--orange); color: var(--ink); }
.steps3 .num { font-family: var(--f-display); font-weight: 800; font-size: 96px; line-height: 0.8; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.steps3 li:last-child .num { color: var(--ink); -webkit-text-stroke: 0; }
.steps3 h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; margin: 24px 0 8px; }
.steps3 p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.steps3 li:last-child p { color: var(--ink); font-weight: 500; }
.steps3 li:last-child a { color: var(--ink); text-decoration: underline; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 220px; gap: 12px; }
.gallery > .media { border-radius: var(--radius-lg); border: 2px solid var(--border); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 600px) { .gallery .wide { grid-column: auto; } .gallery .tall { grid-row: auto; } }

.faq-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.faq-teaser .item { padding: 22px 0; border-top: 2px solid var(--border); }
.faq-teaser h3 { font-size: 19px; margin: 0 0 8px; }
.faq-teaser p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ------------------------------------------------------------ servers */

.server-list { display: grid; gap: 16px; }
.server-row { display: flex; flex-wrap: wrap; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 2px solid var(--border); }
.server-row > .media { flex: 1 1 300px; min-height: 220px; }
.server-row .body { flex: 2 1 480px; min-width: 0; padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.server-row h2 { font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: -0.025em; margin: 14px 0 8px; }
.server-row p { font-size: 16px; line-height: 1.55; color: var(--text-muted); max-width: 560px; }
.server-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* legacies + detail */
.legacies-hero { min-height: 620px; }
.legacies-hero .content { padding: 120px 24px 56px; }
.legacies-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 10vw, 140px); line-height: 0.85; letter-spacing: -0.05em; margin: 22px 0 18px; }
.legacies-hero p, .detail-hero p { font-size: 22px; color: #dcd5cc; max-width: 600px; }
.detail-hero { min-height: 520px; }
.detail-hero .content { padding: 120px 24px 52px; }
.detail-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 8vw, 104px); line-height: 0.88; letter-spacing: -0.045em; margin: 16px 0; }
.detail-hero p { font-size: 20px; }
.hero-crumbs .crumbs a { color: var(--text-body); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; }
.about-grid .prose { font-size: 18px; line-height: 1.65; color: var(--text-body); }
.about-grid .prose p + p { margin-top: 16px; color: var(--text-muted); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: end; margin-top: 36px; }
.tiers li { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--border); background: var(--surface); }
.tiers .body { padding: 18px 20px; }
.tiers .name { font-family: var(--f-display); font-weight: 800; font-size: 26px; margin-top: 4px; }

.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 36px; }
.path-card { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--border); background: var(--surface); }
.path-card:hover { border-color: var(--orange); }
.path-card > .media { height: 180px; }
.path-card .body { padding: 20px; }
.path-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; color: var(--orange); margin: 4px 0; }
.path-card p { font-size: 15px; color: var(--text-muted); }

.systems { margin-top: 100px; background: var(--surface); border-top: 2px solid var(--surface-2); border-bottom: 2px solid var(--surface-2); }
.systems .wrap { padding-top: 90px; padding-bottom: 90px; }
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin-top: 36px; }
.system-card { padding: 28px; border-radius: var(--radius-lg); background: var(--bg); border: 2px solid var(--border); }
.system-card .pixel { font-size: 12px; color: var(--orange-light); }
.system-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 23px; margin: 14px 0 10px; }
.system-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.pvp-legend { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 15px; color: var(--text-muted); }
.pvp-legend span { display: flex; align-items: center; gap: 8px; }
.pvp-legend i { width: 12px; height: 12px; display: inline-block; }
.pvp-green { background: var(--ok); } .pvp-orange { background: var(--orange); } .pvp-red { background: #ff5a4a; }

.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.board { border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.board h3 { padding: 18px 22px; font-family: var(--f-display); font-size: 20px; background: var(--surface-2); }
.board.is-primary h3 { background: var(--orange); color: var(--ink); }
.board-row { display: grid; gap: 8px; padding: 12px 22px; align-items: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.board-row.head { font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); border-bottom: 2px solid var(--border); }
.board-row:last-child { border-bottom: 0; }
.board-settlements .board-row { grid-template-columns: 40px 1.6fr 1fr 1fr 70px; }
.board-players .board-row { grid-template-columns: 40px 1.4fr 1.4fr 90px; }
.board-row .r { text-align: right; font-family: var(--f-mono); }
.board-row .pos { font-family: var(--f-pixel); color: var(--orange-light); }
.board-row .tag { color: var(--orange-light); font-weight: 700; }

.detail-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.detail-grid .main { flex: 2 1 560px; min-width: 0; }
.detail-grid h2 { font-family: var(--f-display); font-weight: 800; font-size: 36px; letter-spacing: -0.025em; margin: 0 0 14px; }
.detail-grid .about { margin: 0 0 48px; font-size: 18px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }
.facts-card { flex: 1 1 320px; position: sticky; top: 96px; overflow: hidden; }
.facts-card .head { padding: 18px 22px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.facts { margin: 0; padding: 6px 22px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); padding-top: 3px; }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.facts-card .foot { padding: 18px 22px; }

.num-steps { display: grid; gap: 12px; }
.num-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }
.num-steps .n { font-family: var(--f-display); font-weight: 800; font-size: 56px; line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.num-steps h3 { margin: 0 0 4px; font-size: 18px; }
.num-steps p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.num-steps.lg li { grid-template-columns: 80px 1fr; gap: 20px; padding: 26px; }
.num-steps.lg .n { font-size: 72px; line-height: 0.8; }
.num-steps.lg h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.num-steps.lg p { font-size: 16px; }

/* join */
.join-boxes { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.addr-box { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--orange); color: var(--ink); }
.addr-box .row-between { margin-top: 10px; }
.addr-box .ip { font-family: var(--f-mono); font-weight: 600; font-size: 22px; }
.addr-box button { padding: 8px 12px; border-radius: 4px; border: 0; background: var(--ink); color: var(--orange-light); font-family: var(--f-pixel); font-size: 11px; }
.port-box { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--orange); }
.port-box .v { font-family: var(--f-mono); font-weight: 600; font-size: 22px; color: var(--orange-light); margin-top: 10px; }
.note-box { margin-top: 32px; padding: 26px; border-radius: var(--radius-lg); border: 2px dashed var(--border-2); }
.note-box h2 { margin: 0 0 8px; font-size: 19px; }
.note-box p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ------------------------------------------------------------------ store */

.store-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center; }
.store-intro h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.035em; margin: 0 0 18px; }
.store-intro .copy > p { margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { font-family: var(--f-pixel); font-size: 11px; padding: 6px 10px; border-radius: 3px; background: var(--surface-2); color: var(--text-body); }
.account-card { padding: 28px; }
.account-card h3 { margin: 14px 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.account-card p { margin: 0 0 20px; font-size: 15px; color: var(--text-muted); }

.rank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; align-items: stretch; margin-top: 32px; }
.rank-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); color: var(--text); border: 2px solid var(--border); }
.rank-card .stripe { height: 10px; }
.rank-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.rank-card .top { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.rank-card .billing { font-family: var(--f-pixel); font-size: 11px; opacity: .7; }
.rank-card .popular { font-family: var(--f-pixel); font-size: 10px; padding: 3px 7px; border-radius: 3px; background: var(--ink); color: var(--orange-light); }
.rank-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; margin: 12px 0 6px; }
.rank-card .desc { margin: 0 0 18px; font-size: 14px; line-height: 1.5; opacity: .8; min-height: 42px; }
.rank-card .price { font-size: 36px; font-weight: 800; font-family: var(--f-display); letter-spacing: -0.02em; }
.rank-card .price small { font-size: 14px; font-weight: 500; font-family: var(--f-body); opacity: .7; letter-spacing: 0; }
.rank-card .price s { font-size: 18px; opacity: .55; margin-right: 6px; }
.rank-card .perks { margin: 18px 0 22px; padding: 18px 0 0; border-top: 2px solid var(--border); display: grid; gap: 8px; font-size: 14px; flex: 1; align-content: start; }
.rank-card .perks li { display: flex; gap: 8px; }
.rank-card .perks li::before { content: '+'; font-weight: 800; }
.rank-card form { display: grid; }
.rank-card.is-popular { background: var(--orange); color: var(--ink); border-color: var(--ink); box-shadow: 8px 8px 0 var(--orange-shadow); }
.rank-card.is-popular h3 { color: var(--ink) !important; }
.rank-card.is-popular .perks { border-top-color: rgba(28,15,2,0.2); }
.rank-card.is-popular .btn-primary { background: var(--ink); color: var(--orange-pale); box-shadow: 0 4px 0 #000; }
.btn-soon { padding: 12px; border-radius: 6px; border: 2px dashed var(--border-2); background: transparent; color: var(--text-faint); font-weight: 800; font-size: 14px; cursor: default; }
.rank-card.is-popular .btn-soon { border-color: rgba(28,15,2,.35); color: rgba(28,15,2,.6); }

.keys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; }
.key-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.key-card .qty { width: 48px; height: 48px; flex: none; border-radius: 4px; background: var(--orange); box-shadow: inset -5px -5px 0 var(--orange-dark), inset 5px 5px 0 var(--orange-pale); display: grid; place-items: center; font-family: var(--f-pixel); color: var(--ink); font-size: 14px; }
.key-card .info { flex: 1; min-width: 0; }
.key-card h3 { margin: 0 0 4px; font-size: 18px; }
.key-card p { font-size: 14px; color: var(--text-muted); }
.key-card .price { font-family: var(--f-display); font-weight: 800; font-size: 24px; }
@media (max-width: 520px) { .key-card { flex-wrap: wrap; } }

.earned-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-top: 28px; }
.earned-grid h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.earned-grid p { margin: 0 0 16px; font-size: 15px; color: var(--text-muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pills span { font-family: var(--f-pixel); font-size: 11px; padding: 5px 9px; border-radius: 3px; }
.pills.blue span { background: var(--info-bg); color: var(--info); }
.pills.red span { background: var(--danger-bg); color: var(--danger); }

/* ------------------------------------------------------------------ news */

.news-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.featured-article { display: flex; flex-wrap: wrap; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 2px solid var(--orange); box-shadow: 8px 8px 0 var(--orange-shadow); }
.featured-article > a { flex: 3 1 520px; min-height: 420px; position: relative; display: block; }
.featured-article > a > .media { position: absolute; inset: 0; }
.featured-article .body { flex: 2 1 360px; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.featured-article h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 0.95; letter-spacing: -0.035em; margin: 20px 0 16px; }
.featured-article h2 a, .news-card h3 a { color: var(--text); }
.featured-article h2 a:hover, .news-card h3 a:hover { color: var(--orange-light); }
.featured-article .excerpt { font-size: 18px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meta-row time, .meta-row .t { font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); }
.tag-chip { font-family: var(--f-pixel); font-size: 11px; padding: 4px 9px; border-radius: 3px; background: var(--surface-2); color: var(--text-body); }
.tag-chip.orange { background: var(--orange); color: var(--ink); }
.tag-chip.accent { color: var(--orange-light); }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 2px solid var(--border); }
.news-card:hover { border-color: var(--orange); }
.news-card > a { height: 210px; position: relative; display: block; }
.news-card > a > .media { position: absolute; inset: 0; }
.news-card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 25px; line-height: 1.05; letter-spacing: -0.02em; }
.news-card p { font-size: 15px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.article-head { border-bottom: 2px solid var(--surface-2); background-color: var(--bg); background-image: radial-gradient(700px 320px at 90% 0%, rgba(255,138,31,0.2), transparent 70%), linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.article-head .inner { max-width: 960px; margin: 0 auto; padding: 44px 24px 48px; }
.article-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 0.92; letter-spacing: -0.04em; margin: 18px 0; }
.article-head .excerpt { font-size: 21px; line-height: 1.5; color: var(--text-body); max-width: 760px; text-wrap: pretty; }
.article-head .author { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.article-cover { aspect-ratio: 21 / 9; min-height: 260px; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--border); }
.article-cover > .media { position: absolute; inset: 0; }
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.article-body { flex: 3 1 560px; min-width: 0; max-width: 760px; }
.article-body h2 { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: -0.025em; margin: 44px 0 14px; }
.article-body p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; color: var(--text-body); text-wrap: pretty; }
.article-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.article-list li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 6px; background: var(--surface); border: 2px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--text-body); }
.article-list li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 8px; background: var(--orange); }
.filed { margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--border); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.article-aside { flex: 1 1 300px; min-width: 0; position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-list a { display: block; padding: 16px 22px; border-bottom: 1px solid var(--line); color: var(--text); }
.aside-list a:hover { background: var(--surface-hover); color: var(--text); }
.aside-list time { font-family: var(--f-pixel); font-size: 10px; color: var(--orange-light); }
.aside-list strong { display: block; font-size: 16px; margin-top: 4px; line-height: 1.3; }
.aside-head { padding: 16px 22px; border-bottom: 2px solid var(--border); }
.prev-next { display: flex; flex-wrap: wrap; gap: 16px; }
.prev-next a { flex: 1 1 320px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); color: var(--text); }
.prev-next a:hover { border-color: var(--orange); color: var(--text); }
.prev-next a.next { text-align: right; }
.prev-next strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; margin-top: 8px; }

.changelog { display: grid; gap: 16px; }
.changelog > li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }
.changelog time { font-family: var(--f-pixel); font-size: 12px; color: var(--orange-light); }
.changelog h2 { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 12px; }
.changelog ul { display: grid; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.changelog ul li { display: flex; gap: 10px; }
.changelog ul li::before { content: '+'; color: var(--orange); font-weight: 800; }
@media (max-width: 600px) { .changelog > li { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------------------------------------------- rules / faq / appeal */

.rules-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.toc { flex: 1 1 220px; position: sticky; top: 96px; display: grid; gap: 4px; padding: 20px; border-radius: var(--radius-lg); border: 2px solid var(--border); }
.toc a { color: var(--text); padding: 6px 0; font-weight: 600; }
.toc a:hover { color: var(--orange-light); }
.rules-body { flex: 4 1 560px; min-width: 0; }
.rules-body h2 { font-family: var(--f-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; margin: 0 0 8px; }
.rules-body > p { margin: 0 0 24px; font-size: 16px; color: var(--text-muted); }
.rule-list { display: grid; gap: 8px; margin: 0 0 64px; }
.rule-list li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 6px; background: var(--surface); border: 2px solid var(--line); scroll-margin-top: 96px; }
.rule-list .n { width: 42px; height: 42px; border-radius: 4px; background: #241c14; color: var(--orange); display: grid; place-items: center; font-family: var(--f-pixel); font-size: 14px; }
.rule-list.blue .n { background: var(--info-bg); color: var(--info); }
.rule-list p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.rule-list.blue p { color: var(--text-body); }
.rule-list strong { color: var(--text); }
.cta-panel { padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cta-panel h2 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.cta-panel p { color: var(--text-muted); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--border); }
.faq details[open] { border-color: var(--orange); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; color: var(--text); font-size: 19px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign { flex: none; width: 32px; height: 32px; border-radius: 4px; background: #241c14; color: var(--orange); display: grid; place-items: center; font-family: var(--f-pixel); font-size: 16px; }
.faq summary .sign::before { content: '+'; }
.faq details[open] summary .sign { background: var(--orange); color: var(--ink); }
.faq details[open] summary .sign::before { content: '-'; }
.faq .answer { padding: 0 72px 24px 24px; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.appeal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: start; }
.appeal-grid .intro { margin: 0 0 32px; font-size: 18px; line-height: 1.65; color: var(--text-body); }
.mini-steps { display: grid; gap: 10px; }
.mini-steps li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 6px; background: var(--surface); border: 2px solid var(--line); color: var(--text-body); }
.mini-steps .pixel { color: var(--orange); }
.form-card { padding: 30px; display: grid; gap: 18px; }
.ticket-link { display: block; font-family: var(--f-mono); font-size: 15px; color: var(--orange-light); background: #241c14; padding: 12px 14px; border-radius: 6px; word-break: break-all; }

/* ticket thread (public) */
.thread { display: grid; gap: 14px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; }
.msg.staff, .msg.mine { align-items: flex-end; }
.msg .bubble { max-width: 80%; padding: 14px 16px; border-radius: 6px; background: var(--bg); color: var(--text); border: 2px solid var(--border); }
.msg.staff .bubble { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.msg.system .bubble { background: transparent; border-style: dashed; color: var(--text-muted); font-size: 14px; }
.msg .who { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.msg .who strong { font-size: 13.5px; }
.msg .who span { font-family: var(--f-pixel); font-size: 9px; opacity: .7; }
.msg .text { font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg img { margin-top: 10px; max-width: 320px; border-radius: 4px; border: 2px solid rgba(0,0,0,.2); }

/* -------------------------------------------------------------- auth/account */

.auth { display: flex; flex-wrap: wrap; min-height: calc(100vh - 110px); border-bottom: 2px solid var(--surface-2); }
.auth-art { flex: 1 1 480px; position: relative; min-height: 380px; overflow: hidden; border-right: 2px solid var(--surface-2); }
.auth-art > .media { position: absolute; inset: 0; }
.auth-art .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,12,11,0.96) 15%, rgba(13,12,11,0.35) 65%, rgba(13,12,11,0.15)); }
.auth-art .body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px, 4vw, 56px); }
.auth-art h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.5vw, 60px); line-height: 0.92; letter-spacing: -0.04em; margin: 0 0 24px; max-width: 520px; }
.bullets { display: grid; gap: 10px; font-size: 16px; color: #dcd5cc; }
.bullets li { display: flex; gap: 12px; align-items: center; }
.bullets li::before { content: ''; width: 10px; height: 10px; background: var(--orange); flex: none; }
.auth-form { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.auth-form .inner { width: 100%; max-width: 440px; }
.auth-form .seg { display: flex; margin-bottom: 36px; }
.auth-form .seg > * { flex: 1; }
.auth-form form { display: grid; gap: 18px; }
.auth-form h1 { font-family: var(--f-display); font-weight: 800; font-size: 44px; letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 10px; }
.auth-form .sub { font-size: 16px; color: var(--text-muted); }
.auth-form .foot { margin: 8px 0 0; padding-top: 20px; border-top: 2px solid var(--surface-2); font-size: 15px; color: var(--text-muted); }
.next-hint { margin: 4px 0 0; padding: 16px 18px; border-radius: 6px; border: 2px dashed var(--border-2); font-size: 14px; color: var(--text-muted); }

.account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 28px; }
.account-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 32px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.link-card { padding: 28px; }
.link-card.is-current { border-color: var(--orange); }
.link-card h3 { margin: 12px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.link-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.code-box { padding: 16px; border-radius: 6px; background: var(--bg); border: 2px solid var(--border-2); }
.code-box code { display: block; margin-top: 6px; font-size: 20px; color: var(--orange-light); }
.account-h { font-family: var(--f-display); font-weight: 800; font-size: 28px; margin: 48px 0 16px; }

.simple-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.simple-table th { text-align: left; padding: 12px 16px; font-family: var(--f-pixel); font-size: 11px; font-weight: 400; color: var(--text-faint); border-bottom: 2px solid var(--border); background: var(--surface-2); }
.simple-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.simple-table tr:last-child td { border-bottom: 0; }
.table-wrap { border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: auto; background: var(--surface); }

/* ------------------------------------------------------------ closing CTA */

.closing { padding: 120px 24px 110px; }
.closing-box { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--orange); color: var(--ink); box-shadow: 12px 12px 0 var(--orange-shadow); }
.closing-box .stairs-lg { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 40px); opacity: .9; pointer-events: none; }
.closing-box .stairs-lg span { height: 40px; }
.c1 { background: var(--orange-dark); } .c2 { background: var(--orange-shadow); } .c3 { background: #ffa64d; } .c4 { background: var(--orange-deep); }
.closing-box .inner { position: relative; max-width: 760px; }
.closing-box h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6.5vw, 88px); line-height: 0.9; letter-spacing: -0.045em; margin: 0 0 20px; }
.closing-box p { margin: 0 0 32px; font-size: 19px; font-weight: 500; max-width: 520px; }
.closing-box .btn-ink { padding: 17px 24px; font-size: 17px; }
.closing-box .btn-outline-ink { padding: 17px 24px; font-size: 17px; }

/* ----------------------------------------------------------------- footer */

.site-footer { border-top: 2px solid var(--surface-2); background: var(--bg-deep); overflow: hidden; }
.site-footer .wrap { padding-top: 64px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px; }
.footer-about { grid-column: span 2; max-width: 360px; }
.footer-about p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.footer-cols h2 { margin: 0 0 16px; font-family: var(--f-pixel); font-size: 12px; font-weight: 400; color: var(--orange-light); }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { font-size: 15px; color: var(--text-body); }
.footer-cols a:hover { color: var(--orange-light); }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 2px solid var(--surface-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-faint); }
.wordmark { font-family: var(--f-display); font-weight: 800; font-size: clamp(90px, 22vw, 340px); line-height: 0.75; letter-spacing: -0.06em; text-align: center; color: transparent; -webkit-text-stroke: 2px var(--border); user-select: none; margin-bottom: -0.08em; }
@media (max-width: 560px) { .footer-about { grid-column: auto; } }

.site-flash { position: relative; z-index: 5; }
.site-flash .flash { margin-top: 20px; }

/* spacing helpers used by pages */
.section-sub { margin-top: 24px; }
.section-sm-top { margin-top: 22px; }
.faq-teaser .h2 { margin-bottom: 20px; }
.section-lead { margin: 12px 0 0; }
.tiers, .paths { margin-top: 36px; }
.section-sub-sm { margin-top: 10px; }
.aside-all { display: block; padding: 14px 22px; font-size: 14px; }
.faq-q { font-size: inherit; font-weight: inherit; margin: 0; }

/* store: one-time and/or monthly price per rank */
.rank-card .price-alt { margin-top: 4px; font-size: 15px; font-weight: 700; opacity: .8; }
.rank-card .buy { display: grid; gap: 8px; }
.custom-amount { display: grid; gap: 8px; }
.custom-amount label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.rank-card.is-popular .btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }

/* store: currency picker, VAT note, checkout (summary + consents) */
.rank-card .price-vat { margin-top: 2px; font-size: 12px; opacity: .65; }
.currency-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.currency-form .select { width: auto; min-width: 220px; }
.currency-label { font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); }
.checkout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: start; }
.checkout-summary .h2-md { margin: 0; }
.checkout-lines { display: grid; gap: 12px; margin: 0; }
.checkout-lines > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 2px solid var(--border); }
.checkout-lines dt { font-family: var(--f-pixel); font-size: 11px; color: var(--text-faint); padding-top: 3px; }
.checkout-lines dd { margin: 0; font-size: 15px; line-height: 1.5; }
.checkout-total dd strong { font-family: var(--f-display); font-size: 28px; letter-spacing: -0.02em; }
.checkout-consent h3 { margin: 0; }
.checkout-consent .check { align-items: flex-start; line-height: 1.45; }
.checkout-consent .check input { margin-top: 2px; }
@media (max-width: 520px) { .checkout-lines > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.checkout-perks { display: grid; gap: 4px; }
.checkout-perks li::before { content: '+ '; font-weight: 800; }
.withdraw-card h3 { margin: 0; }
.withdraw-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.key-card .price-approx { display: block; font-size: 12px; font-weight: 500; font-family: var(--f-body); opacity: .65; }
