/* The questionnaire, in the Cool Page Club look (IN47): a plum-black page, bone type, and one pink for
   anything picked or pressed. Teal, yellow and purple are kept for the flat stickers and the heads-up
   notes. Questions sit in open space in one centered column, with no card outlines; the room between
   them does the separating. Screen titles are posters: Two Much, uppercase, stacked tight. Hello Organic Hand is the script, for accents only.
   No shadows, no gradients. Always dark, whatever the device's theme. */
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("hanken-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Two Much"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("two-much.woff2") format("woff2");
}
@font-face {
  font-family: "Hello Organic Hand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("hello-organic-hand.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --page: #16111a; --lift: #1e1823; --lift-2: #2c2030; --edge: #3a3040; --edge-2: #54465c;
  --bone: #f6efe2; --dim: #b3a9b8; --faint: #978c9d;
  --pink: #ff86c1; --teal: #21c4b4; --yellow: #ffd23f; --purple: #6f3fd0;
  --accent: var(--pink);                     /* this part's sticker color (set per part below) */
  --err: #ff9d8f; --err-bg: #3a1c20;
  --r-field: 14px; --pill: 999px; --gutter: 20px; --col: 720px;
  --font: "Hanken Grotesk", "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Two Much", "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --script: "Hello Organic Hand", "Segoe Script", "Bradley Hand", cursive;
  --pop: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.2, .7, .2, 1);
}
body[data-part="1"] { --accent: var(--teal); }
body[data-part="2"] { --accent: var(--yellow); }
body[data-part="3"] { --accent: var(--pink); }
body[data-part="4"] { --accent: var(--teal); }
body[data-part="5"] { --accent: var(--yellow); }
body[data-part="6"] { --accent: var(--pink); }
body[data-part="7"] { --accent: var(--teal); }
body[data-part="8"] { --accent: var(--yellow); }
@media (min-width: 860px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--bone); font: 500 17px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 170px; }
strong, b { font-weight: 700; }

/* ---- the top bar ---- */
.top { position: sticky; top: 0; z-index: 5; background: var(--page); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter) 12px; display: flex; align-items: center; gap: 10px; }
.step-count, .site { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--pill);
  font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.logo-btn { flex: none; padding: 0; margin-right: 4px; border: 0; background: none; cursor: pointer; border-radius: 6px; line-height: 0; }
.logo { height: 40px; width: auto; display: block; }   /* the Cool Page Club flag (IN55) */
.site { background: var(--lift); color: var(--dim); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; max-width: 36vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 32px; }
.site:empty { display: none; }
.step-count { margin-left: auto; background: var(--lift); color: var(--bone); font-variant-numeric: tabular-nums; }
.step-count:empty { display: none; }
.bar { height: 4px; background: var(--lift-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--pink); border-radius: 0 var(--pill) var(--pill) 0; transition: width .5s var(--ease); }
@media (max-width: 520px) { .site { display: none; } }

/* ---- stickers: flat shapes, pinned at an angle ---- */
.sticker { position: absolute; display: block; width: var(--size, 72px); height: var(--size, 72px); transform: rotate(var(--tilt, -8deg)); pointer-events: none;
  animation: stick .5s var(--pop) both; animation-delay: var(--delay, 0s); }
.sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* The pop moves and turns a sticker but never hides it, so a stalled animation can't leave one invisible. */
@keyframes stick { from { transform: rotate(calc(var(--tilt, -8deg) - 24deg)) scale(.5); } to { transform: rotate(var(--tilt, -8deg)) scale(1); } }

