/* === Spell4Fun redesign — styles === */

:root {
  --paper: #F4EEE0;
  --paper-2: #EBE3D0;
  --ink: #16140F;
  --ink-2: #3A352B;
  --ink-mute: #6B6354;
  --coral: #FF5A36;
  --coral-deep: #E1431F;
  --mint: #5BBF9A;
  --mint-deep: #2E8C6B;
  --sun: #FFC93C;
  --sky: #BFE2F2;
  --line: #2A2520;
  --hairline: rgba(22, 20, 15, 0.12);
  --shadow-card: 0 1px 0 var(--ink), 0 6px 0 var(--ink);
  --shadow-soft: 0 24px 50px -28px rgba(22,20,15,0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

#root {
  position: relative;
}

/* ============ Type utilities ============ */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-variation-settings: "wdth" 100, "opsz" 96;
}

.display-condensed {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variation-settings: "wdth" 75, "opsz" 96;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-mute);
}

.mono { font-family: var(--mono); }

/* Italic condensed (wdth 75) accent words inherit the headings' negative
   letter-spacing and end up squished — give them positive tracking so the
   coral/sun emphasis words have room to breathe. */
h1 em, h2 em, h3 em, .word--accent { letter-spacing: 0.02em; }

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 4px 0 var(--ink);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-ghost { box-shadow: none; background: transparent; }
.btn-ghost:hover { background: rgba(22,20,15,0.06); box-shadow: none; transform: none; }

.btn-store {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  padding: 12px 20px;
  align-items: center;
  gap: 12px;
}
.btn-store:hover { background: #000; }
.btn-store .label { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.btn-store .label .small { font-size: 10px; font-weight: 500; opacity: 0.7; letter-spacing: 0.08em; text-transform: uppercase; }
.btn-store .label .big { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

/* Real App Store / Google Play badges */
.app-badge {
  display: inline-block;
  height: 54px;
  transition: transform 140ms ease, filter 140ms ease;
  border-radius: 10px;
}
.app-badge img {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 10px;
}
.app-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 4px 0 rgba(22,20,15,0.25)); }
.app-badge:active { transform: translateY(1px); }
.app-badge--lg { height: 64px; }

/* ============ Nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo--lg img { height: 56px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.nav-link:hover { background: rgba(22,20,15,0.06); }
.nav-dropdown { position: relative; }
/* Transparent bridge over the gap so the panel doesn't close while the
   cursor travels from the trigger down to the menu. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-dropdown-panel a:hover { background: var(--paper-2); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============ Layout ============ */

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 36px;
  position: relative;
}
.section--tight { padding-top: 40px; padding-bottom: 40px; }
.section--hero { padding-top: 48px; padding-bottom: 80px; }

/* ============ Hero ============ */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-eyebrow .pip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint);
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  border: 2px solid var(--ink);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 7.6vw, 124px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 24px 0 16px;
  font-variation-settings: "wdth" 95, "opsz" 96;
}
.hero h1 .word {
  display: inline-block;
}
.hero h1 .word--accent {
  color: var(--coral);
  font-style: italic;
  font-variation-settings: "wdth" 75, "opsz" 96;
  position: relative;
  padding: 0 0.08em;
}
.hero-sub {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 0 36px;
  font-weight: 400;
}
.hero-sub .tag {
  display: inline-block;
  padding: 0 6px;
  margin: 0 2px;
  border-radius: 6px;
  font-weight: 600;
  background: var(--sun);
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-deep);
  display: inline-block;
}
.hero-stars { color: var(--coral); letter-spacing: -2px; font-size: 16px; }

