/* Hallmark · shape: Map / Diagram · genre: modern-minimal · theme: Coral (deal 1/3, seed saas-formclip-collect-form-6f73·4349c696·2026-11-21·r0) · job: sign up · draw: 9e5ba3
 * hero: Corridor · nav: masthead · footer: statement · imagery: screenshots 2 (demo workspace, light and dark), product · signature: a sample submission as a cotton index card, pressed Saved
 * axes: light/grotesk-sans/neutral (paper neutralised at the owner's request, coral kept as the pressed accent) · posture: restrained · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a route of four checks could describe any form backend; each node names Formclip's own rule (exact origins, 8 KiB, 40 fields, D1 index) and ends on the real grid */
/* Hallmark · answered F4 · the cotton card is the theme's secondary control, the board-ink card is the one primary */
/* Hallmark · hero-review: skipped, page built whole · finish-review: subagent · 8 findings · 7 resolved 1 partial (phone crops cut at the tile edge) · gap: none */
/* Geist stands in for the theme's General Sans: the CSP serves fonts only from the Formclip origin */
@import url("./tokens.css");
@import url("./base.css");

body { font-weight: var(--body-weight); }
.defs { position: absolute; width: 0; height: 0; }
.fig, code, pre { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Surfaces: the desk, and stationery on it lit from the left. */
.desk { background-color: var(--color-desk); }
.paper, .card { background-color: var(--color-cotton); color: var(--color-print); border-radius: var(--radius-stock); box-shadow: var(--edge-stock), var(--cast-stock); }

/* Controls: letterpress cards, the primary in board ink. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-stock); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn--card { background-color: var(--color-cotton); color: var(--color-print); text-shadow: 0.5px 0.75px 0 var(--color-cotton); box-shadow: var(--edge-stock), var(--cast-stock); }
.btn--ink { background: var(--color-board); color: var(--color-board-type); box-shadow: var(--cast-stock); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--edge-stock), var(--cast-stock-lift); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
a:hover { text-decoration-color: var(--color-accent-2); }

/* Masthead: the wordmark centred over a rule. */
.mast { border-bottom: 1px solid var(--color-rule-2); background: var(--color-paper); }
.mast__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 72px; }
.mast__link { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-ink-2); white-space: nowrap; }
.mast__link:hover { text-decoration: underline; }
.mast__link:focus-visible, .wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); }
.wordmark .brand-mark { width: 28px; height: 28px; }
.wordmark .crumb { fill: var(--color-accent-2); }
.mast__end { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-md); }
.theme { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.theme:hover { background: var(--color-paper-2); }
.theme:active { background: var(--color-paper-3); }
.theme:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.theme .icon { width: 20px; height: 20px; }

/* Hero: one centred corridor, the submission card resting under it. */
.hero { min-height: calc(100dvh - 73px); display: grid; align-items: center; padding-block: var(--space-lg) var(--space-2xl); }
.hero__inner { display: grid; justify-items: center; text-align: center; gap: var(--space-lg); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 44ch; color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xs); }

