/* Spec Built agency site. Mobile-first: base styles target phones, media queries scale up. */

:root {
  --blue-950: #0b2c50;
  --blue-900: #0f3a68;
  --blue-100: #eef4fb;
  --on-blue: #c9dcf2;
  --line-on-blue: #5f86af;
  --redline: #ff9b7a;
  --ink: #10243f;
  --slate: #44566c;
  --line: #9fb4cb;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --step-2: clamp(1.9rem, 1.6rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.375rem, 1.9rem + 2.2vw, 3.625rem);
  --step-4: clamp(3.5rem, 2.2rem + 6vw, 6.125rem);
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(52px, 7vw, 96px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: #fff; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h2 { margin-bottom: 1.75rem; font-size: var(--step-3); line-height: 1.02; }
h3 { font-size: 1.1875rem; font-weight: 600; }
p { text-wrap: pretty; }
.container { width: min(100% - 2 * var(--gutter), 1052px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: #fff; color: var(--blue-900); }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--blue-900); outline-offset: 3px; }
.blueprint :focus-visible, .site-footer :focus-visible, .phone-bar :focus-visible { outline-color: var(--redline); }

/* The drafting-paper background: blueprint blue with faint grid lines. */
.blueprint { color: #fff; background-color: var(--blue-900); background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 32px 32px; }

.section { padding-block: var(--section); }
.section--tint { background: var(--blue-100); }
.section__lead { max-width: 44em; margin: -12px 0 28px; }
.kicker, .title-block__label, .step__num { font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.kicker { margin-bottom: 12px; font-size: .8125rem; color: var(--slate); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border: 2px solid transparent; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease, color .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--on-blue); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-900); }

/* Header */
.site-header { border-bottom: 1px solid var(--line-on-blue); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand__mark { flex: none; width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
/* The whole name, "Spec Built Sites", on one line at one size (owner, 2026-11-14). */
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6875rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: .9375rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-nav a:hover { color: var(--on-blue); }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 44px 56px; }
.hero__text { flex: 1 1 400px; min-width: 0; }
.hero__art { flex: 1 1 380px; min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: .98; }
.hero__mark { padding-bottom: .05em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 3, 96 2, 198 6' fill='none' stroke='%23FF9B7A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .15em; }
.hero__lead { max-width: 33em; margin-top: 28px; margin-bottom: 30px; font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem); }

/* Stacked screens: the drawing sits right under the headline, so it plays on the first screen. Above this width the text and drawing sit side by side. */
@media (max-width: 959px) and (min-height: 501px), (max-width: 599px) {
  .hero__inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .hero h1 { order: 2; }
  .hero__art { order: 3; flex: none; width: 100%; max-width: 520px; margin-top: 20px; }
  .hero__lead { order: 4; margin-top: 24px; }
  .hero .btn-row { order: 5; }
}
/* Once the stacked screen is wider than the drawing, center the whole hero, so it doesn't sit to the left with empty space on the right. */
@media (min-width: 560px) and (max-width: 959px) and (min-height: 501px), (min-width: 560px) and (max-width: 599px) {
  .hero__inner { text-align: center; }
  .hero__art { align-self: center; }
  .hero__lead { align-self: center; }
  .hero .btn-row { justify-content: center; }
}
/* On an upright phone the headline doesn't fill the width, so it's centered too. */
@media (max-width: 559px) {
  .hero h1 { text-align: center; }
}
/* A phone held sideways is wide but short: smaller headline beside the drawing, so both show on the first screen. The phone bar steps out, since it would cover too much. */
@media (min-width: 600px) and (max-width: 959px) and (max-height: 500px) {
  .hero { padding-top: 20px; padding-bottom: 28px; }
  .hero__inner { flex-wrap: nowrap; align-items: flex-start; gap: 28px; }
  .hero__text { flex: 1 1 56%; }
  .hero__art { flex: 1 1 44%; max-width: calc((100vh - 125px) * 1.3); }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 3.5rem); }
  .hero__lead { margin-top: 16px; margin-bottom: 18px; font-size: 1rem; }
  .phone-bar { display: none; }
  body:has(.phone-bar) .site-footer { padding-bottom: 0; }
}

/* The hero drawing draws itself once: the drafting table first, then the arrow and the phone. Each piece sets its own start (--d) and length (--t) in index.html. */
.art-line { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: draw var(--t, .7s) ease-out var(--d, 0s) both; }
.art-line--thin { stroke: var(--on-blue); stroke-width: 1.5; }
.art-line--red { stroke: var(--redline); }
.art-show { opacity: 0; animation: appear .5s ease-out var(--d, 0s) both; }
/* The parallel rule slides down the board as the sheet is drawn. */
.art-rule { opacity: 0; animation: appear .13s ease-out .21s both, sweep 1s cubic-bezier(.35, 0, .65, 1) .29s both; }
@keyframes draw { 0% { opacity: 0; stroke-dashoffset: 1; } 1% { opacity: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(216px); } }

/* Title block: the short terms, set like the corner of a drawing. */
.title-block { padding-bottom: clamp(36px, 5vw, 60px); }
/* Four cells always fill the grid evenly: one column, then two, then four. Never three, which leaves an empty cell. */
.title-block__grid { display: grid; grid-template-columns: 1fr; border: 2px solid #fff; }
@media (min-width: 540px) { .title-block__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .title-block__grid { grid-template-columns: repeat(4, 1fr); } }
.title-block__cell { padding: 16px 18px; border: 1px solid var(--line-on-blue); }
.title-block__label { font-size: .75rem; color: var(--on-blue); }
.title-block__big { margin: 4px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1.1; }
.title-block__small { font-size: .9375rem; }

/* See it: before and after, on a made-up business */
.see-it h2 { margin-bottom: 16px; }
.see-it__text { max-width: 44em; margin-bottom: 28px; }
.see-it__note { font-size: .9375rem; color: var(--slate); }

/* BEFORE and AFTER: a made-up client's old site on a computer, and new site on a computer and a phone. Each page is built at real size, then main.js shrinks it to fit its screen. AFTER scrolls; BEFORE stays still. */
.dm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dm-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.dm-before, .dm-after { min-width: 0; max-width: 764px; }
/* BEFORE and AFTER read as solid tags, so the comparison is clear at a glance: gray for the old site, blueprint blue for the new one. */
.dm-row figcaption { width: fit-content; margin-bottom: 12px; padding: 3px 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--slate); }
.dm-row .dm-after figcaption { background: var(--blue-900); }
.dm-after__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.dm-pause { display: block; min-height: 44px; padding: 6px 24px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.dm-pause:hover { background: var(--blue-100); }
.dm-devices { position: relative; container-type: inline-size; padding-bottom: 1cqw; }
.dm-laptop { width: 79%; margin-left: 2%; }
/* Side by side from 900 pixels up, with both computer screens about the same size. */
@media (min-width: 900px) {
  .dm-row { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 28px; }
  .dm-before .dm-laptop { width: 92%; margin-left: 4%; }
  .dm-before .dm-lid { border-width: 1.51cqw; border-bottom-width: 2.1cqw; border-radius: 2.1cqw 2.1cqw 0 0; }
  .dm-before .dm-base { height: 2.56cqw; }
}
.dm-lid { position: relative; border: 1.3cqw solid var(--ink); border-bottom-width: 1.8cqw; border-radius: 1.8cqw 1.8cqw 0 0; overflow: hidden; background: #fff; }
.dm-base { height: 2.2cqw; margin: 0 -4%; border-radius: 0 0 2cqw 2cqw; background: #2b3b52; }
.dm-mini { position: absolute; right: 0; bottom: 0; width: 24%; border: 1.1cqw solid var(--ink); border-radius: 3.2cqw; overflow: hidden; background: #fff; box-shadow: 0 2cqw 5cqw rgba(16, 36, 63, .4); }
.dm-screen { position: relative; overflow: hidden; }
.dm-laptop .dm-screen { aspect-ratio: 16 / 10.2; }
.dm-mini .dm-screen { aspect-ratio: 9 / 18.5; }
.dm-page { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; }
.dm-scroller { position: relative; }
.dm-after.is-playing .dm-scroller { animation: dm-scroll var(--dur, 24s) ease-in-out infinite alternate; }
.dm-after.is-paused .dm-scroller { animation-play-state: paused; }
@media (hover: hover) { .dm-after:hover .dm-scroller { animation-play-state: paused; } }
@keyframes dm-scroll { 0%, 7% { transform: translateY(0); } 93%, 100% { transform: translateY(calc(-100% + var(--view, 600px))); } }
/* On a phone everything stacks, so the small phone is big enough to read. */
@media (max-width: 599px) {
  .dm-laptop { width: 100%; margin-left: 0; }
  .dm-base { margin: 0; }
  .dm-mini { position: relative; right: auto; bottom: auto; width: 46%; margin: -12cqw auto 0; }
}
/* BEFORE: the old site, a boxed template with no scrolling */
.old-page { display: flex; flex-direction: column; height: calc(100% - 40px); overflow: hidden; font-family: Verdana, Arial, sans-serif; font-size: 13.5px; line-height: 1.4; color: #333; background: #d9dde2; }
.old-page p { text-wrap: wrap; }
.old-box { display: flex; flex-direction: column; flex: 1; width: 960px; margin: 0 auto; border-inline: 1px solid #aeb5be; background: #fff; }
.old-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.old-name { font-family: Arial, sans-serif; font-weight: 700; font-size: 28px; color: #2f4a6d; }
.old-tag { font-size: 12px; color: #666; }
.old-call { text-align: right; font-size: 12px; color: #666; }
.old-call strong { display: block; font-family: Arial, sans-serif; font-size: 22px; color: #2f4a6d; }
.old-nav { display: flex; background: linear-gradient(#8496aa, #5f7289); }
.old-nav span { padding: 10px 26px; border-right: 1px solid #4f6176; font-family: Arial, sans-serif; font-weight: 700; font-size: 14px; color: #fff; }
.old-nav span:first-child { background: linear-gradient(#5f7289, #4c5e73); }
.old-banner { flex: none; height: 150px; padding: 38px 28px 0; color: #4b5563; background: linear-gradient(#d3d7dc, #b7bdc4); }
.old-banner p:first-child { font-family: Arial, sans-serif; font-weight: 700; font-size: 28px; }
.old-cols { display: flex; gap: 22px; padding: 18px 22px 0; }
.old-main { flex: 1; }
.old-main h4 { margin: 0 0 6px; font-family: Arial, sans-serif; font-size: 19px; color: #2f4a6d; }
.old-main p { line-height: 1.55; }
.old-main ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.55; color: #2f4a6d; text-decoration: underline; }
.old-more { margin-top: 10px; }
.old-side { width: 250px; flex: none; }
.old-panel { margin-bottom: 10px; border: 1px solid #c3c8ce; }
.old-panel b { display: block; padding: 5px 9px; font-family: Arial, sans-serif; font-size: 13px; color: #fff; background: #7d8fa3; }
.old-panel p { padding: 7px 9px; font-size: 12.5px; line-height: 1.45; }
.old-foot { margin-top: auto; padding: 10px; text-align: center; font-size: 12px; color: #fff; background: #5f7289; }
/* AFTER: the example site itself */
.dm-site, .dm-mob { font-family: Sora, var(--font); font-size: 16px; line-height: 1.5; color: #15112e; background: #fff; }
.dm-ic { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-chrome { position: relative; z-index: 10; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #e8eaef; font-family: Sora, var(--font); }
.dm-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #c2c6cf; }
.dm-chrome span { flex: 1; margin-left: 10px; padding: 4px 14px; border-radius: 99px; font-size: 13px; color: #4b4f5a; background: #fff; }
.dm-topbar { display: flex; justify-content: space-between; padding: 8px 40px; font-weight: 600; font-size: 13px; color: #24103a; background: linear-gradient(100deg, #ffc46b, #ff7f50); }
.dm-nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 40px; color: #fff; background: #0d0c22; }
.dm-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.dm-bird { width: 30px; height: 30px; fill: #ffc46b; }
.dm-link { font-size: 15px; }
.dm-on { color: #ffc46b; font-weight: 600; }
.dm-chev::after { content: " ▾"; font-size: .8em; }
.dm-cta { display: inline-block; padding: 12px 22px; border-radius: 9px; font-weight: 600; font-size: 15px; color: #24103a; background: linear-gradient(100deg, #ffc46b, #ff7f50); }
.dm-cta--full { display: block; text-align: center; }
.dm-ghost { display: inline-block; padding: 10px 20px; border: 2px solid rgba(255, 255, 255, .65); border-radius: 9px; font-weight: 600; font-size: 15px; color: #fff; }
.dm-hero { position: relative; height: 430px; overflow: hidden; color: #fff; background: #0d0c22; }
.dm-hero > svg, .dm-mob__hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.dm-hero__copy { position: relative; width: 470px; padding: 44px 0 0 40px; }
.dm-hero .dm-h1 { margin-bottom: 14px; font-weight: 800; font-size: 56px; line-height: 1.03; letter-spacing: -.03em; }
.dm-hero__sub { margin-bottom: 20px; font-size: 17px; line-height: 1.45; }
.dm-hero__btns { display: flex; gap: 10px; }
.dm-hero__rate { margin-top: 18px; font-size: 14px; }
.dm-stars { color: #ffc46b; letter-spacing: .08em; }
.dm-stars--red { color: #d9566b; }
.dm-trust { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 40px; font-weight: 600; font-size: 14px; color: #fff; background: #1c1638; }
.dm-trust span::before { content: "✓ "; color: #ffc46b; }
.dm-band { padding: 40px; }
.dm-band--tint { background: #f6f2fb; }
.dm-band--dark { color: #fff; background: #1c1638; }
.dm-h3 { margin-bottom: 6px; font-weight: 800; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; }
.dm-band__sub { margin-bottom: 22px; font-size: 15px; color: #4d4865; }
.dm-band--dark .dm-band__sub { color: #d6d0ea; }
.dm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dm-svc { padding: 18px; border: 1px solid #e3dcef; border-radius: 12px; font-size: 13.5px; line-height: 1.4; background: #fff; }
.dm-svc .dm-ic { width: 28px; height: 28px; margin-bottom: 10px; color: #d9566b; }
.dm-svc b { display: block; margin-bottom: 3px; font-size: 16.5px; }
.dm-svc em { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: #6b2fb3; }
.dm-jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dm-jobs svg { width: 100%; border-radius: 10px; background: #ece4f8; }
.dm-jobs p { margin-top: 6px; font-weight: 600; font-size: 13px; }
.dm-note { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; font-size: 14px; color: #4d4865; }
.dm-note .dm-ic { width: 20px; height: 20px; }
.dm-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dm-plan { padding: 20px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: #15112e; background: #fff; }
.dm-plan b { font-size: 15px; }
.dm-plan strong { display: block; margin: 4px 0; font-weight: 800; font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
.dm-plan--top { outline: 3px solid #ff7f50; }
.dm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 14px; line-height: 1.45; }
.dm-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.dm-fld { margin-bottom: 10px; font-weight: 600; font-size: 13px; }
.dm-fld i { display: flex; justify-content: space-between; height: 40px; margin-top: 4px; padding: 9px 11px; border: 1px solid #c9c0dc; border-radius: 7px; font-style: normal; font-weight: 400; background: #fff; }
.dm-foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 34px 40px; font-size: 13.5px; line-height: 1.7; color: #d6d0ea; background: #0d0c22; }
.dm-foot b { display: block; margin-bottom: 4px; font-size: 15px; color: #fff; }
.dm-copy { padding: 12px 40px; font-size: 12px; color: #a9a3c4; background: #07061a; }
.dm-mob__top { display: flex; justify-content: space-between; padding: 7px 16px; font-weight: 600; font-size: 13px; color: #24103a; background: linear-gradient(100deg, #ffc46b, #ff7f50); }
.dm-mob__nav { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 16px; color: #fff; background: #0d0c22; }
.dm-mob__menu { width: 28px; height: 18px; border-top: 3px solid #fff; border-bottom: 3px solid #fff; }
.dm-mob__menu::before { content: ""; display: block; margin-top: 4.5px; border-top: 3px solid #fff; }
.dm-mob__hero { position: relative; height: 340px; overflow: hidden; color: #fff; background: #0d0c22; }
.dm-mob__hero .dm-h1 { position: relative; padding: 20px 18px; font-weight: 800; font-size: 38px; line-height: 1.05; letter-spacing: -.03em; }
.dm-mob__btns { display: flex; gap: 8px; padding: 12px 16px; background: #0d0c22; }
.dm-mob__btns > span { flex: 1; padding-inline: 4px; text-align: center; }
.dm-mob__rate { padding: 0 16px 14px; font-size: 13.5px; color: #fff; background: #0d0c22; }
.dm-mob__sec { padding: 24px 16px; }
.dm-mob__sec .dm-h3 { margin-bottom: 12px; font-size: 26px; }
.dm-row2 { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e3dcef; font-size: 13px; line-height: 1.3; }
.dm-row2 .dm-ic { width: 26px; height: 26px; color: #d9566b; }
.dm-row2 b { display: block; font-size: 15px; }
.dm-row2 span:last-child { margin-left: auto; color: #6b2fb3; font-size: 20px; }
.dm-mob .dm-jobs { grid-template-columns: 1fr 1fr; }
.dm-mob .dm-plan { margin-bottom: 10px; }
.dm-mob__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; font-family: Sora, var(--font); font-weight: 600; font-size: 15px; text-align: center; }
.dm-mob__bar span { flex: 1; padding: 14px 4px; }
.dm-a { color: #24103a; background: linear-gradient(100deg, #ffc46b, #ff7f50); }
.dm-b { color: #fff; background: #1c1638; }
.dm-mob__foot { padding: 24px 16px 70px; font-size: 13.5px; line-height: 1.7; color: #d6d0ea; background: #0d0c22; }
.dm-mob__foot b { display: block; font-size: 16px; color: #fff; }
.dm-tw { animation: dm-twinkle 3s ease-in-out infinite alternate; }
.dm-tw2 { animation: dm-twinkle 4.2s ease-in-out 1s infinite alternate; }
.dm-glow { animation: dm-glow 3.4s ease-in-out infinite alternate; }
@keyframes dm-twinkle { from { opacity: .25; } to { opacity: 1; } }
@keyframes dm-glow { from { opacity: .72; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dm-pause { display: none; } }

/* How it works */
/* Four steps always fill the grid evenly, like the title block: one column, then two, then four. */
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 540px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 14px; border-top: 2px solid var(--ink); }
.step__num { font-size: .875rem; color: var(--slate); }
.step__title { margin: 6px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1.1; }

/* Plain questions and answers */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 44px; }
.qa h3 { margin-bottom: 6px; }

/* What it costs */
.cost__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 64px; }
.cost__head { flex: 1 1 300px; min-width: 0; }
.cost__head h2 { margin-bottom: 0; }
.cost__table { flex: 2 1 480px; min-width: 0; }
.cost-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.cost-table tr { border-bottom: 1px solid var(--line); }
.cost-table th { width: 55%; padding: 13px 16px 13px 0; text-align: left; font-weight: 400; }
.cost-table td { padding: 13px 0; text-align: right; font-weight: 600; vertical-align: top; }

/* The guarantee and ownership */
.promise__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 64px; }
.promise h2 { margin-bottom: 16px; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.promise a { font-weight: 600; }

/* Who's behind it */
.who { max-width: 26em; margin-bottom: 44px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.375rem); line-height: 1.18; }

/* The request form */
.request__inner { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.request__text, .form { flex: 1 1 340px; min-width: 0; }
.request__text h2 { margin-bottom: 12px; }
.postcard { margin-top: 40px; scroll-margin-top: 90px; }
.postcard h3 { margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.02; text-wrap: balance; }
.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field__optional { font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: 0; font: inherit; color: var(--ink); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.form__status { display: none; font-weight: 600; }
.form__status.is-visible { display: block; }

/* Footer */
.site-footer { color: #fff; background: var(--blue-950); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-block: 18px; font-size: .9375rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__links a:hover { color: var(--on-blue); }

/* The phone bar keeps the main button within reach, and steps aside while the hero's buttons or the form are on screen. */
.phone-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px; background: var(--blue-950); transition: transform .2s ease, visibility .2s; }
.phone-bar .btn { width: 100%; }
.phone-bar.is-hidden { transform: translateY(110%); visibility: hidden; }
/* Room for the bar sits inside the dark footer, so no white strip shows below it. */
body:has(.phone-bar) .site-footer { padding-bottom: 70px; }

/* Terms, privacy and refund pages */
.page-head { padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(3rem, 2.2rem + 4vw, 4.75rem); line-height: 1; }
.page-head p { max-width: 36em; margin-top: 14px; font-size: 1.125rem; }
.page-head--full { display: flex; align-items: center; min-height: 100vh; }
.prose { max-width: 44em; }
.prose h2 { margin: 2.25rem 0 .5rem; font-size: var(--step-2); line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.draft-note { margin-bottom: 2rem; padding: 12px 16px; border: 2px dashed var(--slate); font-weight: 600; }

@media (min-width: 700px) {
  .phone-bar { display: none; }
  body:has(.phone-bar) .site-footer { padding-bottom: 0; }
}
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .art-line { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  .art-show { opacity: 1; }
  .art-rule { opacity: 1; transform: translateY(216px); }
}
