/* Intake form. Builds on the main site styles. */

/* Control edges: 3:1 against the panel and the field fill, even inside the lighter follow-up panels */
.form-main {
  --ctl-line: rgba(242, 240, 233, .4); --ctl-line-hover: rgba(242, 240, 233, .6); --ctl-mark: rgba(242, 240, 233, .5);
  --warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ff4433' stroke-width='2'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01' stroke='%23ff4433' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Continue, Back and Send have 16px corners like the homepage's main button, never a pill */
.btn { border-radius: 16px; }

/* Questions, hints and choices wrap evenly, so no last line is a word or two alone */
.step legend, .q > span, .hint, .card-opt small, .opt b, .opt small { text-wrap: balance; }

.back-home { font-size: .9rem; color: var(--dim); text-decoration: none; }
.back-home:hover { color: var(--text); }

.form-main { min-height: calc(100vh - var(--nav)); padding: clamp(1.8rem, 4vw, 3rem) 0 4rem; }
.form-layout { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; max-width: 64rem; }

/* Step list */
.stepper { position: sticky; top: calc(var(--nav) + 2rem); }
.stepper-title { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 1.2rem; }
.m-title { display: none; }
.stepper ol { display: grid; gap: .2rem; counter-reset: st; }
.stepper li { counter-increment: st; }
.stepper button {
  display: flex; align-items: center; gap: .75rem; width: 100%; padding: .55rem .6rem; border: 0; border-radius: 10px;
  background: none; color: var(--faint); font: 500 .95rem var(--sans); text-align: left; cursor: pointer; transition: color .2s, background .2s;
}
.stepper button::before {
  content: counter(st); display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid rgba(242, 240, 233, .2); font: 500 .72rem var(--mono); transition: all .25s;
}
.stepper button:disabled { cursor: default; }
.stepper .done button { color: var(--dim); }
.stepper .done button::before { content: ""; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230a0a0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; border-color: var(--text); }
.stepper .current button { color: var(--text); background: rgba(242, 240, 233, .05); }
.stepper .current button::before { border-color: var(--red); background: var(--red); color: #0a0a0b; }
.stepper .done button:hover { color: var(--text); }
.saved { margin-top: 1rem; font: 400 .75rem var(--mono); color: var(--faint); min-height: 1.2em; }
.mobile-progress { display: none; }

/* Steps */
form { position: relative; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.step { border: 0; margin: 0; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 1.7rem; }
.step.enter { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1); }
.step.enter.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.step legend:focus { outline: none; }
.step legend { float: left; width: 100%; padding: 0; font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; }
.step legend + * { clear: both; }
.hint { margin: -.9rem 0 0; color: var(--dim); }
.hint.small { margin: -.6rem 0 0; font-size: .85rem; color: var(--faint); }
.q > .hint.small { margin: .2rem 0 0; }
/* The nonprofit option's tag, sized to its text and kept with its last word, and the one line its rate gets once picked */
.np-word { white-space: nowrap; }
.np-tag { display: inline-block; width: .95em; height: .95em; margin-left: .3em; vertical-align: -.13em; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linejoin: round; }
.np-tag circle { fill: var(--red); stroke: none; }
.np-note { margin: 0; font-size: .88rem; color: var(--dim); animation: followIn .35s ease; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.4rem; }

/* scroll-margin-top: a question brought into view (form.js bring) keeps its title a little below the header */
.q { display: grid; gap: .65rem; align-content: start; scroll-margin-top: 1rem; }
.q > span { font-weight: 600; font-size: 1rem; }
.q i { font-style: normal; font-weight: 400; color: var(--faint); font-size: .85rem; margin-left: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--ctl-line);
  background: #0d0d0f; color: var(--text); font: 400 max(16px, 1rem) var(--sans); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 4.5rem; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(242, 240, 233, .5); }
input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .2); }
/* A field with a problem: a 2px red edge and a warning mark, so it never looks like the focus ring (red edge and glow) */
input:is([type="text"], [type="email"], [type="tel"])[aria-invalid="true"] {
  border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); padding-right: 2.8rem;
  background: #0d0d0f var(--warn) right .95rem center / 1.15rem no-repeat;
}
input:is([type="text"], [type="email"], [type="tel"])[aria-invalid="true"]:focus { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 3px rgba(var(--red-rgb), .2); }
.field-error { display: flex; gap: .4rem; align-items: start; margin: 0; color: var(--red); font-size: .9rem; font-weight: 600; line-height: 1.35; }
.field-error::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; margin-top: .08rem; background: var(--warn) center / contain no-repeat; }
.q > .field-error { margin-top: -.25rem; font-size: .9rem; } /* .q > span would make it 1rem */
/* A question left open: the one calm line, in plain text with a faint mark beside it, no warning icon, and nothing red
   on its choices. Its dropdown, focused for them, gets a light ring in place of the red one until it's answered. */
