/* Hallmark · shape: app screens, one question per screen beside a live phone · genre: playful · theme: custom · job: sign up, verify, onboard, manage the account · idea: "onboarding is the first chat with Wayla; every answer lands in the phone as you give it" · vibe: "a friend a few years ahead, texting back"
 * paper: oklch(99.4% 0.002 85) white · accent: oklch(66% 0.15 295) · field: oklch(76% 0.11 295) lilac, the phone rim and progress · display: Rethink Sans 800 · body: Figtree · hero: the question, large, left; the phone, right · nav: the ω home link and one quiet action · footer: none on the flow, the shared ink footer on account and legal pages · imagery: the product built (WhatsApp in a phone), no photographs · signature: the onboarding answers arriving as WhatsApp bubbles in the phone
 * axes: light/grotesk-heavy/chromatic-violet · posture: committed (white ground, lilac rim) · contrast: pass · fold: pass · scope: app · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: V, form screens can read as a generic stepper; the phone answers back in Wayla's own voice so the flow reads as the first chat */
/* Hallmark · dismissed F4 · Log in and the soft buttons are filled with the page colour to read as outlines on white; the ink button is the only primary */
/* Hallmark · dismissed 58 · the privacy policy and terms are legal text the operator wrote; they stay complete */
/* Hallmark · waive 24b · bubble padding 6/8/7/9px and tail offsets inside the phone · these are WhatsApp's own bubble metrics, matched so the chat reads as the real app */
@import url("./site.css");

:root { --phone-w: min(360px, 27vw); }
body { min-height: 100svh; }
.bar { position: absolute; }
.bar__quiet { font-size: var(--text-sm); color: var(--color-muted); }
.bar__quiet a { color: var(--color-ink); font-weight: 600; }

.shell { display: grid; grid-template-columns: minmax(0, 1fr) var(--phone-w); column-gap: clamp(var(--space-2xl), 8vw, var(--space-4xl)); align-items: center; max-width: var(--container); min-height: 100svh; margin-inline: auto; padding: 128px var(--gutter) var(--space-3xl); }
.flow { width: 100%; max-width: 36rem; }
.preview { position: sticky; top: var(--space-xl); }
.preview .phone { animation: none; }
.preview .screen { justify-content: flex-end; height: 100%; overflow: hidden; }
.preview .wa__track { transform: none; }

.progress { height: 4px; border-radius: var(--radius-pill); background: var(--color-paper-2); margin-bottom: var(--space-2xl); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--color-field-deep); border-radius: inherit; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 0.6s var(--ease-out); }

.step { display: flex; flex-direction: column; gap: var(--space-lg); }
.step h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 30rem; }
.hint { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }
.count { font-size: var(--text-sm); color: var(--color-muted); }

.fields { display: grid; gap: var(--space-md); }
.fields--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: var(--space-2xs); min-width: 0; }
.field label, .field .label { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.input { width: 100%; min-height: 60px; padding: var(--space-sm) var(--space-md); border: 1.5px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-page); color: var(--color-ink); font-size: 1.25rem; transition: border-color var(--dur-short) var(--ease-out); }
.input::placeholder { color: var(--color-muted); }
.input:hover { border-color: var(--color-rule-dark); }
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--color-error); }
.input--code { font-family: var(--font-ui); font-size: 2rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
textarea.input { min-height: 180px; font-size: var(--text-md); line-height: 1.5; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-ink) 50%), linear-gradient(135deg, var(--color-ink) 50%, transparent 50%); background-position: calc(100% - 26px) 50%, calc(100% - 20px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--space-2xl); }
.error { font-size: var(--text-sm); color: var(--color-error); min-height: 1.4em; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xs); }
.link { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: pointer; border-radius: var(--space-2xs); }
.link:hover { text-decoration-thickness: 2px; }
.link:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn--soft { background: var(--color-page); color: var(--color-ink); }
.btn--soft:hover { background: var(--color-paper-2); }
.btn--soft:disabled { opacity: 1; color: var(--color-muted); border-color: var(--color-rule); background: var(--color-paper-2); cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { min-height: 52px; padding: 0 var(--space-lg); border: 1.5px solid var(--color-rule-dark); border-radius: var(--radius-pill); background: var(--color-page); color: var(--color-ink); font-size: var(--text-md); font-weight: 600; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.chip:hover { border-color: var(--color-ink); }
.chip:active { transform: scale(0.97); }
.chip:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

.prompt { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-card); background: var(--color-field-soft); }
.prompt q { font-size: var(--text-md); line-height: 1.5; quotes: none; }
.prompt .btn { align-self: flex-start; min-height: 44px; }
.numbered { display: grid; gap: var(--space-lg); padding: 0; margin: 0; list-style: none; counter-reset: n; }
.numbered > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-sm); counter-increment: n; }
.numbered > li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 600; }
.numbered > li > div { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }

