/* zibby.ca's public styles. The app owns its independent copy in app/src/styles/. */
/* Warm paper, deep ink, electric violet with lime and coral accents. Bricolage Grotesque + Figtree. */

:root {
  --paper: #fffaf1;
  --paper-2: #f4ecdf;
  --ink: #16131f;
  --muted: #5d566a;
  --line: #e4d9c8;
  --violet: #5b3df5;
  --violet-dark: #4529d6;
  --lime: #d4ff3f;
  --coral: #ff6b4a;
  --display: 'Bricolage Grotesque Variable', 'Arial Rounded MT Bold', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, address { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; padding: 0.7rem 1rem; background: var(--ink); color: var(--paper); z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 3rem, 1200px); margin-inline: auto; }

/* Wordmark */
.wordmark { display: inline-block; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 2rem; line-height: 1; letter-spacing: -0.055em; color: var(--ink); }
.wordmark-dot { color: var(--coral); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; }
.brand { text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; font-size: 0.95rem; }
.top-nav a { text-decoration: none; }
.top-nav a:not(.pill):hover { color: var(--violet); }
/* An outline, not a filled button: on the home page the lookup's button is the one to press, and Contact is the
   way round it. */
.pill { padding: 0.45rem 1rem; border-radius: 99px; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); transition: background 0.2s, color 0.2s; }
.pill:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 3rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4.5rem); }
.hero h1 { font-family: var(--display); font-weight: 750; font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; }
/* Two sentences, two blocks: "after." never sits on a line of its own. */
.hero h1 > span { display: block; text-wrap: balance; }
.hero mark { position: relative; padding: 0 0.12em; background: none; color: var(--ink); isolation: isolate; }
.hero mark::before { content: ''; position: absolute; inset: 0.14em -0.02em 0.02em; z-index: -1; background: var(--lime); border-radius: 0.18em; transform: rotate(-2deg); }
.lede { max-width: 34rem; margin-top: 1.5rem; text-wrap: pretty; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.95rem 1.5rem; border-radius: 99px; background: var(--violet); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgb(91 61 245 / 0.7); transition: background 0.2s, transform 0.2s; }
.button:hover { background: var(--violet-dark); transform: translateY(-2px); }
.button span { transition: transform 0.2s; }
.button:hover span { transform: translateX(3px); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--paper); }

