/* ============================================================
   GrowthScale — /audit (Free Growth Teardown)
   Page-specific styles only. Everything else (nav, drawer, rows,
   section heads, CTA band, footer, tokens) comes from styles.css.
   Built phone-first: the base rules are the 375px layout and the
   two-column hero is added from 901px up.
   ============================================================ */

/* visually hidden, still read by screen readers */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* this page is read on phones in bright light: lift the site's dimmest small
   text to the lighter grey (4.5:1 on black) and give the menu button 44px */
.snum, .snote, .audit-points .rnum, .footer-col h4, .footer-bottom small { color: var(--light-gray); }
.nav-burger { width: 44px; height: 44px; }

/* ---- Hero: intro, form, then what gets reviewed ---- */
.audit-hero {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "form" "points";
  gap: 34px;
  padding: 22px var(--gutter) clamp(72px, 11vh, 140px);
}
.audit-intro { grid-area: intro; min-width: 0; }
.aform { grid-area: form; min-width: 0; }
.audit-points { grid-area: points; min-width: 0; }

.audit-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.audit-hero h1 { font-size: clamp(40px, 5.2vw, 88px); margin-top: 14px; }
.audit-hero h1 .accent { display: block; }
.audit-hero .mono-lead { margin-top: 24px; }

/* what the teardown covers: number | title + line */
.audit-points .row { grid-template-columns: 44px 1fr; padding: 20px 0; }
.audit-points .row:first-child { padding-top: 0; }
.audit-points .row p { grid-column: 2; margin-top: -8px; }

/* ---- Form card (sits on .scard for the dark panel + meta row) ---- */
.aform { padding: 18px 18px 22px; }
.aform p { margin-top: 0; max-width: none; }
.aform form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 16px; padding-top: 22px; }

.f { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; }
.f label, .f legend { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--light-gray); }
.f legend { padding: 0; margin-bottom: 8px; }
.f-opt { color: var(--light-gray); text-transform: none; letter-spacing: 0; }
.f-opt::before { content: "("; }
.f-opt::after { content: ")"; }

/* 16px text so iOS does not zoom the page on focus; 48px tall for thumbs */
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--mono); font-size: 16px; line-height: 1.4; color: var(--white);
  background: transparent; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2);
  -webkit-appearance: none; appearance: none;
}
.f textarea { min-height: 104px; resize: vertical; }
.f ::placeholder { color: var(--light-gray); opacity: 1; }
.f select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23f9f9f9' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.f select option { background: var(--black); color: var(--white); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-radius: calc(var(--radius) / 2); }
.f [aria-invalid="true"] { border-color: var(--orange); }

.f-err { font-size: 13px; line-height: 1.45; color: var(--orange); }
.f-err:empty { display: none; }

/* language choice: two pills, the radio itself is visually hidden */
.f-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.f .f-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 104px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 14px; letter-spacing: 0.02em; text-transform: none; color: var(--white); cursor: pointer;
}
.f-choice input:checked + .f-pill { background: var(--white); border-color: var(--white); color: var(--black); }
.f-choice input:focus-visible + .f-pill { outline: 2px solid var(--orange); outline-offset: 3px; }

.aform-send { gap: 14px; margin-top: 6px; }
.aform .btn { min-height: 52px; white-space: normal; text-align: center; cursor: pointer; }
.aform .btn[disabled] { opacity: 0.6; cursor: default; }
.f-status { font-size: 13px; line-height: 1.45; color: var(--orange); text-align: center; }
.f-status:empty { display: none; }
.aform-note { font-size: 12px; line-height: 1.6; letter-spacing: 0.05em; text-transform: uppercase; color: var(--light-gray); text-align: center; }

/* ---- From tablet up: name/business and email/phone sit side by side ---- */
@media (min-width: 561px) {
  .aform { padding: 20px 26px 28px; }
  .aform form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f--full { grid-column: 1 / -1; }
}

/* ---- Desktop: copy on the left, form on the right ---- */
@media (min-width: 901px) {
  .audit-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro form" "points form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 5vw, 96px); row-gap: 44px;
    padding-top: clamp(28px, 6vh, 64px);
    align-items: start;
  }
  .audit-hero h1 { margin-top: 20px; }
  .audit-hero .mono-lead { margin-top: 30px; }
}
