/* landingpage-guided-replay: paper and ink, with the replay as the one framed object.
   System fonts only (no external requests). */

:root {
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --ink: #1b2533;
  --ink-2: #4a5566;
  --rule: #c9c0ad;
  --accent: #1f6b4f;
  --amber: #8a5a12;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.65 var(--serif); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; }

.page { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .page { padding: 0 40px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.preview-note { margin: 0; padding: 6px 16px; text-align: center; font: 13px/1.4 var(--sans); color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--rule); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--ink); }
.masthead-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 14px; }
.wordmark { font: italic 1.4rem var(--serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 36px; width: auto; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 15px var(--sans); }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }
.masthead nav .nav-cta { color: var(--accent); font-weight: 600; }

/* Opening */
.opening { padding-top: 56px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 17ch; }
.opening-row { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 860px) { .opening-row { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; } }
.standfirst { font-size: 1.25rem; line-height: 1.55; margin: 0; }

/* Waitlist */
.waitlist label { display: block; font: 15px/1.5 var(--sans); color: var(--ink-2); margin-bottom: 10px; }
.waitlist-row { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.waitlist-row:focus-within { border-bottom-color: var(--accent); }
.waitlist input { flex: 1 1 200px; min-width: 0; border: 0; background: transparent; font: 1.1rem var(--serif); color: var(--ink); padding: 10px 0; }
.waitlist input::placeholder { color: #8d8676; font-style: italic; }
.waitlist input:focus { outline: none; }
.waitlist button { flex: 0 0 auto; border: 0; background: none; cursor: pointer; font: 600 15px var(--sans); color: var(--accent); padding: 10px 0 10px 16px; }
.waitlist button::after { content: " \2192"; }
.waitlist button:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-note { font: 14px var(--sans); color: var(--ink-2); margin: 10px 0 0; }
.form-note.is-done { color: var(--accent); font-weight: 600; }
.form-note.is-error { color: #9b2c1c; font-weight: 600; }

/* Replay */
.replay { padding-top: 72px; padding-bottom: 24px; }
.replay-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.replay-sub { color: var(--ink-2); max-width: 40em; }

.stage { display: grid; border: 4px solid var(--ink); background: #fffdf8; margin-top: 24px; }
@media (min-width: 820px) { .stage { grid-template-columns: 1fr 1fr; } }
.pane { display: flex; flex-direction: column; min-height: 340px; }
.chat-pane { border-top: 2px solid var(--ink); }
@media (min-width: 820px) { .chat-pane { border-top: 0; border-right: 2px solid var(--ink); } }
/* On phones the app view comes first, so changes happen where the visitor is looking. */
@media (max-width: 819px) { .app-pane { order: -1; } .pane { min-height: 0; } .app-view { min-height: 300px; } }

.pane-bar { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 8px 16px; border-bottom: 1px solid var(--rule); font: 600 15px var(--sans); }
.undo-btn { font: 600 14px var(--sans); border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); padding: 3px 14px; border-radius: 3px; cursor: pointer; }
.undo-btn:disabled { color: #a49c8c; border-color: var(--rule); cursor: default; }
.undo-btn.is-nudge:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }

.chat { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; font: 16px/1.45 var(--sans); }
.msg { display: none; max-width: 88%; padding: 9px 13px; border-radius: 3px; }
.msg.me { align-self: flex-end; background: var(--ink); color: #f5f1e8; }
.msg.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); }
.msg.sys { align-self: center; font: italic 15px var(--serif); color: var(--ink-2); padding: 2px 0; }
.msg.is-on { display: block; animation: rise .3s ease both; }
@media (max-width: 819px) { .msg.is-on:not(.is-recent) { display: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.app-view { display: grid; padding: 18px; flex: 1; }
.view { grid-area: 1 / 1; display: none; }
.stage[data-step="0"] .view-list,
.stage[data-step="1"] .view-list,
.stage[data-step="5"] .view-list,
.stage[data-step="2"] .view-build,
.stage[data-step="3"] .view-perm,
.stage[data-step="4"] .view-app { display: block; animation: rise .3s ease both; }

.app-list { list-style: none; margin: 0; padding: 0; font: 16px var(--sans); }
.app-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.saved-chip { display: none; margin-top: 16px; font: italic 15px var(--serif); color: var(--ink-2); }
.saved-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.stage[data-step="1"] .saved-chip, .stage[data-step="5"] .saved-chip { display: block; }

.sketch { width: 100%; max-width: 260px; display: block; margin: 8px auto 0; }
.sketch path, .sketch ellipse { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; animation: draw 2.4s linear infinite; }
@keyframes draw { to { stroke-dashoffset: -90; } }
.sketch-note { text-align: center; font: italic 15px var(--serif); color: var(--ink-2); margin: 6px 0 0; }

.view-perm { align-self: center; border: 1px solid var(--ink); padding: 18px; background: var(--paper); font-family: var(--sans); font-size: 16px; }
.perm-q { margin-bottom: 6px; }
.perm-q em { font: italic 1.05rem var(--serif); }
.perm-item { font-weight: 600; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.perm-btns { display: flex; gap: 10px; margin: 12px 0; }
.pb { font: 600 14px var(--sans); border: 1.5px solid var(--ink); background: #fff; color: var(--ink); padding: 5px 16px; border-radius: 3px; cursor: pointer; }
.pb-yes { background: var(--accent); border-color: var(--accent); color: #fff; }
.pb:hover { filter: brightness(.95); }
.perm-foot { font-size: 14px; color: var(--ink-2); margin: 0; }

.garden { text-align: center; }
.plant { width: 150px; height: 112px; }
.plant .stem { stroke: var(--accent); stroke-width: 3; fill: none; }
.plant .leaf { fill: var(--accent); }
.plant .soil { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.streak { font: italic 1.05rem var(--serif); margin: 2px 0 12px; }
.habits { list-style: none; margin: 0; padding: 0; font: 16px var(--sans); }
.habits li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--rule); }
.habits li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; transform: translateY(-50%); }
.habits li.done::before { background: var(--accent); border-color: var(--accent); }
.habits li.done::after { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -65%) rotate(45deg); }

/* Moments: a ruled timeline under the frame */
.replay-foot { margin-top: 14px; }
.moments { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; counter-reset: m; }
.moments li { counter-increment: m; }
.moments button { background: none; border: 0; cursor: pointer; padding: 6px 14px 6px 0; font: 15px var(--sans); color: var(--ink-2); }
.moments button::before { content: counter(m) ". "; color: var(--ink-2); }
.moments li + li button { padding-left: 14px; border-left: 1px solid var(--rule); }
.moments button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.moments button[aria-current="step"] { color: var(--accent); font-weight: 600; }
.your-turn { min-height: 1.6em; margin: 8px 0 0; font: italic 1.05rem var(--serif); color: var(--accent); }

.pin { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 46em; }
.pin-text { display: none; }
.pin-text.is-on { display: block; }
.pin-h { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.2; margin-bottom: 8px; }
.pin-text p:not(.pin-h) { color: var(--ink-2); }
.pin-status { font: 14px/1.6 var(--sans); color: var(--ink-2); margin: 0; }
.status { display: inline-block; font: 600 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid currentColor; padding: 0 7px; margin-right: 6px; }
.replay-btn { background: none; border: 0; padding: 0; margin-left: 6px; font: 600 14px var(--sans); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.illus { margin-top: 16px; font: italic 15px var(--serif); color: var(--ink-2); }

/* Ideas: running text on a darker band */
.ideas { background: var(--ink); color: #e9e3d6; margin-top: 64px; padding: 64px 0; }
.ideas h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; color: #fff; }
.ideas-run { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.6; max-width: 46em; }
.ideas-run span { color: #8fb9a5; padding: 0 .2em; }
.ideas-foot { font: 14px var(--sans); color: #b5ae9f; margin: 0; }

/* Solo promise: a pull paragraph, offset */
.solo { padding-top: 72px; padding-bottom: 16px; }
.solo-lead { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35; max-width: 26em; margin-left: auto; margin-right: 0; padding-left: 20px; border-left: 3px solid var(--accent); }
.solo-small { font: 15px/1.6 var(--sans); color: var(--ink-2); max-width: 38em; margin-left: auto; padding-left: 23px; }
@media (min-width: 860px) { .solo-lead, .solo-small { margin-right: 8%; } }

/* Founder */
.founder { display: grid; gap: 28px; padding-top: 72px; align-items: start; }
@media (min-width: 760px) { .founder { grid-template-columns: 260px 1fr; gap: 48px; } }
.founder-photo { width: 100%; max-width: 320px; height: auto; display: block; border: 1px solid var(--ink); }
.founder h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 6px; }
.founder-name { font: 600 15px var(--sans); color: var(--ink-2); }
.founder-text { max-width: 38em; }
.founder-quote { margin: 20px 0; padding-left: 20px; border-left: 3px solid var(--accent); font-style: italic; font-size: 1.15rem; }
.founder-quote p { margin: 0; }
.placeholder-block { background: #f6e7c4; border-left-color: var(--amber); padding: 12px 16px 12px 20px; color: var(--amber); font: 600 15px/1.5 var(--sans); font-style: normal; }

/* About page */
.about { padding-top: 56px; padding-bottom: 32px; }
.about-head { display: grid; gap: 28px; align-items: end; }
@media (min-width: 760px) { .about-head { grid-template-columns: 1fr 300px; gap: 56px; } }
.about-head .founder-photo { max-width: 300px; }
.about h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 14ch; }
.about-lede { font-size: 1.25rem; line-height: 1.55; margin-top: 20px; }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; max-width: 46em; }
.timeline li { display: grid; gap: 4px 28px; padding: 20px 0; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .timeline li { grid-template-columns: 150px 1fr; } }
.timeline .when { font: 600 14px var(--sans); color: var(--accent); padding-top: 4px; }
.timeline h2 { font-size: 1.3rem; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--ink-2); }
.about-why { margin-top: 56px; max-width: 40em; }
.about-why h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }

/* Plans */
.plans-sec { padding-top: 64px; }
.plans-sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 8px; }
.placeholder-flag { display: inline-block; vertical-align: middle; font: 600 12px var(--sans); letter-spacing: .04em; color: var(--amber); background: #f6e7c4; border: 1px dashed currentColor; padding: 1px 8px; margin-left: 8px; }
.plans { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 16px; font: 15px var(--sans); }
.plans th, .plans td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.plans thead th { font: 1.15rem/1.3 var(--serif); border-bottom: 2px solid var(--ink); }
.plans thead .rec { color: var(--accent); }
.plans tbody th { font-weight: 400; }
.plans td { color: var(--ink-2); white-space: nowrap; }
.plans td:last-child { color: var(--ink); font-weight: 600; }
.price { display: block; font: 2rem/1.2 var(--serif); color: #9a917f; margin-top: 4px; }
.price small { font-size: .9rem; }
@media (max-width: 520px) { .plans { font-size: 14px; } .plans th, .plans td { padding: 10px 6px; } .price { font-size: 1.5rem; } }
.small { font: 14px/1.5 var(--sans); color: var(--ink-2); margin-top: 16px; }
.biz { font-style: italic; color: var(--ink-2); max-width: 40em; margin-top: 28px; }

/* Questions: two columns of plain Q and A */
.qs { padding-top: 64px; padding-bottom: 32px; }
.qs h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 20px; }
.qa { margin: 0; display: grid; gap: 0 56px; }
@media (min-width: 760px) { .qa { grid-template-columns: 1fr 1fr; } }
.qa > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.qa dt { font-size: 1.15rem; margin-bottom: 4px; }
.qa dd { margin: 0; color: var(--ink-2); }

/* Closing */
.closing { padding-top: 64px; padding-bottom: 88px; margin-top: 32px; border-top: 1px solid var(--ink); }
.closing h2 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; max-width: 16ch; margin-bottom: 28px; }
.closing .waitlist { max-width: 520px; }

.colophon { background: var(--ink); color: #d8d2c4; font: 14px var(--sans); }
.colophon a { color: #d8d2c4; }
.colophon-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 28px; padding-bottom: 28px; }
.colophon p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg.is-on, .view, .sketch path, .sketch ellipse { animation: none !important; }
}

/* Spam trap for the form relay: hidden from people. */
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* The recording (replaces the illustrated replay) */
.film { margin: 28px 0 10px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper-2); border: 3px solid var(--ink); }
.film figcaption { font: 14px/1.5 var(--sans); color: var(--ink-2); margin-top: 10px; max-width: 46em; }
.film-steps { margin: 26px 0 8px; padding-left: 1.4em; max-width: 44em; }
.film-steps li { margin: 0 0 8px; }
.film-steps .fs-h { font-weight: 600; color: var(--ink); }
/* Phones get the vertical cut (the <source> media query), as tall as fits on screen. */
@media (max-width: 640px) { .film video { aspect-ratio: 9 / 16; width: min(100%, calc(78vh * 9 / 16)); margin: 0 auto; } }
.film-cta { margin: 14px 0 0; }
.film-cta a { font: 600 15px var(--sans); color: var(--accent); text-decoration: none; }
.film-cta a::after { content: " \2192"; }
.film-cta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fs-jump { background: none; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; padding: 0 2px; margin-right: 8px; font: 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fs-jump::before { content: "\25B6\FE0E  "; font-size: 10px; }
.fs-jump:hover { color: var(--accent); border-color: var(--accent); }
.film-steps li.is-on .fs-h, .film-steps li.is-on .fs-jump { color: var(--accent); }