/* Hero art: three sample site windows */
.hero-art { position: relative; min-height: 36rem; }
.hero-art-label { position: absolute; right: 0; bottom: -1.6rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.window { position: absolute; width: 68%; border-radius: 14px; background: #fff; border: 2px solid var(--ink); box-shadow: 10px 12px 0 var(--ink); overflow: hidden; animation: float 7s ease-in-out infinite; }
.w1 { left: 0; top: 0; transform: rotate(-5deg); z-index: 1; --r: -5deg; }
.w2 { right: 0; top: 29%; transform: rotate(4deg); z-index: 2; --r: 4deg; animation-delay: -2.4s; }
.w3 { left: 8%; bottom: 2%; transform: rotate(-1.5deg); z-index: 3; --r: -1.5deg; animation-delay: -4.8s; }
@keyframes float { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-8px); } }
.window-bar { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.7rem; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.window-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink); opacity: 0.25; }
.window-bar span { margin-left: 0.5rem; padding: 0.05rem 0.6rem; border-radius: 99px; background: #fff; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.mini { padding: 0.8rem 0.9rem 0.9rem; }
.mini-nav { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.72rem; }
.mini-nav em { font-style: normal; opacity: 0.6; }
.mini-hero { margin-top: 0.7rem; padding: 1rem; border-radius: 9px; }
.mini-h { font-size: 1.45rem; line-height: 1.02; letter-spacing: -0.02em; }
.mini-btn { display: inline-block; margin-top: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 99px; font-size: 0.7rem; font-weight: 700; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.55rem; }
.mini-cards span { height: 2.1rem; border-radius: 6px; }
.sample-bakery .mini-hero { background: #f6e3c8; }
.sample-bakery .mini-h { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #5a2e12; }
.sample-bakery .mini-btn { background: #5a2e12; color: #f6e3c8; }
.sample-bakery .mini-cards span { background: #f1d9b5; }
.sample-plumbing .mini-hero { background: #0f3d66; color: #fff; }
.sample-plumbing .mini-h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-stretch: 75%; }
.sample-plumbing .mini-btn { background: #ffd23f; color: #0f3d66; }
.sample-plumbing .mini-cards span { background: #dbe8f4; }
.sample-yoga .mini-hero { background: linear-gradient(160deg, #cfe6ff, #e8dcff); color: #2d2455; }
.sample-yoga .mini-h { font-family: var(--display); font-weight: 400; }
.sample-yoga .mini-btn { background: #2d2455; color: #fff; }
.sample-yoga .mini-cards span { background: #ece7fb; }

/* Preview lookup */
.lookup { scroll-margin-top: 1.5rem; max-width: 36rem; margin-top: 2.2rem; padding: 1.2rem 1.2rem 1.3rem; border-radius: 20px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--lime), 8px 8px 0 2px var(--ink); }
.lookup-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; }
.lookup-sub { margin-top: 0.3rem; font-size: 0.95rem; color: var(--muted); }
.lookup-form { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
.lookup-form input { flex: 1; min-width: 0; padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: 99px; background: var(--paper); font: inherit; font-size: 1.05rem; color: var(--ink); }
.lookup-form input:focus { outline: none; border-color: var(--violet); background: #fff; }
.lookup-form input[aria-invalid='true'] { border-color: var(--coral); }
.lookup-form .button { flex: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.lookup-note { margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); }
.lookup-error { margin-top: 0.6rem; font-size: 0.92rem; font-weight: 600; color: #c2371a; }
.hero-flyer { max-width: 36rem; margin-top: 1.5rem; font-size: 0.92rem; color: var(--muted); }
.hero-flyer strong { color: var(--ink); }
.hero-flyer + .hero-terms { margin-top: 0.6rem; }
.hero-terms { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; max-width: 36rem; margin-top: 1.5rem; font-size: 0.92rem; color: var(--muted); }
.hero-terms strong { color: var(--ink); }
.hero-terms a { font-weight: 600; color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.hero-terms a:hover { color: var(--violet); }

/* Queue dialog */
.queue-dialog { width: min(100% - 2rem, 34rem); max-height: calc(100svh - 2rem); padding: 0; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 10px 12px 0 var(--ink); overflow: auto; }
.queue-dialog::backdrop { background: rgb(22 19 31 / 0.55); backdrop-filter: blur(3px); }
.queue-dialog[open] { animation: pop 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
/* Every dialog panel, so a new one can't ship flush against the border — `.unavailable` did. */
.found, .queued, .unavailable, .testrefused, .mine, .building, .ours, .owned, .household { position: relative; padding: 1.8rem 1.6rem 1.6rem; }
.dialog-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--line); }
.dialog-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.dialog-title { margin-top: 0.4rem; padding-right: 2rem; font-family: var(--display); font-weight: 750; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.dialog-title span { color: var(--violet); }
.found .button, .mine .button, .owned .button { margin-top: 1.2rem; }
.unavailable p, .testrefused p, .building p, .mine p, .ours p, .owned p, .household p { margin-top: 0.8rem; color: var(--muted); }
.dialog-note { font-size: 0.92rem; }
.unavailable .button.ghost, .testrefused .button.ghost, .building .button.ghost, .ours .button.ghost, .household .button.ghost { margin-top: 1.2rem; }

.progress { margin-top: 1.4rem; padding: 1.1rem 1.1rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.progress-track { position: relative; height: 0.8rem; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: var(--fill); border-radius: 99px; background-color: var(--violet); background-image: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.22) 0 8px, transparent 8px 16px); background-size: 22.6px 22.6px; animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 22.6px 0; } }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.8rem; padding: 0; list-style: none; font-size: 0.78rem; line-height: 1.25; color: var(--muted); }
.phases li { display: grid; gap: 0.35rem; justify-items: start; }
.phase-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.phases .done { color: var(--ink); }
.phases .done .phase-dot { border-color: var(--violet); background: var(--violet); }
.phases .current { color: var(--ink); font-weight: 700; }
.phases .current .phase-dot { border-color: var(--violet); box-shadow: 0 0 0 4px rgb(91 61 245 / 0.18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(91 61 245 / 0.06); } }

.notify-form, .notify-done { margin-top: 1.4rem; }
.notify-form h3, .notify-done h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.notify-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 0.6rem; margin-top: 0.8rem; }
.notify-fields label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.notify-fields input { width: 100%; padding: 0.75rem 0.9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); }
.notify-fields input:focus { outline: none; border-color: var(--violet); }
.or { padding-bottom: 0.8rem; font-size: 0.85rem; color: var(--muted); }
/* The honeypot. Out of the layout, not just off-screen: autofill fills any field it could focus, wherever it is
   (infra/app-api/http.mjs, TRAP_FIELD). */
.hp { display: none !important; }
.notify-note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }
.notify-error { margin-top: 0.6rem; font-size: 0.92rem; font-weight: 600; color: #c2371a; }
.notify-form .button, .notify-done .button { margin-top: 1rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.notify-form .button:disabled { opacity: 0.6; cursor: default; }
.notify-done p { margin-top: 0.4rem; color: var(--muted); overflow-wrap: anywhere; }
.notify-done strong { color: var(--ink); }

/* Flyer strip */

/* Section headings */
.section-kicker { margin-bottom: 0.8rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); }
.section-kicker.light { color: var(--lime); }
.section-title { max-width: 18ch; font-family: var(--display); font-weight: 750; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
/* The coloured half is one phrase: it never breaks across lines. */
.section-title span { display: inline-block; }
.section-title span { color: var(--violet); }
.section-title.light span { color: var(--lime); }

/* How it works */
.how { padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.8rem; padding: 0; list-style: none; }
.steps li { padding: 1.6rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1.2rem; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.steps li:nth-child(2) .step-n { background: var(--violet); }
.steps li:nth-child(3) .step-n { background: var(--ink); color: var(--lime); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.025em; line-height: 1.1; }
.steps p { margin-top: 0.6rem; color: var(--muted); text-wrap: pretty; }

/* What you get */
.included { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: var(--ink); color: var(--paper); border-radius: clamp(24px, 4vw, 48px); margin-inline: clamp(0.5rem, 1.5vw, 1.5rem); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.8rem; padding: 0; list-style: none; }
.features li { padding: 1.5rem; border-radius: 18px; background: #221e2e; border: 1px solid #34304a; }
.feature-icon { width: 2rem; height: 2rem; margin-bottom: 0.9rem; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.features p { margin-top: 0.55rem; color: #c4bdd3; font-size: 0.98rem; text-wrap: pretty; }
/* --- Pricing (decision 0056) -----------------------------------------------------------------------
   Its own section on paper, between the dark "what you get" band and the violet contact card, so it
   reads as a stop rather than a footnote to the feature list — which is where it lived, and where
   people scrolled straight past it. */
.prices { padding-block: clamp(3rem, 6vw, 4.5rem); }
.prices-lede { max-width: 40ch; margin-top: 1rem; text-wrap: balance; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; color: var(--muted); }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.4rem; margin-top: 2.2rem; }

/* Horizontal cards: the price sits in a band across the top, the detail runs underneath, so the two
   numbers line up with each other across the row however wide the card gets. */
.price-card { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: 8px 10px 0 var(--ink); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.price-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 12px 0 var(--ink); }

.price-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: baseline; justify-content: space-between; padding: 1.1rem 1.4rem; background: var(--ink); color: var(--paper); }
.price-head h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.price-amount { font-family: var(--display); font-weight: 750; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1; letter-spacing: -0.03em; color: var(--lime); white-space: nowrap; }
.price-amount small { font-size: 0.95rem; font-weight: 650; letter-spacing: 0; }
/* Anything not settled says so, rather than showing a number we haven't agreed. */
.price-amount em { font-size: 1rem; font-style: normal; font-weight: 650; color: var(--line); }

.price-body { flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.price-body > p:not(.price-highlight) { color: var(--muted); }
/* The included domain is the strongest thing on this page and was losing to three bullets beside it. A tint,
   not solid lime, so it doesn't outshine the price above it. */
.price-highlight { margin-top: 1.1rem; padding: 0.9rem 1.1rem; border: 2px solid var(--ink); border-radius: 14px; background: color-mix(in srgb, var(--lime) 38%, var(--paper)); font-size: 0.96rem; }
.price-highlight strong { display: block; font-family: var(--display); font-weight: 750; font-size: 1.05rem; letter-spacing: -0.01em; }
.price-body ul { margin-top: 1rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.price-body li { position: relative; padding-left: 1.7rem; font-size: 0.96rem; }
.price-aside { margin-top: 0.7rem; padding-left: 1.7rem; font-size: 0.86rem; color: var(--muted); }
.prices-cta { margin-top: 2.2rem; }
.price-body li::before { content: ''; position: absolute; left: 0; top: 0.36em; width: 1.05rem; height: 0.55rem; border-left: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(-45deg); }

.price-note { max-width: 62ch; margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }

/* Contact */
.contact { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(4.5rem, 10vw, 8rem); }
.contact-card { position: relative; padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; background: var(--violet); color: #fff; overflow: hidden; isolation: isolate; }
.contact-card::after { content: ''; position: absolute; right: -6rem; top: -6rem; z-index: -1; width: 22rem; aspect-ratio: 1; border-radius: 50%; background: var(--coral); opacity: 0.9; }
.contact-card .section-kicker { color: var(--lime); }
.contact-card h2 { max-width: 20ch; font-family: var(--display); font-weight: 750; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2rem 3rem; align-items: start; margin-top: 1.4rem; }
.contact-lede { max-width: 26rem; font-size: 1.15rem; color: #e7e1ff; text-wrap: pretty; }
.contact-alt { margin-top: 1.4rem; font-weight: 600; }
.contact-alt a { color: var(--lime); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-card address { margin-top: 1.4rem; font-style: normal; font-size: 0.95rem; line-height: 1.55; color: #d6ceff; }
.contact-panel { padding: 1.4rem; border-radius: 20px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.cf-grid label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; }
.cf-grid em { font-style: normal; font-weight: 400; color: var(--muted); }
.cf-wide { grid-column: 1 / -1; }
.cf-grid input, .cf-grid textarea { width: 100%; padding: 0.75rem 0.9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); resize: vertical; }
.cf-grid input:focus, .cf-grid textarea:focus { outline: none; border-color: var(--violet); }
.cf-note { margin-top: 0.8rem; font-size: 0.82rem; color: var(--muted); }
.cf-error { margin-top: 0.6rem; font-size: 0.92rem; font-weight: 600; color: #c2371a; }
.cf-submit { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1rem; padding: 0.9rem 1.6rem; border: 0; border-radius: 99px; background: var(--ink); color: var(--lime); font: inherit; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.cf-submit:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.cf-submit:disabled { opacity: 0.6; cursor: default; }
.cf-done h3 { font-family: var(--display); font-weight: 750; font-size: 1.6rem; letter-spacing: -0.03em; }
.cf-done p { margin-top: 0.5rem; color: var(--muted); }
.cf-done a { color: var(--violet); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 2rem; padding-block: 1.6rem 2.4rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.foot .wordmark { font-size: 1.5rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.notify-note a, .cf-note a { color: inherit; text-underline-offset: 2px; }

/* Legal pages */
.legal { max-width: 46rem; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.legal h1 { font-family: var(--display); font-weight: 750; font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -0.04em; }
.legal-body { margin-top: 2rem; }
.legal-body .legal-lede { font-size: 1.2rem; color: var(--ink); }
.legal-body h2 { margin-top: 2.4rem; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.legal-body h3 { margin-top: 1.8rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.2; }
.legal-body p, .legal-body ul, .legal-body address { margin-top: 0.8rem; color: #3b3548; }
.legal-body li > ul { margin-top: 0.45rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li + li { margin-top: 0.45rem; }
.legal-body li::marker { color: var(--violet); }
.legal-body a { color: var(--violet); text-underline-offset: 3px; }
.legal-body address { font-style: normal; padding: 1rem 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); line-height: 1.6; }
.legal-body em { font-style: italic; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
/* A printed or saved page never scrolls, so a card nobody scrolled to would print blank. */
@media print { .reveal { opacity: 1; transform: none; transition: none; } }

/* 404 */
.notfound { display: grid; place-content: center; justify-items: center; min-height: 100svh; padding: 2rem; text-align: center; }
.notfound h1 { font-family: var(--display); font-weight: 750; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.04em; margin-block: 1.4rem 1.6rem; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { min-height: 32rem; max-width: 38rem; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
  /* The anchors go, because they only jump down a page somebody can scroll. Sign in stays: it is the
     one link in here with no other route to it, and a phone is where a returning customer is most
     likely to be looking for it (decision 0071). */
  .top-nav a:not(.pill):not(.sign-in) { display: none; }
  .steps, .features, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .step-n { margin-bottom: 0.9rem; }
}
@media (max-width: 480px) {
  .lookup-form { flex-direction: column; }
  .lookup-form .button { justify-content: center; }
  .notify-fields, .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel { padding: 1.1rem; box-shadow: 5px 5px 0 var(--ink); }
  .contact-card::after { right: -5rem; top: -5rem; width: 10rem; }
  .or { padding: 0; text-align: center; }
  .phases { font-size: 0.7rem; }
  .wrap { width: min(100% - 2.5rem, 1200px); }
  .hero-art { min-height: 27rem; }
  .window { width: 80%; box-shadow: 6px 8px 0 var(--ink); }
  .mini-h { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .window, .progress-fill, .phases .current .phase-dot, .queue-dialog[open] { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sign in, for a customer coming back (decision 0071). Quieter than Contact, which is still what a prospect
   is there to do — but in the place every other site puts it, because a returning customer looks there. */
.top-nav .sign-in { font-weight: 600; }
.top-nav .sign-in:hover { color: var(--violet); }
@media (max-width: 720px) { .top-nav { gap: 0.9rem; } }
