/* Self-hosted display + mono fonts (faster, no third-party request) */
@font-face { font-family: 'DotGothic16'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dotgothic16-regular.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-regular.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-700.woff2') format('woff2'); }

.hero-h1 { font-size: clamp(44px, 7vw, 104px); max-width: 62%; }
@media (max-width: 900px) { .hero-h1 { max-width: 100%; } }

/* ═══════════════════════════════════════════════
   SALTY HOMEPAGE v2 — components added on top of style.css
   ═══════════════════════════════════════════════ */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--pink); color: var(--dark); padding: 10px 16px;
  font-family: 'Space Mono', monospace; font-size: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; position: relative; z-index: 2; }
.lead { font-size: 18px; line-height: 1.75; color: rgba(250,250,251,0.62); max-width: 620px; }
.lead strong { color: var(--white); font-weight: 500; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-h2 { margin-bottom: 24px; }
.section-h2 .hl { color: var(--pink); }

/* NAV */
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; margin-right: 28px; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 12px; color: var(--gray-light);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--pink); }
a.nav-cta { text-decoration: none; display: inline-block; }

/* STORE BUTTONS */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; position: relative; z-index: 3; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--white); color: var(--dark); text-decoration: none;
  padding: 11px 20px 11px 16px; border: 2px solid var(--white);
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--pink); }
.store-btn.alt { background: transparent; color: var(--white); border-color: rgba(250,250,251,0.35); }
.store-btn.alt:hover { border-color: var(--white); box-shadow: 4px 4px 0 var(--violet-mid); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn small { display: block; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 1px; opacity: .7; }
.store-btn b { display: block; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.1; }
.hero .store-row { animation: fadeUp .6s .45s ease forwards; opacity: 0; }
.hero-meta {
  margin-top: 22px; font-family: 'Space Mono', monospace; font-size: 12px; color: var(--gray-light);
  position: relative; z-index: 3; animation: fadeUp .6s .6s ease forwards; opacity: 0;
}
.hero-meta span { color: var(--pink); }
.hero-sub { max-width: 540px; }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 56px; counter-reset: step; }
.step { background: var(--dark); padding: 32px 26px; border-bottom: 3px solid var(--pink); }
.step:nth-child(2) { border-bottom-color: var(--violet-mid); }
.step:nth-child(3) { border-bottom-color: var(--pink-light); }
.step:nth-child(4) { border-bottom-color: var(--violet-light); }
.step-num { font-family: 'DotGothic16', monospace; font-size: 40px; color: var(--pink); line-height: 1; margin-bottom: 18px; }
.step:nth-child(2) .step-num { color: var(--violet-mid); }
.step:nth-child(3) .step-num { color: var(--pink-light); }
.step:nth-child(4) .step-num { color: var(--violet-light); }
.step h3 { font-family: 'DotGothic16', monospace; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.7; color: rgba(250,250,251,0.55); }
.section-cta { margin-top: 44px; }

/* THREE LAYERS */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.layer { background: var(--card); padding: 40px 32px; position: relative; }
.layer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pink); }
.layer:nth-child(2)::before { background: var(--violet-mid); }
.layer:nth-child(3)::before { background: linear-gradient(var(--pink), var(--violet-mid)); }
.layer h3 { font-family: 'DotGothic16', monospace; font-size: 26px; font-weight: 400; margin-bottom: 14px; }
.layer p { font-size: 15px; line-height: 1.7; color: rgba(250,250,251,0.6); }
.layer a { color: var(--pink); font-family: 'Space Mono', monospace; font-size: 12px; display: inline-block; margin-top: 18px; }

/* MEET THE TEAM (characters) */
.team { background: var(--dark); text-align: center; position: relative; overflow: hidden; }
.team::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(73,3,172,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(73,3,172,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.team-ghost { width: 88px; height: auto; image-rendering: pixelated; margin: 0 auto 18px; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: end; }
.char { display: flex; flex-direction: column; align-items: center; }
.char img { width: auto; height: 230px; image-rendering: pixelated; animation: floatY 5s ease-in-out infinite; }
.char:nth-child(2) img { height: 270px; animation-delay: -1.6s; }
.char:nth-child(3) img { animation-delay: -3.2s; }
.char h3 { font-family: 'DotGothic16', monospace; font-weight: 400; font-size: 28px; margin-top: 22px; }
.char .role { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--pink); margin-top: 6px; }
.char:nth-child(2) .role { color: var(--pink-light); }
.char:nth-child(3) .role { color: var(--violet-light); }
.char p { font-size: 14px; line-height: 1.65; color: rgba(250,250,251,0.55); max-width: 260px; margin-top: 10px; }

/* Character cameos in other sections */
.cameo { position: absolute; image-rendering: pixelated; pointer-events: none; z-index: 1; height: auto; }
.cameo-float { animation: floatY 6s ease-in-out infinite; }

/* FORMATS */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 56px; }
.format { background: var(--muted); padding: 30px 24px; }
.format h3 { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--white); margin-bottom: 10px; }
.format p { font-size: 14px; line-height: 1.6; color: var(--gray-light); }
.format:nth-child(odd) { border-top: 3px solid var(--pink); }
.format:nth-child(even) { border-top: 3px solid var(--violet-mid); }

