/* ── Utilities (screen tests) — page & tool styles ─────────────────
   Builds on css/shared.css design tokens (:root). LK Forge brand family
   (Orbitron display + Outfit body), rose accent. 100% client-side. */

main { max-width: 860px; margin: 0 auto; padding: 20px; }

/* ── Tool hero (icon + title + subtitle) ───────────────────────── */
.tool-hero { max-width: 860px; margin: 0 auto; padding: 36px 20px 4px; }
.tool-hero .hero-head { display: flex; align-items: center; gap: 16px; }
.tool-hero .hero-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.tool-hero .hero-icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; }
.tool-hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(1.55rem, 4.2vw, 2.2rem); font-weight: 900; letter-spacing: -.5px; line-height: 1.2; }
.tool-hero .subtitle { color: var(--muted); font-size: 1.02rem; margin-top: 12px; max-width: 680px; }

/* ── Tool hub grid (index) ─────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: 18px; margin-top: 8px; }
.hub-card {
  display: block; text-decoration: none; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.hub-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); text-decoration: none; }
.hub-card .hub-tag { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; color: var(--accent-fg); background: var(--accent-bg); padding: 2px 9px; border-radius: 999px; }
.hub-card .hub-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.hub-card .hub-icon svg { width: 27px; height: 27px; stroke: #fff; fill: none; }
.hub-card h2 { font-family: 'Orbitron', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.hub-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.hub-card .hub-open { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--accent); }

/* ── Content sections (how-it-works / faq) ─────────────────────── */
.section { max-width: 860px; margin: 16px auto; padding: 24px 20px; }
.section > h2 { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.section > .section-sub { color: var(--muted); margin-bottom: 20px; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-fg); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.section-sub a, .step-body a { color: var(--accent); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: .98rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '\2013'; }
.faq .faq-body { padding: 0 18px 16px; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.faq .faq-body a { color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────────── */
footer.page-footer { border-top: 1px solid var(--border); padding: 24px 20px; text-align: center; font-size: .82rem; color: var(--muted); margin-top: 24px; }
footer.page-footer nav { margin-bottom: 6px; }
footer.page-footer nav a { color: var(--muted); }
footer.page-footer nav a:hover { color: var(--text); }

/* ── Screen launcher (in-page, before fullscreen) ──────────────── */
.launcher { max-width: 860px; margin: 8px auto 0; padding: 0 20px; }
.launcher-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 24px; }
.launcher-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.swatch-label { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.swatch-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.swatch { width: 60px; height: 60px; border-radius: 10px; border: 2px solid var(--border); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: transform .12s, border-color .12s; }
.swatch:hover { transform: translateY(-2px); border-color: var(--accent); }
.swatch:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 2px; }
.launch-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-launch { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: .95rem; color: #fff; background: var(--accent); border: none; border-radius: var(--radius); padding: 14px 26px; cursor: pointer; transition: background .15s, transform .1s; }
.btn-launch:hover { background: var(--accent-h); transform: translateY(-1px); }
.launch-note { font-size: .85rem; color: var(--muted); }

/* ── Fullscreen surface + controls (created by js/screen.js) ───── */
body.screen-active { overflow: hidden; }
.screen-surface { position: fixed; inset: 0; z-index: 9999; display: none; background: #fff; }
body.screen-active .screen-surface { display: block; }
.screen-hint { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 10001; font-size: .82rem; color: #fff; background: rgba(20,20,40,.62); padding: 7px 16px; border-radius: 999px; transition: opacity .5s; }
.screen-hint.hidden { opacity: 0; }
.screen-controls { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10001; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); padding: 10px 12px; border-radius: 14px; background: rgba(20,20,40,.74); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .3s; }
.screen-controls.hidden { opacity: 0; pointer-events: none; }
.sc-btn { font-family: inherit; font-size: .82rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.sc-btn:hover { background: rgba(255,255,255,.28); }
.sc-swatches { display: flex; gap: 6px; }
.sc-sw { width: 26px; height: 26px; border-radius: 6px; border: 2px solid rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.sc-sw.active { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
