/* The landing page: the light table first, then Kurio's own views, the promise, the price. */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* ---- top bar: the shell edge is the one amber line ---- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: var(--wall); border-bottom: 1px solid var(--seam);
}
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav .signin { color: var(--ink); border: 1px solid var(--seam-2); border-radius: 3px; padding: 7px 12px; }
.top nav .signin:hover { border-color: var(--seam-3); }

/* ---- the run: sticky stage, copy beats on the left, the archive on the right ---- */
.run { position: relative; height: 520svh; border-bottom: 1px solid var(--seam); }
.run-stage {
  position: sticky; top: 64px; height: calc(100svh - 64px); min-height: 560px;
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
}
.run-copy { position: relative; }
.beat {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 22px;
  padding: 32px clamp(24px, 3vw, 48px) 32px var(--gutter); max-width: 640px;
  opacity: 0; transform: translateY(18px); visibility: hidden;
  transition: opacity .18s ease-out, transform .18s ease-out, visibility 0s .18s;
}
.beat.on { opacity: 1; transform: none; visibility: visible; transition: opacity .55s cubic-bezier(.16, 1, .3, 1) .12s, transform .7s cubic-bezier(.16, 1, .3, 1) .12s, visibility 0s; }
.beat h1 { font-size: clamp(42px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.beat h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -0.025em; }
.beat > p:not(.beat-n):not(.facts-line):not(.scroll-cue) { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.beat .btn { justify-self: start; }
.scroll-cue { font-size: 13px; color: var(--ink-3); margin-top: 8px; animation: cue 2.8s cubic-bezier(.16, 1, .3, 1) 1.2s infinite; }
@keyframes cue { 0%, 100% { transform: none; } 40% { transform: translateY(5px); } }

.run-view { position: relative; border-left: 2px solid var(--safelight); overflow: hidden; background: var(--wall); }
.run-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.run-steps {
  position: absolute; left: 16px; top: 16px; margin: 0; padding: 0; list-style: none; display: flex; gap: 4px;
  font: 600 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase;
}
.run-steps li { padding: 6px 8px; border-radius: 3px; color: var(--ink-3); background: rgb(15 14 13 / .86); transition: color .3s, background-color .3s; }
.run-steps li.on { color: var(--wall); background: var(--safelight); }
.run-steps li.done { color: var(--ink-2); }
.demo-note {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; font-size: 12px; color: var(--ink-2);
  background: rgb(15 14 13 / .86); padding: 5px 8px; border-radius: 3px;
}

.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.facts-line { font-size: 14px; color: var(--ink-3); }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 480px; }
.waitlist .input { min-height: 50px; }
.waitlist .btn { min-height: 50px; padding-inline: 22px; }
.wl-msg { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.wl-msg:empty { display: none; }
.wl-msg.bad { color: var(--bad); }

/* the test strip: ten exposure steps on a fixed axis (0 to 1) */
.strip {
  position: relative; height: 14px; background: var(--panel-2); border-radius: 2px; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--panel) calc(10% - 1px) 10%);
}
.strip i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width .9s cubic-bezier(.16, 1, .3, 1); }
.score { font: 600 32px/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.for { font-size: 12px; color: var(--ink-3); }
.strip.big { height: 20px; display: flex; }
.strip.big i { position: static; }
.strip.big i.fit { width: 91.9%; }
.strip.big i.votes { width: 3.8%; background: var(--safelight); }

/* ---- sections ---- */
.section-h { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.02em; max-width: 20ch; }
.how, .views, .private, .setup, .price { padding: clamp(72px, 11vh, 140px) var(--gutter) 0; max-width: 1440px; margin: 0 auto; }

.how { display: grid; gap: clamp(56px, 9vh, 112px); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.step.flip .step-copy { order: 2; }
.step-copy { display: grid; gap: 16px; align-content: start; max-width: 54ch; }
.step h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.step-copy p { color: var(--ink-2); }
.step-copy .aside { font-size: 15px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--seam); }

.print { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--wall); }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print.no img, .print.gone img { opacity: .32; }
.print.gone img { filter: grayscale(.7); }
.stamp {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 28px; display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  font: 600 11px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase;
}
.stamp.yes { background: var(--safelight); color: var(--wall); }
.stamp.scrim { background: rgb(15 14 13 / .84); color: var(--ink-2); }
.stamp.steel { color: var(--steel); }
.stamp.bad { background: var(--bad); color: var(--wall); }
.badge {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  background: rgb(15 14 13 / .84); color: var(--ink); font-size: 12px; padding: 3px 6px; border-radius: 3px;
}
.badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

.step-visual { display: grid; gap: 14px; }
.tiers { grid-template-columns: repeat(4, 1fr); }
.stacks { grid-template-columns: repeat(3, 1fr); }
.judge { grid-template-columns: repeat(3, 1fr); }
.judge .print { transition: opacity .3s; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 10px 18px; justify-content: start; font-size: 14px; color: var(--ink-2); }
.keys kbd { margin-right: 6px; }