.stack { position: relative; width: min(560px, 100%); margin-top: var(--space-xl); text-align: left; }
.card { position: relative; padding: var(--space-lg); }
.card--front { padding-bottom: var(--space-2xl); }
.card--behind { position: absolute; inset: 0; transform: translate(14px, -30px) rotate(1.5deg); }
.card--front { transform: rotate(-1deg); }
.card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-sm); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule-2); }
.card__form { font-weight: 600; }
.card__site, .card time { font-size: var(--text-sm); color: var(--color-muted); }
.card__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); margin: var(--space-md) 0 0; }
.card__fields .wide { grid-column: 1 / -1; }
.card__fields dt { font-size: var(--text-sm); color: var(--color-muted); }
.card__fields dd { margin: 0; overflow-wrap: break-word; }
.pressed { position: absolute; right: var(--space-lg); bottom: var(--space-sm); font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.01em; color: var(--color-paid); text-shadow: 0.6px 0.8px 0 color-mix(in oklab, var(--color-paid) 55%, var(--color-cotton)); transform: rotate(-7deg); filter: url(#press); }

@media (prefers-reduced-motion: no-preference) {
  .card--front { animation: settle 0.6s var(--ease-out) 0.15s both; }
  .pressed { animation: press 0.4s var(--ease-out) 0.7s both; }
}
@keyframes settle { from { opacity: 0; transform: translateY(8px) rotate(-1deg); } to { opacity: 1; transform: rotate(-1deg); } }
@keyframes press { from { opacity: 0; transform: rotate(-7deg) scale(1.08); } to { opacity: 1; transform: rotate(-7deg); } }

/* Shared section rhythm. */
.route { padding-block: var(--section-gap) var(--section-gap-s); }
.sheet-section { padding-block: var(--section-gap-s) var(--section-gap); }
.connect { padding-block: var(--section-gap) var(--section-gap-l); border-top: 1px solid var(--color-rule); }
.faq { padding-block: 0 var(--section-gap); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head .lead { color: var(--color-muted); }

/* The map: four stops, joined by rules, ending on the real grid; notifications branch off the
   last stop on a dashed rule, because they are optional and the grid stays the destination. */
.route__map { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.route__map > li { position: relative; display: grid; align-content: start; gap: var(--space-xs); padding-top: var(--space-md); border-top: 2px solid var(--color-ink); }
.route__map > li:not(:last-child)::after { content: ""; position: absolute; top: -2px; left: 100%; width: var(--gap-columns); border-top: 2px dotted var(--color-muted); }
.route__map > .route__saved::before { content: ""; position: absolute; top: 100%; left: 50%; height: var(--space-2xl); border-left: 1px solid var(--color-muted); }
.route__map > .route__optional { border-top-style: dashed; }
.route__map p { color: var(--color-ink-2); font-size: var(--text-sm); }
.route__end { margin: var(--space-2xl) 0 0; }
.route__end figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.plate { aspect-ratio: 16 / 10; border-radius: min(1vw, var(--radius-card)); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }

/* Screens: the light capture in light mode, the dark one in dark mode. */
.shot--dark { display: none; }
:root[data-theme="dark"] .shot--dark { display: block; }
:root[data-theme="dark"] .shot--light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .shot--dark { display: block; }
  :root:not([data-theme]) .shot--light { display: none; }
}

/* Bento: wells, two of them holding crops of the real grid. */
.sheet-section h2 { margin-bottom: var(--space-2xl); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { grid-column: span 4; display: grid; align-content: start; gap: var(--space-xs); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-2); }
.tile--lead, .tile--wide { grid-column: span 8; }
.tile p { color: var(--color-ink-2); }
.tile__pic { height: 240px; margin-bottom: var(--space-md); border-radius: var(--radius-input); outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
[data-slot] > .shot--search, [data-slot] > .shot--record, [data-slot] > .shot--freeze { inset: auto; width: 1440px; height: 900px; max-width: none; object-fit: fill; }
/* Crops cut at real boundaries: the main pane, the record pane, the open column menu. */
[data-slot] > .shot--search { width: 1480px; height: 925px; left: -247px; top: -132px; }
[data-slot] > .shot--record { width: 1664px; height: 1040px; left: -1250px; top: -12px; }
[data-slot] > .shot--freeze { left: -664px; top: -172px; }
.csv { margin: var(--space-md) 0 0; padding-top: var(--space-md); border-top: 1px solid var(--color-rule-2); overflow-x: auto; font-size: var(--text-sm); line-height: 1.7; color: var(--color-ink-2); }

/* Connect: the snippet on a sheet, its notes in the margin. */
.connect__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.connect .paper { grid-column: 1 / span 8; margin: 0; padding: var(--space-2xl); }
.connect .paper figcaption { margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.connect pre { margin: 0; overflow-x: auto; font-size: var(--text-md); line-height: 1.7; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); }
.notes { grid-column: 10 / span 3; display: grid; gap: var(--space-xl); margin: 0; }
.notes dt { font-weight: 600; }
.notes dd { margin: var(--space-2xs) 0 0; color: var(--color-ink-2); }
.notes code { font-size: var(--text-sm); }

/* Questions: rows parted by hairlines beside the head. */
.faq__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-top: var(--section-gap-s); border-top: 1px solid var(--color-rule); }
.faq h2 { grid-column: 1 / span 4; font-size: var(--text-section); }
.rows { grid-column: 6 / span 7; margin: 0; }
.rows > div { display: grid; gap: var(--space-xs); padding-block: var(--space-lg); border-top: 1px solid var(--color-rule); }
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows dt { font-size: var(--text-title); font-weight: 600; letter-spacing: -0.01em; }
.rows dd { margin: 0; color: var(--color-ink-2); }

/* Invite: the desk again, the form on a sheet. */
.invite { padding-block: var(--section-gap-s); }
.invite__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.invite .head { grid-column: 1 / span 5; margin: 0; }
.invite__card { grid-column: 7 / span 6; padding: var(--space-xl); }
.invite-form, .invite-form fieldset { display: grid; gap: var(--space-md); margin: 0; padding: 0; border: 0; min-width: 0; }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-print); }
.field input { min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.field input:focus-visible { outline-color: var(--color-focus); }
.field input:disabled { opacity: 0.55; cursor: not-allowed; }
.invite-form [role="status"], .note { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

/* Footer: one closing sentence, the links beneath. */
.foot { padding-block: var(--section-gap-s) var(--space-2xl); border-top: 1px solid var(--color-rule); }
.foot__line { max-width: 24ch; font-size: var(--text-display-s); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.05; text-wrap: balance; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-2xl); }
.foot__links a { white-space: nowrap; }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.foot__legal { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* Legal pages: the page list over the title, one reading column beneath. */
.legal { padding-block: var(--space-2xl) var(--section-gap-s); }
.legal__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.legal__head, .legal__body { grid-column: 3 / span 8; min-width: 0; }
.legal__head { display: grid; gap: var(--space-md); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.legal__head h1 { max-width: none; font-size: var(--text-display-s); }
.legal__head .lead { color: var(--color-ink-2); }
.legal__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-md); }
.legal__nav a { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); text-decoration: none; }
.legal__nav a:hover, .legal__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-2); }
.legal__date { font-size: var(--text-sm); color: var(--color-muted); }
.legal__body { display: grid; align-content: start; gap: var(--space-md); }
.legal__body h2 { margin-top: var(--space-xl); font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.2; }
.legal__body h3 { margin-top: var(--space-sm); font-size: var(--text-md); letter-spacing: 0; }
.legal__body :is(ul, ol) { display: grid; gap: var(--space-xs); max-width: 65ch; margin: 0; padding-left: 1.25em; }
.legal__body li::marker { color: var(--color-muted); }
.legal__body code { font-size: 0.875em; overflow-wrap: anywhere; }
.facts { display: grid; max-width: 65ch; margin: 0; border-top: 1px solid var(--color-rule); }
.facts > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; }
/* An operator detail still to fill in: loud on purpose, in both themes. */
.todo { padding: 0 0.3em; border-radius: 3px; background: color-mix(in oklab, var(--color-accent) 45%, transparent); color: var(--color-ink); font-family: var(--font-outlier); font-size: 0.85em; }

@media (max-width: 60rem) {
  .mast__row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mast__row > .mast__link:first-child { display: none; }
  .mast__row .wordmark { grid-column: 1; }
  .mast__end { grid-column: 3; }
  .hero { min-height: 0; }
  .route__map { grid-template-columns: minmax(0, 1fr); }
  .route__map > li::after, .route__map > li::before { display: none; }
  .tile, .tile--lead, .tile--wide { grid-column: 1 / -1; }
  .connect .paper, .notes, .faq h2, .rows, .invite .head, .invite__card { grid-column: 1 / -1; }
  .faq h2 { margin-bottom: var(--space-lg); }
  .legal__head, .legal__body { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .card__fields { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .card--behind { transform: translate(8px, -10px) rotate(2deg); }
  .actions .btn { flex: 1 1 100%; }
}

/* The spam trap on the invite form: off screen for people, still in the form for bots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; }