/* Decorative shapes */
.deco-blob {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.deco-burst {
  position: absolute;
  width: 140px; height: 140px;
  background: var(--sun);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  pointer-events: none;
}

/* ============ Phone / Demo ============ */

.phone {
  width: 340px;
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 2px var(--ink),
    var(--shadow-soft),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 5;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  z-index: 6;
  color: var(--ink);
}
.phone-status .dots { display: flex; gap: 3px; align-items: center; }
.phone-status .dots .b { width: 3px; height: 8px; background: var(--ink); border-radius: 1px; }
.phone-status .dots .b:nth-child(2) { height: 10px; }
.phone-status .dots .b:nth-child(3) { height: 12px; }
.phone-status .dots .b:nth-child(4) { height: 14px; }

/* Demo screen */
.demo-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 22px 22px;
  background: linear-gradient(180deg, var(--paper) 0%, #FBF6E9 100%);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.demo-header .title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.demo-header .progress {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.demo-progressbar {
  height: 6px;
  background: var(--paper-2);
  border-radius: 99px;
  margin-bottom: 28px;
  overflow: hidden;
}
.demo-progressbar .fill {
  height: 100%;
  background: var(--mint);
  border-radius: 99px;
  transition: width 320ms ease;
}

.demo-speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.demo-speaker-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: transform 120ms;
}
.demo-speaker-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.demo-speaker-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.demo-speaker-btn.playing::before,
.demo-speaker-btn.playing::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  opacity: 0;
  animation: ripple 1.4s ease-out infinite;
}
.demo-speaker-btn.playing::after { animation-delay: 0.7s; }
@keyframes ripple {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.demo-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 14px;
}

.demo-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.demo-input {
  width: 100%;
  padding: 18px 18px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  caret-color: var(--coral);
  outline: none;
  text-transform: lowercase;
}
.demo-input.correct {
  background: color-mix(in oklab, var(--mint) 18%, #fff);
  border-color: var(--mint-deep);
  color: var(--mint-deep);
  box-shadow: 0 3px 0 var(--mint-deep);
}
.demo-input.wrong {
  background: color-mix(in oklab, var(--coral) 12%, #fff);
  border-color: var(--coral-deep);
  color: var(--coral-deep);
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.demo-keys {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-top: auto;
}
.demo-key {
  aspect-ratio: 0.85;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: 0 1.5px 0 var(--ink);
}
.demo-key.lit {
  background: var(--coral);
  color: #fff;
}

.demo-footer-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.demo-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-pill .check {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--mint); color: #fff;
  display: grid; place-items: center;
  font-size: 9px;
}

/* ============ Marquee ============ */

.marquee {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0;
  margin: 60px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  gap: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-star { color: var(--coral); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Steps ============ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.step-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 6px 0 var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.step-card .num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--ink-mute);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}
.step-card .step-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 14px;
}
.step-card .step-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 38ch;
}
.step-card.tone-coral { background: color-mix(in oklab, var(--coral) 10%, var(--paper)); }
.step-card.tone-mint { background: color-mix(in oklab, var(--mint) 12%, var(--paper)); }
.step-card.tone-sun { background: color-mix(in oklab, var(--sun) 16%, var(--paper)); }

/* Giant outlined numeral pinned to the bottom-right of each step card */
.step-big {
  position: absolute;
  right: 24px;
  bottom: -32px;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 220px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variation-settings: "wdth" 75, "opsz" 96;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

/* Mini phone preview inside step card */
.mini-screen {
  margin-top: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

/* Step 1 — Enter (list builder) */
.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1.5px 0 var(--ink);
}
.list-row .idx {
  width: 18px; height: 18px;
  background: var(--paper-2);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px;
  color: var(--ink-mute);
}
.list-row .word { flex: 1; }
.list-row .x { color: var(--ink-mute); cursor: pointer; }
.list-row.adding {
  border-style: dashed;
  color: var(--ink-mute);
}
.list-row.adding .blink {
  width: 1px; height: 12px;
  background: var(--coral);
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Step 2 — Practice (typing preview) */
.practice-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.practice-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
}
.practice-orb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  opacity: 0.4;
  animation: ripple 1.6s ease-out infinite;
}
.practice-typed {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  min-width: 140px;
  text-align: center;
  box-shadow: 0 2px 0 var(--ink);
}
.practice-typed .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--coral);
  vertical-align: -0.05em;
  margin-left: 2px;
  animation: blink 1s infinite;
}

