/* How It Works (seeing.html) — promotional explainer page. System fonts only, no external assets. */
:root {
  --ink:#0b0b0c; --paper:#f6f6f2; --paper2:#ecece5; --line:#c9c9c1; --mid:#55554f;
  --accent:#a6401f; --focus:#1f5c99;
  --green:#14934a; --pink:#f0a3b6; --yellow:#f6dc7c; --blue:#1d3a8a; --orange:#ef8a3c;
  --on-green:#fff; --on-blue:#fff; --on-light:#0b0b0c;
  --stage:#fffdf7; --stage-ink:#0b0b0c;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --maxw: 1080px; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:#f1f1ec; --paper:#111110; --paper2:#1c1c1a; --line:#3c3c38; --mid:#a8a89e;
    --accent:#e3a07f; --focus:#8fc3ff;
    --green:#2fae62; --pink:#d98ea2; --yellow:#e2c766; --blue:#4467c9; --orange:#e98a46;
    --on-green:#08140c; --on-blue:#fff; --on-light:#0b0b0c;
    --stage:#1a1a18; --stage-ink:#f1f1ec;
  }
}
:root[data-theme="dark"] {
  --ink:#f1f1ec; --paper:#111110; --paper2:#1c1c1a; --line:#3c3c38; --mid:#a8a89e;
  --accent:#e3a07f; --focus:#8fc3ff;
  --green:#2fae62; --pink:#d98ea2; --yellow:#e2c766; --blue:#4467c9; --orange:#e98a46;
  --on-green:#08140c; --on-blue:#fff; --on-light:#0b0b0c;
  --stage:#1a1a18; --stage-ink:#f1f1ec;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.mono, .kicker { font-family: var(--mono); }
.kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); margin: 0 0 10px; }
p { margin: 0 0 14px; max-width: 66ch; }
.muted { color: var(--mid); }
.small { font-size: 14px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); padding: 5px 10px; white-space: nowrap; }
.top nav { display: flex; gap: 16px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { font-size: 14px; text-decoration: none; color: var(--mid); white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top .cta-s { margin-left: 8px; }
@media (max-width: 760px) { .top nav { display: none; } .top .cta-s { margin-left: auto; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:hover { transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding: 24px 0; } }
.hero h1 { font-size: clamp(40px, 7.4vw, 86px); line-height: .98; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; background: var(--yellow); color: var(--on-light); padding: 0 .12em; border-radius: 6px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--mid); }
.keep { margin: 18px 0 0; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--paper2); border-radius: 0 10px 10px 0; font-size: 16px; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: #161514; border: 1px solid var(--line); touch-action: none; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .hint { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: .8; }

/* ---------- sections ---------- */
section.chap { padding: 64px 0; border-top: 1px solid var(--line); }
.chap-head { display: grid; gap: 6px 22px; margin-bottom: 28px; }
@media (min-width: 880px) { .chap-head { grid-template-columns: 120px 1fr; } }
.num { font-family: var(--mono); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: var(--on-light); }
.n1 { background: var(--yellow); } .n2 { background: var(--pink); } .n3 { background: var(--green); color: var(--on-green); }
.n4 { background: var(--orange); } .n5 { background: var(--blue); color: var(--on-blue); } .n6 { background: var(--ink); color: var(--paper); }
.n7 { background: var(--yellow); }
.chap h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 800; }
.chap h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.2; }

.two { display: grid; gap: 26px; align-items: start; }
@media (min-width: 880px) { .two { grid-template-columns: 1fr 1fr; } .two.wide-l { grid-template-columns: 1.35fr 1fr; } }