.testprint { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.tp-read { display: grid; gap: 16px; }
.tp-score { display: flex; align-items: baseline; gap: 12px; }
.tp-score .score { font-size: clamp(40px, 4vw, 56px); }
.legend { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.legend div { display: flex; justify-content: space-between; gap: 12px; }
.legend dt { color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.legend dd { margin: 0; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw.fit { background: var(--ink); } .sw.arch { background: var(--seam-3); } .sw.votes { background: var(--safelight); } .sw.tone { background: var(--steel); }

/* views */
.views { display: grid; gap: clamp(48px, 8vh, 96px); }
.views-wall { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vh, 88px) clamp(32px, 5vw, 80px); align-items: start; }
.view { display: grid; gap: 18px; align-content: start; min-width: 0; }
.view h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em; }
.view p { color: var(--ink-2); max-width: 52ch; }
.view-copy { display: grid; gap: 10px; }
.view.film { grid-column: 1 / -1; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.filmstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.filmstrip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.feedgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 560px; }
.feedgrid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feedgrid img.queued { outline: 2px solid var(--safelight); outline-offset: -2px; }
.view.phone { grid-template-columns: minmax(0, 1fr); }
.phone-shot { width: min(300px, 70%); height: auto; border: 1px solid var(--seam-2); border-radius: 22px; }
.screen { margin: 0; display: grid; gap: 12px; }
.screen img { width: 100%; height: auto; border: 1px solid var(--seam); border-radius: 3px; }
.screen figcaption { font-size: 14px; color: var(--ink-3); }

/* privacy */
.private { display: grid; gap: 36px; }
.promise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.promise .big { font: 400 clamp(20px, 1.9vw, 26px)/1.45 var(--display); color: var(--ink); max-width: 30ch; }
.ledger { margin: 0; border-top: 1px solid var(--seam); }
.ledger div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--seam); }
.ledger dt { color: var(--ink-3); font-size: 15px; }
.ledger dd { margin: 0; }

/* setup */
.setup { display: grid; gap: 36px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding-top: 18px; border-top: 1px solid var(--seam); }
.mk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--ink-3); border: 1px solid var(--seam-2); }
.checklist li:first-child .mk { background: var(--safelight); border-color: var(--safelight); color: var(--wall); font-weight: 600; }
.checklist h3 { font-size: 17px; margin-bottom: 6px; }
.checklist p { color: var(--ink-2); font-size: 15px; }
.needs { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 32px; padding: 20px 0; border-block: 1px solid var(--seam); }
.needs dt { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.needs dd { margin: 0; font-size: 15px; }

/* price */
.price { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 11vh, 140px); }
.price-card { background: var(--panel); border: 1px solid var(--seam); border-radius: 3px; padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 20px; }
.price-card h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -0.02em; }
.amount { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.amount .num { font: 600 clamp(56px, 6vw, 84px)/1 var(--display); letter-spacing: -0.03em; }
.amount .launch { font: 600 13px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--seam-3); padding: 7px 9px; border-radius: 3px; }
.amount .label-plan { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.incl { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.incl li { display: flex; gap: 10px; align-items: baseline; }
.incl li::before { content: ""; width: 9px; height: 5px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg) translateY(-3px); flex: none; }
.planned { font-size: 14px; color: var(--ink-3); }
.coming { display: grid; gap: 14px; padding-top: 8px; }
.coming h3 { font-size: 17px; }
.coming p { color: var(--ink-2); font-size: 15px; }
.coming strong { color: var(--ink); font-weight: 600; }

.foot { border-top: 1px solid var(--seam); padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; }
.foot .foot-links { margin-left: auto; }
.foot a { color: var(--ink-2); }

/* ---- smaller screens ---- */
@media (max-width: 1100px) {
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .run-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 56fr) minmax(0, 44fr); min-height: 0; }
  .run-view { order: -1; border-left: 0; border-bottom: 2px solid var(--safelight); }
  .run .waitlist { grid-template-columns: minmax(0, 1fr) auto; }
  .run .waitlist .btn { padding-inline: 14px; }
  .run .facts-line, .run .scroll-cue { display: none; }
  .beat { align-content: start; padding: 22px var(--gutter) 24px; gap: 14px; }
  .beat h1 { font-size: clamp(34px, 9.4vw, 52px); }
  .beat h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .beat > p:not(.beat-n):not(.facts-line):not(.scroll-cue) { font-size: 15px; }
  .scroll-cue { display: none; }
  .run-steps li { padding: 5px 6px; font-size: 10px; }
  .step, .promise, .price, .views-wall, .view.film { grid-template-columns: minmax(0, 1fr); }
  .step.flip .step-copy { order: 0; }
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .top nav a:not(.signin) { display: none; }
}
@media (max-width: 600px) {
  .waitlist { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .filmstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .filmstrip img { scroll-snap-align: start; }
  .testprint { grid-template-columns: minmax(0, 1fr); }
  .keys { grid-template-columns: repeat(2, auto); }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .needs { grid-template-columns: minmax(0, 1fr); }
  .foot .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .beat { transition: none; }
  .scroll-cue { animation: none; }
}