/* COMPARISON TABLE */
.compare-wrap { overflow-x: auto; margin-top: 48px; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; font-size: 15px; line-height: 1.5; border-bottom: 1px solid rgba(250,250,251,0.08); }
.compare thead th { font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--gray-light); }
.compare thead th:last-child { color: var(--pink); }
.compare td:first-child { color: var(--gray-light); text-decoration: line-through; text-decoration-color: rgba(255,87,188,0.45); }
.compare td:last-child { color: var(--white); background: rgba(255,87,188,0.05); border-left: 2px solid var(--pink); }
.kicker { font-family: 'DotGothic16', monospace; font-size: clamp(20px, 2.4vw, 28px); margin-top: 40px; color: var(--violet-light); line-height: 1.35; }

/* MATCHING */
.match-reasons { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; max-width: 520px; }
.reason {
  background: var(--card); border: 1px solid rgba(255,87,188,0.25); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px; font-family: 'Space Mono', monospace; font-size: 13px; color: var(--white);
}
.reason::before { content: ''; width: 10px; height: 10px; background: var(--pink); flex-shrink: 0; }
.reason:nth-child(2) { margin-left: 28px; } .reason:nth-child(2)::before { background: var(--violet-mid); }
.reason:nth-child(3) { margin-left: 56px; } .reason:nth-child(3)::before { background: var(--pink-light); }
.fine-print { margin-top: 32px; font-size: 13px; line-height: 1.7; color: var(--gray-light); font-style: italic; max-width: 560px; }
.match-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.match-art { position: relative; display: flex; justify-content: center; }
.match-art img { height: 340px; width: auto; image-rendering: pixelated; }
.match-counter { font-family: 'DotGothic16', monospace; font-size: clamp(90px, 12vw, 160px); line-height: 1; color: var(--pink); text-shadow: 3px 3px 0 var(--violet-dark); }
.match-counter-label { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--gray-light); margin-top: 8px; }

/* PRIVATE WORLD tweaks */
.pw-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.pw-list li { background: var(--card); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; border-left: 3px solid var(--pink); font-size: 14px; }
.pw-list li span { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--pink); }
.pw-list li.more { background: var(--muted); border-left-color: transparent; justify-content: center; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--gray-light); }
.pw-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 24px; list-style: none; }
.pw-badges li { border: 1px solid rgba(255,87,188,0.3); padding: 8px 14px; font-family: 'Space Mono', monospace; font-size: 10px; color: var(--pink); letter-spacing: 1.5px; }
.pw-note { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--violet-light); margin-top: 8px; }
.text-link { color: var(--pink); font-family: 'Space Mono', monospace; font-size: 12px; }

/* RULES */
.rules { background: linear-gradient(135deg, var(--pink-dark), var(--violet)); position: relative; overflow: hidden; }
.rules .section-label { color: rgba(255,255,255,0.8); }
.rules h2 { color: var(--dark); }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px; max-width: 900px; }
.rule { background: rgba(0,0,0,0.18); padding: 32px 28px; }
.rule h3 { font-family: 'DotGothic16', monospace; font-weight: 400; font-size: 26px; color: var(--white); margin-bottom: 12px; }
.rule p { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.8); }
.rule-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; list-style: none; }
.rule-tags li { background: rgba(0,0,0,0.18); border: 1px solid rgba(0,0,0,0.2); padding: 8px 14px; font-family: 'Space Mono', monospace; font-size: 10px; color: rgba(255,255,255,0.85); letter-spacing: 1.5px; }
.rules .cameo { right: 4%; bottom: 0; height: 300px; opacity: .95; }

/* PLAY TOGETHER */
.pt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; margin-top: 56px; list-style: none; }
.pt-grid li { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--muted); border-left: 3px solid transparent; transition: border-color .2s, background .2s; }
.pt-grid li:hover { border-left-color: var(--pink); background: rgba(255,87,188,0.06); }
.pt-grid img { width: 64px; height: 64px; flex-shrink: 0; }
.pt-grid h3 { font-size: 13px; font-weight: 700; font-family: 'Space Mono', monospace; }
.pt-grid p { font-size: 12px; color: var(--gray-light); margin-top: 3px; }
.pt-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.pt-head img { height: 250px; width: auto; image-rendering: pixelated; }