.card { background: var(--paper2); border-radius: var(--radius); padding: 20px; }
.stage { background: var(--stage); color: var(--stage-ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.stage svg, .stage canvas { display: block; width: 100%; height: auto; }
.cap { font-size: 14px; color: var(--mid); margin-top: 10px; }
.out { font-family: var(--mono); font-size: 13px; color: var(--mid); min-height: 1.6em; }

/* controls */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: var(--paper2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer; font-size: 14px; color: var(--mid); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.range { display: grid; gap: 6px; margin: 14px 0; }
.range label { font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.range output { font-family: var(--mono); color: var(--mid); }
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }

/* ---------- lens ---------- */
.lens-stage { cursor: none; touch-action: none; }
.lens-stage:focus-visible { outline-offset: 4px; }
.facts { display: grid; gap: 12px; margin-top: 18px; }
.fact { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.fact b { font-family: var(--mono); font-size: 20px; }

/* ---------- vocabulary chips ---------- */
.vocab { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 30px; }
.vocab > div { border-radius: 12px; padding: 14px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; color: var(--on-light); }
.vocab svg { width: 46px; height: 46px; }
.vocab b { font-size: 18px; }
.vocab span { font-size: 13px; opacity: .8; }

/* ---------- lab ---------- */
.lab { background: var(--paper2); border-radius: 22px; padding: 16px; }
@media (min-width: 720px) { .lab { padding: 24px; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tabs button { flex: none; border: 2px solid var(--line); background: var(--paper); border-radius: 999px; min-height: 42px; padding: 0 16px; cursor: pointer; font-size: 14px; font-weight: 600; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs button .arrow { color: var(--accent); }
.tabs button[aria-selected="true"] .arrow { color: var(--yellow); }
.panel { margin-top: 18px; }
.panel[hidden] { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.choices button { border: 2px solid var(--ink); background: transparent; border-radius: 10px; min-height: 42px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.prompt { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; margin: 16px 0 0; font-size: 15px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.swatches button { width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 4px; font-family: var(--mono); font-size: 10px; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paper) inset; }
.pad { touch-action: none; cursor: crosshair; }

/* ---------- letters ---------- */
.words { display: grid; gap: 14px; }
@media (min-width: 880px) { .words { grid-template-columns: repeat(3, 1fr); } }
.word { border-radius: var(--radius); padding: 18px; min-height: 290px; display: flex; flex-direction: column; color: var(--on-light); }
.word .wbox { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.word .wtitle { font-weight: 700; }
.word p { font-size: 14px; margin: 6px 0 0; }
.w-jump { background: var(--yellow); }
.w-clock { background: var(--pink); }
.w-seek { background: var(--green); color: var(--on-green); }
.jump { display: flex; align-items: flex-end; gap: 2px; height: 150px; }
.jump button { font: 900 64px/1 var(--font); border: 0; background: transparent; color: inherit; cursor: ns-resize; padding: 0 2px; touch-action: none; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.jump button.dragging { transition: none; }
.clockword { font: 900 58px/1 var(--font); display: flex; align-items: center; letter-spacing: -.02em; }
.clockword svg { width: .82em; height: .82em; margin: 0 1px; }
.seek { position: relative; font: 900 52px/1 var(--font); letter-spacing: .02em; touch-action: none; user-select: none; cursor: crosshair; }
.seek .cover { position: absolute; inset: -6px -10px; border-radius: 10px; background: color-mix(in srgb, var(--green) 82%, #000); -webkit-mask-image: radial-gradient(circle 46px at var(--mx, -100px) var(--my, -100px), transparent 98%, #000 100%); mask-image: radial-gradient(circle 46px at var(--mx, -100px) var(--my, -100px), transparent 98%, #000 100%); }
.seek .peek { position: absolute; inset: 0; pointer-events: none; }

/* ---------- the year ---------- */
.startbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.startbar label { font-weight: 650; }
.startbar input[type=date] { min-height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); padding: 0 10px; }
.startbar .target { font-size: 15px; }
.startbar .out { flex-basis: 100%; margin: 0; }
.track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .track { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .track { grid-template-columns: repeat(6, 1fr); } }
.track button { text-align: left; border: 2px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; min-height: 64px; }
.track button b { font-size: 14px; line-height: 1.25; }
.track button span:last-child { font: 12px var(--mono); color: var(--mid); }
.track button .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); }
.track button[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.track button.here b::after { content: " · now"; color: var(--accent); font-weight: 700; }
.yearbar { position: relative; display: flex; height: 10px; border-radius: 999px; overflow: visible; margin: 14px 0 26px; }
.yearbar span:first-child { border-radius: 999px 0 0 999px; } .yearbar span:nth-last-child(2) { border-radius: 0 999px 999px 0; }
.yearbar i { position: absolute; top: -6px; width: 4px; height: 22px; margin-left: -2px; background: var(--accent); border-radius: 2px; }
.step-card { border: 2px solid var(--ink); border-top: 10px solid var(--step, var(--ink)); border-radius: var(--radius); padding: 18px 20px 20px; background: var(--paper); }
.step-card h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.step-card dl { margin: 0 0 18px; display: grid; gap: 4px 28px; }
@media (min-width: 880px) { .step-card dl { grid-template-columns: 1fr 1fr; } }
.step-card dt { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: 12px; }
.step-card dd { margin: 4px 0 0; font-size: 15px; }

/* ---------- under the surface ---------- */
.depth { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.depth .btn:disabled { opacity: .35; cursor: default; transform: none; }
.gauge { display: flex; gap: 4px; }
.gauge span { width: 18px; height: 8px; border-radius: 4px; background: var(--line); }
.gauge span.on { background: var(--accent); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.layers li { border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.layers li button { all: unset; box-sizing: border-box; display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; cursor: pointer; font-weight: 650; font-size: 15px; }
.layers li button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 12px; }
.layers .ln { font: 700 12px var(--mono); width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--paper2); flex: none; }
.layers li.cur { border: 2px solid var(--ink); }
.layers li.cur .ln { background: var(--accent); color: var(--paper); }
.layers li.later button { color: var(--mid); font-weight: 500; }
.layers li p { margin: 0; padding: 0 14px 12px 48px; font-size: 15px; }
.layers li.seen .ln::after { content: "✓"; }
.layers li.seen .ln { font-size: 0; }
.layers li.seen .ln::after { font-size: 12px; color: var(--accent); }
.facts-src { padding-left: 20px; }
.facts-src li { margin-bottom: 6px; }

/* ---------- take CLOCK apart ---------- */
.clockdeck { margin-top: 18px; background: var(--paper2); border-radius: 22px; padding: 18px; }
@media (min-width: 720px) { .clockdeck { padding: 26px; } }
.cd-head p { max-width: 70ch; }
.cd-steps { margin: 6px 0 14px; }
.cd-stage { touch-action: none; }
.cd-stage.live { cursor: grab; }
.cd-stage.live:active { cursor: grabbing; }
.cd-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.cd-controls[hidden] { display: none; }
.cd-controls .choices { margin: 0; }
.cd-controls .choices button { min-height: 36px; font-size: 14px; }
#cd-out { margin-top: 10px; }
.clockdeck h4 { margin: 0 0 8px; font-size: 16px; }
.cd-ways { padding-left: 20px; margin: 0; font-size: 15px; }
.cd-ways li { margin-bottom: 8px; }
#cd-text { font-size: 16px; }

/* ---------- method ---------- */
.principles { display: grid; gap: 12px; counter-reset: p; margin: 10px 0 30px; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 18px 14px; }
.principle h3 { display: flex; gap: 10px; align-items: baseline; }
.principle h3::before { counter-increment: p; content: counter(p); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.principle p { font-size: 15px; margin: 0; }
.evidence { font-size: 15px; }
.evidence li { margin-bottom: 8px; }
.chain { display: flex; gap: 4px; align-items: flex-end; height: 120px; margin: 10px 0 6px; }
.chain span { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; opacity: .85; transition: height .4s; }
.chain span.gap { background: var(--line); }

.diary { display: grid; gap: 18px; }
@media (min-width: 880px) { .diary { grid-template-columns: 1fr 1.1fr; } }
.maker label.f { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.maker input[type=text] { width: 100%; min-height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); padding: 0 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; }
.opts button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.opts button svg { width: 100%; height: 100%; }
.tile { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); position: relative; }
.tile svg { width: 100%; height: 100%; display: block; }
.tile.empty { background: transparent; border-style: dashed; }
.tile .d { position: absolute; left: 4px; top: 2px; font: 600 10px var(--mono); color: var(--mid); }
.big-tile { max-width: 260px; margin: 0 auto 10px; border-radius: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 4px; }
.week figure { margin: 0; }
.week figcaption { font-size: 12px; line-height: 1.3; margin-top: 6px; }
.week figcaption b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); font-weight: 600; }
.streak { font-family: var(--mono); font-size: 14px; margin: 10px 0; }

/* ---------- join ---------- */
.join { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 32px 20px; margin: 0 0 64px; }
@media (min-width: 720px) { .join { padding: 48px; } }
.join h2 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.03; margin: 0 0 16px; letter-spacing: -.02em; }
.join .btn { background: var(--yellow); color: var(--on-light); border-color: var(--yellow); }
.join .btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.loop { display: grid; gap: 12px; margin: 22px 0; }
@media (min-width: 720px) { .loop { grid-template-columns: repeat(3, 1fr); } }
.loop div { border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 14px; padding: 16px; }
.loop b { display: block; font-size: 18px; margin-bottom: 4px; }
.loop span { font-size: 15px; opacity: .8; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 14px; color: var(--mid); }
footer ol { padding-left: 20px; }
footer li { margin-bottom: 6px; }

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

/* ---------- iPhone guidelines (Apple HIG): safe areas, 44 pt touch targets, 16 px form text ---------- */
.top { padding-top: env(safe-area-inset-top); }
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); } }
footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) {
  .btn, .btn.small, .choices button, .tabs button, .seg button, .filters button, .scamper button, .gallery button, .opts button { min-height: 44px; }
  .opts button { min-width: 44px; }
  input[type=range] { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
}
