/* Sparks — landing page. Dark Magic Studio. */

:root {
  --bg: #0d0b0e;
  --velvet: #151218;
  --card: #1e1922;
  --card-hi: #28222e;
  --border: rgba(236, 200, 128, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --ruby: #d93856;
  --crimson: #c7243a;
  --gold: #ecc880;
  --ink: #faf7f2;
  --ink-soft: #c8bfce;
  --ink-muted: #8c7f95;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --maxw: 1120px;

  --serif: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 99; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }

.btn-play {
  background: linear-gradient(135deg, var(--ruby), var(--crimson));
  color: #fff;
  box-shadow: 0 18px 40px -22px var(--ruby);
}

.btn-quiet {
  border-color: var(--border-soft);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg { min-height: 60px; font-size: 17.5px; padding: 0 34px; }

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 11, 14, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-in { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 20px; letter-spacing: 0.01em; }
/* The app's own mark, not a redrawn one: a visitor who arrives here and then opens the game
   should see the same thing in both places. */
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  object-fit: contain;
}

.nav-links { display: flex; gap: 4px; margin-left: 14px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-sp { flex: 1; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 460px at 78% -12%, rgba(217, 56, 86, 0.22), transparent 62%),
    radial-gradient(620px 420px at 4% 8%, rgba(236, 200, 128, 0.08), transparent 60%),
    var(--bg);
}
.hero-in { max-width: 780px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(236, 200, 128, 0.06);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

h1 { font-size: clamp(42px, 7vw, 76px); }
.hero-sub { margin-top: 18px; font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-soft); font-family: var(--serif); }
.hero-body { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 620px; }
.hero-cta { margin-top: 34px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--ink-muted); }

/* ---------------- Sections ---------------- */

.section { padding: 88px 0; }
.section-alt { background: var(--velvet); border-block: 1px solid var(--border-soft); }

.head { max-width: 660px; margin-bottom: 48px; }
.head-c { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ruby); margin-bottom: 14px; }
h2 { font-size: clamp(30px, 4vw, 44px); }
.lede { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

/* ---------------- Modes ---------------- */

/* Flex, not a fixed grid: there are seven modes and three columns, so the last row holds one
   card. A grid leaves it stranded at the left; flex centres it. Adding or dropping a mode
   never has to divide evenly again. */
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.mode { flex: 0 1 calc((100% - 36px) / 3); }
.mode {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--card), var(--velvet));
  padding: 28px 26px;
  transition: transform 180ms ease, border-color 180ms ease;
}

/*
 * The drawing off the right edge of a card, lifted from the app's home screen -- two faces
 * almost touching for the couples deck, a hand on your own shoulder for solo, a blindfolded
 * head for BDSM.
 *
 * Faint, and masked into the card on two sides, for the same reason it is faint in the app:
 * it is there to give the card a mood at a glance, and anything stronger starts competing
 * with the words that have to be read. Its colour is baked into the file, so there is no tint
 * to set here.
 */
.has-art { padding-right: 104px; }

