/* Layout: one calm reading column on brand cream; screenshots sit in a dark TV bezel so they read as "the TV". */
:root {
  --paper: #F2EDE4;      /* brand cream */
  --card: #FBF8F3;
  --ink: #0D4A4A;        /* brand teal */
  --ink-soft: #3E6767;
  --line: #DCD3C4;
  --wash: #E4EEEA;       /* pale teal for "kept" / done */
  --amber: #B5651D;      /* "switched off" marker */
  --amber-wash: #F6E6D3;
  --bezel: #141A1A;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "Figtree", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --col: 46rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--col); margin: 0 auto; padding-block: 1.25rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4.5rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); letter-spacing: -0.01em; }
h1 em { font-style: italic; }
h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
p { margin: 0; max-width: 62ch; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.eyebrow { font: 600 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand span { font: 400 1.3rem/1 var(--display); letter-spacing: .01em; }
footer .brand img { height: 40px; }
footer .brand span { font-size: 1.6rem; }
.copyright { font-size: .85rem; letter-spacing: .04em; }
.tag { text-decoration: none; font: 600 0.8rem/1 var(--body); border: 1px solid var(--ink); border-radius: 99px; padding: 0.45rem 0.8rem; }

/* hero */
.hero { gap: 1.5rem; }
.stats { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; padding-top: 0.25rem; }
.stat { display: grid; gap: 0.1rem; }
.stat b { font: 400 2rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* TV frame */
.tv { background: var(--bezel); border-radius: 14px; padding: clamp(6px, 1.4vw, 12px); box-shadow: 0 18px 40px -22px rgba(13,74,74,.55); }
.tv img { display: block; width: 100%; height: auto; border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.compare { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; max-width: 100%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; border-radius: 0; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); font: 700 0.9rem/1 var(--body); padding: 0.55rem 0.6rem; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .lbl { position: absolute; bottom: 8px; font: 700 0.7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: .4rem .55rem; border-radius: 4px; pointer-events: none; }
.compare .lbl.b { left: 8px; } .compare .lbl.a { right: 8px; }
.caption { font-size: 0.9rem; color: var(--ink-soft); }
.print-pair { display: none; }

/* checker */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: 600 0.95rem/1 var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0.7rem 1rem; cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.answer { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 10px; padding: 1rem 1.15rem; display: grid; gap: .35rem; }
.answer.no { border-left-color: var(--amber); }
.answer strong { font-size: 1.05rem; }

/* tour */
.tabs { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 600 0.92rem/1 var(--body); color: var(--ink-soft); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0.7rem 0.75rem; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { display: grid; gap: 0.85rem; }
.panel p b { color: var(--ink); }

/* off vs kept */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.list { border-radius: 12px; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.list.off { background: var(--amber-wash); }
.list.kept { background: var(--wash); }
.list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; font-size: .98rem; line-height: 1.4; }
.list.off li::before { content: "–"; color: var(--amber); font-weight: 700; }
.list.kept li::before { content: "✓"; color: var(--ink); font-weight: 700; }
.list li small { display: block; color: var(--ink-soft); font-size: .85rem; }

/* safety */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.fact { display: grid; gap: .3rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.fact p { font-size: .98rem; color: var(--ink-soft); }

/* steps */
.progress { display: flex; align-items: center; gap: .9rem; font-size: .9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .3s ease; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: s; }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; transition: background .2s; }
.step input { appearance: none; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--ink); border-radius: 50%; margin: .05rem 0 0; cursor: pointer; grid-row: span 2; display: grid; place-items: center; background: var(--card); }
.step input::before { content: counter(s); font: 700 .8rem/1 var(--body); color: var(--ink); }
.step input:checked { background: var(--ink); }
.step input:checked::before { content: "✓"; color: var(--paper); }
.step:has(input:checked) { background: var(--wash); }
.step:has(input:checked) h3 { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-soft); }
.step label { cursor: pointer; }
.step p { font-size: .97rem; color: var(--ink-soft); grid-column: 2; }
.path { font: 500 .82rem/1.9 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .4rem; white-space: normal; }
kbd { font: 600 .8rem/1 var(--body); border: 1px solid var(--ink-soft); border-bottom-width: 2px; border-radius: 5px; padding: .15rem .4rem; background: var(--card); }
.note { font-size: .92rem; color: var(--ink-soft); }

/* claude session */
.prompt { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: end; }
.prompt-label { grid-column: 1 / -1; font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.prompt-text { font: 500 .9rem/1.6 var(--mono); }
.prompt .copy { background: transparent; color: var(--paper); border-color: rgba(242,237,228,.45); padding: .55rem .9rem; }
.prompt .copy:hover { border-color: var(--paper); }
ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: t; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .9rem; position: relative; padding-bottom: 1.1rem; }
.timeline li::before { content: counter(t); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--wash); color: var(--ink); display: grid; place-items: center; font: 400 1.05rem/1 var(--display); position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: 0; width: 1px; background: var(--line); }
.timeline h3 { padding-top: .45rem; }
.timeline p { font-size: .97rem; color: var(--ink-soft); }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font: 400 1.4rem/1 var(--body); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* footer */
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a { font: 600 .88rem/1 var(--body); text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: .6rem .9rem; }
.socials a:hover { border-color: var(--ink); }
.tag:hover { background: var(--wash); }
footer { display: grid; gap: .9rem; justify-items: start; border-top: 1px solid var(--line); padding-top: 2rem; }
footer p { font-size: .92rem; color: var(--ink-soft); }

@media (max-width: 600px) {
  .wrap { gap: 3.5rem; }
  .split, .facts { grid-template-columns: 1fr; }
  .stat b { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* PDF / print: every view shown, no controls */
@page { size: A4; margin: 0; }
@media print {
  html, body { background: var(--paper); }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 10.5pt; padding: 14mm 15mm !important; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .tour-section, .what-section, .claude-section, .how-section, .faq-section { break-before: page; }
  footer { break-inside: avoid; }
  summary::after, .note { display: none; }
  .wrap { gap: 2.2rem; padding: 0; max-width: none; }
  .compare-live, .tabs, .choices, .answer, .progress, .checker-hint { display: none !important; }
  .print-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
  .print-pair figure { margin: 0; display: grid; gap: .3rem; }
  .panel[hidden] { display: grid !important; }
  .tour-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
  .panel { break-inside: avoid; }
  .tv { box-shadow: none; }
  .step, .fact, details, .list, figure { break-inside: avoid; }
  section { break-inside: auto; }
  h2, .eyebrow { break-after: avoid; }
  .split, .facts { grid-template-columns: 1fr 1fr; }
  .step input { appearance: none; }
  .print-checker { display: block !important; }
  .prompt .copy, .socials, .pdf-link { display: none; }
  .prompt { grid-template-columns: 1fr; }
  .timeline li { break-inside: avoid; }
}
.print-checker { display: none; }
