/* Off The Glass Media. Two colours: varsity red on cream. "Media" in the logo is the one black element. */
:root {
  --red: #cb3025;
  --cream: #f6f0de;
  --tan: #f0e2c5;
  --ink: #1c1c1c; /* near black, used only for "Media" in the logo */
  --ball: #e3ea3c; /* padel ball yellow, used only for the hero hover */
  --red-soft: rgba(203, 48, 37, 0.62);
  --red-line: rgba(203, 48, 37, 0.32);
  /* Content sits in a centred column at most 1160px wide. Red bands still run edge to edge. */
  --gutter: max(20px, 5vw, calc((100% - 1160px) / 2));
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --script: "Covered By Your Grace", "Bradley Hand", cursive;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins. Without this, any rule that sets display (flex, grid) shows hidden elements. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--red);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(14px, 1.7vw, 30px) var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid var(--red-line);
}
.logo { display: inline-flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1; }
.logo-script { font-family: var(--script); font-size: clamp(32px, 2.6vw, 52px); letter-spacing: 0.01em; word-spacing: -0.14em; transform: rotate(-3deg); transform-origin: left bottom; }
.logo-sub { font-size: clamp(8px, 0.55vw, 11px); font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; margin: 4px 14px 0 0; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); font-size: 16px; }
.nav-link { text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(10px, 1vw, 18px) clamp(16px, 1.4vw, 28px);
  border: 1.5px solid var(--red); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-pill:hover { background: var(--red); color: var(--cream); }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

/* Shared type */
.kicker, .hero-kicker, .card-label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.5;
}
.card-label { text-transform: none; letter-spacing: 0.12em; }
.display { font-family: var(--condensed); font-weight: 700; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.02em; }
.note { margin-top: 18px; font-size: 13px; color: var(--red-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 44px;
  padding: 31px 34px;
  background: var(--red); color: var(--cream);
  border: 1.5px solid var(--red);
  font: 700 15px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn .arrow { width: 18px; height: 18px; transition: transform 0.15s; }
.btn:hover { background: transparent; color: var(--red); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-invert { background: var(--cream); color: var(--red); border-color: var(--cream); }
.btn-invert:hover { background: transparent; color: var(--cream); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { padding: clamp(40px, 4vw, 80px) var(--gutter) clamp(48px, 5vw, 96px); }
.hero-kicker {
  display: flex; justify-content: space-between; gap: 16px;
  padding: clamp(22px, 2.2vw, 40px) 0 clamp(14px, 1.2vw, 22px);
  border-bottom: 1.5px solid var(--red);
}
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 40px; }
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, 11.5vw, 180px); line-height: 0.9; letter-spacing: 0.02em;
  margin: 0 0 clamp(14px, 1.4vw, 24px);
}
.hero-title span { display: block; white-space: nowrap; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--red); }
.hero-title .outline { margin-top: 0.04em; }
.hero-title .dot {
  position: relative; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0;
  border: 1.5px solid var(--red); border-radius: 50%;
  transition: border-color 0.2s, transform 0.2s;
}

