/* The walkthrough at /tour — the wall-tablet story.

   ⚠️ A DIFFERENT VISUAL WORLD FROM `content.css`, on purpose. The content
   pages are paper: light, printable, read like a list. This one is a dark
   room with a lit panel on the wall, because the thing it is showing IS a
   screen in a room, and a screenshot of a bright board on a bright page has
   no edges. Do not merge the two sheets; do not "harmonise" this to match.

   Colours here are the PRODUCT's own — brand green, board paper, and the
   night sheet's real values — with one marked exception at `--night-shown`.

   Single-theme by design: a viewer's light mode must not turn the kitchen
   white, so every colour is painted explicitly and nothing is left to the
   host ground. */

:root {
  --ground: #0f1512;
  --ground-3: #1d2a23;
  --on-ground: #e8f0ea;
  --on-ground-muted: #9cb2a4;
  --edge: #2a3a31;

  --green: #12805a;
  --green-lift: #2bb583;
  --mint: #eafff4;

  /* The board, exactly as the app paints it */
  --paper: #f6faf8;
  --line: #dfeae4;
  --ink: #10231b;
  --ink-muted: #4a6459;

  --night: #0a0c09;
  /* ⚠️ The wall shows #4a5544 on #0a0c09 — deliberately dim, and correct
     there. At mockup size it is unreadable, so the frame below is lifted and
     the caption says so. Never present the lifted value as what a wall looks
     like. */
  --night-shown: #93a487;

  --display: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* `proximity`, not `mandatory`: this is a web page people scroll, not a deck
   somebody presents. Mandatory snapping fights a reader who wants to stop
   between two panels. */
html { scroll-snap-type: y proximity; }

body {
  background: var(--ground);
  color: var(--on-ground);
  font-family: var(--ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-lift); }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* The one piece of chrome, so a visitor who lands here from search can get
   to the product without scrolling to the end. */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 21, 18, 0.92);
  border-bottom: 1px solid var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem clamp(1rem, 5vw, 3rem);
}
.topbar .brand {
  font-weight: 800; color: var(--mint);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.topbar .brand img { width: 1.4em; height: 1.4em; display: block; }
.topbar a { font-size: 0.9rem; }

.panel {
  min-height: 88svh;
  scroll-snap-align: start;
  display: grid; align-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--edge);
}
@media (min-width: 900px) {
  .panel.split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
}

.clock {
  display: inline-block; font-family: var(--mono);
  font-variant-numeric: tabular-nums; font-size: 0.8rem;
  letter-spacing: 0.1em; color: var(--green-lift); margin-bottom: 1.1rem;
}
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green-lift); font-weight: 700; margin-bottom: 1.1rem;
}

h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1;
  letter-spacing: -0.025em; text-wrap: balance; color: var(--mint);
}
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05;
  letter-spacing: -0.02em; text-wrap: balance; color: var(--mint);
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 30ch; margin-top: 1.2rem; text-wrap: pretty; }
.sub { color: var(--on-ground-muted); max-width: 34ch; margin-top: 1rem; font-size: 0.98rem; }

.points { display: grid; gap: 1.5rem; margin-top: 2rem; max-width: 34ch; }
.points.wide { max-width: 100%; }
@media (min-width: 800px) { .points.wide { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.point b { display: block; color: var(--mint); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.3rem; }
.point span { color: var(--on-ground-muted); font-size: 0.95rem; }
.point .dot { display: block; width: 1.6rem; height: 2px; background: var(--green-lift); margin-bottom: 0.8rem; }

code {
  font-family: var(--mono); font-size: 0.92em;
  background: var(--ground-3); border-radius: 5px;
  padding: 0.1em 0.4em; color: var(--mint);
}

/* ── The tablet ──────────────────────────────────────────────────────── */
.stage { display: grid; justify-items: center; gap: 1.1rem; }
.tablet {
  width: 100%; max-width: 640px;
  background: #050706; border: 1px solid #263029;
  border-radius: 20px; padding: 13px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 90px -30px rgba(18, 128, 90, 0.3);
}
.screen {
  border-radius: 10px; overflow: hidden; background: var(--paper);
  aspect-ratio: 16 / 10; display: flex; flex-direction: column;
  font-size: clamp(11px, 1.7vw, 15px); color: var(--ink); position: relative;
}
.caption { font-size: 0.85rem; color: var(--on-ground-muted); text-align: center; max-width: 44ch; text-wrap: pretty; }

.bar {
  background: var(--green); color: var(--mint);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5em 0.85em; flex: 0 0 auto;
}
.bar .name { font-weight: 800; display: flex; align-items: center; gap: 0.4em; }
.mark {
  width: 1.15em; height: 1.15em; border-radius: 4px;
  background: var(--mint); color: var(--green);
  display: grid; place-items: center; font-size: 0.8em; font-weight: 800;
}
.bar .right { font-size: 0.8em; }
.bar .right span { border: 1px solid rgba(234, 255, 244, 0.4); border-radius: 999px; padding: 0.12em 0.65em; }

.board { padding: 0.8em 0.85em; display: grid; gap: 0.7em; flex: 1 1 auto; align-content: start; }
.loads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45em; }
.load { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.45em 0.5em; display: grid; gap: 0.25em; }
.load .who { font-weight: 700; }
.load .cap { font-size: 0.8em; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); }

