/* Spooky Box website. Brand: near-black, bone, phosphor green; Barlow Condensed, Barlow, IBM Plex Mono. */

@font-face { font-family: Barlow; src: url('/assets/Barlow-Regular.woff2') format('woff2'), url('/assets/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/Barlow-SemiBold.woff2') format('woff2'), url('/assets/Barlow-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Condensed; src: url('/assets/BarlowCondensed-Bold.woff2') format('woff2'), url('/assets/BarlowCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Mono; src: url('/assets/IBMPlexMono-Regular.woff2') format('woff2'), url('/assets/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --ink: #080b0a;
  --panel: #0f1410;
  --line: #29332b;
  --line-strong: #3d4a3c;
  --bone: #e9f0e8;
  --sage: #a3afa4;
  --signal: #b9ff66;
  --display: Condensed, 'Arial Narrow', sans-serif;
  --text: Barlow, Arial, sans-serif;
  --readout: Mono, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--text); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: var(--signal); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
p { margin: 18px 0; }
.wrap { width: min(1240px, 90%); margin-inline: auto; }
.mono, .eyebrow { font-family: var(--readout); }
.eyebrow { font-size: 13px; letter-spacing: .11em; color: var(--signal); margin: 0 0 22px; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--signal); color: #000; padding: 8px; z-index: 10; }
.skip:focus { top: 10px; }

h1, h2, h3, .footer-brand { font-family: var(--display); font-weight: 700; line-height: .98; margin: 0; }
h2 { font-size: clamp(44px, 5.4vw, 72px); letter-spacing: -.01em; text-transform: uppercase; }
h3 { font-size: 30px; line-height: 1.1; text-transform: uppercase; }

/* Header */
.nav { min-height: 96px; display: flex; align-items: center; gap: 36px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { object-fit: contain; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 16px; }
.nav nav a { text-decoration: none; }
.nav nav a[aria-current="page"] { color: var(--signal); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 28px; border-radius: 16px; border: 1px solid var(--signal); background: var(--signal); color: var(--ink); font: 600 18px var(--text); text-decoration: none; }
a.button:hover { background: #d0ff9d; color: var(--ink); }
.button.is-waiting { background: transparent; border-color: var(--line-strong); color: var(--bone); }
.button.is-waiting::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-block: 72px 96px; }
.h1-what { display: block; font: 600 17px/1.4 var(--text); color: var(--sage); letter-spacing: 0; margin-bottom: 22px; }
.h1-tag { display: block; font-size: clamp(68px, 8.6vw, 124px); letter-spacing: -.02em; text-transform: uppercase; }
.h1-tag .hot { color: var(--signal); }
.lead { font-size: 26px; line-height: 1.35; margin-top: 30px; }
.intro { max-width: 34em; color: var(--sage); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 32px; }
.quiet-link { font-size: 16px; }
.promises { font-size: 16px; color: var(--sage); margin-top: 22px; }

.hero-visual { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.apparition { position: absolute; inset: -12% -30%; width: 160%; height: 124%; max-width: none; object-fit: cover; opacity: .42; filter: saturate(.7); pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 62%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 62%); }
.hero-visual figcaption { position: relative; font-size: 13px; color: var(--sage); margin-top: 18px; }

/* Phone frame around real app screens */
.phone { position: relative; width: min(320px, 100%); padding: 9px; border: 1px solid var(--line-strong); border-radius: 36px; background: #0c110d; box-shadow: 0 40px 90px rgba(0, 0, 0, .65); }
.shot { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone-live { display: grid; width: min(340px, 82%); }
.phone-live .shot { grid-area: 1 / 1; }
.phone-live::after { content: ""; grid-area: 1 / 1; border-radius: 27px; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(185, 255, 102, .09) 0 1px, transparent 1px 4px); }

/* The one moment of motion: the calibrating screen gives way to a word. */
@media (prefers-reduced-motion: no-preference) {
  .phone-live .shot-after { animation: word-arrives .9s ease-out 2.1s both; }
  .phone-live::after { animation: static-clears 1.5s steps(6, end) 1.2s both; }
}
@keyframes word-arrives { from { opacity: 0; } to { opacity: 1; } }
@keyframes static-clears { 0% { opacity: 0; } 20% { opacity: 1; } 60% { opacity: .5; } 100% { opacity: 0; } }

/* Sections */
.section { padding-block: 104px; }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.section-lead { font-size: 22px; max-width: 30em; color: var(--sage); }

/* A session, start to finish */
.strip { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step .phone { max-width: 270px; padding: 7px; border-radius: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.step .shot { border-radius: 23px; }
.mark { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; }
.mark::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.time { font: 14px var(--readout); color: var(--signal); }
.step p:not(.mark) { color: var(--sage); font-size: 17px; margin: 12px 0 0; }

/* We read the reviews first: the complaint on the left, what the app does on the right */
.answers { margin: 56px 0 0; }
.answers > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px 64px; padding: 26px 0; border-top: 1px solid var(--line); }
.answers dt { font: 600 21px/1.35 var(--text); color: var(--sage); }
.answers dd { margin: 0; max-width: 36em; }
.ruled { border-top: 1px solid var(--line); }

/* How it chooses a word */
.explain { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 72px; align-items: start; }
.explain-copy p:not(.section-lead) { max-width: 34em; color: var(--sage); }
.explain-copy .section-lead { color: var(--bone); }
.reasons { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); padding: 30px 30px 14px; }
.reasons h3 { font: 600 18px/1.3 var(--text); text-transform: none; color: var(--sage); margin-bottom: 8px; }
.reasons dl { margin: 0; }
.reasons dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.reasons dl > div:first-child { border-top: 0; }
.reasons dt { font: 15px var(--readout); letter-spacing: .04em; text-transform: uppercase; }
.reasons dd { margin: 6px 0 0; color: var(--sage); font-size: 16px; }
.disclosure { grid-column: 1 / -1; margin-top: 28px; padding: 4px 0 4px 22px; border-left: 2px solid var(--signal); max-width: 46em; }
.disclosure h3 { font: 600 18px/1.3 var(--text); text-transform: none; }
.disclosure p { margin: 10px 0 0; }

/* Included and the one-time unlock */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 72px; margin-top: 56px; }
.tier { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.tier ul { margin: 18px 0 0; padding-left: 20px; color: var(--sage); }
.tier li { padding: 5px 0; }
.tier li::marker { color: var(--signal); }
.tier-note { font-size: 16px; color: var(--sage); }
.plain-facts { list-style: none; margin: 64px 0 0; padding: 30px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 36px; color: var(--sage); font-size: 17px; }
.plain-facts strong { color: var(--bone); font-weight: 600; }

/* Questions */
.faq h2 { margin-bottom: 44px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 21px; padding-right: 20px; }
details p { color: var(--sage); max-width: 46em; margin-bottom: 4px; }
.faq-more { margin: 36px 0 0; color: var(--sage); font-size: 17px; }
.faq-more a { color: var(--bone); overflow-wrap: anywhere; }
.faq-more a:hover { color: var(--signal); }

/* Closing call */
.final { border-bottom: 0; }
.final .section { padding-block: 96px; }
.final .section-lead { margin-bottom: 34px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 38px; display: grid; grid-template-columns: 1fr auto; gap: 20px 50px; }
footer p { font-size: 16px; color: var(--sage); margin: 8px 0; }
.footer-brand { font-size: 28px; text-decoration: none; }
footer > div:nth-child(2) { display: flex; gap: 28px; align-items: center; font-size: 16px; }
.fine { grid-column: 1 / -1; font-size: 13px; color: var(--sage); }

/* Privacy, support and not-found pages */
.document { max-width: 850px; padding-block: 75px 100px; }
.document h1 { font-size: clamp(56px, 7vw, 90px); }
.document h2 { font-size: 34px; line-height: 1.15; margin-top: 42px; letter-spacing: 0; text-transform: none; }
.document h3 { font-size: 26px; margin-top: 24px; text-transform: none; }
.document p, .document li { color: #b8c2b8; }
.document a { overflow-wrap: anywhere; }
.document .date { font-family: var(--readout); font-size: 13px; }
.document ul { padding-left: 22px; }
.document .button { margin-top: 16px; }
.notice { border-left: 2px solid var(--signal); padding-left: 16px; color: var(--sage); font-size: 16px; max-width: 720px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-block: 36px; }
.contact { border: 1px solid #435438; padding: 25px; }
.contact h2 { margin: 0 0 20px; }
.contact a { color: var(--signal); }
.contact p { font-size: 16px; }
.contact .button { color: var(--ink); }
.legal-status { background: #15200f; border: 1px solid #435438; padding: 22px; margin-top: 28px; }
.legal-status p { margin: 0; }

@media (max-width: 1000px) {
  .hero { gap: 24px; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 56px 36px; }
  .explain { grid-template-columns: 1fr; }
  .tiers { gap: 28px 40px; }
}

@media (max-width: 700px) {
  .nav { flex-wrap: wrap; gap: 12px; padding-block: 18px; }
  .nav nav { gap: 14px; font-size: 15px; margin-left: 0; width: 100%; justify-content: space-between; }
  .brand img:last-child { width: 145px; }
  .hero { grid-template-columns: 1fr; padding-block: 44px 64px; gap: 48px; }
  .h1-tag { font-size: clamp(60px, 17vw, 104px); }
  .lead { font-size: 24px; }
  .phone-live { width: min(300px, 76%); }
  .section { padding-block: 64px; }
  .strip { grid-template-columns: 1fr; gap: 52px; margin-top: 40px; }
  .step .phone { max-width: 240px; }
  .tiers, .plain-facts, .contact-grid { grid-template-columns: 1fr; }
  .answers > div { grid-template-columns: 1fr; padding: 22px 0; }
  .answers { margin-top: 36px; }
  .plain-facts { margin-top: 44px; }
  .reasons { padding: 24px 22px 10px; }
  footer { grid-template-columns: 1fr; }
  footer > div:nth-child(2) { flex-wrap: wrap; gap: 24px; }
  .document { padding-block: 48px 65px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