/* ---- the opening line and a screen's poster title ---- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 12vw, 120px); line-height: .92; letter-spacing: -.01em; margin: 0; text-wrap: balance; position: relative; }
.intro { font-size: clamp(18px, 2.2vw, 21px); font-weight: 500; line-height: 1.45; color: var(--dim); max-width: 58ch; margin: 44px 0 0; text-wrap: pretty; }
.step-head { position: relative; display: flex; align-items: center; gap: 20px; margin: 64px 0 8px; }
.intro + .step-head { margin-top: 40px; }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 8vw, 84px); line-height: .92; letter-spacing: -.01em; margin: 0; outline: none; text-wrap: balance; }
.step-head .sticker { position: relative; flex: none; --size: clamp(44px, 7vw, 76px); --tilt: 10deg; --delay: .1s; margin-left: auto; }

/* ---- one question: words, then the answer, with room around it ---- */
.q { padding: 44px 0 4px; }
.q + .q { border-top: 1px solid var(--edge); margin-top: 44px; }
.q[hidden] { display: none; }
.q[hidden] + .q { border-top: 0; margin-top: 0; }
.q-label { display: block; font-size: clamp(23px, 2.8vw, 30px); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
/* A box inside a question that can be skipped wears its tag only once that answer is started (IN46). */
.req.soft { display: none; }
.started .req.soft { display: inline-block; }
.req { display: inline-block; vertical-align: middle; background: var(--yellow); color: var(--page); border-radius: var(--pill); font-size: 11px; font-weight: 700; line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; margin: -3px 0 0 10px; white-space: nowrap; transform: rotate(-3deg); }
.hint { color: var(--dim); margin: 12px 0 0; max-width: 58ch; text-wrap: pretty; }
.q-body { margin-top: 22px; }
/* "Why we ask" is one tap away, so the screen carries a third fewer words (IN47). */
.why-btn { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; padding: 6px 0; min-height: 32px; background: none; border: 0; color: var(--faint); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; border-radius: 6px; }
.why-btn:hover, .why-btn[aria-expanded=true] { color: var(--pink); }
.why { color: var(--bone); background: var(--lift); border-left: 3px solid var(--pink); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.45; margin: 8px 0 0; padding: 10px 14px; max-width: 58ch; }
.why[hidden] { display: none; }

/* ---- typed answers ---- */
input[type=text], input[type=url], input[type=email], input[type=date], input[type=time], textarea, select {
  width: 100%; font: inherit; color: var(--bone); background: var(--lift); border: 1px solid var(--edge); border-radius: var(--r-field);
  padding: 15px 18px; min-height: 56px; transition: background-color .15s ease, border-color .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--edge-2); }
textarea { resize: vertical; line-height: 1.45; display: block; }
textarea[disabled] { opacity: .4; }
::placeholder { color: var(--faint); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .opt:focus-within, .check:focus-within, summary:focus-visible {
  outline: 2px solid var(--pink); outline-offset: 2px;
}
input[type=text]:focus, input[type=url]:focus, input[type=email]:focus, textarea:focus, select:focus { border-color: var(--pink); background: var(--lift-2); }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--dim); margin-bottom: 8px; }
.grid { display: grid; gap: 14px; }
.grid > .field, .ctl > .field:first-child, .row > .field:first-child { margin-top: 0; }
.field + .grid { margin-top: 14px; }
@media (min-width: 620px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- tap answers: quiet rows until one is picked, then it turns pink ---- */
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; align-items: center; padding: 15px 18px; min-height: 56px;
  background: var(--lift); border: 1px solid transparent; border-radius: var(--r-field); cursor: pointer; font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, transform .2s var(--pop); }
.opt:hover { background: var(--lift-2); border-color: var(--edge-2); }
.opt:active { transform: scale(.985); }
.opt input { grid-column: 2; grid-row: 1; appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border: 1.5px solid var(--edge-2); background: transparent; outline: none;
  transition: transform .25s var(--pop); }
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=checkbox] { border-radius: 7px; }
.opt > span { grid-column: 1; grid-row: 1; }
.opt-hint { grid-column: 1; grid-row: 2; display: block; color: var(--dim); font-size: 15px; font-weight: 500; line-height: 1.4; }
.opt:has(input:checked) { background: var(--pink); color: var(--page); }
.opt:has(input:checked) .opt-hint { color: var(--page); }
.opt:has(input:checked) input, .check input:checked { border-color: var(--page); background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16.2 8' fill='none' stroke='%23ff86c1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  transform: rotate(-8deg) scale(1.12); }
.ctl > .opts + .field { margin-top: 14px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; width: fit-content; border-radius: 8px; font-weight: 600; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--edge-2); border-radius: 7px; background: transparent; outline: none;
  transition: transform .25s var(--pop); }
.check input:checked { border-color: var(--pink); }

/* ---- repeating rows, uploads ---- */
.row { border-top: 1px dashed var(--edge-2); padding-top: 18px; margin-top: 18px; }
.row:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.link { background: none; border: 0; color: var(--bone); font: inherit; font-weight: 700; padding: 12px 0; cursor: pointer; min-height: 44px; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--pink); border-radius: 8px; }
.link:hover { color: var(--pink); }
.link.remove { color: var(--faint); font-size: 14px; font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: 1px; }