/* Step 3 — Results */
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.result-stat {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1.5px 0 var(--ink);
}
.result-stat .label {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.result-stat .value {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.result-bar {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  align-items: flex-end;
  height: 50px;
}
.result-bar .bar {
  flex: 1;
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 3px 3px 0 0;
}

/* ============ Testimonials ============ */

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.t-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: 0 6px 0 var(--ink);
}
.t-card.tone-mint { background: color-mix(in oklab, var(--mint) 16%, var(--paper)); }
.t-card.tone-sun { background: color-mix(in oklab, var(--sun) 22%, var(--paper)); }
.t-card.tone-sky { background: color-mix(in oklab, var(--sky) 50%, var(--paper)); }
.t-quote {
  font-family: var(--display);
  font-size: 130px;
  line-height: 0.7;
  color: var(--ink);
  font-weight: 800;
  margin: -8px 0 0;
  height: 36px;
  font-variation-settings: "wdth" 100;
}
.t-body {
  font-size: 17px;
  line-height: 1.45;
  margin: 14px 0 20px;
  color: var(--ink);
}
.t-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.t-meta .name {
  font-weight: 700;
  font-size: 14px;
}
.t-meta .role {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.t-stars { color: var(--coral); font-size: 14px; letter-spacing: -2px; margin-bottom: 8px; display: block; }

/* ============ Story (Why) ============ */

.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 36px;
  padding: 72px;
  position: relative;
  overflow: hidden;
}
.story h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 12px 0 0;
}
.story h2 em {
  color: var(--sun);
  font-style: italic;
  font-variation-settings: "wdth" 75;
}
.story .eyebrow { color: rgba(244,238,224,0.6); }
.story-body {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(244,238,224,0.85);
  max-width: 52ch;
}
.story-sig {
  margin-top: 24px;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-variation-settings: "wdth" 75;
  color: var(--sun);
}

/* ============ FAQ ============ */

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.faq-side h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 14px 0 16px;
}
.faq-side p { color: var(--ink-mute); font-size: 17px; max-width: 30ch; }
.faq-list {
  border-top: 2px solid var(--ink);
}
.faq-item {
  border-bottom: 2px solid var(--ink);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.1;
}
.faq-q:hover { color: var(--coral); }
.faq-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 140ms, transform 200ms;
  position: relative;
}
.faq-item.open .faq-toggle {
  background: var(--coral);
  color: #fff;
  transform: rotate(45deg);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq-toggle::before { width: 14px; height: 2px; }
.faq-toggle::after { width: 2px; height: 14px; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.55;
  padding: 0 60px 0 0;
}
.faq-item.open .faq-a {
  max-height: 240px;
  padding-bottom: 28px;
}

/* ============ CTA Final ============ */

.final-cta {
  text-align: center;
  background: var(--coral);
  border-radius: 36px;
  padding: 96px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: 0 10px 0 var(--ink);
}
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 120px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 0 0 24px;
}
.final-cta h2 em {
  font-style: italic;
  color: var(--sun);
  font-variation-settings: "wdth" 75;
}
.final-cta p { font-size: 22px; max-width: 600px; margin: 0 auto 36px; color: rgba(255,255,255,0.9); }
.final-cta .hero-actions { justify-content: center; }
.final-cta .btn-store { background: var(--ink); border-color: var(--ink); }

/* ============ Footer ============ */

footer {
  border-top: 2px solid var(--ink);
  margin-top: 80px;
  padding: 48px 36px 36px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
}
.footer-col a:hover { color: var(--coral); }
.footer-bot {
  max-width: 1280px;
  margin: 56px auto 0;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
  font-family: var(--mono);
}

/* ============ Section header ============ */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 14px 0 0;
  max-width: 14ch;
}
.section-head h2 em {
  font-style: italic;
  color: var(--coral);
  font-variation-settings: "wdth" 75;
}
.section-head .lede {
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 18px;
  padding-bottom: 12px;
}

