/*
  ShowHaven marketing site.
  =========================

  Standalone, unlike docs/landing-page.html which was scoped to live inside the
  dtxstudios.net WordPress theme. That plan was dropped in favour of showhaven.tv,
  and a page written to survive someone else's stylesheet is the wrong shape for
  a site that owns its own document.

  Colours come from shared/src/tokens.ts, so the site and the product are
  recognisably the same thing rather than approximately the same colour. The
  child-facing palette is deliberately dark and warm — it is designed for a lit
  room at night — and it is used here only where the page is talking about what
  the child sees.

  No build step, no framework, no external requests. A marketing site that needs
  a toolchain to fix a typo does not get its typos fixed.
*/

:root {
  /* Kid surface — used for hero and any panel showing the child's experience. */
  --kid-bg: #12111a;
  --kid-surface: #1e1c2a;
  --kid-raised: #2a2739;
  --kid-text: #ffffff;
  --kid-muted: #b7b2c8;
  --focus: #ffd166;

  /* Parent surface — the rest of the page. */
  --bg: #ffffff;
  --surface: #f5f5f7;
  --border: #dfdfe6;
  --text: #141419;
  --muted: #5f5f6d;

  --accent: #6c5ce7;
  --accent-pressed: #5a4bd1;
  --success: #2e9e5b;
  --warning: #c77a00;

  --measure: 34rem;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Anything that could overflow a phone gets to scroll on its own rather than
   making the whole page slide sideways. */
img, video { max-width: 100%; height: auto; }
.scroll-x { overflow-x: auto; }

a { color: var(--accent); }
a:hover { color: var(--accent-pressed); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(64rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--tint { background: var(--surface); }
.lede { font-size: 1.15rem; color: var(--muted); }

/* -- header ---------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  padding-block: 0.85rem;
}
.brand {
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand span { color: var(--accent); }
.site-head nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-head nav a:hover { color: var(--text); }

/* -- hero ------------------------------------------------------------------ */

.hero {
  background: var(--kid-bg);
  color: var(--kid-text);
  padding: clamp(3.5rem, 10vw, 6.5rem) 0;
}
.hero h1 { max-width: 18ch; }
.hero p { color: var(--kid-muted); max-width: var(--measure); font-size: 1.15rem; }
.hero .fineprint { color: #8e8aa0; font-size: 0.95rem; }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  /* 44px minimum touch target — this page gets read on phones. */
  min-height: 44px;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-pressed); color: #fff; }
.btn--ghost { border-color: #3a3750; color: var(--kid-text); }
.btn--ghost:hover { border-color: var(--focus); color: var(--focus); }
.btn--quiet { background: var(--surface); color: var(--text); border-color: var(--border); }

/* -- the argument in one image -------------------------------------------- */

.compare { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 46rem) { .compare { grid-template-columns: 1fr 1fr; } }

.panel { border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--border); background: var(--bg); }
.panel--dark { background: var(--kid-surface); border-color: #322e45; color: var(--kid-text); }
.panel h3 { margin-bottom: 0.35rem; }
.panel .note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.panel--dark .note { color: var(--kid-muted); }

/* A stand-in for the real screenshots. Deliberately schematic: it makes the
   point (many tiles vs a few) without pretending to be a photograph. */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 0.9rem 0; }
.tiles.few { grid-template-columns: repeat(3, 1fr); gap: 9px; }
.tiles i { display: block; aspect-ratio: 2/3; border-radius: 4px; background: #3a3750; }
.tiles.few i { border-radius: 7px; background: linear-gradient(160deg, #6c5ce7, #4a3fb0); }
.tiles.few i:first-child { outline: 3px solid var(--focus); outline-offset: 2px; }

/* -- steps, features ------------------------------------------------------- */

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.step .num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.95rem; margin-bottom: 0.6rem;
}

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }

/* -- tables ---------------------------------------------------------------- */

table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; }
caption { text-align: left; color: var(--muted); font-size: 0.9rem; padding-bottom: 0.6rem; }

.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; }
.tag--yes { background: #e4f5ea; color: var(--success); }
.tag--soon { background: #fdf1de; color: var(--warning); }

/* -- pricing --------------------------------------------------------------- */

.plans { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; background: var(--bg); }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .per { color: var(--muted); font-weight: 600; font-size: 1rem; }
.plan ul { padding-left: 1.1rem; margin: 1rem 0; }
.plan li { margin-bottom: 0.4rem; }

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

details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
details summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.75rem; color: var(--muted); max-width: var(--measure); }

/* -- callouts -------------------------------------------------------------- */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* -- footer ---------------------------------------------------------------- */

.site-foot {
  background: var(--kid-bg); color: var(--kid-muted);
  padding: 3rem 0 4rem; font-size: 0.95rem;
}
.site-foot a { color: var(--kid-text); text-decoration: none; }
.site-foot a:hover { color: var(--focus); }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* Respect a reader who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