/* The upload box: drop files on it, paste a screenshot, or browse (IN48). */
.drop { border: 1.5px dashed var(--edge-2); border-radius: var(--r-field); padding: 26px 18px 20px; text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.drop:hover, .drop.over { border-color: var(--pink); }
.drop.over { background: var(--lift); }
.drop-words { margin: 0 0 14px; color: var(--bone); font-weight: 600; }
.drop input[type=file] { border: 0; padding: 0; width: auto; max-width: 100%; }
input[type=file] { font: inherit; font-size: 15px; color: var(--dim); width: 100%; padding: 26px 18px; background: transparent; border: 1.5px dashed var(--edge-2); border-radius: var(--r-field); cursor: pointer; }
input[type=file]:hover { border-color: var(--pink); }
input[type=file]::file-selector-button { font: inherit; font-size: 14px; font-weight: 700; line-height: 1; color: var(--page); background: var(--bone); border: 0; border-radius: var(--pill); height: 40px; padding: 0 18px; margin-right: 14px; cursor: pointer; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--edge); padding: 8px 0; }
.files li:first-child { margin-top: 12px; }
.files select { min-height: 38px; padding: 6px 12px; width: auto; font-size: 13px; border-radius: var(--pill); }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* ---- warnings and problems ---- */
/* A heads-up about an answer, shown right under it. Yellow with a "!" badge, so it reads as a note from us
   and never as one more answer to pick. */
.note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--yellow); color: var(--page); border-radius: 18px;
  padding: 16px 18px 18px; margin-top: 16px; animation: note-in .4s var(--pop) both; }
.note-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--page); color: var(--yellow); border-radius: 50%;
  font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; transform: rotate(-8deg); }
.note strong { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; margin-top: 6px; text-wrap: balance; }
.note p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; max-width: 62ch; text-wrap: pretty; }
@keyframes note-in { from { transform: scale(.96) translateY(-6px); } to { transform: none; } }
.err { color: var(--err); font-size: 15px; font-weight: 700; line-height: 1.35; margin: 12px 0 0; }
.err:empty { display: none; }
.errbox { background: var(--err-bg); color: var(--err); border: 1px solid var(--err); border-radius: var(--r-field); padding: 16px; margin: 24px 0 0; }
.errbox ul { margin: 6px 0 0; padding-left: 20px; }
.q.bad { box-shadow: -3px 0 0 var(--err); padding-left: 18px; }

.ai-notice { font-size: 15px; line-height: 1.5; color: var(--bone); background: var(--lift); border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 16px; }
.release { font-size: 14px; line-height: 1.5; color: var(--dim); margin: 0 0 6px; }

/* ---- the recap before sending: each part, its answers on a tap, and a way back to each screen ---- */
.recap { margin: 36px 0 0; }
.recap > p { color: var(--dim); margin: 0 0 14px; }
.recap details { background: var(--lift); border-radius: var(--r-field); margin-top: 8px; }
.recap summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; border-radius: var(--r-field); }
.recap summary::-webkit-details-marker { display: none; }
.recap summary::after { content: "+"; margin-left: 4px; color: var(--pink); font-size: 22px; font-weight: 500; line-height: 1; }
.recap details[open] summary::after { content: "\2212"; }
.recap .count { margin-left: auto; color: var(--dim); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.recap .screen { border-top: 1px solid var(--edge); padding: 14px 18px 16px; }
.recap .screen-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.recap .screen-head strong { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.recap .screen-head .link { padding: 4px 0; min-height: 32px; font-size: 14px; }
.recap dl { margin: 6px 0 0; }
.recap dt { color: var(--dim); font-size: 14px; margin-top: 10px; }
.recap dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.recap .none { color: var(--faint); font-size: 14px; margin: 6px 0 0; }

/* ---- Back and Next ---- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--page); border-top: 1px solid var(--edge); }
.nav-in { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); display: flex; gap: 10px; justify-content: space-between; }
.btn { font: inherit; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .01em; border-radius: var(--pill); padding: 0 26px; height: 56px; cursor: pointer; border: 1px solid var(--edge-2);
  background: transparent; color: var(--bone); display: inline-flex; align-items: center; gap: 12px; transition: transform .2s var(--pop), background-color .15s ease; }
.btn:hover { background: var(--lift-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: var(--pink); border-color: var(--pink); color: var(--page); margin-left: auto; min-width: 170px; justify-content: space-between; }
.btn.primary::after { content: "\2192"; font-size: 20px; line-height: 1; transition: transform .2s var(--pop); }
.btn.primary:hover { background: #ff9dcd; }
.btn.primary:hover::after { transform: translateX(5px); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }

/* ---- sent ---- */
.done { position: relative; padding: clamp(120px, 18vw, 170px) 0 0; }
.done h1 { margin: 0 0 32px; outline: none; }
.done p, .done li { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.4; max-width: 56ch; }
.done p { margin: 0 0 12px; color: var(--dim); }
.done p.lead { color: var(--bone); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 20px; }
.done h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--pink); margin: 40px 0 10px; }
.done ol, .done ul { margin: 0; padding-left: 24px; }
.done li { margin-bottom: 8px; }
.done ol li::marker { color: var(--pink); font-weight: 700; }
.done code { font: inherit; font-weight: 700; color: var(--page); background: var(--pink); padding: 2px 12px; border-radius: var(--pill); white-space: nowrap; }
.done .s-star { --size: clamp(56px, 9vw, 96px); --tilt: 14deg; left: 0; top: 24px; }
.done .s-check { --size: clamp(44px, 7vw, 72px); --tilt: -12deg; --delay: .1s; left: clamp(72px, 12vw, 124px); top: 44px; }