/* SHARED WORLD */
.world3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.world3 > div { background: var(--card); padding: 40px 32px; border-top: 3px solid var(--pink); }
.world3 > div:nth-child(2) { border-top-color: var(--violet-mid); }
.world3 > div:nth-child(3) { border-top-color: var(--violet-light); }
.world3 img { height: 72px; width: auto; margin-bottom: 20px; image-rendering: pixelated; }
.world3 h3 { font-family: 'DotGothic16', monospace; font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.world3 p { font-size: 14px; line-height: 1.7; color: rgba(250,250,251,0.55); }

/* BUSINESS MODEL */
.model { background: var(--card); }
.model .section-h2 { max-width: 820px; }

/* SEE IT WORK */
.seeit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.seeit > div { background: var(--card); padding: 36px 30px; }
.seeit h3 { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--pink); margin-bottom: 12px; }
.seeit > div:nth-child(2) h3 { color: var(--violet-light); }
.seeit > div:nth-child(3) h3 { color: var(--pink-light); }
.seeit p { font-size: 15px; line-height: 1.7; color: rgba(250,250,251,0.6); }

/* DISASTER QUIZ (replaces the old popup) */
.disaster { background: var(--dark); padding-top: 0; }
.disaster-card {
  max-width: 980px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border: 2px solid var(--pink); padding: 56px 48px;
  box-shadow: 8px 8px 0 var(--violet-mid);
}
.disaster-card h2 { font-family: 'DotGothic16', monospace; font-weight: 400; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; margin: 14px 0 16px; }
.disaster-card p { font-size: 16px; line-height: 1.7; color: var(--gray-light); }
.disaster-eyebrow { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--pink); }
.quiz-btn {
  display: inline-block; margin-top: 28px; background: var(--pink); color: var(--dark);
  font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  padding: 16px 28px; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.quiz-btn:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--violet-mid); }
.disaster-art { display: flex; justify-content: center; }
.disaster-art img { height: 200px; width: auto; image-rendering: pixelated; transform: rotate(-4deg); }

/* FAQ */
.faq { background: var(--card); }
.faq-list { max-width: 820px; margin: 48px auto 0; }
.faq-list details { border-bottom: 1px solid rgba(250,250,251,0.1); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: 'Space Mono', monospace; font-size: 15px; font-weight: 700; color: var(--white);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-family: 'DotGothic16', monospace; font-size: 26px; color: var(--pink); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 24px; font-size: 15px; line-height: 1.75; color: rgba(250,250,251,0.65); max-width: 700px; }

/* FINAL CTA */
.final-cta .store-row { justify-content: center; }
.final-cta p.final-sub { margin-bottom: 0; }
.qr-box { display: none; margin: 36px auto 0; width: max-content; text-align: center; }
.qr-box img { width: 132px; height: 132px; background: #fff; padding: 8px; display: block; margin: 0 auto; }
.qr-box figcaption { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--gray-light); margin-top: 12px; }
@media (min-width: 1024px) and (hover: hover) { .qr-box { display: block; } }

/* FOOTER */
.footer-copy a { display: inline-block; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .steps, .formats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .layers, .team-grid, .world3, .seeit, .rules-grid, .pt-grid { grid-template-columns: 1fr; }
  .match-grid, .disaster-card, .pt-head { grid-template-columns: 1fr; }
  .team-grid { gap: 56px; }
  .pt-head img, .match-art { display: none; }
  .disaster-card { padding: 40px 26px; box-shadow: 5px 5px 0 var(--violet-mid); }
  .disaster-art img { height: 180px; }
  .rules .cameo { display: none; }
}
@media (max-width: 560px) {
  .steps, .formats { grid-template-columns: 1fr; }
  .reason:nth-child(2), .reason:nth-child(3) { margin-left: 0; }
  .store-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (hover: none) { body { cursor: auto; } .cursor, .cursor-ring { display: none; } }

/* team alignment fixes */
.team .lead { margin-left: auto; margin-right: auto; }
.team-grid { align-items: start; }
.char { display: grid; grid-template-rows: 290px auto auto auto; justify-items: center; }
.char img { align-self: end; }
.final-cta p.section-label { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--pink); letter-spacing: 4px; max-width: none; margin-bottom: 20px; }
.final-cta p.final-disclaimer { font-size: 12px; color: var(--gray-light); margin-top: 28px; margin-bottom: 0; max-width: none; font-family: 'Space Mono', monospace; }
@media (max-width: 720px) { .hero .pixel-deco { display: none; } }
