/* Eaco Forms landing page (forms.eaco.ai). Hand-written CSS, no build step. */

/* Brand type, self-hosted (Fontshare free licence): Clash Display for headlines, Satoshi for text. */
@font-face { font-family: 'Clash Display'; font-weight: 600; font-style: normal; font-display: swap; src: url('/forms/assets/fonts/ClashDisplay-600.woff2') format('woff2'); }
@font-face { font-family: 'Clash Display'; font-weight: 700; font-style: normal; font-display: swap; src: url('/forms/assets/fonts/ClashDisplay-700.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 400; font-style: normal; font-display: swap; src: url('/forms/assets/fonts/Satoshi-400.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-style: normal; font-display: swap; src: url('/forms/assets/fonts/Satoshi-500.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-style: normal; font-display: swap; src: url('/forms/assets/fonts/Satoshi-700.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --orange: #f26b1f;
  --orange-deep: #b94a14;
  --orange-soft: #ffe9dc;
  --orange-wash: #fff4ec;
  --ink: #1a1a2e;
  --ink-2: #3a3a4a;
  --grey: #66667a;
  --muted: #8d8d9c;
  --line: #e6e6ec;
  --line-2: #d3d3dc;
  --bg: #ffffff;
  --bg-2: #f7f7f9;
  --bg-3: #efeff3;
  --green: #17753f;
  --green-soft: #e2f3ea;
  --red: #c0392b;
  --display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --font: 'Satoshi', 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgba(26, 26, 46, 0.05), 0 10px 30px rgba(26, 26, 46, 0.08);
  --shadow-2: 0 2px 6px rgba(26, 26, 46, 0.06), 0 24px 60px rgba(26, 26, 46, 0.12);
  --radius: 16px;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
/* The build and upload challenges render here. Empty unless Cloudflare asks the visitor for an interaction, and then it must be on screen: a 0x0 host would hide the challenge and the build would hang until timeout. */
#build-turnstile { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 200; }
/* under the build bar while a phone build is running: the pinned action bar at the bottom changes height with its buttons */
html.build.building #build-turnstile { top: calc(66px + env(safe-area-inset-top)); bottom: auto; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange-soft); color: var(--ink); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.012em; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.h2 { font-size: clamp(30px, 4vw, 42px); }
.sub { font-size: 18px; color: var(--grey); max-width: 58ch; margin-top: 14px; text-wrap: pretty; }
.section { padding: 96px 0; scroll-margin-top: 68px; }
.section--tint { background: var(--bg-2); }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 140ms, transform 140ms var(--ease), box-shadow 140ms; border: 1.5px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c2c44; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 30px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark img { height: 24px; width: auto; }
.wordmark-tag { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); padding-left: 10px; border-left: 1.5px solid var(--line-2); line-height: 1; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--orange); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-right .signin { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-right .signin:hover { color: var(--orange); }
.nav .btn { height: 42px; padding: 0 18px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 120%; pointer-events: none; z-index: 0; filter: blur(48px); opacity: 0.9; }
.aurora i { position: absolute; border-radius: 50%; display: block; will-change: transform, opacity; }
.aurora i:nth-child(1) { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -10%; top: 0; background: radial-gradient(circle, rgba(242, 107, 31, 0.28), rgba(242, 107, 31, 0) 65%); animation: drift1 13s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; right: -8%; top: 6%; background: radial-gradient(circle, rgba(255, 191, 130, 0.45), rgba(255, 191, 130, 0) 65%); animation: drift2 17s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; left: 35%; top: 30%; background: radial-gradient(circle, rgba(255, 233, 220, 0.9), rgba(255, 233, 220, 0) 65%); animation: drift3 10s ease-in-out infinite alternate; }
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1); opacity: 0.85; } 50% { transform: translate(16%, 12%) scale(1.14); opacity: 1; } 100% { transform: translate(6%, 24%) scale(0.94); opacity: 0.8; } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); opacity: 0.9; } 50% { transform: translate(-18%, 12%) scale(1.1); opacity: 1; } 100% { transform: translate(-6%, -8%) scale(1.2); opacity: 0.85; } }
@keyframes drift3 { 0% { transform: translate(0, 0) scale(1); opacity: 0.75; } 50% { transform: translate(-14%, -16%) scale(1.3); opacity: 1; } 100% { transform: translate(12%, 8%) scale(1.05); opacity: 0.8; } }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: clamp(34px, 6.6vw, 76px); max-width: 16ch; margin: 0 auto; letter-spacing: -0.018em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .sub { font-size: 19px; margin: 22px auto 0; max-width: 54ch; }
.hero .sub-line { display: inline-block; }

.composer { position: relative; z-index: 1; max-width: 780px; margin: 36px auto 0; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-2); text-align: left; transition: box-shadow 160ms, border-color 160ms; }
.composer:focus-within { border-color: rgba(242, 107, 31, 0.6); box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.14), var(--shadow-2); }
.brief { display: block; width: 100%; resize: none; border: 0; background: transparent; color: var(--ink); font: 500 19px/1.5 var(--font); padding: 20px 22px 8px; min-height: 92px; max-height: 260px; overflow-y: auto; caret-color: var(--orange); }
.brief::placeholder { color: var(--muted); }
.brief:focus { outline: none; }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px 12px; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; background: var(--bg); }
.tool:hover { background: var(--bg-2); border-color: var(--line-2); }
.tool svg { width: 16px; height: 16px; }
.tool--icon { width: 36px; padding: 0; justify-content: center; }
.composer-bar .go { margin-left: auto; }
/* the photo or PDF attached to the brief */
.attach-chip { display: flex; align-items: center; gap: 10px; margin: 2px 12px 4px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 13.5px; line-height: 1.25; }
.attach-chip[hidden] { display: none; }
.attach-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--bg); flex: none; }
.attach-thumb[hidden] { display: none; }
.attach-pdf { width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: 0.04em; }
.attach-pdf[hidden] { display: none; }
.attach-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.attach-text b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-text span { font-size: 12.5px; color: var(--grey); }
.attach-chip.ready .attach-text span { color: var(--green); }
.attach-chip.error { border-color: rgba(214, 51, 51, 0.5); background: rgba(214, 51, 51, 0.06); }
.attach-chip.error .attach-text span { color: #c62828; white-space: normal; }
.attach-chip.busy .attach-text span::after { content: '…'; }
.attach-remove { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.attach-remove:hover { background: var(--bg); color: var(--ink); }
.attach-remove svg { width: 14px; height: 14px; }
.tool.has-file { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-wash); }
.go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; transition: background 140ms; }
.go:hover { background: var(--orange-deep); }
.go svg { width: 16px; height: 16px; }
.go.stop { background: var(--ink); }
.go .lbl-build, .go .arrow { display: inline; }
.go .lbl-stop, .go .square { display: none; }
.go.stop .lbl-build, .go.stop .arrow { display: none; }
.go.stop .lbl-stop, .go.stop .square { display: inline; }

.types { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.type { height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background 120ms, border-color 120ms; }
.type:hover { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.type--link { border: 0; background: none; color: var(--orange-deep); font-weight: 600; }
.type--link:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.status { position: relative; z-index: 1; margin-top: 14px; font-size: 14px; color: var(--grey); display: inline-flex; align-items: center; gap: 8px; min-height: 22px; font-variant-numeric: tabular-nums; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: none; }
.status.busy .dot { display: inline-block; animation: pulse 1s ease-in-out infinite; }
.status.done .dot { display: inline-block; background: var(--green); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* the stage: product frame */
.stage { padding: 24px 0 72px; position: relative; scroll-margin-top: 84px; }
.frame { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tab { height: 34px; padding: 0 14px; white-space: nowrap; flex: none; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--grey); display: inline-flex; align-items: center; gap: 8px; }
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(26, 26, 46, 0.08); }
.frame-meta { margin-left: auto; font-size: 13px; color: var(--grey); display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.frame-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.panel:not([data-active="true"]) { display: none !important; }
.panel[data-active="true"] { animation: panelIn 260ms var(--ease) both; }
@keyframes panelIn { from { opacity: 0.4; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.frame { position: relative; }
.frame::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--orange); z-index: 3; opacity: 0; transition: opacity 200ms; }
.frame.busy::before { opacity: 1; width: 40%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.frame.busy .frame-meta .dot { background: var(--orange); animation: pulse 1s ease-in-out infinite; }

/* form panel: the Eaco form preview */
.panel-form { display: block; background: var(--bg-3); padding: 34px 20px 44px; }
/* On desktop the built form scrolls inside the frame, capped just under one
   screen, so a long form never pushes the rest of the page out of reach. */
.panel-form { max-height: calc(100vh - 180px); min-height: 420px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.panel-form::after { content: ''; display: block; position: sticky; bottom: -44px; height: 64px; margin: -20px -20px -44px; background: linear-gradient(transparent, var(--bg-3) 70%); pointer-events: none; }
.doc { width: min(680px, 100%); margin: 0 auto; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-1); padding: 30px 34px 34px; }
.doc-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc-logo { width: 64px; height: 44px; border-radius: 8px; border: 1px dashed var(--line-2); display: grid; place-items: center; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; line-height: 1.2; flex: none; }
.doc-title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; line-height: 1.1; }
.doc-sub { color: var(--grey); font-size: 14.5px; margin-top: 4px; }
.d-sec { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-deep); margin: 26px 0 10px; }
.d-q { margin: 0 0 14px; }
.d-row + .d-q { margin-top: 14px; }
.d-label { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; display: flex; gap: 4px; }
.req { color: var(--orange); }
.d-input { height: 40px; border: 1.5px solid var(--line); border-radius: 9px; background: #fbfbfd; display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; }
.d-input.area { height: 74px; align-items: flex-start; padding-top: 10px; }
.d-input.filled { background: var(--bg); border-color: var(--line-2); }
.d-input .fill { height: 10px; width: 55%; border-radius: 999px; background: var(--line-2); }
.d-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.d-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; position: relative; }
.d-box.on { background: var(--green); border-color: var(--green); }
.d-box.on::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(43deg); }
.d-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.d-opt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; color: var(--ink-2); }
.d-opt.on { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-wash); font-weight: 600; }
.d-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.d-opt.on .d-radio { border-color: var(--orange); box-shadow: inset 0 0 0 3px var(--orange); }
.d-photo { display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--grey); font-size: 14px; font-weight: 600; }
.d-photo svg { width: 18px; height: 18px; }
.d-photo.filled { border-style: solid; border-color: var(--green); color: var(--green); background: var(--green-soft); }
.d-sig { margin-top: 6px; }
.d-sig-pad { height: 74px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-2); position: relative; }
.d-sig-pad svg { position: absolute; left: 12%; top: 14%; width: 50%; height: 72%; color: var(--ink); }
.d-sig-label { font-size: 12.5px; color: var(--grey); margin-top: 6px; }
.d-empty { color: var(--muted); font-size: 15px; padding: 28px 0 8px; text-align: center; }
.d-cursor { display: inline-block; width: 8px; height: 17px; background: var(--orange); vertical-align: -3px; margin-left: 6px; animation: pulse 0.9s steps(2) infinite; }
.d-in { animation: rowIn 480ms var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* phone panel */
.panel-phone { background: var(--bg-3); padding: 44px 32px 52px; display: grid; grid-template-columns: 320px minmax(0, 400px); gap: 64px; justify-content: center; align-items: center; }
.phone { width: 320px; border-radius: 40px; background: var(--ink); padding: 12px; box-shadow: var(--shadow-2); margin: 0 auto; }
.phone-screen { background: var(--bg-2); border-radius: 30px; overflow: hidden; height: 620px; position: relative; display: flex; flex-direction: column; }
.phone-screen::before { content: ''; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: var(--ink); z-index: 5; }
.phone-top { background: var(--bg); padding: 46px 18px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.phone-top small { display: block; font-size: 11px; color: var(--grey); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.phone-top div { font-family: var(--display); font-weight: 600; font-size: 17px; margin-top: 2px; line-height: 1.15; }
.gps { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.gps::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phone-body { padding: 14px 14px 96px; overflow-y: auto; flex: 1; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.phone-body::-webkit-scrollbar { display: none; }
.phone-body .doc { padding: 16px 16px 18px; border-radius: 12px; box-shadow: none; font-size: 13px; }
.phone-body .d-sec { font-size: 10.5px; margin: 14px 0 6px; }
.phone-body .d-row { font-size: 13px; padding: 8px 0; }
.phone-body .d-box { width: 18px; height: 18px; }
.phone-body .d-box.on::after { left: 4.5px; top: 1px; width: 4px; height: 8px; }
.phone-body .d-label { font-size: 12.5px; }
.phone-body .d-input { height: 32px; }
.phone-body .d-photo { height: 48px; font-size: 12px; }
.phone-body .d-opt { height: 30px; font-size: 12px; padding: 0 10px; }
.phone-body .d-sig-pad { height: 56px; }
/* interactive controls inside the phone */
.p-row { cursor: pointer; user-select: none; -webkit-user-select: none; }
.p-row input, .p-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.p-row input:checked + .d-box { background: var(--green); border-color: var(--green); }
.p-row input:checked + .d-box::after { content: ''; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(43deg); }
.p-row input:focus-visible + .d-box { outline: 2px solid var(--orange); outline-offset: 2px; }
.p-opt { cursor: pointer; position: relative; }
.p-opt:has(input:checked) { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-wash); font-weight: 600; }
.p-opt:has(input:checked) .d-radio { border-color: var(--orange); box-shadow: inset 0 0 0 3px var(--orange); }
.p-input { width: 100%; height: 34px; border: 1.5px solid var(--line); border-radius: 9px; background: #fbfbfd; padding: 0 10px; font: 500 13px var(--font); color: var(--ink); }
.p-input[type="date"], .p-input[type="time"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: left; line-height: 31px; }
.p-input[type="date"]::-webkit-datetime-edit, .p-input[type="time"]::-webkit-datetime-edit { padding: 0; height: 100%; display: flex; align-items: center; }
.p-input[type="date"]::-webkit-date-and-time-value, .p-input[type="time"]::-webkit-date-and-time-value { text-align: left; height: 100%; min-height: 1.2em; display: flex; align-items: center; margin: 0; line-height: inherit; }
.p-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 31, 0.15); background: var(--bg); }
textarea.p-input { height: 64px; padding: 8px 10px; resize: none; }
.p-photo { width: 100%; cursor: pointer; font-family: var(--font); transition: background 120ms, border-color 120ms; }
.p-photo:hover { border-color: var(--orange); color: var(--orange-deep); }
.p-photo.filled { border-style: solid; }
.p-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.p-thumb { width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #c9d2dc, #8f9daa); position: relative; overflow: hidden; }
.p-thumb::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.7); }
.p-thumb:nth-child(2) { background: linear-gradient(135deg, #e0c9b8, #a67b5b); }
.p-thumb:nth-child(3) { background: linear-gradient(135deg, #cfd9c9, #7c9470); }
.p-sig-box { position: relative; }
.p-sig canvas { display: block; width: 100%; height: 88px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfbfd; touch-action: none; cursor: crosshair; }
.p-sig.needs canvas { border-color: var(--red); animation: nudge 360ms var(--ease); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.p-sig-hint { position: absolute; left: 12px; top: 10px; font-size: 11.5px; color: var(--muted); pointer-events: none; }
.p-sig.signed .p-sig-hint { display: none; }
.p-sig.needs .p-sig-hint { color: var(--red); font-weight: 600; }
.p-sig-clear { position: absolute; right: 10px; top: 8px; font-size: 11.5px; font-weight: 700; color: var(--orange-deep); display: none; }
.p-sig.signed .p-sig-clear { display: inline; }
.p-sig-line { position: absolute; left: 14px; right: 14px; bottom: 20px; border-top: 1px dashed var(--line-2); pointer-events: none; }
.phone-cta { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 48px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14.5px; z-index: 3; transition: background 120ms, transform 120ms var(--ease); font-family: var(--font); }
.phone-cta:hover { background: var(--orange-deep); }
.phone-cta:active { transform: translateY(1px); }
.phone-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(transparent, var(--bg-2) 60%); pointer-events: none; z-index: 2; }
.phone-done { position: absolute; inset: 0; background: var(--bg); z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 26px; animation: panelIn 320ms var(--ease) both; }
.phone-done[hidden] { display: none; }
.done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.done-tick svg { width: 30px; height: 30px; }
.phone-done h4 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 18px 0 4px; }
.phone-done p { font-size: 13px; color: var(--grey); }
.done-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.done-facts li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 13px; color: var(--ink-2); background: var(--bg-2); padding: 9px 10px; border-radius: 9px; }
.done-facts svg { width: 16px; height: 16px; color: var(--green); }
.phone-done .again { margin-top: 22px; font-size: 13.5px; font-weight: 700; color: var(--orange-deep); }
.phone-notes { max-width: 400px; }
.phone-notes h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.phone-notes .try { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
.phone-notes .try b { color: var(--orange-deep); }
.phone-notes ul { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 12px; }
.phone-notes li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--grey); font-size: 15px; }
.phone-notes li svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }
.phone-notes b { color: var(--ink); }
.phone-open { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.phone-open[hidden] { display: none; }
.phone-open svg { width: 15px; height: 15px; }
.gate-field[hidden] { display: none; }
.phone-qr { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.phone-qr[hidden] { display: none; }
.phone-qr-code { width: 96px; height: 96px; background: #fff; padding: 6px; border-radius: 10px; box-shadow: var(--shadow-1); display: grid; place-items: center; }
.phone-qr-code img, .phone-qr-code canvas, .phone-qr-code table { width: 84px !important; height: 84px !important; display: block; }
.phone-qr b { display: block; font-size: 15px; color: var(--ink); }
.phone-qr span { display: block; font-size: 13.5px; color: var(--grey); margin-top: 2px; }
.tab .badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }
.tab .badge[hidden] { display: none; }
.records tr.new td { background: var(--orange-wash); animation: rowIn 480ms var(--ease) both; }

/* record panel */
.panel-record { background: var(--bg-3); padding: 34px 20px 40px; }
.records { width: min(900px, 100%); margin: 0 auto; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow-1); overflow: hidden; }
.records-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.records-head h3 { font-family: var(--display); font-weight: 600; font-size: 18px; }
.records-head .count { font-size: 13px; color: var(--grey); }
.records-head .btn { margin-left: auto; height: 36px; padding: 0 14px; font-size: 13.5px; }
.records table { width: 100%; border-collapse: collapse; font-size: 14px; }
.records th { text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); font-weight: 700; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.records td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.records tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill--pass { background: var(--green-soft); color: var(--green); }
.pill--open { background: var(--orange-wash); color: var(--orange-deep); }
.pill--sub { background: var(--bg-3); color: var(--ink-2); }
.records .pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.records .pdf svg { width: 15px; height: 15px; }
.records-note { text-align: center; font-size: 13px; color: var(--grey); margin-top: 12px; }

.stage-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.stage-cap { font-size: 14px; color: var(--grey); flex: 1 1 320px; }
.stage-cap q { color: var(--ink-2); }
.keep { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
.keep.show { opacity: 1; transform: none; pointer-events: auto; }
.keep .quiet { color: var(--grey); font-weight: 600; font-size: 14.5px; }
.keep .quiet:hover { color: var(--ink); }

/* proof strip: one bold fact per column, all on the same line, a short clause under it */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.proof-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 24px 26px; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item svg { width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.proof-item b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.3; text-wrap: balance; }
.proof-item span { display: block; font-size: 13.5px; color: var(--grey); line-height: 1.4; margin-top: 3px; text-wrap: pretty; }

/* how */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { position: relative; padding: 18px 18px 26px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step-fig { height: 132px; border-radius: 12px; background: var(--bg-2); position: relative; overflow: hidden; }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 18px 8px 0; letter-spacing: -0.01em; }
.step p { margin-left: 8px; margin-right: 8px; }
/* step 1: the brief being typed */
.mb { position: absolute; left: 18px; right: 18px; top: 24px; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow-1); padding: 12px 46px 10px 14px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.mb .cur { display: inline-block; width: 2px; height: 14px; background: var(--orange); vertical-align: -2px; margin-left: 2px; animation: pulse 0.9s steps(2) infinite; }
.mb .go-mini { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.mb .go-mini svg { width: 13px; height: 13px; }
/* step 2: library sheets fanned, front one adapted */
.ml { position: absolute; inset: 0; }
.ml i { position: absolute; left: 50%; top: 22px; width: 118px; height: 150px; margin-left: -59px; background: var(--bg); border-radius: 8px; box-shadow: var(--shadow-1); border: 1px solid var(--line); display: block; }
.ml i:nth-child(1) { transform: rotate(-9deg) translateX(-34px); opacity: 0.7; }
.ml i:nth-child(2) { transform: rotate(8deg) translateX(34px); opacity: 0.7; }
.ml i:nth-child(3) { transform: none; }
.ml i::before { content: ''; position: absolute; left: 12px; right: 12px; top: 14px; height: 6px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.ml i::after { content: ''; position: absolute; left: 12px; right: 12px; top: 30px; height: 60px; background: repeating-linear-gradient(var(--line) 0 2px, transparent 2px 12px); }
.ml .tagline { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--orange-deep); background: var(--orange-wash); padding: 5px 10px; border-radius: 999px; }
/* step 3: on the phone, submitted */
.mp { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 92px; height: 150px; background: var(--ink); border-radius: 16px; padding: 6px; }
.mp div { background: var(--bg); border-radius: 11px; height: 100%; padding: 16px 8px 0; }
.mp span { display: block; height: 7px; border-radius: 3px; background: var(--line-2); margin: 0 0 9px; position: relative; padding-left: 12px; }
.mp span::before { content: ''; position: absolute; left: 0; top: -1px; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.mp span:last-child::before { background: var(--line-2); }
.mp-pill { position: absolute; right: 22px; top: 82px; background: var(--bg); color: var(--green); font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-1); white-space: nowrap; }
.step p { color: var(--grey); margin-top: 8px; font-size: 15px; text-wrap: pretty; }

/* gallery */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.card:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card-fig { background: var(--bg-3); height: 240px; padding: 20px 20px 0; overflow: hidden; display: flex; justify-content: center; }
.mini { width: 100%; max-width: 300px; background: var(--bg); border-radius: 10px 10px 0 0; box-shadow: 0 -2px 12px rgba(26, 26, 46, 0.08); padding: 16px 18px; font-size: 11.5px; }
.mini .doc-title { font-size: 15px; }
.mini .doc-sub { font-size: 11px; }
.mini .doc-head { gap: 10px; padding-bottom: 10px; }
.mini .doc-logo { width: 40px; height: 28px; font-size: 7px; }
.mini .d-sec { font-size: 9px; margin: 12px 0 4px; }
.mini .d-row { font-size: 11.5px; padding: 6px 0; gap: 8px; }
.mini .d-box { width: 15px; height: 15px; border-width: 1.5px; border-radius: 4px; }
.mini .d-box.on::after { left: 4px; top: 1px; width: 3.5px; height: 7px; border-width: 0 2px 2px 0; }
.mini .d-label { font-size: 11px; margin-bottom: 4px; }
.mini .d-input { height: 26px; }
.mini .d-input.area { height: 40px; }
.mini .d-photo { height: 36px; font-size: 10.5px; }
.mini .d-photo svg { width: 13px; height: 13px; }
.mini .d-opt { height: 24px; font-size: 10.5px; padding: 0 8px; gap: 5px; }
.mini .d-radio { width: 10px; height: 10px; }
.mini .d-opt.on .d-radio { box-shadow: inset 0 0 0 2px var(--orange); }
.mini .d-sig-pad { height: 40px; }
.card-body { padding: 18px 20px 6px; }
.card-brief { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.card-brief::before { content: '\201C'; color: var(--orange); font-weight: 700; margin-right: 2px; }
.card-brief::after { content: '\201D'; color: var(--orange); font-weight: 700; margin-left: 2px; }
.card-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px 18px; margin-top: auto; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.linkbtn { margin-left: auto; color: var(--orange-deep); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn svg { width: 14px; height: 14px; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.b { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.b-copy { padding: 28px 28px 8px; }
.b h3 { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.b p { color: var(--grey); margin-top: 8px; font-size: 15px; max-width: 46ch; text-wrap: pretty; }
.b-fig { margin-top: 18px; background: var(--bg-3); flex: 1; min-height: 280px; position: relative; overflow: hidden; }
.b-fig--fade::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--bg-3)); pointer-events: none; z-index: 2; }
/* fig 1: before and after */
.ba { position: absolute; inset: 22px 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ba-col { display: flex; flex-direction: column; min-width: 0; }
.ba-col > .word, .ba-col > .doc { flex: 1; }
.word { background: #fdfdfd; border: 1px solid #cfcfcf; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 14px 16px; font-family: 'Times New Roman', Times, serif; color: #444; filter: grayscale(1); min-height: 220px; }
.word-bar { font-family: var(--font); font-size: 10px; color: #555; background: #ececec; margin: -14px -16px 12px; padding: 6px 10px; border-bottom: 1px solid #ddd; }
.word h5 { text-align: center; text-decoration: underline; font-size: 13px; margin: 0 0 10px; }
.word p { font-size: 11px; line-height: 1.5; color: #555; margin: 0 0 6px; }
.word .cells { display: grid; grid-template-columns: 1.4fr 1fr; }
.word .cells span { border: 1px solid #bbb; padding: 4px 6px; font-size: 10.5px; color: #666; }
.word .signed { margin-top: 12px; }
.ba .doc { padding: 16px 18px 0; border-radius: 10px 10px 0 0; box-shadow: var(--shadow-1); font-size: 12px; min-height: 220px; width: auto; margin: 0; }
.ba .doc .doc-title { font-size: 16px; }
.ba .doc .doc-sub { font-size: 11px; }
.ba .doc .doc-head { padding-bottom: 10px; gap: 10px; }
.ba .doc .doc-logo { width: 40px; height: 28px; font-size: 7px; }
.ba .doc .d-sec { font-size: 9.5px; margin: 12px 0 6px; }
.ba .doc .d-row { font-size: 12px; padding: 7px 0; gap: 9px; }
.ba .doc .d-box { width: 16px; height: 16px; border-width: 1.5px; border-radius: 4px; }
.ba .doc .d-box.on::after { left: 4.5px; top: 1px; width: 3.5px; height: 7.5px; border-width: 0 2px 2px 0; }
.ba-arrow { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1); z-index: 2; }
.ba-arrow svg { width: 16px; height: 16px; }
.ba-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* fig 2: phone with evidence */
.b-phone { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 250px; }
.b-phone .phone { width: 250px; padding: 9px; border-radius: 32px; }
.b-phone .phone-screen { height: 330px; border-radius: 24px; }
.b-phone .phone-top { padding: 40px 14px 10px; }
.b-phone .phone-screen::before { width: 60px; height: 17px; top: 9px; }
.b-phone .phone-top div { font-size: 14px; }
.b-phone .phone-body { padding: 10px; }
.b-phone .phone-body .doc { padding: 12px; font-size: 12px; }
.b-phone .phone-cta { height: 40px; font-size: 13px; left: 10px; right: 10px; bottom: 10px; }
/* fig 3: records */
.b-rec { position: absolute; inset: 26px 26px 0; }
.b-rec .records { border-radius: 12px 12px 0 0; }
.b-rec .records td, .b-rec .records th { padding: 10px 14px; font-size: 13px; }
.b-rec .records-head { padding: 12px 14px; }
/* fig 4: share */
.share { position: absolute; inset: 26px 26px 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.share-card { background: var(--bg); border-radius: 12px; box-shadow: var(--shadow-1); padding: 18px; }
.share-url { display: flex; align-items: center; gap: 10px; height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.share-url svg { width: 16px; height: 16px; color: var(--orange); flex: none; }
.share-url .copy { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--orange-deep); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.share-row .av { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.share-row .av + .av { margin-left: -12px; border: 2px solid var(--bg); }
.qr { width: 132px; height: 132px; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow-1); padding: 12px; }
.qr svg { width: 100%; height: 100%; display: block; }
.share-note { grid-column: 1 / -1; font-size: 13px; color: var(--grey); }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; max-width: 900px; margin-left: auto; margin-right: auto; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 30px 30px 28px; background: var(--bg); display: flex; flex-direction: column; }
.plan--team { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-name { font-family: var(--display); font-weight: 600; font-size: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.plan-price b { font-family: var(--display); font-weight: 700; font-size: 52px; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { font-size: 15px; color: var(--grey); }
.plan--team .plan-price span { color: #b8b8c8; }
.plan-for { font-size: 15px; color: var(--grey); margin-top: 6px; }
.plan--team .plan-for { color: #b8b8c8; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 22px; flex: 1; align-content: start; }
.plan--team ul { border-top-color: #34344a; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.plan--team li svg { color: #5fd08f; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan-fine { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.plan--team .plan-fine { color: #8d8d9c; }

/* faq */
.faq { max-width: 780px; margin: 36px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange-deep); }
.faq summary::after { content: '+'; margin-left: auto; color: var(--orange); font-size: 24px; line-height: 1; font-weight: 500; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--grey); padding: 0 0 22px; max-width: 66ch; font-size: 15.5px; text-wrap: pretty; }

/* closing */
.closing { position: relative; overflow: hidden; padding: 96px 0 104px; text-align: center; }
.closing .aurora { inset: auto -10% -30% -10%; height: 130%; opacity: 0.8; }
.closing .composer { margin-top: 30px; }

/* footer */
.footer { background: var(--ink); color: #b8b8c8; padding: 56px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer img { height: 22px; width: auto; }
.footer .wordmark-tag { color: #fff; border-left-color: #3a3a50; }
.footer p { font-size: 14px; max-width: 34ch; margin-top: 14px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 9px; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer-fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid #2d2d42; font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity 180ms, transform 220ms var(--ease); pointer-events: none; z-index: 100; max-width: calc(100% - 40px); text-align: center; box-shadow: var(--shadow-2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* interactive controls shared by the Form tab and the phone */
.p-row { position: relative; }
.p-select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2366667a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; cursor: pointer; }
.p-select:invalid, .p-select option[value=""] { color: var(--muted); }
.d-select { color: var(--ink); font-weight: 500; font-size: 14px; }
.panel-form .p-input { height: 40px; font-size: 14.5px; padding: 0 12px; }
.panel-form textarea.p-input { height: 74px; padding: 10px 12px; }
.panel-form .p-select { padding-right: 36px; }
.panel-form .p-photo { height: 64px; font-size: 14px; }
.panel-form .p-thumb { width: 56px; height: 56px; }
.panel-form .p-sig canvas { height: 110px; }
.panel-form .p-sig-hint { font-size: 12.5px; top: 12px; left: 14px; }
.panel-form .p-sig-clear { font-size: 12.5px; }
.doc-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-hint { font-size: 13.5px; color: var(--grey); }
.doc-done { text-align: center; padding: 34px 0 12px; display: flex; flex-direction: column; align-items: center; animation: panelIn 320ms var(--ease) both; }
.doc-done h4 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 18px 0 4px; }
.doc-done p { font-size: 14px; color: var(--grey); }
.doc-done .done-facts { max-width: 360px; }
.doc-done-note { margin-top: 14px; }
.again { margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--orange-deep); }
.again:hover { text-decoration: underline; text-underline-offset: 4px; }
.records .pdf.busy { opacity: 0.5; pointer-events: none; }

@media (max-width: 1000px) {
  .proof-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .panel-phone { grid-template-columns: 1fr; justify-items: center; gap: 36px; padding: 32px 18px 40px; }
  .phone-notes { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 60px; }
  .nav-links, .nav-right .signin { display: none; }
  .hero { padding: 44px 0 24px; }
  .aurora { filter: blur(30px); }
  .hero .sub { font-size: 16.5px; margin-top: 16px; }
  .section { padding: 60px 0; }
  .h2 { font-size: 30px; }
  .sub { font-size: 16px; }
  .composer { border-radius: 18px; margin-top: 26px; }
  .brief { font-size: 17px; padding: 16px 16px 6px; min-height: 84px; }
  .composer-bar { padding: 6px 8px 8px 10px; }
  .tool { height: 40px; width: 40px; padding: 0; justify-content: center; }
  .tool span { display: none; }
  .go { height: 44px; padding: 0 16px; }
  .types { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 14px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
  .types::-webkit-scrollbar { display: none; }
  .type { height: 40px; font-size: 14px; flex: none; }
  .stage { padding: 12px 0 44px; }
  .frame { border-radius: 16px; }
  .frame-bar { overflow-x: auto; scrollbar-width: none; padding: 8px 10px; }
  .frame-bar::-webkit-scrollbar { display: none; }
  .tab { height: 40px; flex: none; }
  .frame-meta { display: none; }
  .panel-form { padding: 18px 12px 28px; max-height: calc(100vh - 150px); min-height: 360px; }
  .panel-form::after { margin: -20px -12px -28px; }
  .doc { padding: 20px 16px 22px; border-radius: 12px; }
  .doc-title { font-size: 21px; }
  .doc-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .doc-actions .btn { width: 100%; }
  .doc-hint { text-align: center; }
  .stage-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .stage-cap { flex: none; }
  .p-input[type="date"], .p-input[type="time"] { line-height: 39px; }
  .keep { flex-direction: column; align-items: stretch; gap: 10px; }
  .keep .btn { width: 100%; }
  .keep .quiet { text-align: center; padding: 6px 0; }
  .panel-phone { grid-template-columns: 1fr; padding: 14px 12px 24px; gap: 18px; }
  .phone { width: 100%; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .phone-screen { height: min(70vh, 640px); border-radius: 14px; border: 1px solid var(--line); }
  .phone-screen::before { display: none; }
  .phone-top { padding: 16px 16px 12px; }
  .phone-body { padding: 12px 12px 90px; }
  .phone-notes { max-width: none; padding: 0 4px; }
  .phone-notes h3 { font-size: 22px; }
  .phone-qr { display: none; }
  /* records: each row becomes site + time on the left, result and PDF on the right */
  .records table, .records tbody { display: block; width: 100%; }
  .records thead { display: none; }
  .records tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .records tr:last-child { border-bottom: 0; }
  .records tr.new { background: var(--orange-wash); animation: rowIn 480ms var(--ease) both; }
  .records tr.new td { background: transparent; animation: none; }
  .records td, .b-rec .records td { display: block; padding: 0; border: 0; font-size: 14px; }
  .records td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .records td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--grey); }
  .records td:nth-child(3) { display: none; }
  .records td:nth-child(4) { grid-column: 2; grid-row: 1 / 3; }
  .records td:nth-child(5) { grid-column: 3; grid-row: 1 / 3; }
  .records .pdf { min-height: 40px; padding: 0 2px; }
  .records-head { flex-wrap: wrap; gap: 8px 12px; }
  .records-head .btn { margin-left: 0; width: 100%; height: 42px; }
  /* 16px inputs so iOS Safari does not zoom the page on focus */
  .p-input, .panel-form .p-input, .d-select, .p-select { font-size: 16px; }
  .p-input { height: 42px; }
  .keep .quiet { min-height: 44px; }
  .linkbtn { padding: 10px 0; margin: -10px 0 -10px auto; }
  .footer ul { gap: 2px; }
  .footer ul a { display: inline-block; padding: 7px 0; }
  .proof-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof-item { padding: 16px 14px; gap: 10px; }
  .proof-item + .proof-item { border-left: 0; }
  .proof-item:nth-child(even) { border-left: 1px solid var(--line); }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-item b { font-size: 14px; }
  .proof-item span { font-size: 12.5px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 22px -18px 0; padding: 0 18px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; height: 40px; }
  .gallery { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 20px -18px 0; padding: 4px 18px 10px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 84%; scroll-snap-align: start; }
  .card[hidden] { display: none; }
  .card-fig { height: 210px; }
  .bento { gap: 14px; }
  .b-copy { padding: 22px 20px 6px; }
  .b h3 { font-size: 20px; }
  .b-fig { min-height: 240px; }
  .ba { grid-template-columns: 1fr; }
  .ba-col:first-child { display: none; }
  .ba-arrow { display: none; }
  .share { grid-template-columns: 1fr; }
  .qr { display: none; }
  .plan { padding: 24px 20px 22px; }
  .plan-price b { font-size: 44px; }
  .faq summary { font-size: 16.5px; padding: 16px 0; }
  .closing { padding: 64px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i { animation: none !important; }
  .d-in, .status.busy .dot, .d-cursor { animation: none; }
  .keep, .card { transition: none; }
}

/* immersive: a deep link (QR) opened on a phone shows the form full-screen, like the app */
.imm-bar, .imm-done { display: none; }
html.immersive, html.immersive body { height: 100%; overflow: hidden; background: var(--bg-2); }
html.immersive body > :not(#stage) { display: none !important; }
html.immersive .stage { padding: 0; }
html.immersive .stage .wrap { padding: 0; max-width: none; }
html.immersive .frame { border: 0; border-radius: 0; box-shadow: none; }
html.immersive .frame-bar, html.immersive .stage-foot, html.immersive .stage-cap, html.immersive .keep, html.immersive .phone-notes, html.immersive .panel-form, html.immersive .panel-record { display: none !important; }
html.immersive .panel-phone { display: block !important; padding: 0; background: var(--bg-2); }
html.immersive .phone { width: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
html.immersive .phone-screen { height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
html.immersive .phone-screen::before { display: none; }
html.immersive .imm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
html.immersive .imm-bar span { display: inline-flex; align-items: center; gap: 7px; }
html.immersive .imm-bar svg { width: 13px; height: 13px; color: var(--orange); }
html.immersive .imm-bar a { color: #fff; opacity: 0.85; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
html.immersive .phone-top { padding: 14px 18px 12px; }
html.immersive .phone-top div { font-size: 20px; }
html.immersive .phone-body { padding: 14px 14px 130px; }
html.immersive .phone-body .doc { font-size: 15px; padding: 18px 16px 20px; }
html.immersive .phone-body .d-sec { font-size: 11.5px; margin: 18px 0 8px; }
html.immersive .phone-body .d-row, html.immersive .phone-body .d-label { font-size: 15px; }
html.immersive .phone-body .d-row { padding: 10px 0; }
html.immersive .phone-body .d-opt { height: 40px; font-size: 14.5px; padding: 0 14px; }
html.immersive .phone-body .d-photo { height: 64px; font-size: 14px; }
html.immersive .phone-body .d-sig-pad { height: 120px; }
html.immersive .phone-cta { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 52px; font-size: 16px; }
html.immersive .phone-fade { height: 140px; }
html.immersive .phone-done { padding: 40px 26px calc(40px + env(safe-area-inset-bottom)); }
html.immersive .phone-done h4 { font-size: 28px; }
html.immersive .phone-done p, html.immersive .done-facts li { font-size: 14.5px; }
html.immersive .imm-done { display: grid; gap: 10px; width: 100%; margin-top: 26px; }
html.immersive .imm-done .btn { width: 100%; height: 50px; }
html.immersive .imm-build { font-size: 14.5px; font-weight: 700; color: var(--orange-deep); text-align: center; padding: 8px 0; }
html.immersive .phone-done .again { margin-top: 12px; color: var(--grey); }

/* signup gate: a custom brief, a photo or a voice brief needs an account */
.gate { border: 0; padding: 0; background: transparent; max-width: none; width: min(440px, calc(100vw - 32px)); color: var(--ink); }
.gate::backdrop { background: rgba(26, 26, 46, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate-card { position: relative; margin: 0; background: var(--bg); border-radius: 22px; padding: 30px 30px 26px; box-shadow: var(--shadow-2); display: grid; gap: 8px; }
.gate-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--grey); }
.gate-x:hover { background: var(--bg-2); color: var(--ink); }
.gate-x svg { width: 18px; height: 18px; }
.gate-logo { height: 22px; width: auto; justify-self: start; margin-bottom: 6px; }
.gate-eyebrow { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--grey); }
.gate-title { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin-top: -8px; }
.gate-brief { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: var(--orange-wash); border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-height: 96px; overflow: hidden; }
.gate-brief[hidden] { display: none; }
.gate-sub { font-size: 14.5px; color: var(--grey); text-wrap: pretty; }
.gate-cta { width: 100%; margin-top: 6px; }
.gate-cta svg { width: 15px; height: 15px; }
.gate-signin { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.gate-signin:hover { color: var(--orange-deep); }
.gate-fine { font-size: 12.5px; color: var(--grey); text-align: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.gate-fine a { text-decoration: underline; text-underline-offset: 3px; }
.gate[open] { animation: gateIn 220ms var(--ease) both; }
@keyframes gateIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  /* --kb is the keyboard's overlap with the layout viewport, set by app.js from
     visualViewport. iOS keeps the layout viewport under the keyboard and lifts a
     bottom-pinned sheet only by scrolling the document, which the one-screen
     build page cannot do, so the sheet lifts itself and the card scrolls. */
  .gate { width: 100vw; max-width: 100vw; max-height: none; margin: auto 0 var(--kb, 0px); }
  .gate-card { border-radius: 22px 22px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); max-height: calc(100dvh - var(--kb, 0px) - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) { .gate[open] { animation: none; } }

/* inline signup inside the gate */
.gate-ask, .gate-sent { display: grid; gap: 12px; }
.gate-ask[hidden], .gate-sent[hidden], .gate-form[hidden], #gate-signup[hidden] { display: none; }
.gate-form { display: grid; gap: 10px; margin-top: 2px; }
.gate-field span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.gate-input { width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 0 14px; font: 500 16px var(--font); color: var(--ink); background: var(--bg); }
.gate-input::placeholder { color: var(--muted); font-weight: 400; }
.gate-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 107, 31, 0.15); }
.gate-error { font-size: 13.5px; line-height: 1.4; color: #b42318; background: #fef3f2; border-radius: 10px; padding: 10px 12px; }
.gate-error[hidden] { display: none; }
.gate-cta.busy { opacity: 0.7; pointer-events: none; }
.gate-challenge { display: grid; place-items: center; }
.gate-challenge:empty { display: none; }
.gate-sent { text-align: center; padding: 6px 0 2px; }
.gate-sent .done-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 2px; }
.gate-sent .done-tick svg { width: 26px; height: 26px; }
.gate-sent .gate-title { margin-top: 0; }
.gate-sent .gate-sub { text-wrap: pretty; }
.gate-sent-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.gate-sent-actions .again { margin-top: 0; }

/* proof strip and footer: plain links that read as text until hovered */
.proof-item span a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.proof-item span a:hover { color: var(--orange-deep); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- build mode
   A phone arriving from the t-shirt QR (utm_source=qr) or ?build gets a flow
   built for one job: say the form, watch it build, open it. Two screens on
   one page: the brief (hero) and the build (the phone, full-screen), with
   the action bar pinned above the home indicator. */
.build-bar, .build-only, .build-strip, .build-actions { display: none; }
html.build { background: var(--bg); }
html.build body > :not(#build-bar):not(.hero):not(#stage):not(#build-actions):not(#gate):not(#toast):not(#build-turnstile) { display: none !important; }
html.build .build-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
html.build .build-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); }
html.build .build-brand img { height: 22px; width: auto; }
html.build .build-brand span { padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 1; }
html.build .build-new { display: none; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--orange-deep); background: var(--orange-wash); }
html.build.building .build-new { display: inline-flex; align-items: center; }
/* screen one: the brief. One column that uses the whole screen: the
   headline and the composer sit under the thumb, the three steps hold the
   foot, and everything rises in once, staggered, from where it belongs. */
html.build .hero { padding: 22px 0 calc(18px + env(safe-area-inset-bottom)); min-height: calc(100dvh - 54px - env(safe-area-inset-top)); display: flex; align-items: stretch; overflow: visible; }
html.build .hero-inner { text-align: left; width: 100%; display: flex; flex-direction: column; min-height: 100%; }
html.build .aurora { opacity: 0.85; }
html.build .hero h1:not(.build-only), html.build .hero .sub { display: none; }
html.build .hero .build-only { display: block; }
html.build .hero h1.build-only { font-size: clamp(40px, 12.2vw, 52px); line-height: 0.98; max-width: none; margin: 0; letter-spacing: -0.025em; }
html.build .build-lead { margin-top: 14px; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; text-wrap: pretty; }
html.build .composer { margin: 22px 0 0; align-self: stretch; max-width: none; flex: 1 1 auto; max-height: 264px; display: flex; flex-direction: column; border-radius: 20px; border-color: var(--line-2); box-shadow: 0 1px 2px rgba(26, 26, 46, 0.05), 0 18px 44px -18px rgba(26, 26, 46, 0.28); }
html.build .composer:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.14), 0 18px 44px -18px rgba(26, 26, 46, 0.28); }
html.build .brief { flex: 1; min-height: 124px; max-height: none; font-size: 18px; line-height: 1.45; padding: 18px 18px 8px; }
html.build .composer-bar { flex: none; }
html.build .composer-bar { padding: 6px 10px 10px 12px; gap: 8px; }
html.build .tool { height: 44px; width: 44px; border-color: var(--line); }
html.build .attach-chip { margin: 0 10px 4px; }
html.build .attach-remove { width: 40px; height: 40px; }
html.build .go { height: 48px; padding: 0 18px; font-size: 16px; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(242, 107, 31, 0.7); }
html.build .types { margin: 14px -18px 0; padding: 0 18px 4px; gap: 8px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), transparent); }
html.build .type { height: 40px; padding: 0 15px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: var(--bg); border-color: var(--line-2); }
html.build .status { display: flex; margin-top: 16px; font-size: 14px; color: var(--grey); }
html.build .status .dot { display: block; }
html.build .hero ol.build-steps { display: flex; list-style: none; margin: 28px 0 0; padding: 18px 0 0; gap: 0; border-top: 1px solid var(--line); }
html.build .build-steps li { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 10px 0 0; font-size: 13px; line-height: 1.3; color: var(--grey); font-weight: 500; }
html.build .build-steps li + li { padding-left: 12px; border-left: 1px solid var(--line); }
html.build .build-steps b { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--orange); line-height: 1; }
html.build .build-steps li:last-child { color: var(--ink); }
/* the one entrance: in order, from a little below, settling with an exponential ease */
@keyframes buildRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.build:not(.building) .hero h1.build-only, html.build:not(.building) .build-lead, html.build:not(.building) .composer, html.build:not(.building) .types, html.build:not(.building) .status, html.build:not(.building) .build-steps { animation: buildRise 720ms var(--ease) both; }
html.build:not(.building) .build-lead { animation-delay: 60ms; }
html.build:not(.building) .composer { animation-delay: 140ms; }
html.build:not(.building) .types { animation-delay: 220ms; }
html.build:not(.building) .status { animation-delay: 280ms; }
html.build:not(.building) .build-steps { animation-delay: 360ms; }
html.build.building .hero { display: none; }
/* screen two: the build, the phone frame is the screen */
html.build .stage { display: none; }
html.build.building .stage { display: block; padding: 0; }
html.build.building .stage .wrap { padding: 0; max-width: none; }
html.build.building .frame { border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
html.build.building .frame-bar, html.build.building .stage-foot, html.build.building .phone-notes, html.build.building .panel-form, html.build.building .panel-record, html.build.building .phone-cta, html.build.building .imm-bar { display: none !important; }
html.build.building .panel-phone { display: block !important; padding: 0; background: var(--bg); }
html.build.building .phone { width: 100%; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
html.build.building .phone-screen { height: calc(100dvh - 54px - env(safe-area-inset-top)); border-radius: 0; border: 0; display: flex; flex-direction: column; }
html.build.building .phone-screen::before { display: none; }
html.build.building .build-strip { display: flex; align-items: center; gap: 9px; padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--orange-deep); background: var(--orange-wash); border-bottom: 1px solid var(--orange-soft); font-variant-numeric: tabular-nums; }
html.build.building .build-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242, 107, 31, 0.5); animation: buildPulse 1.4s ease-out infinite; flex: none; }
html.build.building.built .build-strip { color: var(--green); background: var(--green-soft); border-bottom-color: #cfe9da; }
html.build.building.built .build-strip-dot { background: var(--green); animation: none; box-shadow: none; }
@keyframes buildPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 107, 31, 0.45); } 100% { box-shadow: 0 0 0 10px rgba(242, 107, 31, 0); } }
html.build.building .phone-top { padding: 16px 18px 10px; }
html.build.building .phone-top div { font-size: 21px; }
html.build.building .phone-body { flex: 1; min-height: 0; padding: 12px max(14px, env(safe-area-inset-right)) calc(150px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
/* the build screen is a preview: answers go in the real form, through Open your form;
   the screen still scrolls, its controls do not take input */
html.build.building .phone-body.preview .doc { pointer-events: none; }
html.build.building .phone-body.preview .doc :disabled { opacity: 1; }
html.build.building .phone-top .gps { background: var(--bg-3); color: var(--grey); }
html.build.building .phone-top .gps::before { background: var(--muted); }
html.build.building .phone-body .doc { font-size: 15px; padding: 18px 16px 20px; }
html.build.building .phone-body .d-sec { font-size: 11.5px; margin: 18px 0 8px; }
html.build.building .phone-body .d-row, html.build.building .phone-body .d-label { font-size: 15px; }
html.build.building .phone-body .d-opt { height: 40px; font-size: 14.5px; padding: 0 14px; }
html.build.building .phone-fade { height: 150px; }
/* the action bar: one primary, pinned */
html.build.building .build-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(26, 26, 46, 0.06); }
html.build.building .build-primary { width: 100%; height: 56px; font-size: 17px; border-radius: 14px; gap: 10px; transition: background 200ms, color 200ms, transform 140ms var(--ease); }
html.build.building .build-primary:focus-visible { outline-offset: 3px; }
html.build.building .build-primary svg { width: 17px; height: 17px; }
html.build.building:not(.built) #build-open { background: var(--bg-3); color: var(--muted); pointer-events: none; }
html.build.building:not(.built) #build-open svg { display: none; }
html.build.building:not(.built) #build-open .build-primary-label::after { content: '…'; }
/* a build that ended without a saved form: the retry button takes the primary's place */
html.build.building .build-retry { display: none; }
html.build.building.failed #build-open { display: none; }
html.build.building.failed .build-retry { display: inline-flex; }
html.build.building.failed .build-strip { color: var(--red); background: #fdecea; border-bottom-color: #f6cfcb; }
html.build.building.failed .build-strip-dot { background: var(--red); animation: none; box-shadow: none; }
html.build.building.failed .build-secondary [data-keep], html.build.building.failed .build-secondary span { display: none; }
html.build.building.built .build-primary { animation: primaryIn 420ms var(--ease) both; }
@keyframes primaryIn { from { transform: translateY(8px); opacity: 0.4; } to { transform: none; opacity: 1; } }
html.build.building .build-secondary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
html.build.building .build-secondary a, html.build.building .build-secondary button { padding: 8px 4px; min-height: 40px; display: inline-flex; align-items: center; color: inherit; }
html.build.building .build-secondary span { color: var(--line-2); }
html.build.building:not(.built):not(.failed) .build-secondary { visibility: hidden; }
/* the gate rides on top of either screen */
html.build .gate { z-index: 60; }
@media (prefers-reduced-motion: reduce) {
  html.build .build-strip-dot, html.build.building.built .build-primary { animation: none; }
  html.build:not(.building) .hero h1.build-only, html.build:not(.building) .build-lead, html.build:not(.building) .composer, html.build:not(.building) .types, html.build:not(.building) .status, html.build:not(.building) .build-steps { animation: none; }
}

/* ---- build motion
   The wait for a build-mode build, drawn (build-motion.js). One language:
   exponential ease-out (var(--ease)), transforms, opacity and clip-path only.
   The stage covers the header and the body until the first real line lands;
   the rail stays above the header while the rest streams in. */
.build-wait { display: none; }
html.build.building .build-wait { display: block; position: relative; z-index: 6; flex: none; }
html.build.building .bw-rail { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--grey); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 520ms var(--ease) 200ms; }
html.build.building .build-wait.is-stream .bw-rail { opacity: 1; }
.bw-segs { display: inline-flex; gap: 4px; flex: none; }
.bw-segs i { position: relative; width: 18px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bw-segs b { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; border-radius: inherit; }
.bw-count { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-clock { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.build-wait.is-done .bw-segs b { background: var(--green); transition: background 360ms var(--ease); }
.build-wait.is-done .bw-segs i:nth-child(2) b { transition-delay: 60ms; }
.build-wait.is-done .bw-segs i:nth-child(3) b { transition-delay: 120ms; }
.build-wait.is-done .bw-segs i:nth-child(4) b { transition-delay: 180ms; }
.build-wait.is-done .bw-count { color: var(--green); }
.build-wait.is-fail .bw-segs i.stop b { background: var(--red); }

/* the stage: brief, stages, wireframe */
html.build.building .bw-stage { display: none; position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; padding: 20px max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); overflow: hidden; }
html.build.building .build-wait.is-wait .bw-stage { display: block; }
.bw-bg { position: absolute; inset: 0; background: var(--bg-2); }
.bw-head, .bw-card { position: relative; }
.bw-eyebrow { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); animation: bwRise 620ms var(--ease) both; }
.bw-eyebrow .bw-clock { font-size: 12.5px; }
.bw-brief { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.22; letter-spacing: -0.008em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bw-brief::before { content: '\201C'; color: var(--orange); margin-right: 1px; }
.bw-brief .w, .bw-title-text .w { display: inline-block; animation: bwWord 680ms var(--ease) both; }
@keyframes bwWord { from { opacity: 0; transform: translateY(0.32em); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bwRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.bw-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.bw-steps li { position: relative; display: flex; align-items: center; gap: 12px; height: 31px; font-size: 14.5px; font-weight: 500; color: var(--muted); animation: bwRise 620ms var(--ease) both; animation-delay: calc(420ms + var(--i) * 70ms); transition: color 320ms var(--ease); }
.bw-steps li:not(:last-child)::before, .bw-steps li:not(:last-child)::after { content: ''; position: absolute; left: 8.25px; top: 24px; width: 1.5px; height: 14px; border-radius: 1px; background: var(--line-2); }
.bw-steps li:not(:last-child)::after { background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform 520ms var(--ease) 120ms; }
.bw-steps li.done::after { transform: scaleY(1); }
.bw-node { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; transition: background 320ms var(--ease), border-color 320ms var(--ease); }
.bw-node::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform 420ms var(--ease); }
.bw-node svg { position: relative; z-index: 1; width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bw-node path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 460ms var(--ease) 90ms; }
.bw-steps li.active { color: var(--ink); font-weight: 600; }
.bw-steps li.active .bw-node { border-color: var(--orange); }
.bw-steps li.active .bw-node::after { transform: scale(1); }
.bw-steps li.done { color: var(--ink-2); }
.bw-steps li.done .bw-node { background: var(--orange); border-color: var(--orange); }
.bw-steps li.done .tick { stroke-dashoffset: 0; }
.bw-steps li.fail { color: var(--red); font-weight: 600; }
.bw-steps li.fail .bw-node { background: var(--red); border-color: var(--red); }
.bw-steps li.fail .x { stroke-dashoffset: 0; }
.bw-step-label { position: relative; }
.bw-prog { position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; border-radius: 1px; background: var(--orange); opacity: 0.5; transform: scaleX(0); transform-origin: left; transition: opacity 360ms var(--ease); }
.bw-steps li:not(.active) .bw-prog { opacity: 0; }

.bw-card { margin-top: 20px; padding: 18px 16px 22px; border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px rgba(26, 26, 46, 0.04), 0 8px 24px rgba(26, 26, 46, 0.05); animation: bwCard 780ms var(--ease) 760ms both; }
@keyframes bwCard { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bw-card .g { display: block; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
.bw-card .g.drawn { clip-path: none; -webkit-clip-path: none; }
.bw-card .g-bar { position: relative; height: 9px; width: var(--w); border-radius: 5px; background: var(--bg-3); overflow: hidden; }
.bw-card .g-bar > b { position: absolute; inset: 0; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: opacity 600ms var(--ease); }
.bw-title { position: relative; min-height: 50px; }
.bw-card .g-title { height: 17px; border-radius: 6px; }
.bw-card .g-sub { margin-top: 9px; transition: opacity 420ms var(--ease); }
.bw-card .g-title { transition: opacity 420ms var(--ease); }
.bw-card.has-title .g-title, .bw-card.has-title .g-sub { opacity: 0; }
.bw-title-text, .bw-fly { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--ink); }
.bw-title-text { position: absolute; left: 0; top: 0; width: var(--bw-title-w, 100%); max-width: 100%; }
.bw-card .g-rule { height: 1px; margin: 4px 0 2px; background: var(--line); }
.bw-card .g-sec { height: 8px; width: var(--w); margin: 20px 0 12px; border-radius: 4px; background: var(--orange-soft); }
.bw-card .g-box { height: 36px; margin: 8px 0 15px; border: 1.5px solid var(--line); border-radius: 9px; background: #fbfbfd; }
.bw-card .g-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bw-card .g-row .g-bar { flex: none; }
.bw-card .g-chk { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.bw-card .g-row + .g-sec { margin-top: 22px; }
.bw-card .g-pills { display: flex; gap: 8px; margin: 9px 0 6px; }
.bw-card .g-pills i { height: 32px; width: 74px; border-radius: 999px; border: 1.5px solid var(--line); }
.bw-card .g-pad { height: 64px; margin-top: 9px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.bw-caret { position: absolute; left: 0; top: 0; width: 2px; height: 16px; border-radius: 1px; background: var(--orange); transform-origin: 0 0; opacity: 0; transition: opacity 260ms var(--ease); will-change: transform; }
.bw-caret.on { opacity: 1; }
.bw-fly { position: absolute; left: 0; top: 0; z-index: 3; opacity: 0; pointer-events: none; transition: transform 720ms var(--ease) 100ms; will-change: transform; }
.bw-fly.on { opacity: 1; }
html.bw-flying #phone-title { opacity: 0; }

/* the handoff: the stage dissolves, the title travels, the real lines rise */
.build-wait.is-handoff .bw-head { opacity: 0; transform: translateY(-10px); transition: opacity 380ms var(--ease), transform 520ms var(--ease); }
.build-wait.is-handoff .bw-card { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease) 60ms, transform 560ms var(--ease) 60ms; }
.build-wait.is-handoff .bw-bg { opacity: 0; transition: opacity 520ms var(--ease) 160ms; }
.build-wait.is-handoff .bw-head *, .build-wait.is-handoff .bw-card { animation: none; }
/* a failure before anything landed: the drawing stops where it was */
.build-wait.is-fail .bw-card { opacity: 0.55; transition: opacity 520ms var(--ease); }
.build-wait.is-fail .bw-brief .w { animation: none; }

/* real lines on the build screen: sections type on, fields resolve from blur */
html.build.building .phone-body .d-in { animation: bwLineIn 560ms var(--ease) both; }
html.build.building .phone-body .d-sec.d-in { animation: bwSecIn 640ms var(--ease) both; }
html.build.building .phone-body .doc > .bw-rise { animation: bwLineIn 620ms var(--ease) both; }
@keyframes bwLineIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes bwSecIn { from { opacity: 0.3; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }
/* the next field, being drafted under the newest line */
.bw-tail { position: relative; margin-top: 14px; padding-bottom: 2px; transition: opacity 360ms var(--ease); }
.bw-tail.out { opacity: 0; }
.bw-tail i { display: block; animation: bwDraft 2400ms var(--ease) infinite both; }
.bw-tail .t1 { width: 44%; height: 9px; border-radius: 5px; background: var(--bg-3); }
.bw-tail .t2 { height: 36px; margin-top: 8px; border: 1.5px dashed var(--line-2); border-radius: 9px; animation-delay: 260ms; }
.bw-tail .tc { position: absolute; left: 0; top: -3px; width: 44%; height: 15px; animation: bwDraftCaret 2400ms var(--ease) infinite both; }
.bw-tail .tc s { position: absolute; left: 0; top: 0; width: 2px; height: 15px; border-radius: 1px; background: var(--orange); }
@keyframes bwDraft { 0% { opacity: 1; clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); } 42% { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } 78% { opacity: 1; } 100% { opacity: 0; clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }
@keyframes bwDraftCaret { 0% { opacity: 1; transform: translateX(0); } 42% { transform: translateX(100%); } 78% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .bw-eyebrow, .bw-steps li, .bw-card, .bw-brief .w, .bw-title-text .w, .bw-tail i, .bw-tail .tc,
  html.build.building .phone-body .d-in, html.build.building .phone-body .doc > .bw-rise { animation: none !important; }
  .bw-card .g { clip-path: none !important; -webkit-clip-path: none !important; }
  .bw-caret, .bw-fly, .bw-tail { display: none !important; }
  .bw-steps li, .bw-node, .bw-node::after, .bw-node path, .bw-steps li::after, .bw-rail, .bw-card .g-title, .bw-card .g-sub, .build-wait.is-fail .bw-card { transition: none !important; }
}