.rows { display: grid; gap: 0.35em; }
.row {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.5em 0.6em;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.6em;
}
.cat { width: 0.5em; height: 0.5em; border-radius: 2px; }
.row .title { font-weight: 600; }
.row .who { font-size: 0.88em; color: var(--ink-muted); }
.pill { font-size: 0.78em; border-radius: 999px; padding: 0.1em 0.55em; border: 1px solid var(--line); color: var(--ink-muted); white-space: nowrap; }
.pill.done { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.row.done .title { color: var(--ink-muted); }

.night {
  position: absolute; inset: 0; background: var(--night); color: var(--night-shown);
  display: grid; place-content: center; justify-items: center; gap: 0.7em;
  text-align: center; padding: 1em;
}
.night .brand { font-size: 1.5em; letter-spacing: 0.05em; animation: drift 14s linear infinite alternate; }
.night .hint { font-size: 1em; animation: drift 14s linear infinite alternate; }
@keyframes drift { from { transform: translate(-6px, -4px); } to { transform: translate(6px, 4px); } }

.exit {
  position: absolute; right: 0.8em; bottom: 0.8em;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.7em 0.8em; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  display: grid; gap: 0.55em;
}
.exit p { font-weight: 600; }
.exit .btns { display: flex; gap: 0.4em; }
.exit .btns b, .exit .btns i { font-style: normal; font-size: 0.85em; border-radius: 999px; padding: 0.25em 0.75em; }
.exit .btns b { background: var(--green); color: #fff; }
.exit .btns i { border: 1px solid var(--line); color: var(--ink-muted); }

.hold-ring {
  position: absolute; left: 0.5em; top: 0.45em;
  width: 2.5em; height: 2.5em; border-radius: 999px;
  border: 2px solid var(--mint); animation: hold 2.5s ease-in-out infinite;
}
@keyframes hold { 0%, 100% { transform: scale(0.8); opacity: 0.25; } 60% { transform: scale(1.15); opacity: 0.9; } }

@media (prefers-reduced-motion: reduce) {
  .night .brand, .night .hint { animation: none; }
  .hold-ring { animation: none; opacity: 0.6; }
  html { scroll-snap-type: none; }
}

/* ── Steps, kit, close ───────────────────────────────────────────────── */
.steps { display: grid; gap: 1.2rem; margin-top: 2rem; counter-reset: step; max-width: 34ch; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: baseline; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--mono); font-size: 0.8rem; color: var(--green-lift); }
.step b { color: var(--mint); font-weight: 600; display: block; font-size: 1.05rem; }
.step span { color: var(--on-ground-muted); font-size: 0.95rem; }

.kit { display: grid; gap: 0.9rem; margin-top: 2rem; max-width: 36ch; font-size: 1.05rem; }
.kit div { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline; }
.kit .tick { color: var(--green-lift); font-weight: 700; }

.cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cta {
  display: inline-block; background: var(--green); color: #fff;
  padding: 0.8rem 1.7rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 1.05rem;
}
.cta:hover, .cta:focus-visible { background: var(--green-lift); color: #06231a; }
.cta-note { color: var(--on-ground-muted); font-size: 0.92rem; }

.more { margin-top: 2.5rem; }
.more ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.more span { color: var(--on-ground-muted); }

footer {
  padding: 2rem clamp(1.5rem, 7vw, 6rem) 3rem;
  color: var(--on-ground-muted); font-size: 0.85rem;
  display: grid; gap: 0.4rem;
}

@media print {
  body { background: #fff; color: #111; }
  .topbar { position: static; }
  .panel { min-height: auto; page-break-after: always; border: 0; }
  h1, h2, .point b, .step b { color: #0c5f43; }
  .lede, .sub, .point span, .caption, .step span { color: #333; }
}
