/* FormaQ landing: the app's tokens, written out for a page with no build step. */
@font-face { font-family: "Timeless Serif"; src: url("/fonts/TimelessSerif-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Timeless Sans"; src: url("/fonts/TimelessSans-SansRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Timeless Sans"; src: url("/fonts/TimelessSans-SansMedium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #1C1B19; --copy: #3E3B37; --muted: #67635C; --paper: #FBFAF8; --cream: #F7F4EE; --mint: #3ECF8E;
  --edge: rgb(28 27 25 / 0.2); --edge-strong: rgb(28 27 25 / 0.36); --focus: #1C1B19;
  --serif: "Timeless Serif", Georgia, serif; --sans: "Timeless Sans", "Helvetica Neue", Arial, sans-serif;
  --drape: cubic-bezier(.65,0,.35,1); --settle: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.backdrop { position: fixed; inset: 0; background: var(--ink); }
.backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0; transform: scale(1.04); transition: opacity 2400ms var(--drape), transform 2400ms var(--drape); }
.backdrop img.on { opacity: 1; transform: scale(1); }
.scrim { position: absolute; inset: 0; background: rgb(28 27 25 / 0.45); }

main { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 48px 16px calc(64px + env(safe-area-inset-bottom)); }
.card { width: 100%; max-width: 440px; background: rgb(251 250 248 / 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 28px; padding: 28px; box-shadow: 0 8px 16px rgb(28 27 25 / 0.06), 0 40px 80px -16px rgb(28 27 25 / 0.24); }
@media (min-width: 640px) { .card { padding: 40px; } }
.logo { display: block; margin: 0 auto; height: 20px; width: auto; }

h1 { margin: 32px 0 0; text-align: center; font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
@media (min-width: 640px) { h1 { font-size: 34px; } }
.lede { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.55; color: var(--copy); }

form { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; gap: 16px; }
@media (min-width: 640px) { .row.two, .row.split { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
label { font-size: 14px; font-weight: 500; }
input, select { width: 100%; height: 42px; border: 0; border-radius: 12px; background: #fff; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); box-shadow: 0 0 0 1px var(--edge), 0 1px 2px rgb(28 27 25 / 0.04); transition: box-shadow 240ms var(--settle); appearance: none; -webkit-appearance: none; }
@media (min-width: 640px) { input, select { font-size: 14px; } }
input:hover, select:hover { box-shadow: 0 0 0 1px var(--edge-strong), 0 1px 2px rgb(28 27 25 / 0.04); }
input:focus-visible, select:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
input[aria-invalid="true"] { box-shadow: 0 0 0 1.5px #E07AC0; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.3px solid var(--muted); border-bottom: 1.3px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { padding-right: 40px; cursor: pointer; }
select:invalid, select option[value=""] { color: var(--muted); }

button { margin-top: 8px; height: 48px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background-color 120ms, transform 120ms; touch-action: manipulation; }
button:hover { background: #35332F; }
button:active { transform: scale(0.99); }
button[disabled] { opacity: 0.6; cursor: progress; }

.fine { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }
.error { margin: 0; border-radius: 12px; background: var(--cream); padding: 12px 16px; font-size: 13px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; }
.done h1 { margin-top: 20px; }
.tick { margin: 40px auto 0; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--ink); }

footer { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); text-align: center; font-size: 11px; letter-spacing: 0.08em; color: rgb(255 255 255 / 0.7); pointer-events: none; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .backdrop img { transition: none; } }