/* Hero hover. Letters are wrapped in .ltr by js/home.js. */
.hero-title { cursor: default; user-select: none; -webkit-user-select: none; }
.hero-title .ltr {
  display: inline-block;
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease, transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.hero-title .ltr[class*="hit-"] { transition-duration: 0.08s; }
/* Solid row: ball yellow, outline, tan */
.solid .ltr.hit-a { color: var(--ball); -webkit-text-stroke: 2px var(--red); transform: translateY(-0.05em) rotate(-4deg); }
.solid .ltr.hit-b { color: transparent; -webkit-text-stroke: 2px var(--red); transform: translateY(-0.05em) rotate(3deg); }
.solid .ltr.hit-c { color: var(--tan); -webkit-text-stroke: 2px var(--red); transform: translateY(-0.05em) rotate(-2deg); }
/* Outline row: red fill, ball yellow, tan */
.outline .ltr.hit-a { color: var(--red); transform: translateY(-0.05em) rotate(3deg); }
.outline .ltr.hit-b { color: var(--ball); transform: translateY(-0.05em) rotate(-4deg); }
.outline .ltr.hit-c { color: var(--tan); transform: translateY(-0.05em) rotate(2deg); }

/* The full stop is a padel ball. It stays still. */
.hero-title .dot { border-color: transparent; }
/* font-style must stay normal: the ball sits in an <i>, and an italic emoji gets slanted and stretched. */
.hero-title .dot, .hero-title .ball { font-style: normal; }
.hero-title .ball {
  position: absolute; left: 50%; bottom: -0.01em; font-size: 0.24em; line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-synthesis: none; letter-spacing: 0;
  -webkit-text-stroke: 0; color: initial; font-weight: 400;
  transform: translateX(-50%);
}
.hero-sub { max-width: 25em; font-size: clamp(18px, 1.15vw, 23px); line-height: 1.5; margin-bottom: clamp(20px, 1.6vw, 30px); }
/* Pulled up so the court sits beside RACKET instead of below the button. */
/* Hero email box: field and button side by side, stacked on phones */
.start { display: flex; max-width: 560px; border: 1.5px solid var(--red); background: var(--cream); }
.start-input {
  flex: 1; min-width: 0; padding: 0 22px; border: 0; border-radius: 0; background: transparent;
  color: var(--red); font: 500 17px/1.2 var(--body);
}
.start-input::placeholder { color: rgba(203, 48, 37, 0.42); }
.start-input:focus { outline: none; background: rgba(203, 48, 37, 0.05); }
.start:focus-within { box-shadow: 0 0 0 1.5px var(--red); }
.start .btn { border: 0; flex: none; }
.start .btn:hover { background: var(--red); color: var(--cream); opacity: 0.9; }
.start-error { margin-top: 12px; font-size: 15px; font-weight: 500; }
.start-error[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-court { position: relative; cursor: pointer; }
.hero-court img { display: block; width: 100%; height: auto; }
.court-play { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.court-play .players, .court-play .ballgroup { opacity: 0; transition: opacity 0.35s; }
.hero-court.started .court-play .players, .hero-court.started .court-play .ballgroup { opacity: 1; }
.court-hint {
  position: absolute; right: 6%; bottom: 4%; padding: 6px 12px;
  border: 1.5px solid var(--red); border-radius: 999px; background: var(--cream);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: opacity 0.3s; pointer-events: none;
}
.hero-court.started .court-hint { opacity: 0; }
@media (hover: none) { .court-hint::after { content: ""; } .court-hint { font-size: 0; } .court-hint::before { content: "Tap to play"; font-size: 11px; } }
.hero-court { width: 100%; max-width: 500px; height: auto; justify-self: end; margin-top: clamp(-190px, -11vw, -60px); }

/* Red band */
.band {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.2em clamp(16px, 2.2vw, 44px);
  padding: clamp(14px, 1.2vw, 22px) 20px;
  background: var(--red); color: var(--cream);
  font-family: var(--condensed); font-weight: 700; font-size: clamp(17px, 1.4vw, 26px);
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
}

/* Services */
.services { padding: clamp(64px, 6vw, 112px) var(--gutter) clamp(64px, 6vw, 112px); }
/* Extra top margin leaves room for the logo chips that pop up above Google, ChatGPT and Claude. */
.services-title { font-size: clamp(40px, 4.4vw, 72px); margin: clamp(44px, 4vw, 72px) 0 clamp(36px, 3.4vw, 60px); }

/* Brand words: hover, focus or the auto cycle (js/home.js) turns one on. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[data-brand="google"]  { --bc: #4285f4; --mark: #4285f4; }
[data-brand="chatgpt"] { --bc: #10a37f; --mark: #000000; }
[data-brand="claude"]  { --bc: #d97757; --mark: #d97757; }
.brand { position: relative; display: inline-block; cursor: pointer; transition: color 0.25s; outline: none; }
.brand::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.07em;
  background: var(--bc); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.brand-chip {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 0.06em;
  width: 0.82em; height: 0.82em; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--bc); border-radius: 50%;
  box-shadow: 0 6px 18px rgba(80, 20, 10, 0.14);
  opacity: 0; transform: translate(-50%, 0.3em) scale(0.4) rotate(-14deg);
  transition: transform 0.38s cubic-bezier(.2, 1.5, .4, 1), opacity 0.18s;
  pointer-events: none;
}
.brand-chip svg { width: 56%; height: 56%; fill: var(--mark); }
.brand.on { color: var(--bc); }
.brand.on::after { transform: scaleX(1); }
.brand.on .brand-chip { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(0); }
.brand:focus-visible { color: var(--bc); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid var(--red); }
.card { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 44px) clamp(22px, 2.2vw, 40px) clamp(28px, 2.4vw, 44px); }
.card + .card { border-left: 1.5px solid var(--red); }
.card h3 {
  font-family: var(--condensed); font-weight: 700; font-size: clamp(32px, 2.4vw, 48px); line-height: 1.08;
  max-width: 10em; margin: clamp(14px, 1.2vw, 20px) 0 clamp(12px, 1vw, 18px);
}
.card > p:not(.card-label) { max-width: 26em; font-size: clamp(16px, 0.95vw, 18px); }
.card-points { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.card-points li { display: flex; gap: 10px; }
.card-points li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; border-radius: 50%; background: var(--red); }

/* Card illustrations, drawn in HTML. js/home.js types the query (.live), then the results appear (.shown), on a loop.
   Without JS or with reduced motion, the finished picture shows. */
.viz {
  position: relative; height: 258px; margin-bottom: clamp(22px, 2vw, 32px); padding: 22px;
  background: var(--tan); border: 1.5px solid var(--red); overflow: hidden;
  font-family: var(--body); line-height: 1.35;
}
.chat { width: fit-content; max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; }
.chat-q { margin-left: auto; background: var(--red); color: var(--cream); border-bottom-right-radius: 4px; font-weight: 500; }
.chat-a { width: 86%; margin-top: 12px; background: var(--cream); border: 1.5px solid var(--red-line); border-bottom-left-radius: 4px; }
.chat-a-head { margin-bottom: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.picks { display: grid; gap: 5px; padding: 0; list-style: none; }
.pick { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; padding: 5px 8px; font-size: 13.5px; font-weight: 600; opacity: 0.45; }
.pick b { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 10.5px; }
.pick em { font-style: normal; font-weight: 500; font-size: 12px; }
.pick-you { opacity: 1; background: var(--red); color: var(--cream); }

.search { display: flex; align-items: center; gap: 10px; padding: 9px 16px; background: var(--cream); border: 1.5px solid var(--red); border-radius: 999px; font-size: 14px; font-weight: 500; }
.search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ad { position: relative; margin-top: 12px; padding: 12px 14px; background: var(--cream); border: 1.5px solid var(--red-line); }
.ad-top { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ad-tag { font-size: 11px; font-weight: 700; }
.ad-title { margin: 4px 0 3px; font-family: var(--condensed); font-size: 20px; font-weight: 700; line-height: 1.1; }
.ad-desc { padding-right: 90px; font-size: 12.5px; color: var(--red-soft); }
.ad-btn { position: absolute; right: 14px; bottom: 12px; padding: 7px 12px; background: var(--red); color: var(--cream); border-radius: 999px; font-size: 12px; font-weight: 700; }
.booked {
  position: absolute; left: 22px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--red); color: var(--cream); font-size: 12.5px; font-weight: 600;
}
.booked-tick { width: 18px; height: 18px; display: grid; place-items: center; background: var(--cream); color: var(--red); border-radius: 50%; font-size: 11px; }

@keyframes viz-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes viz-pop { 0% { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.06); } }
.viz.live:not(.shown) :is(.chat-a, .pick, .ad, .ad-btn, .booked) { opacity: 0; }
.type { display: inline-block; min-height: 1.35em; white-space: nowrap; }
.type.typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -0.16em;
  background: currentColor; animation: viz-caret 0.8s steps(1) infinite;
}
@keyframes viz-caret { 50% { opacity: 0; } }
.viz.shown .chat-a { animation: viz-rise 0.45s both; }
.viz.shown .pick { animation: viz-rise 0.4s both; }
.viz.shown .pick:nth-child(1) { animation-delay: 0.35s; }
.viz.shown .pick:nth-child(2) { animation-delay: 0.5s; }
.viz.shown .pick:nth-child(3) { animation-delay: 0.65s; }
.viz.shown .ad { animation: viz-rise 0.45s both; }
.viz.shown .ad-btn { animation: viz-pop 0.4s 0.6s both; }
.viz.shown .booked { animation: viz-pop 0.45s 1.2s both; }

/* Audit */
.audit {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 5vw, 100px);
  padding: clamp(32px, 3vw, 56px) var(--gutter) clamp(72px, 7vw, 120px);
  overflow: hidden;
}
.audit-title { margin: clamp(18px, 1.6vw, 32px) 0 clamp(20px, 1.8vw, 36px); }
.audit-title span, .cta-title span { display: block; }
.sans { font-family: var(--condensed); font-weight: 700; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 900; letter-spacing: -0.02em; font-variation-settings: "opsz" 24; }
.audit-title .sans { font-size: clamp(42px, 3.6vw, 72px); line-height: 1.05; }
.audit-title .serif { font-size: clamp(46px, 4.6vw, 92px); line-height: 1; }
.audit-text { max-width: 29em; font-size: 17px; margin-bottom: clamp(22px, 1.8vw, 36px); }

.report { display: block; justify-self: center; width: min(100%, 480px); text-decoration: none; transform: rotate(3deg); transition: transform 0.25s; }
.report:hover { transform: rotate(1.5deg) translateY(-4px); }
.report-page {
  position: relative; container-type: inline-size;
  aspect-ratio: 3 / 4; background: var(--red); color: var(--cream);
  box-shadow:
    5px 5px 0 -1.5px var(--cream), 5px 5px 0 0 var(--red),
    10px 10px 0 -1.5px var(--cream), 10px 10px 0 0 var(--red),
    22px 26px 0 0 rgba(203, 48, 37, 0.16);
}
.report-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5.4cqw; border-left: 1px solid rgba(246, 240, 222, 0.7); }
.report-spine {
  position: absolute; left: 2cqw; top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; font-size: 1.5cqw; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
}
.report-inner { position: absolute; inset: 5.5cqw 6cqw 5cqw 11cqw; display: flex; flex-direction: column; }
.report-row { display: flex; justify-content: space-between; gap: 2cqw; font-size: 1.55cqw; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.report-top { padding-bottom: 3cqw; border-bottom: 1px solid var(--cream); }
.report-tag { margin-top: 3.2cqw; font-size: 1.6cqw; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.report-title { margin: 3cqw 0 3.6cqw; padding-bottom: 4cqw; border-bottom: 1px solid rgba(246, 240, 222, 0.6); font-family: var(--condensed); font-weight: 700; letter-spacing: -0.01em; font-size: 13cqw; line-height: 1.02; text-transform: uppercase; }
.report-title span { display: block; }
.report-title .outline { -webkit-text-stroke: 1px var(--cream); }
.report-court { position: relative; flex: 1; display: flex; align-items: center; padding-right: 12cqw; }
.report-court svg { width: 100%; height: auto; }
.report-stamp {
  position: absolute; right: -1cqw; top: 50%; width: 17cqw; height: 17cqw; margin-top: -6cqw;
  display: grid; place-items: center; text-align: center;
  border: 1.5px solid var(--cream); border-radius: 50%; background: var(--red);
  font-family: var(--display); font-size: 3cqw; line-height: 1.05; text-transform: uppercase; transform: rotate(8deg);
}
.report-list {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.2cqw 3cqw;
  padding: 3.4cqw 0; border-top: 1px solid rgba(246, 240, 222, 0.6); border-bottom: 1px solid var(--cream);
  font-size: 1.6cqw; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.report-foot { padding-top: 3cqw; font-size: 1.4cqw; }

/* Closing band */
.cta { padding: clamp(64px, 6vw, 120px) var(--gutter) clamp(64px, 5.6vw, 112px); background: var(--red); color: var(--cream); text-align: center; }
.cta-title { margin: clamp(22px, 2.2vw, 44px) 0 clamp(30px, 2.6vw, 52px); }
.cta-title .sans { font-size: clamp(56px, 5vw, 100px); line-height: 1; }
.cta-title .serif { font-size: clamp(60px, 5.8vw, 116px); line-height: 0.95; }
.footer-right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 600; }
.footer-links em { margin-left: 8px; font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-soft); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Footer */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 24px;
  padding: clamp(36px, 3vw, 60px) var(--gutter);
  font-size: 14px; line-height: 1.7;
}
.site-footer .logo { justify-self: start; }
.footer-top { text-decoration: none; }
.footer-top:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Audit form page */
.flow { min-height: calc(100vh - 110px); padding: clamp(40px, 4vw, 80px) var(--gutter) clamp(72px, 7vw, 120px); border-bottom: 1px solid var(--red-line); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; gap: clamp(40px, 6vw, 110px); }
.flow-form { min-width: 0; max-width: 640px; }
/* The report cover stays in view while the club moves through the steps. */
.flow-aside { position: sticky; top: 150px; padding-top: 56px; }
.flow-aside .report { width: min(100%, 420px); }
.flow-aside .report:hover { transform: rotate(3deg); }
.progress { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 3vw, 52px); }
.progress-count { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; white-space: nowrap; }
.progress-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-bar i { height: 4px; background: var(--red-line); }
.progress-bar i.on { background: var(--red); }
.step[hidden] { display: none; }
/* Same heading pair as the homepage audit section: condensed line, then the italic serif. */
.step h1 { margin: clamp(18px, 1.6vw, 28px) 0 clamp(18px, 1.6vw, 28px); outline: none; }
.step h1 span { display: block; }
.step h1 .sans { font-size: clamp(42px, 3.6vw, 66px); line-height: 1.05; }
.step h1 .serif { font-size: clamp(46px, 4.4vw, 80px); line-height: 1; }
.step-lede { max-width: 32em; margin-bottom: clamp(28px, 2.6vw, 44px); }
.field { margin-bottom: 30px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.field .opt { margin-left: 8px; font-weight: 500; letter-spacing: 0.12em; color: var(--red-soft); }
.input-date { max-width: 280px; font-family: var(--body); color-scheme: light; }
.input-date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }
.field[hidden] { display: none; }
.field .hint { display: block; margin-top: 8px; font-size: 13px; color: var(--red-soft); }
.input {
  width: 100%; padding: 16px 0 14px; border: 0; border-bottom: 1.5px solid var(--red); border-radius: 0;
  background: transparent; color: var(--red); font: 500 22px/1.3 var(--body);
}
textarea.input { min-height: 120px; padding: 14px 16px; border: 1.5px solid var(--red); font-size: 18px; resize: vertical; }
.input::placeholder { color: rgba(203, 48, 37, 0.38); }
.input:focus { outline: none; box-shadow: 0 2px 0 0 var(--red); }
textarea.input:focus { box-shadow: 0 0 0 1.5px var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 12px 20px; border: 1.5px solid var(--red); border-radius: 999px; font-size: 16px; font-weight: 500; line-height: 1.2; transition: background 0.12s, color 0.12s; }
.chip input:checked + span { background: var(--red); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
.chip:hover span { background: rgba(203, 48, 37, 0.08); }
.chip:hover input:checked + span { background: var(--red); }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.back { background: none; border: 0; padding: 8px 0; color: var(--red); font: 500 15px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.error { margin-top: 20px; padding: 14px 18px; border: 1.5px solid var(--red); font-size: 16px; font-weight: 500; }
.error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done-email { font-weight: 700; overflow-wrap: anywhere; }

/* Smaller screens */
@media (max-width: 960px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-aside { display: none; }
  .hero-body { grid-template-columns: 1fr; }
  .hero-court { max-width: 420px; justify-self: start; margin: 36px 0 0; }
  .hero-title { font-size: clamp(60px, 17vw, 170px); }
  .footer-text { padding-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .card + .card { border-left: 0; border-top: 1.5px solid var(--red); }
  .audit { grid-template-columns: 1fr; }
  .report { width: min(86%, 460px); margin-top: 16px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .footer-right, .footer-links { align-items: flex-start; justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .btn { width: 100%; padding: 22px 24px; }
  .start { flex-direction: column; }
  /* On phones the names wrap, so a chip above a word would cover the line above.
     Show each logo inline before its name instead, always visible. */
  .brand-chip, .brand.on .brand-chip {
    position: static; display: inline-grid; vertical-align: -0.06em;
    width: 0.72em; height: 0.72em; margin: 0 0.12em 0 0;
    opacity: 1; transform: none; box-shadow: none;
  }
  .start-input { padding: 18px 20px; border-bottom: 1.5px solid var(--red); }
  .cta .btn { width: auto; }
  .input { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-title .ltr { transform: none !important; }
  .viz * { animation: none !important; }
  .brand-chip { transform: translate(-50%, 0) !important; }
}

/* Celebration overlay on the audit done screen. It never blocks clicks. */
.celebrate { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }
