:root {
  --paper: #fbfaf6;
  --sheet: #ffffff;
  --ink: #1c1a14;
  --muted: #6e6752;
  --line: #e6e2d4;
  --brand: #f0b429;        /* goldenrod — manila folders, legal pads, carbon forms */
  --brand-deep: #c98f12;
  --wash: #f4f0e3;
  --ballpoint: #2742c7;    /* the ink answers get written in — demo + links only */
  --ok: #0a7a4b;
  --err: #b4232c;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans);
  border-top: 4px solid var(--brand); }

/* ---------- shells ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 24px; }
.inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.band { padding: 0; }
.band.brand { background: var(--brand); border-bottom: 1px solid var(--brand-deep); }
.band.wash { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inner.lift { margin-top: -46px; position: relative; }

/* ---------- type ---------- */
h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15;
  letter-spacing: -0.015em; margin: 10px 0 14px; text-wrap: balance; }
h2 { font-size: 13px; margin: 0 0 18px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 12px 0 6px; }
.sub { font-size: 17px; margin: 0 0 8px; max-width: 56ch; }
.eyebrow { font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 12px; margin: 0 0 12px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.crumb a { color: var(--muted); }
.muted { color: var(--muted); font-weight: 400; }
.fine { color: var(--muted); font-size: 13px; }
code { background: var(--wash); border-radius: 4px; padding: 1px 5px; font-family: var(--mono); font-size: 12.5px; }
a { color: var(--ink); text-decoration-color: var(--brand-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
::selection { background: var(--brand); color: var(--ink); }

/* ---------- hero band ---------- */
.topbar { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 0; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.topbar .eyebrow { margin: 0; }
.hero { display: grid; grid-template-columns: 1fr; gap: 36px; padding: 44px 0 72px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); max-width: 18ch; margin-top: 0; }
.hero .sub { font-size: 18px; }
.hero .sub strong { font-weight: 600; }

/* ---------- the demo: paper → phone → paper ---------- */
.demo { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1.05fr) auto minmax(0,1fr); gap: 16px; align-items: center; }
.demo figure { margin: 0; text-align: center; }
.demo figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 12px; color: var(--ink); }
.demo-arrow { font-size: 20px; color: var(--ink); opacity: 0.75; }

.paper { position: relative; background: var(--sheet); border: 1px solid #d9d3bf; border-radius: 4px;
  padding: 18px 16px 14px; min-height: 238px; text-align: left; box-shadow: 0 10px 24px rgba(60, 46, 4, 0.18);
  animation: rise 0.5s ease both; }
.paper.tilt-l { transform: rotate(-1.6deg); }
.paper.tilt-r { transform: rotate(1.4deg); animation-delay: 0.22s; }
.p-title { height: 10px; width: 62%; background: #d9d4c4; border-radius: 2px; margin-bottom: 6px; }
.p-sub { height: 6px; width: 38%; background: #eae6d9; border-radius: 2px; margin-bottom: 14px; }
.p-field { display: flex; align-items: baseline; gap: 8px; margin: 11px 0; }
.p-lbl { height: 7px; background: #e3ded0; border-radius: 2px; flex: none; }
.w16 { width: 16%; } .w20 { width: 20%; } .w24 { width: 24%; } .w32 { width: 32%; }
.p-blank { flex: 1; border-bottom: 1px solid #c4bda6; height: 10px; }
.p-checks { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.p-box { width: 12px; height: 12px; border: 1.3px solid #b4ac93; border-radius: 2px; flex: none;
  font-size: 10px; line-height: 11px; text-align: center; }
.p-area { min-height: 40px; height: auto; border: 1px solid #ddd7c4; border-radius: 3px; margin: 12px 0; padding: 4px 8px; }
.ink { flex: 1; font-family: var(--mono); font-size: 10px; color: var(--ballpoint);
  border-bottom: 1px solid #c4bda6; padding-bottom: 1px; white-space: nowrap; overflow: hidden; }
.ink.sm { border: 0; font-size: 9.5px; white-space: normal; line-height: 1.35; }
.ink.script { font-family: var(--serif); font-style: italic; font-size: 12.5px; }
.ink-x { color: var(--ballpoint); border-color: var(--ballpoint); }
.paper.done { padding-bottom: 40px; }
.stamp { position: absolute; right: 12px; bottom: 10px; transform: rotate(-7deg);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ballpoint); border: 1.4px solid var(--ballpoint); border-radius: 3px;
  padding: 3px 7px; opacity: 0.8; }

.phone { background: var(--sheet); border: 1px solid #d9d3bf; border-radius: 20px;
  padding: 20px 16px 16px; text-align: left; box-shadow: 0 16px 34px rgba(60, 46, 4, 0.22);
  animation: rise 0.5s ease 0.11s both; }
.f-q { font-size: 11.5px; font-weight: 600; margin: 10px 0 4px; }
.f-q:first-child { margin-top: 0; }
.f-in { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font-size: 12.5px; background: var(--paper); }
.f-in.is-focus { border-color: var(--ballpoint); box-shadow: 0 0 0 2.5px rgba(39, 66, 199, 0.16); }
.caret { display: inline-block; width: 1.5px; height: 12px; background: var(--ballpoint);
  margin-left: 2px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
.f-chips { display: flex; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 12px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-go { margin-top: 14px; background: var(--ink); color: #fff; border-radius: 8px;
  text-align: center; font-size: 12.5px; font-weight: 600; padding: 9px 0; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.paper.tilt-l { animation-name: rise-l; } .paper.tilt-r { animation-name: rise-r; }
@keyframes rise-l { from { opacity: 0; transform: rotate(-1.6deg) translateY(10px); } to { transform: rotate(-1.6deg); } }
@keyframes rise-r { from { opacity: 0; transform: rotate(1.4deg) translateY(10px); } to { transform: rotate(1.4deg); } }
@media (prefers-reduced-motion: reduce) {
  .paper, .phone { animation: none; }
  .caret { animation: none; }
}

/* ---------- main card: two paths ---------- */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 18px 0; }
.main-card { padding: 30px; margin: 0; box-shadow: 0 14px 30px rgba(60, 46, 4, 0.10); }
.paths { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; }
.path-div { display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.path-div::before, .path-div::after { content: ""; flex: 1; border-left: 1px solid var(--line); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.chips-row span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--sheet); }

/* ---------- forms ---------- */
label { display: block; margin: 0 0 16px; font-weight: 600; font-size: 14px; }
label.check { font-weight: 400; margin: 0 0 8px; }
.inline-label { margin-top: 14px; }
input[type=text], input[type=email], input[type=date], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 16px; padding: 12px 14px; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
button { background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 13px 26px;
  font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.08s ease, opacity 0.12s ease; }
button:hover { opacity: 0.92; }
button:active { transform: translateY(1px); }
button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.drop { display: block; border: 1.5px dashed #c9c2a8; border-radius: 10px; padding: 44px 20px;
  text-align: center; cursor: pointer; margin-bottom: 6px; color: var(--muted); font-weight: 400; font-size: 17px;
  background: var(--paper); transition: border-color 0.12s ease, color 0.12s ease; }
.drop:hover { border-color: var(--ink); color: var(--ink); }
.drop input { position: absolute; opacity: 0; pointer-events: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- sections ---------- */
.strip { padding: 56px 0 44px; }
.strip.bare { border: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.steps p { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; }
.num { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; }
.facts p { font-size: 15.5px; margin: 0 0 14px; max-width: 52ch; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; max-width: 62ch; margin-bottom: 4px; }
details.card { border: 1px solid var(--line); padding: 20px 24px; }
details.card summary { font-size: 14px; justify-content: flex-start; }
details.card summary::after { content: ""; }
details.card[open] summary { margin-bottom: 14px; }

/* ---------- app pages ---------- */
.banner { border: 1px solid var(--line); background: var(--sheet); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.banner.ok { border-color: var(--ok); color: var(--ok); }
.banner.err { border-color: var(--err); color: var(--err); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
tr:first-child td { border-top: 0; }
.other-text { margin: 6px 0 2px 24px; max-width: 360px; }
.stepnav { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.stepnav button:disabled { opacity: 0.35; cursor: default; }
.q .crumb { text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.settings fieldset { margin-bottom: 14px; }
.prose p { max-width: 62ch; font-size: 15.5px; }
.inline-form { display: inline; }
.linklike { background: none; border: none; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.ml { margin-left: 14px; }

footer { margin-top: 30px; padding: 22px 0 36px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between;
  color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); text-decoration-color: var(--line); }

/* ---------- responsive ---------- */
@media (min-width: 920px) {
  .hero { grid-template-columns: 6fr 7fr; align-items: center; gap: 56px; }
}
@media (max-width: 919px) {
  .demo { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
  .path-div { flex-direction: row; }
  .path-div::before, .path-div::after { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 26px 14px 20px; }
  .inner { padding: 0 16px; }
  h1 { font-size: 27px; }
  .hero { padding: 32px 0 60px; }
  .hero h1 { font-size: 31px; }
  .main-card { padding: 20px; }
}