.field-error.pick { color: var(--text); font-weight: 500; padding-left: .6rem; border-left: 2px solid rgba(var(--red-rgb), .45); }
.field-error.pick::before { content: none; }
.q > select[aria-invalid="true"]:focus { border-color: var(--ctl-line-hover); box-shadow: 0 0 0 3px rgba(var(--hi-rgb), .16); }
.step > .field-error { margin-top: -1.1rem; }
.q > input:is([type="text"], [type="email"], [type="tel"]) { height: var(--ctl-h); padding-block: 0; }

/* Choices: icon cards for the asks, then option cards, hint cards and segments. The real inputs stay in the page for keyboards and screen readers. */
.card-opt input { position: absolute; opacity: 0; pointer-events: none; }
/* Four asks, two by two: three across left one card alone and squeezed every title onto two lines */
.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-opt {
  position: relative; display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; cursor: pointer;
  background: #0d0d0f; border: 1px solid var(--ctl-line); transition: border-color .2s, background .2s, transform .2s;
}
.card-opt svg { width: 1.8rem; height: 1.8rem; margin-bottom: .35rem; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.card-opt b { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.card-opt small { color: var(--dim); font-size: .86rem; line-height: 1.4; }
.card-opt::after {
  content: ""; position: absolute; top: .9rem; right: .9rem; width: 1.2rem; height: 1.2rem; border-radius: 6px;
  border: 1.5px solid var(--ctl-mark); transition: all .2s;
}
.card-opt:hover { border-color: var(--ctl-line-hover); transform: translateY(-2px); }
.card-opt:has(input:checked) { border-color: var(--red); background: rgba(var(--red-rgb), .07); }
.card-opt:has(input:checked) svg { stroke: var(--red); }
.card-opt:has(input:checked)::after { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230a0a0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--red); }
.card-opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }

/* Every other choice speaks the ask cards' language: #0d0d0f fill, --ctl-line edge, red border and 7% tint when picked,
   1.2rem badge (rounded square = pick several, circle = pick one). The real input covers the card, invisible. */
.step { --ctl-h: 3rem; }
div.q:not(.cards) { container-type: inline-size; }

/* Fixed, equal columns and equal rows: never sized by the text */
.opts { --c: 2; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .5rem; }
.opts.cols-3 { --c: 3; }
.opts.hints { gap: .65rem; }