.tile-art {
  position: absolute;
  right: -18px;
  bottom: -20px;
  width: 152px;
  height: 152px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.42;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(95deg, transparent 18%, #000 64%),
    linear-gradient(180deg, #000 48%, transparent 96%);
  mask-image: linear-gradient(95deg, transparent 18%, #000 64%),
    linear-gradient(180deg, #000 48%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.mode h3, .mode p, .mode .tag, .mode-ic { position: relative; }
.mode:hover { transform: translateY(-3px); border-color: var(--border); }
.mode-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(217, 56, 86, 0.14); color: var(--ruby);
}
.mode-ic svg { width: 21px; height: 21px; }
.mode h3 { font-size: 22px; }
.mode p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }
.mode .tag {
  display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px;
  background: rgba(236, 200, 128, 0.1); color: var(--gold);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------------- Levels ---------------- */

.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.level {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 24px 22px;
  background: var(--card);
}
.level-n { font-family: var(--serif); font-size: 15px; color: var(--ink-muted); letter-spacing: 0.1em; }
.level h3 { margin-top: 8px; font-size: 20px; }
.level p { margin-top: 9px; font-size: 14.5px; color: var(--ink-soft); }
.level.hot { border-color: rgba(217, 56, 86, 0.4); background: linear-gradient(180deg, rgba(217, 56, 86, 0.12), var(--card) 62%); }

/* ---------------- Steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding: 26px 24px; border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--card); }
.step-n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ruby), var(--crimson)); color: #fff;
  font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 20px; }
.step p { margin-top: 9px; color: var(--ink-soft); font-size: 15px; }

/* ---------------- Safety ---------------- */

.safety { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 46px; align-items: start; }
.safety p + p { margin-top: 15px; }
.safety p { color: var(--ink-soft); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }
.checks b { color: var(--ink); font-weight: 700; }

/* ---------------- Pricing ---------------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: var(--card); padding: 32px; }
.plan-pro { border-color: rgba(217, 56, 86, 0.4); background: linear-gradient(180deg, rgba(217, 56, 86, 0.1), var(--card) 200px); }
.plan h3 { font-size: 24px; }
.plan .price { margin-top: 14px; font-family: var(--serif); font-size: 40px; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--ink-muted); font-weight: 600; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-soft); }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ruby); }

/* ---------------- FAQ ---------------- */

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border-soft); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  font-size: 18px; font-family: var(--serif);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 19px; height: 19px; flex: none; color: var(--ink-muted); transition: transform 180ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 16px; }

/* ---------------- Final CTA ---------------- */

.final {
  border-radius: var(--r-lg);
  padding: 62px 44px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(217, 56, 86, 0.26), transparent 70%),
    var(--card);
  border: 1px solid rgba(217, 56, 86, 0.28);
}
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.final .btn { margin-top: 30px; }

/* ---------------- Footer ---------------- */

.footer { border-top: 1px solid var(--border-soft); background: var(--velvet); padding: 54px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.foot-about { max-width: 340px; }
.foot-about p { margin-top: 14px; color: var(--ink-muted); font-size: 14.5px; }
.footer h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 14.5px; color: var(--ink-soft); }
.footer li a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-muted);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .mode { flex-basis: calc((100% - 18px) / 2); }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .section { padding: 62px 0; }
  .hero { padding: 64px 0 58px; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; max-width: none; }
  .final { padding: 42px 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* One card per row is wider than a grid cell, so the drawing can be bigger without
     reaching the text. */
  .has-art { padding-right: 110px; }
  .mode { flex-basis: 100%; }
  .levels { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .plan { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---------------- Scenes: the looping artwork gallery ----------------
   A scroll-snap strip that works with no script at all; scenes.js layers the dots, the
   arrows and the auto-advance on top. The rail bleeds past .wrap so the strip runs to the
   edge of the screen, with the first slide still aligned to the text column above it. */

.scenes { overflow: hidden; }
.scenes .head { margin-bottom: 0; }

.scene-rail { position: relative; margin-top: 34px; }

.scene-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* The gutter matches .wrap so slide one sits under the heading, not against the bezel. */
  padding: 6px max(22px, calc((100vw - var(--maxw)) / 2 + 22px)) 26px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scene-track::-webkit-scrollbar { display: none; }
.scene-track:focus-visible { outline-offset: -3px; }

.scene {
  flex: 0 0 auto;
  width: 420px;
  max-width: 82vw;
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.scene img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 682;
  object-fit: cover;
  /* A slow drift, so a still gallery still moves. Paused unless this slide is the current
     one, which keeps five off-screen animations from running for nothing. */
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

/* The centred slide is the one being read: it lifts, takes the gold edge, and its art
   drifts. The rest sit back and desaturate a little so the eye is told where to look. */
.scene[data-current] {
  transform: translateY(-6px);
  border-color: rgba(236, 200, 128, 0.42);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(236, 200, 128, 0.14);
}
.scene[data-current] img { transform: scale(1.08); }
.scene:not([data-current]) { filter: saturate(0.82) brightness(0.84); }

.scene figcaption {
  padding: 16px 20px 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: linear-gradient(180deg, rgba(30, 25, 34, 0) 0%, var(--card) 34%);
  margin-top: -34px;
  position: relative;
}
.scene figcaption b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ---- controls ---- */

.scene-arrow {
  position: absolute;
  top: calc(50% - 46px);
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13, 11, 14, 0.82);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.scene-arrow:hover { background: var(--card-hi); border-color: rgba(236, 200, 128, 0.4); }
.scene-arrow svg { width: 22px; height: 22px; }
.scene-prev { left: max(10px, calc((100vw - var(--maxw)) / 2 - 14px)); }
.scene-next { right: max(10px, calc((100vw - var(--maxw)) / 2 - 14px)); }

.scene-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
}
.scene-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.scene-dots button[aria-current="true"] {
  width: 26px;
  border-radius: 4px;
  background: var(--gold);
}

@media (max-width: 720px) {
  .scene-arrow { display: none; }
  .scene-track { gap: 14px; padding-left: 22px; padding-right: 22px; }
  .scene figcaption { padding: 14px 16px 16px; font-size: 14px; }
  .scene figcaption b { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-track { scroll-behavior: auto; }
  .scene, .scene img { transition: none; }
  .scene[data-current] img { transform: scale(1.02); }
}

/* ---------- Sparks AI: the featured section under the hero ---------- */
.ai-feature {
  position: relative;
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(217, 56, 86, 0.18), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(236, 200, 128, 0.08), transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ai-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.ai-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin-top: 14px; }
.pill-hot {
  background: linear-gradient(135deg, #ff6a3d, var(--ruby));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 18px -4px rgba(255, 106, 61, 0.8);
}
.ai-points { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; gap: 12px; }
.ai-points li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.ai-points li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ruby);
  box-shadow: 0 0 10px rgba(217, 56, 86, 0.8);
}
.ai-points strong { color: var(--ink); }
.ai-phone {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 18px;
  border-radius: 28px;
  background: var(--velvet);
  border: 1px solid transparent;
  background-image: linear-gradient(var(--velvet), var(--velvet)), linear-gradient(140deg, var(--ruby), rgba(236, 200, 128, 0.8), var(--ruby));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px rgba(217, 56, 86, 0.55);
}
.ai-bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.ai-bot { align-self: flex-start; border-bottom-left-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(236, 200, 128, 0.18); color: var(--ink); }
.ai-me { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(135deg, #a3284a, #7a1d3a); color: #fff; }
.ai-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: 0.4; animation: ai-dot 1.1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.mode-ai { border-color: rgba(217, 56, 86, 0.55) !important; box-shadow: 0 0 26px -10px rgba(217, 56, 86, 0.8); }
.tag-hot { margin-left: 6px; vertical-align: middle; background: linear-gradient(135deg, #ff6a3d, var(--ruby)); color: #fff; border-color: transparent; }
@media (max-width: 860px) {
  .ai-in { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-typing span { animation: none; }
}