.waiting { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.waiting i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); }

.toast { position: fixed; left: 50%; bottom: var(--space-xl); z-index: var(--z-toast); padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 600; transform: translate(-50%, 0); transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out); }
.toast[data-hidden] { transform: translate(-50%, 140%); opacity: 0; }

.page { max-width: 46rem; margin-inline: auto; padding: 136px var(--gutter) var(--space-4xl); }
.page__head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-3xl); }
.page__head h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.section { display: flex; flex-direction: column; gap: var(--space-md); padding-block: var(--space-2xl); border-top: 1px solid var(--color-rule); }
.section h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding-block: var(--space-sm); }
.row + .row { border-top: 1px solid var(--color-paper-2); }
.row__text { display: flex; flex-direction: column; gap: var(--space-3xs); min-width: 0; }
.row__text b { font-weight: 600; }
.row__text span { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.45; }
.times { display: flex; align-items: center; gap: var(--space-xs); }
.times .input { width: 10.5rem; min-height: 48px; font-size: var(--text-md); padding-block: var(--space-xs); }

.switch { appearance: none; position: relative; flex-shrink: 0; width: 52px; height: 32px; margin: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-page); box-shadow: 0 1px 3px var(--phone-shadow-2); transition: transform 0.3s var(--ease-out); }
.switch:checked { background: var(--color-ink); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.danger { color: var(--color-error); border-color: var(--color-error); background: var(--color-page); }
.danger:hover { background: var(--color-error); color: var(--color-page); }

dialog { width: 30rem; max-width: calc(100% - 2 * var(--gutter)); padding: var(--space-xl); border: 0; border-radius: var(--radius-card); background: var(--color-page); color: var(--color-ink); box-shadow: 0 30px 80px -20px var(--phone-shadow-2); }
dialog::backdrop { background: var(--color-scrim); }
dialog form { display: flex; flex-direction: column; gap: var(--space-md); }
dialog h2 { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }

.legal { max-width: 44rem; margin-inline: auto; padding: 136px var(--gutter) var(--space-4xl); }
.legal h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; margin-bottom: var(--space-sm); }
.legal h2 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; margin: var(--space-2xl) 0 var(--space-sm); }
.legal p, .legal li { line-height: 1.65; color: var(--color-ink-2); }
.legal p + p { margin-top: var(--space-sm); }
.legal ul { padding-left: 1.2em; display: grid; gap: var(--space-xs); margin: var(--space-sm) 0; }
.legal .updated { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-xl); }
.legal a { color: var(--color-ink); }

@media (prefers-reduced-motion: no-preference) {
  .step:not([hidden]) > * { animation: lift 0.5s var(--ease-out) backwards; }
  .step:not([hidden]) > :nth-child(2) { animation-delay: 0.05s; }
  .step:not([hidden]) > :nth-child(3) { animation-delay: 0.1s; }
  .step:not([hidden]) > :nth-child(n + 4) { animation-delay: 0.15s; }
  .waiting i { animation: blink 1s ease-in-out infinite; }
  .waiting i:nth-child(2) { animation-delay: 0.15s; }
  .waiting i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes lift { from { opacity: 0; transform: translateY(14px); } }
}
@media (prefers-reduced-motion: reduce) { .progress i, .toast, .switch, .switch::after, .chip, .input { transition: none; } }

@media (max-width: 60rem) {
  .shell { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 112px; }
  .preview { display: none; }
  .fields--two { grid-template-columns: minmax(0, 1fr); }
  .row { flex-wrap: wrap; align-items: flex-start; }
  .times { flex-wrap: wrap; }
}
