/* Audit landing — extends css/style.css design tokens */

.audit-page {
  padding-bottom: 96px;
}

.audit-page .site-footer {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

.audit-page .audit-hero {
  padding: 48px 0 20px;
}

.audit-hero-deck {
  max-width: 560px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
}

.hero-cta-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 36ch;
}

/* Plate + POS hero — transparent PNG on page bg, like index .hero-mark */
.audit-hero-visual {
  width: min(560px, 100%);
  max-width: 560px;
  justify-self: end;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: normal;
  filter: drop-shadow(0 18px 36px rgba(18, 50, 92, 0.14));
}

@media (max-width: 900px) {
  .audit-hero-visual {
    justify-self: center;
    width: min(320px, 86%);
    margin-inline: auto;
  }
}

/* Scale-with-proof lead-in (sits above the matching steps) */
/* Header scrolls away with the page on the audit landing */
.audit-page .site-header {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
}

.audit-page .site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.audit-page #scale-spend,
.audit-page #prove-payoff,
.audit-page #audit-form {
  scroll-margin-top: 24px;
}

.audit-scale {
  padding-bottom: 28px;
}

.audit-scale-copy {
  max-width: 62ch;
  margin-bottom: 18px;
}

.audit-scale-leadin {
  margin: 0;
  max-width: 48ch;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Ads-pay-off flow — pure HTML/CSS infographic */
.audit-roi {
  padding-top: 24px;
}

.roi-flow {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.roi-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.roi-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(20, 96, 204, 0.08);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.roi-icon svg {
  width: 28px;
  height: 28px;
}

.roi-num {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(20, 96, 204, 0.25);
}

.roi-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.roi-step p strong {
  color: var(--ink, #0f2744);
  font-weight: 750;
}

.roi-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  opacity: 0.7;
  align-self: center;
}

.roi-arrow svg {
  width: 22px;
  height: 22px;
}

.audit-form-section {
  padding-top: 24px;
  padding-bottom: 88px;
}

.audit-form-wrap {
  max-width: 760px;
}

.audit-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  box-shadow: var(--shadow);
}

.audit-form-intro-block {
  margin-bottom: 28px;
}

.audit-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.field label span {
  color: var(--blue);
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f7fbff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%231460cc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder {
  color: #8aa3c4;
}

.field input:hover,
.field select:hover {
  border-color: #b9d2f3;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 96, 204, 0.12);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: #c23b4a;
  background: #fff7f8;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus {
  box-shadow: 0 0 0 4px rgba(194, 59, 74, 0.12);
}

.field-error {
  margin: 0;
  color: #c23b4a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.form-status.is-error {
  background: #fff0f2;
  color: #c23b4a;
  border: 1px solid #f0c4ca;
}

.form-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.form-status-actions .btn {
  min-height: 44px;
  cursor: pointer;
}

.form-status a {
  color: var(--blue-dark);
  font-weight: 750;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.audit-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  font-size: 16px;
  cursor: pointer;
}

.audit-submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

/* Quiz / stepped form */
.quiz-progress {
  margin: 0 0 22px;
}

.quiz-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quiz-progress-label {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e7f0fb;
  overflow: hidden;
  border: 1px solid var(--line);
}

.quiz-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transition: width 0.35s ease;
}

.quiz-step-title {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.quiz-step-help {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.option-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.option-card-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f7fbff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.option-card:hover .option-card-face {
  border-color: #b9d2f3;
}

.option-card input:focus-visible + .option-card-face {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 96, 204, 0.12);
}

.option-card input:checked + .option-card-face {
  border-color: var(--blue);
  background: rgba(20, 96, 204, 0.08);
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.option-card-wide {
  grid-column: 1 / -1;
}

.field-options.is-invalid .option-card-face {
  border-color: #c23b4a;
}

.field-options.is-invalid .option-card input:checked + .option-card-face {
  box-shadow: 0 0 0 1px #c23b4a;
}

.audit-form.is-quiz .quiz-step {
  display: none;
  animation: audit-fade-in 0.28s ease;
}

.audit-form.is-quiz .quiz-step.is-active {
  display: grid;
  gap: 16px;
}

.audit-form:not(.is-quiz) .quiz-step {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.quiz-btn {
  min-height: 54px;
  min-width: 120px;
  cursor: pointer;
  font-size: 16px;
}

.quiz-btn-next,
.quiz-nav #submit-btn {
  flex: 1;
}

/* Ensure [hidden] wins over flex/grid display utilities */
.audit-form[hidden],
.quiz-progress[hidden],
.quiz-nav[hidden],
.quiz-nav [hidden],
.quiz-step[hidden],
.audit-success[hidden],
.form-status[hidden] {
  display: none !important;
}

.quiz-noscript-note {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.audit-form-intro-block[hidden] {
  display: none !important;
}

.audit-success {
  animation: audit-fade-in 0.35s ease;
  outline: none;
}

.audit-success h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.audit-success .section-intro {
  margin-bottom: 0;
}

@keyframes audit-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .roi-flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roi-arrow {
    transform: rotate(90deg);
    height: 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .audit-form-card {
    padding: 28px 22px 32px;
  }
}

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(213, 230, 247, 0.9);
  box-shadow: 0 -10px 30px rgba(18, 50, 92, 0.06);
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  visibility: visible;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sticky-cta-inner {
  display: flex;
  justify-content: center;
}

.sticky-cta-btn {
  width: min(420px, 100%);
  min-height: 52px;
  box-shadow: 0 10px 24px rgba(20, 96, 204, 0.22);
}

/* Subtle periodic shine on primary CTAs */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    transparent 58%
  );
  transform: translate3d(-55%, 0, 0) skewX(-18deg);
  animation: btn-shine-sweep 4.8s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes btn-shine-sweep {
  0% {
    transform: translate3d(-55%, 0, 0) skewX(-18deg);
  }
  18.75% {
    transform: translate3d(55%, 0, 0) skewX(-18deg);
  }
  18.76%,
  100% {
    transform: translate3d(55%, 0, 0) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-shine::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .audit-page {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep header CTA visible — text nav link was removed to avoid duplicating "Get a quote" */
  .audit-page .nav .btn {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .audit-page .audit-hero {
    padding-top: 36px;
  }

  .audit-hero-deck {
    font-size: 17px;
  }

  .hero-cta-caption {
    margin-inline: auto;
    text-align: center;
  }

  .audit-form-section {
    padding-bottom: 64px;
  }

  .sticky-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sticky-cta-inner {
    width: 100%;
  }

  .sticky-cta-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    font-size: 16px;
  }

  .quiz-nav {
    flex-direction: column-reverse;
  }

  .quiz-btn,
  .quiz-btn-next,
  .quiz-nav #submit-btn,
  .quiz-nav #quiz-back {
    width: 100%;
    min-height: 56px;
    font-size: 17px;
  }

  .field input,
  .field select {
    min-height: 54px;
    font-size: 17px;
  }

  .option-grid-2 {
    grid-template-columns: 1fr;
  }

  .option-card-wide {
    grid-column: auto;
  }

  .option-card-face {
    min-height: 58px;
    font-size: 17px;
  }
}

.audit-success-fast { margin: 1.25rem 0 0.75rem; font-weight: 600; }
.audit-success-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.audit-success-actions .btn { flex: 1 1 220px; text-align: center; justify-content: center; }
@media (hover: hover) and (pointer: fine) { .success-sms { display: none; } }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.25rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 600; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 1.1rem; color: var(--muted); }
.faq-toggle { margin: 1.5rem auto 0; display: flex; }
.faq-group { margin: 2.25rem 0 0; font-size: 1.15rem; color: var(--blue); }
.faq-more .faq-list { margin-top: 0.9rem; }