.opt {
  position: relative; display: grid; align-content: center; gap: .3rem; min-height: var(--ctl-h);
  padding: .7rem 2.5rem .7rem .9rem; border-radius: 12px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  background: #0d0d0f; border: 1px solid var(--ctl-line); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt b { font-size: .9rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.opt::after {
  content: ""; position: absolute; top: 50%; right: .8rem; width: 1.2rem; height: 1.2rem; translate: 0 -50%; pointer-events: none;
  border-radius: 6px; border: 1.5px solid var(--ctl-mark); transition: background .2s, border-color .2s;
}
.opt:has(> input[type="radio"])::after { border-radius: 50%; }
@media (hover: hover) {
  .opt:hover { border-color: var(--ctl-line-hover); }
  .opts.hints .opt:hover { transform: translateY(-2px); }
}
.opt:has(> input:checked) { border-color: var(--red); background: rgba(var(--red-rgb), .07); }
.opt:has(> input[type="checkbox"]:checked)::after { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230a0a0b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--red); }
.opt:has(> input[type="radio"]:checked)::after { background: radial-gradient(circle, #0a0a0b 0 .2rem, var(--red) calc(.2rem + .5px)); border-color: var(--red); }
.opt:has(> input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.opt:has(> input:disabled) { opacity: .45; cursor: not-allowed; }

/* Hint card: the ask card without its icon. Side padding is a little tighter so three titles fit across a panel */
.opts.hints .opt { align-content: start; gap: .25rem; padding: .95rem .9rem 1rem; border-radius: 16px; }
.opts.hints .opt b { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; padding-right: 1.35rem; }
.opts.hints .opt small { color: var(--dim); font-size: .86rem; line-height: 1.4; }
.opts.hints .opt::after { top: .95rem; right: .8rem; translate: none; }
/* Three hint cards in a row share a title row and a hint row, so a title that runs to two lines (the owner's
   "Just automate what I use now") never pushes its hint below the others */
@container (width > 37rem) {
  .opts.hints.cols-3 { grid-auto-rows: auto; }
  .opts.hints.cols-3 > .opt { grid-row: span 2; grid-template-rows: subgrid; row-gap: .25rem; }
  .opts.hints.cols-3 > .opt > b { align-self: start; }
}

/* Segment: one row of equal option cards. No badge; the pick gets a 2px red edge (not color alone) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: .5rem; }
.seg .opt { padding: .45rem .3rem; text-align: center; }
.seg .opt::after { content: none; }
.seg .opt:has(> input:checked) { box-shadow: inset 0 0 0 1px var(--red); }

/* Dropdown for long, familiar company lists. Same height, border and focus ring as text fields */
.q > select {
  appearance: none; width: 100%; height: var(--ctl-h); padding: 0 2.8rem 0 1rem; border-radius: 12px; cursor: pointer; color-scheme: dark;
  border: 1px solid var(--ctl-line); color: var(--text); font: 400 max(16px, 1rem) var(--sans); text-overflow: ellipsis;
  background: #0d0d0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f2f0e9' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center / 1.1rem no-repeat;
  transition: border-color .2s, box-shadow .2s;
}
.q > select:has(option[value=""]:checked) { color: rgba(242, 240, 233, .5); }
.q > select option { color: var(--text); background: #121214; }
@media (hover: hover) { .q > select:hover { border-color: var(--ctl-line-hover); } }
.q > select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), .2); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Columns follow the question's own width, so panels, the sidebar layout and phones each get a count that fits */
@container (max-width: 37rem) {
  .opts.cols-3 { --c: 2; }
  .opts.hints.cols-3 { --c: 1; }
  .seg.wrap-2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
/* In between, a hint card or a two-across answer would still leave its last word alone, so these go one per row (or
 two across for .wrap-2 segments) a little sooner than the steps above */
@container (max-width: 41rem) {
  .opts.hints.cols-3 { --c: 1; }
  .seg.wrap-2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
@container (max-width: 21rem) {
  .opts.keep-2 { --c: 1; }
}
@container (max-width: 33rem) {
  .opts:not(.keep-2) { --c: 1; }
}
@container (max-width: 30rem) {
  .opts:not(.keep-2) { --c: 1; }
  .opts.keep-2 .opt { padding: .65rem 2.15rem .65rem .8rem; }
  .opts.keep-2 .opt::after { right: .7rem; width: 1.1rem; height: 1.1rem; }
}
/* Four cells need about 20rem. Narrower than that (inside a panel on a phone), they go 2 by 2.
   Two tiles across, or a row of two-word answers (.stack), leave a phone so little room that "Phone or text" broke
   after "Phone", so those go one per row */
@container (max-width: 20rem) {
  .seg:has(> .opt:nth-child(4)) { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .opts.keep-2 { --c: 1; }
  .seg.stack, .seg.stack:has(> .opt:nth-child(4)) { grid-auto-flow: row; grid-template-columns: 1fr; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 560px) { .opts:not(.keep-2) { --c: 1; } .opts.keep-2 { --c: 2; } .seg.wrap-2 { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
  @media (max-width: 380px) { .opts.keep-2 { --c: 1; } .seg.stack { grid-auto-flow: row; grid-template-columns: 1fr; } }
}
/* Browsers without :has() show the native boxes instead of badges */
@supports not selector(:has(*)) {
  .opt { display: flex; flex-wrap: wrap; align-items: center; column-gap: .6rem; padding-right: .9rem; }
  .opt > input { position: static; width: 1.1rem; height: 1.1rem; flex: none; opacity: 1; accent-color: var(--red); }
  .opt::after { content: none; }
  .opt small { flex-basis: 100%; }
}
@media (forced-colors: active) { .opt:has(> input:checked) { outline: 3px solid Highlight; outline-offset: -3px; } }

/* Follow-ups appear only when the answer above calls for them */
.follow { padding: 1rem 1.15rem; border-radius: 14px; background: rgba(242, 240, 233, .03); border-left: 2px solid var(--red); animation: followIn .35s ease; }
@keyframes followIn { from { opacity: 0; transform: translateY(-6px); } }
div.follow:not(.q) { display: grid; gap: 1.4rem; }
.follow [data-show-when] { animation: followIn .35s ease; }
/* A redesign already gave its address, so the domain company's dropdown takes the whole row */
.row-2 > [hidden] + .q { grid-column: 1 / -1; }

/* Files */
.drop { position: relative; display: grid; place-items: center; gap: .35rem; padding: 2rem 1rem; border-radius: 16px; border: 1.5px dashed var(--ctl-mark); background: #0d0d0f; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop svg { width: 2rem; height: 2rem; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .2rem; }
.drop small { color: var(--dim); }
.drop.over, .drop:hover { border-color: var(--red); background: rgba(var(--red-rgb), .05); }
.drop:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; border-color: var(--red); }
.file-list { display: grid; gap: .5rem; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .8rem; padding: .65rem .85rem; border-radius: 10px; background: #0d0d0f; border: 1px solid var(--line); font-size: .9rem; }
.file-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { font: 400 .74rem var(--mono); color: var(--faint); white-space: nowrap; }
.file-list button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: .85rem; padding: .2rem .4rem; }
.file-list button:hover { color: var(--red); }
.file-list .bar { grid-column: 1 / -1; height: 3px; border-radius: 999px; background: rgba(242, 240, 233, .08); overflow: hidden; }
.file-list .bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }

/* Review */
.estimate { display: grid; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: rgba(var(--red-rgb), .08); border: 1px solid rgba(var(--red-rgb), .45); }
.estimate b { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.estimate p { margin: 0; color: var(--dim); font-size: .92rem; }
.est-extras { margin-top: .5rem; padding-top: .7rem; border-top: 1px solid rgba(var(--red-rgb), .25); }
.est-extras p { font-size: .85rem; color: var(--dim); margin-bottom: .3rem; }
.est-extras ul { display: grid; gap: .2rem; margin: 0; padding-left: 1.1rem; list-style: disc; color: var(--text); font-size: .88rem; }
.summary { display: grid; gap: .8rem; }
.sum-block { padding: 1rem 1.1rem; border-radius: 14px; background: #0d0d0f; border: 1px solid var(--line); }
.sum-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.sum-head h2 { font-size: .98rem; font-weight: 700; letter-spacing: normal; line-height: 1.3; }
.sum-head button { background: none; border: 0; color: var(--red); font: 600 .85rem var(--sans); cursor: pointer; padding: .2rem .3rem; }
.sum-block dl { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: .35rem 1rem; margin: 0; font-size: .9rem; }
.sum-block dt { color: var(--faint); }
.sum-block dd { margin: 0; color: var(--text); }
.sum-empty { color: var(--faint); font-size: .9rem; margin: 0; }
.sum-gap { color: var(--text); font-size: .9rem; font-weight: 500; margin: 0; padding-left: .6rem; border-left: 2px solid rgba(var(--red-rgb), .45); }
.sum-block dl + .sum-gap { margin-top: .55rem; }
.privacy-note { margin: 0; font-size: .85rem; color: var(--faint); text-wrap: balance; }
.privacy-note a { color: var(--dim); text-underline-offset: 3px; }

.form-error { min-height: 1.4em; margin: 1rem 0 0; color: var(--red); font-weight: 600; }
.form-nav { display: flex; gap: .8rem; margin-top: .4rem; }
.form-nav #next, .form-nav #submit { margin-left: auto; }
.form-nav #to-review { order: 2; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

.form-layout.sent { grid-template-columns: 1fr; max-width: 42rem; }
.thanks { text-align: center; padding: 3.4rem 1.6rem; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.thanks-mark { width: 4rem; height: auto; margin: 0 auto 1.2rem; animation: spinIn 1s cubic-bezier(.2, .8, .2, 1) both; }
.thanks-mark .ring { fill: none; stroke: var(--red); stroke-width: 128; stroke-dasharray: 320 44.4; stroke-dashoffset: 342.2; }
.thanks-mark .dot { fill: var(--red); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.05em; margin-bottom: .4em; }
.thanks p { color: var(--dim); font-size: 1.05rem; margin-bottom: 1.6rem; }
.thanks .keep { max-width: 30rem; margin: -.8rem auto 1.6rem; font-size: .92rem; color: var(--faint); }
/* Their price range once sent, as an early guide: the review step's box, read left to right under the thanks */
.thanks .guide { max-width: 34rem; margin: 0 auto 2.4rem; text-align: left; }
.thanks .guide p { margin: 0; font-size: .92rem; }
.thanks .guide .guide-lead { color: var(--text); font-weight: 600; }
.thanks .guide .est-crm { color: var(--text); margin-top: .4rem; } /* the CRM part's call, apart from the website's fine print */
.thanks .guide .est-extras p { font-size: .85rem; margin-bottom: .3rem; }
.thanks-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Tablet and phone: no side list, a slim progress bar instead */
@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
  .stepper { display: none; }
  .m-title { display: block; font-size: clamp(1.5rem, 6vw, 1.9rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: .9rem; }
  .mobile-progress { display: block; margin-bottom: 1.2rem; }
  .progress { height: 4px; border-radius: 999px; background: rgba(242, 240, 233, .1); overflow: hidden; }
  .progress span { display: block; height: 100%; width: 10%; background: var(--red); border-radius: inherit; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
  /* One line reserved before form.js fills it in, and a set line height so the mono font can't change it.
     Either would push the form down as the page loads. */
  .mobile-progress p { margin: .55rem 0 0; min-height: 1.28em; font: 500 .78rem/1.28 var(--mono); color: var(--faint); }
}
@media (max-width: 560px) {
  .row-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card-opt { grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: .9rem 2.6rem .9rem 1rem; }
  .card-opt svg { grid-row: span 2; margin: 0; }
  .follow { padding: .9rem .85rem; }
  .sum-block dl { grid-template-columns: 1fr; gap: .1rem; }
  .sum-block dd { margin-bottom: .5rem; }
  .thanks .guide { padding: 1rem 1.05rem; }
}
/* Phones: the card and its range box give their text more of the width */
@media (max-width: 400px) {
  .thanks { padding: 2.6rem 1rem; }
  .thanks .guide { padding: .9rem; }
}
/* The smallest phones: the icon sits above the title again, so "A CRM or automations" keeps to one line */
@media (max-width: 340px) {
  .card-opt { grid-template-columns: 1fr; align-items: start; }
  .card-opt svg { grid-row: auto; margin-bottom: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step.enter, .follow, .follow [data-show-when], .np-note, .thanks-mark { animation: none; }
  .opts.hints .opt:hover { transform: none; }
}
