/* Small Epics site styles. No build step: edit and push. */

@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/pixelify-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }

:root {
  --ground: #12163A;
  --band: #161B48;
  --surface: #1C2150;
  --deep: #0A0C24;
  --shadow: #05061A;
  --line: #2E3470;
  --chip: #3A4185;
  --text: #F4F1FF;
  --muted: #B8BCE6;
  --faint: #9AA0D4;
  --accent: #FFB347;
  --accent-strong: #FFC46E;
  --ink: #12163A;
  --pixel: 'Pixelify Sans', ui-monospace, 'SFMono-Regular', monospace;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; font-variant-ligatures: no-common-ligatures; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--accent); color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 16px; color: var(--ink); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band { background: var(--band); border-block: 3px solid var(--line); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 28px; height: 28px; fill: var(--accent); }
.brand__name { font-family: var(--pixel); font-weight: 700; font-size: 26px; letter-spacing: 0.5px; line-height: 1; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.nav__link:hover { color: var(--accent); }
@media (max-width: 720px) { .nav__link { display: none; } }
.brand__name, .btn--small { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .brand { gap: 8px; }
  .brand__mark { width: 24px; height: 24px; }
  .brand__name { font-size: 20px; }
  .btn--small { padding-inline: 12px; font-size: 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: 3px solid var(--deep); border-radius: 12px; font-family: var(--body); font-weight: 800; font-size: 18px; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: 5px 5px 0 var(--deep); }
.btn--primary:hover { background: var(--accent-strong); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--ink); }
.btn--dark { background: var(--ground); color: var(--text); box-shadow: 5px 5px 0 var(--deep); }
.btn--dark:hover { background: var(--deep); color: var(--text); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 16px; border-radius: 10px; box-shadow: 4px 4px 0 var(--deep); }
.btn--block { display: flex; width: 100%; }
.btn--primary:active, .btn--dark:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--deep); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.cta-row--center { justify-content: center; }

/* Type */
.eyebrow { font-family: var(--pixel); font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.section__title { margin-top: 10px; font-family: var(--pixel); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; max-width: 20em; text-wrap: balance; }
.section__lede { margin-top: 16px; color: var(--muted); max-width: 36em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px); }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero__title { margin-top: 16px; font-family: var(--pixel); font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.05; text-wrap: balance; }
.hero__lede { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 15.5px; color: var(--muted); }
.hero__meta li { display: inline-flex; align-items: center; gap: 9px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); }