/* Sticker tag */
.sticker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transform: rotate(-2deg);
}
.sticker.coral { background: var(--coral); color: #fff; }
.sticker.mint { background: var(--mint); color: var(--ink); }
.sticker.sun { background: var(--sun); color: var(--ink); }

/* ============ Screenshots gallery ============ */
.shots-wrap {
  margin-top: 56px;
  position: relative;
}
.shots-strip {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 24px 36px 40px;
  margin: 0 -36px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots-strip::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 320px;
  scroll-snap-align: center;
  border: 2px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  background: var(--paper-2);
  transition: transform 220ms ease;
  cursor: grab;
}
.shot:active { cursor: grabbing; }
.shot:nth-child(odd) { transform: rotate(-1.5deg); }
.shot:nth-child(even) { transform: rotate(1.5deg); }
.shot:hover { transform: rotate(0) translateY(-4px); }
.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shots-nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.shots-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  transition: transform 120ms, box-shadow 120ms;
}
.shots-nav button:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.shots-nav button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.shots-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-phone-wrap { display: flex; justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; padding: 48px 32px; gap: 28px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .section { padding: 56px 24px; }
  /* Match the strip's edge-bleed to the 24px mobile section padding so it
     doesn't poke past the screen edges and cause horizontal scroll. */
  .shots-strip { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }

  /* Stack the two-column section heads/rows so the title and supporting text
     aren't squished side-by-side on narrow screens. */
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head .lede { padding-bottom: 0; }
  .shots-head-row { align-items: center; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bot { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Palette themes (Tweaks) */
body.theme-citrus {
  --coral: #FF8A1E;
  --coral-deep: #D86600;
  --mint: #94C661;
  --mint-deep: #6B9F3D;
  --sun: #FFD23F;
}
body.theme-orchid {
  --coral: #E85D9F;
  --coral-deep: #C13D7C;
  --mint: #8FB8E8;
  --mint-deep: #4A7FBA;
  --sun: #F6D87A;
  --paper: #F5EFE5;
  --paper-2: #ECE0D0;
}
body.theme-forest {
  --coral: #E55A2B;
  --coral-deep: #B83F15;
  --mint: #C9D86A;
  --mint-deep: #7A8A28;
  --sun: #F5C842;
  --paper: #EEE7D2;
  --paper-2: #E4DCC0;
}

/* Hero phone wrap */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 600px;
}
.hero-phone-wrap .deco-burst {
  top: -10px;
  right: 0;
  transform: rotate(15deg);
  z-index: 1;
}
.hero-phone-wrap .deco-arrow {
  position: absolute;
  top: 40px;
  left: -10px;
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "wdth" 75;
  transform: rotate(-6deg);
  z-index: 5;
  line-height: 1.2;
  max-width: 140px;
}

/* Hero screenshots stack */
.hero-shots {
  position: relative;
  width: 100%;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-shot {
  position: absolute;
  width: 320px;
  border-radius: 36px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 500ms ease,
              filter 500ms ease,
              z-index 0s;
  filter: drop-shadow(0 12px 0 var(--ink)) drop-shadow(0 20px 40px rgba(22,20,15,0.25));
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 36px;
}
.hero-shot--0 {
  transform: translate(0, 0) rotate(-2deg) scale(1.02);
  z-index: 3;
  opacity: 1;
}
.hero-shot--1 {
  transform: translate(85px, 30px) rotate(7deg) scale(0.88);
  z-index: 2;
  opacity: 0.78;
  filter: drop-shadow(0 6px 0 var(--ink)) blur(0.2px);
}
.hero-shot--2 {
  transform: translate(-90px, 26px) rotate(-9deg) scale(0.86);
  z-index: 1;
  opacity: 0.65;
  filter: drop-shadow(0 6px 0 var(--ink)) blur(0.2px);
}
.hero-shot:hover.hero-shot--0 { transform: translate(0, -6px) rotate(-2deg) scale(1.03); }

.hero-shots-dots {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-shots-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  transition: background 160ms, transform 160ms;
}
.hero-shots-dots .dot.active {
  background: var(--coral);
  transform: scale(1.3);
}

/* Hide the hero screenshot showcase on phones. Placed at end-of-file so it
   wins the cascade over the base ".hero-phone-wrap { display: flex }" rule
   above (equal specificity → later source order wins). */
@media (max-width: 600px) {
  .hero-phone-wrap { display: none; }

  /* Tighten the scrolling marquee on phones: trim the vertical whitespace,
     pull the words closer together so more show, and quicken the scroll. */
  .marquee { margin: 24px 0; padding: 12px 0; }
  .marquee-track { font-size: 24px; gap: 20px; animation-duration: 20s; }
  .marquee-track span { gap: 20px; }

  /* Trim oversized desktop spacing so sections aren't drowning in whitespace. */
  .section { padding: 40px 24px; }
  .section--hero { padding-top: 28px; padding-bottom: 28px; }
  .story { padding: 36px 24px; }
  .final-cta { padding: 56px 24px; }
  .final-cta h2 { margin-bottom: 16px; }
  .final-cta p { font-size: 18px; margin-bottom: 28px; }
  .faq-a { padding-right: 0; }
  .footer-inner { gap: 28px; }
}