/* A new screen eases in: a short rise, never a hide, so a stalled animation can't leave it blank. */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
#app.enter > *:not(.nav) { animation: rise .35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* answers in two columns, and the lead form's question picker (IN50) */
@media (min-width: 620px) { .opts.two { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.group-label { margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.asks > .group-label:first-child { margin-top: 0; }
.asks .row { border-top: 0; margin-top: 10px; padding: 18px; background: var(--lift); border-radius: var(--r-field); }
.asks .row input { background: var(--page); }
.asks .row .field + .field { margin-top: 14px; }
.asks .row .field-note { margin-top: 8px; font-size: 14px; }
/* the "use the website" switch (IN52) and a review's own image (IN51) */
.switch { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; background: var(--lift); border-radius: var(--r-field); cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { flex: none; width: 46px; height: 28px; border-radius: var(--pill); background: var(--edge-2); position: relative; transition: background-color .15s ease; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bone); transition: transform .2s var(--pop); }
.switch input:checked + .track { background: var(--pink); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--page); }
.switch:focus-within { outline: 2px solid var(--pink); outline-offset: 2px; }
.switch + * { margin-top: 14px; }
.pick-file { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pick-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-file:focus-within { outline: 2px solid var(--pink); outline-offset: 2px; }
.one-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; }
.one-file .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the intro screen and each screen's own line (IN54) */
/* The script is an accent: one handwritten line a screen (the operator's voice), and the intro's last line. Never a question, an answer, a warning or the release. */
.step-line, .start-handy { font-family: var(--script); font-weight: 400; font-size: clamp(25px, 3.2vw, 31px); line-height: 1.2; color: var(--accent); text-wrap: pretty; }
.step-line { max-width: 34ch; margin: 20px 0 0; }
.start h1 { font-size: clamp(52px, 11vw, 112px); outline: none; }
.start .intro { color: var(--bone); margin-top: 32px; }
.start-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.start-points li { background: var(--lift); border-radius: var(--r-field); padding: 16px 18px; font-weight: 600; line-height: 1.4; }
.start-handy { margin: 32px 0 0; max-width: 38ch; }
/* phone hours (IN49) */
.hours .row { border-top: 0; margin-top: 18px; padding: 18px; background: var(--lift); border-radius: var(--r-field); }
.hours .row select { background: var(--page); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.day { font: inherit; font-size: 14px; font-weight: 700; color: var(--bone); background: var(--page); border: 1px solid var(--edge); border-radius: var(--pill);
  min-height: 48px; padding: 0; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .2s var(--pop); }
.day:hover { border-color: var(--edge-2); }
.day:active { transform: scale(.94); }
.day.on { background: var(--pink); border-color: var(--pink); color: var(--page); }
.hours-err { margin: 12px 0 0; color: var(--err); font-size: 15px; font-weight: 700; }
.hours-said { font-weight: 600; color: var(--bone); }
@media (max-width: 420px) { .days { gap: 4px; } .day { font-size: 13px; } }
.field-note { margin: 14px 0 0; font-size: 15px; color: var(--dim); }