/* Device and pixel scene */
.device { position: relative; background: var(--deep); border: 2px solid var(--line); border-radius: 32px; padding: 14px 22px; box-shadow: 8px 8px 0 var(--shadow); }
.device__camera { position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line); }
.screen { position: relative; container-type: inline-size; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: #171B45; }
.screen__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.dialog { position: absolute; left: 3%; right: 3%; bottom: 4%; background: rgba(18, 22, 58, 0.95); border: 3px solid var(--text); border-radius: 6px; padding: 2.2cqw 3cqw 2.6cqw; font-family: var(--pixel); font-size: clamp(10px, 3.4cqw, 20px); line-height: 1.35; color: var(--text); }
.dialog__name { display: block; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.dialog__line { display: block; }
.dialog__next { position: absolute; right: 2.4cqw; bottom: 1.6cqw; width: 0; height: 0; border-left: 1.2cqw solid transparent; border-right: 1.2cqw solid transparent; border-top: 1.4cqw solid var(--text); animation: nudge 1s steps(1) infinite; }
@keyframes nudge { 50% { transform: translateY(0.6cqw); } }
.twinkle { animation: twinkle 3s steps(1) infinite; }
@keyframes twinkle { 50% { opacity: 0.4; } }

/* Likeness card */
.likeness { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; max-width: 380px; margin: -28px 8px 0 auto; background: var(--surface); border: 3px solid var(--line); border-radius: 12px; box-shadow: 6px 6px 0 var(--shadow); padding: 14px 18px; }
.likeness__photo { width: 58px; height: 72px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #2A2F66; border: 2px dashed #6A70B8; border-radius: 6px; color: var(--muted); font-size: 12px; line-height: 1.1; text-align: center; }
.likeness__photo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.likeness__arrow { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.likeness__sprite { width: 40px; height: 68px; flex: none; }
.likeness__text { flex: 1 1 150px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.likeness__text strong { color: var(--text); }
@media (max-width: 600px) { .likeness { margin: -10px 12px 0; max-width: none; } }

/* Occasions */
.occasions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; padding-block: 20px; }
.occasions__label { font-family: var(--pixel); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 6px 14px; border: 2px solid var(--chip); border-radius: 999px; font-weight: 700; font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--surface); border: 3px solid var(--line); border-radius: 12px; box-shadow: 6px 6px 0 var(--deep); padding: 28px 24px; }
.step__num { display: block; font-family: var(--body); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.card h3 { margin: 16px 0 8px; font-size: 21px; line-height: 1.3; font-weight: 800; }
.card p { color: var(--muted); font-size: 16.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px 40px; margin-top: 44px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border: 3px solid var(--accent); border-radius: 10px; color: var(--accent); }
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 6px; font-size: 20px; line-height: 1.3; font-weight: 800; }
.feature p { color: var(--muted); font-size: 16.5px; }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.demo__text { margin-top: 20px; color: var(--muted); max-width: 30em; }
.title-screen { position: relative; overflow: hidden; aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: var(--deep); border: 3px solid var(--line); border-radius: 14px; box-shadow: 8px 8px 0 var(--shadow); }
.title-screen__sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.title-screen p { position: relative; font-family: var(--pixel); text-transform: uppercase; }
.title-screen__kicker { font-weight: 600; font-size: 14px; letter-spacing: 3px; color: var(--muted); }
.title-screen__title { margin-top: 8px; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: #FFE066; text-shadow: 4px 4px 0 #6A3F86; }
.title-screen__start { margin-top: 28px; font-size: 16px; letter-spacing: 3px; color: var(--text); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; margin-top: 48px; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 3px solid var(--line); border-radius: 14px; box-shadow: 6px 6px 0 var(--deep); padding: 32px 28px; }
.tier--featured { border-color: var(--accent); }
.tier__badge { position: absolute; top: -17px; left: 24px; padding: 6px 12px; background: var(--accent); color: var(--ink); border: 3px solid var(--deep); border-radius: 8px; font-family: var(--pixel); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; line-height: 1.2; text-transform: uppercase; }
.tier__name { font-family: var(--pixel); font-weight: 700; font-size: 28px; line-height: 1.2; }
.tier__tag { margin-top: 6px; color: var(--muted); font-size: 16.5px; }
.tier__price { margin-top: 20px; font-family: var(--body); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.5px; color: var(--accent); }
.tier__from { font-size: 22px; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.tier__foot { margin-top: auto; padding-top: 28px; }
.tier__foot p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tier__foot strong { color: var(--text); }
.tier__foot .btn { margin-top: 18px; padding-inline: 20px; font-size: 17px; }
.checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-size: 16.5px; line-height: 1.5; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EE7B7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") no-repeat center / contain; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px; margin-top: 48px; }
.panel { background: var(--ground); border: 3px solid var(--line); border-radius: 14px; padding: 28px; }
.panel__title { font-family: var(--pixel); font-weight: 700; font-size: 22px; line-height: 1.2; }
.panel .checklist { margin-top: 18px; }
.addons { margin-top: 10px; font-size: 16.5px; line-height: 1.5; }
.addons li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 2px dashed var(--line); }
.addons li:last-child { border-bottom: 0; }
.addons__price { flex: none; font-weight: 800; color: var(--accent); }
.addons__note { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }

/* Holiday banner */
.holiday-wrap { padding-top: clamp(56px, 7vw, 88px); }
.holiday { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px clamp(20px, 4vw, 40px); background: var(--accent); color: var(--ink); border: 3px solid var(--deep); border-radius: 16px; box-shadow: 8px 8px 0 var(--deep); }
.holiday__copy { flex: 1 1 480px; min-width: 0; }
.holiday__kicker { font-family: var(--pixel); font-weight: 700; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.holiday__title { margin-top: 6px; font-family: var(--pixel); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; }
.holiday__text { margin-top: 10px; font-size: 17px; font-weight: 600; line-height: 1.5; }

/* Maker note */
.maker { max-width: 920px; }
.speech { position: relative; margin-top: 36px; padding: 40px clamp(20px, 4vw, 40px) 32px; background: var(--deep); border: 4px solid var(--text); border-radius: 10px; box-shadow: 8px 8px 0 var(--shadow); font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.7; }
.speech p + p { margin-top: 16px; }
.speech__name { position: absolute; top: -21px; left: 24px; padding: 2px 14px; background: var(--ground); border: 4px solid var(--text); border-radius: 8px; font-family: var(--pixel); font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); column-gap: 48px; margin-top: 36px; }
.faq__item { padding-block: 24px; border-top: 2px solid var(--line); }
.faq__item h3 { font-size: 20px; line-height: 1.35; font-weight: 800; }
.faq__item p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }

/* Closing call to action */
.final { text-align: center; }
.final__title { max-width: 16em; margin-inline: auto; font-family: var(--pixel); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; text-wrap: balance; }
.final__text { max-width: 32em; margin: 18px auto 0; color: var(--muted); }
.final__etsy { margin-top: 24px; font-size: 16px; color: var(--muted); }
.final__etsy a { font-weight: 700; }
.final__etsy + .final__etsy { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--deep); border-top: 3px solid var(--line); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 40px 24px; }
.site-footer__brand { flex: 1 1 320px; min-width: 0; }
.site-footer__brand .brand__mark { width: 24px; height: 24px; }
.site-footer__brand .brand__name { font-size: 22px; }
.site-footer__brand p { max-width: 30em; margin-top: 12px; color: var(--muted); font-size: 15px; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 24px; font-size: 15px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 700; text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal { padding-bottom: 40px; font-size: 14px; line-height: 1.5; color: var(--faint); }

/* Story questionnaire page */
.story { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(16px, 4vw, 48px) var(--section); }
.story__title { margin-top: 10px; font-family: var(--pixel); font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; text-wrap: balance; }
.story__lede { margin-top: 16px; color: var(--muted); max-width: 36em; }
.story__form { margin-top: 36px; }
/* Tally pads its form by 8px inside the frame; pull the frame out so the questions line up with the heading. */
.story__form iframe { display: block; width: calc(100% + 16px); margin-inline: -8px; border: 0; }
.story__help { margin-top: 32px; padding-top: 20px; border-top: 2px solid var(--line); font-size: 16px; color: var(--muted); }
.story__help a { font-weight: 700; }

/* 404 page */
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding-block: 64px; text-align: center; }
.lost__title { font-family: var(--pixel); font-weight: 700; font-size: clamp(3rem, 10vw, 6rem); line-height: 1; color: #FFE066; text-shadow: 5px 5px 0 #6A3F86; }
.lost__text { max-width: 28em; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .dialog__next, .twinkle, .title-screen__start { animation: none; }
}
