:root {
  --bg: #f5efe5;
  --text: #1f1b17;
  --muted: #5b5349;
  --copy: #4f473e;
  --line: rgba(31, 27, 23, 0.10);
  --panel: rgba(255, 251, 246, 0.74);
  --accent: #355847;
  --accent-soft: #d5c2aa;
  --shadow: 0 18px 48px rgba(52, 37, 20, 0.08);
  --shadow-strong: 0 22px 58px rgba(52, 37, 20, 0.12);
  --container: 1180px;

  --grade-a: #355847;
  --grade-b: #4a7c5e;
  --grade-c: #b8860b;
  --grade-d: #c2692e;
  --grade-f: #c0392b;
  --pass-color: #355847;
  --warn-color: #c2692e;
  --fail-color: #c0392b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213, 194, 170, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3eb 0%, #f2eadf 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  pointer-events: none;
}

body.has-promo-banner .site-header {
  top: 42px;
}

@media (max-width: 720px) {
  body.has-promo-banner .site-header {
    top: 40px;
  }
}

.header-shell {
  padding: 16px 0;
  transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border: 1px solid transparent;
  transition:
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header:not(.is-scrolled) .header-inner {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-scrolled .header-shell {
  padding-top: 12px;
}

.site-header.is-scrolled .header-inner {
  width: min(920px, calc(100% - 32px));
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 18px;
  border-color: rgba(31, 27, 23, 0.08);
  background: rgba(255, 250, 244, 0.58);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 14px 34px rgba(52, 37, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active::after {
  transition: none;
}

/* =========================
   HAMBURGER
========================= */

.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.12s ease;
}

.nav-hamburger:hover {
  background: rgba(31, 27, 23, 0.06);
}

/* Press feedback */
.nav-hamburger:active {
  transform: scale(0.86);
}

/* All 3 bars share base styles */
.hamburger-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform-origin: center;
  /* Close → default: snap back quickly, no stagger */
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity   0.18s ease,
    width     0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease;
}

.hamburger-bar:nth-child(1) { width: 22px; }
.hamburger-bar:nth-child(2) { width: 16px; } /* shorter middle bar — more interesting rest state */
.hamburger-bar:nth-child(3) { width: 22px; }

/* ── OPEN state ── */

/* Top bar: spring down + rotate 45° — spring overshoot (cubic-bezier past 1) */
.nav-hamburger.is-open .hamburger-bar:nth-child(1) {
  width: 22px;
  transform: translateY(7px) rotate(45deg);
  transition:
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1),
    width     0.20s ease,
    opacity   0.18s ease;
}

/* Middle bar: shrinks width to 0 while sliding right — gone before the X forms */
.nav-hamburger.is-open .hamburger-bar:nth-child(2) {
  width: 0;
  opacity: 0;
  transform: translateX(10px);
  transition:
    width     0.18s ease,
    opacity   0.14s ease,
    transform 0.18s ease;
}

/* Bottom bar: spring up + rotate -45° — tiny extra delay so it "chases" bar 1 */
.nav-hamburger.is-open .hamburger-bar:nth-child(3) {
  width: 22px;
  transform: translateY(-7px) rotate(-45deg);
  transition:
    transform 0.46s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s,
    width     0.20s ease,
    opacity   0.18s ease;
}

/* =========================
   MOBILE NAV PANEL
========================= */

.mobile-nav {
  pointer-events: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    0.28s ease;
}

.mobile-nav.is-open {
  pointer-events: auto;
  max-height: 480px;
  opacity: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 20px;
  background: rgba(248, 243, 235, 0.96);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid rgba(31, 27, 23, 0.06);
  box-shadow: 0 16px 32px rgba(52, 37, 20, 0.10);
}

.mobile-nav-link {
  display: block;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition:
    color      0.2s ease,
    background 0.2s ease,
    transform  0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity    0.3s ease;
  /* Start hidden for stagger-in */
  opacity: 0;
  transform: translateX(-14px);
}

.mobile-nav-link:hover {
  color: var(--text);
  background: rgba(31, 27, 23, 0.05);
}

.mobile-nav-link.is-active {
  color: var(--accent);
  background: rgba(53, 88, 71, 0.07);
}

/* Stagger in when open */
.mobile-nav.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}
.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(6) { transition-delay: 0.24s; }

/* =========================
   GENERIC
========================= */

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-copy {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--copy);
  font-size: 1rem;
  line-height: 1.75;
}

/* =========================
   BUTTONS
========================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  transform: skewX(-24deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  opacity: 1;
  animation: btnShine 0.9s ease forwards;
}

.btn-primary {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--shadow);
}

.btn-primary::before {
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.05) 30%,
    rgba(0,0,0,0.22) 50%,
    rgba(0,0,0,0.05) 70%,
    rgba(0,0,0,0) 100%
  );
}

.btn-primary:hover {
  background: #f7f7f7;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: rgba(255, 251, 246, 0.88);
  color: var(--text);
  border: 1px solid rgba(31, 27, 23, 0.16);
  box-shadow: 0 12px 30px rgba(52, 37, 20, 0.06);
}

.btn-secondary::before {
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.03) 30%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.03) 70%,
    rgba(0,0,0,0) 100%
  );
}

.btn-secondary:hover {
  background: #ffffff;
  color: #000000;
  border-color: rgba(31, 27, 23, 0.22);
  box-shadow: 0 18px 40px rgba(52, 37, 20, 0.10);
}

/* Submit button in hero gets accent treatment */
.audit-submit-btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 22px rgba(53, 88, 71, 0.28);
  min-height: 54px;
  padding: 0 28px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.audit-submit-btn::before {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.30) 50%,
    rgba(255,255,255,0.12) 70%,
    rgba(255,255,255,0) 100%
  );
}

.audit-submit-btn:hover {
  background: #2c4b3c;
  box-shadow: 0 10px 32px rgba(53, 88, 71, 0.36);
}

.audit-submit-btn.is-loading .btn-label { opacity: 0; }
.audit-submit-btn.is-loading .btn-spinner { opacity: 1; }

.btn-label { display: flex; align-items: center; gap: 8px; }

.btn-spinner {
  opacity: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =========================
   SCROLL REVEAL
========================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes btnShine {
  0% { left: -130%; }
  100% { left: 150%; }
}

@keyframes driftOne {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(70px, 30px, 0); }
}

@keyframes driftTwo {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50px, -24px, 0); }
}

/* =========================
   HERO
========================= */

.audit-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 162px 0 88px;
}

.audit-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.hero-light-1 {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -110px;
  background: radial-gradient(circle, rgba(213, 194, 170, 0.62) 0%, rgba(213, 194, 170, 0) 72%);
  animation: driftOne 18s infinite alternate;
}

.hero-light-2 {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(53, 88, 71, 0.12) 0%, rgba(53, 88, 71, 0) 72%);
  animation: driftTwo 20s infinite alternate;
}

/* Animated orbs — identical to contact page */
.audit-balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.audit-ball {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.32;
  transition:
    opacity 2s ease,
    transform 2s ease,
    border-color 2s ease,
    box-shadow 2s ease;
}

.audit-ball::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0.08;
  transition: opacity 2s ease;
}

.audit-ball.is-active {
  opacity: 0.95;
  transform: scale(1.03);
}

.audit-ball.is-active::before {
  opacity: 1;
}

.audit-ball-1 {
  width: 420px;
  height: 420px;
  top: 8%;
  right: 9%;
  border: 1.5px solid rgba(31, 27, 23, 0.12);
}

.audit-ball-1::before {
  border: 1.5px solid rgba(31, 27, 23, 0.28);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.05),
    0 0 42px rgba(213, 194, 170, 0.16),
    0 0 78px rgba(31, 27, 23, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.audit-ball-2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 8%;
  border: 1.5px solid rgba(183, 134, 83, 0.12);
}

.audit-ball-2::before {
  border: 1.5px solid rgba(183, 134, 83, 0.26);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.045),
    0 0 30px rgba(183, 134, 83, 0.13),
    0 0 56px rgba(183, 134, 83, 0.085),
    inset 0 0 0 1px rgba(255, 255, 255, 0.022);
}

.audit-ball-3 {
  width: 520px;
  height: 520px;
  top: 34%;
  left: 22%;
  border: 1.5px solid rgba(53, 88, 71, 0.10);
}

.audit-ball-3::before {
  border: 1.5px solid rgba(53, 88, 71, 0.23);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(53, 88, 71, 0.11),
    0 0 42px rgba(53, 88, 71, 0.072),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.audit-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.audit-hero-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.audit-hero-copy {
  margin: 22px auto 0;
  max-width: 680px;
  color: var(--copy);
  font-size: 1.06rem;
  line-height: 1.8;
}

/* Audit Form */

.audit-form {
  margin: 36px auto 0;
  max-width: 640px;
}

.audit-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.audit-url-input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  height: 54px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.audit-url-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.audit-url-input:focus {
  border-color: rgba(53, 88, 71, 0.34);
  box-shadow: 0 0 0 4px rgba(53, 88, 71, 0.08);
  background: #ffffff;
}

.audit-form-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.audit-error-msg {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--fail-color);
  min-height: 1.2em;
}

/* =========================
   LOADING
========================= */

.audit-loading {
  display: none;
  padding: 80px 0 100px;
  text-align: center;
}

.audit-loading.is-active { display: block; }

.audit-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.audit-spinner {
  width: 56px;
  height: 56px;
}

.audit-spinner-svg {
  animation: spin 1.2s linear infinite;
  width: 56px;
  height: 56px;
}

.audit-spinner-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 5;
}

.audit-spinner-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 80 46;
}

.audit-loading-label {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.audit-loading-label span {
  color: var(--accent);
  word-break: break-all;
}

.audit-loading-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   RESULTS SECTION
========================= */

.audit-results {
  display: none;
  padding: 64px 0 0;
}

.audit-results.is-active { display: block; }

/* Overall panel */

.audit-overall {
  display: flex;
  align-items: center;
  gap: 44px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 26px;
  padding: 44px 52px;
  margin-bottom: 28px;
  box-shadow:
    0 18px 42px rgba(52, 37, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.audit-score-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  flex-shrink: 0;
}

.audit-score-circle {
  width: 148px;
  height: 148px;
}

.score-track {
  fill: none;
  stroke: rgba(31, 27, 23, 0.08);
  stroke-width: 9;
}

.score-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.6s ease;
}

.audit-score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.audit-score-num {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.audit-score-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.audit-summary { flex: 1; min-width: 0; }

.audit-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
  transition: background 0.5s ease;
}

.audit-summary-title {
  margin: 0 0 6px;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.audit-summary-url {
  margin: 0 0 22px;
  font-size: 0.84rem;
  color: var(--muted);
  word-break: break-all;
}

.audit-summary-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 14px;
}

.audit-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audit-stat-num {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.audit-stat-num.audit-stat-critical { color: var(--fail-color); }
.audit-stat-num.audit-stat-good { color: var(--pass-color); }

.audit-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audit-stat-divider {
  width: 1px;
  height: 38px;
  background: var(--line);
  flex-shrink: 0;
}

.audit-scanned-at {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Category Cards */

.audit-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}

.audit-cat-card {
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 22px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(52, 37, 20, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  cursor: default;
}

.audit-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 27, 23, 0.12);
  box-shadow: 0 22px 50px rgba(52, 37, 20, 0.10);
}

.audit-cat-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin: 0 auto 14px;
}

.audit-cat-label {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

.audit-cat-grade-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 10px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.5s ease;
}

.audit-cat-score {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* Check Groups */

.audit-checks-sections {
  margin-bottom: 64px;
}

.audit-check-group {
  margin-bottom: 24px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(52, 37, 20, 0.06);
}

.audit-check-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(31, 27, 23, 0.08);
  background: rgba(255, 251, 246, 0.4);
}

.audit-check-group-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audit-check-group-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.audit-check-group-title {
  margin: 0 0 3px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.audit-check-group-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.audit-group-grade {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 10px;
  color: #fff;
  transition: background 0.4s ease;
}

.audit-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.audit-check-item {
  display: flex;
  gap: 16px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(31, 27, 23, 0.06);
  transition: background 0.14s ease;
}

.audit-check-item:last-child {
  border-bottom: none;
}

.audit-check-item:hover {
  background: rgba(255, 251, 246, 0.6);
}

.audit-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.audit-check-icon svg {
  width: 100%;
  height: 100%;
}

.audit-check-icon.pass svg { color: var(--pass-color); }
.audit-check-icon.warn svg { color: var(--warn-color); }
.audit-check-icon.fail svg { color: var(--fail-color); }

.audit-check-body {
  flex: 1;
  min-width: 0;
}

.audit-check-label {
  margin: 0 0 5px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-check-severity {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 5px;
}

.severity-critical { background: rgba(192, 57, 43, 0.10); color: var(--fail-color); }
.severity-warning  { background: rgba(194, 105, 46, 0.10); color: var(--warn-color); }
.severity-info     { background: rgba(31, 27, 23, 0.07); color: var(--muted); }

.audit-check-detail {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--copy);
}

.audit-check-fix {
  margin: 10px 0 0;
  padding: 12px 16px;
  background: rgba(194, 105, 46, 0.05);
  border-left: 3px solid var(--warn-color);
  border-radius: 0 8px 8px 0;
}

.audit-check-item.is-critical .audit-check-fix {
  background: rgba(192, 57, 43, 0.05);
  border-left-color: var(--fail-color);
}

.audit-check-fix-label {
  margin: 0 0 5px;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--warn-color);
}

.audit-check-item.is-critical .audit-check-fix-label {
  color: var(--fail-color);
}

.audit-check-fix-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--copy);
}

/* =========================
   RESULTS CTA
========================= */

.audit-cta-block {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  margin-bottom: 80px;
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(213, 194, 170, 0.12), transparent 28%),
    linear-gradient(180deg, #5a635a 0%, #464e47 100%);
}

.audit-cta-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.14),
    rgba(255,255,255,0)
  );
}

.audit-cta-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 231, 184, 0.18) 0%, rgba(246, 231, 184, 0) 72%);
  filter: blur(90px);
  pointer-events: none;
}

.audit-cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.audit-cta-copy {}

.audit-cta-kicker {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3e3b0;
}

.audit-cta-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #fffdf7;
}

.audit-cta-subtitle {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(255, 247, 236, 0.9);
  font-size: 1rem;
  line-height: 1.8;
}

.audit-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================
   INTRO CARDS (before scan)
========================= */

.audit-intro-cta {
  padding: 72px 0 100px;
}

.audit-intro-title {
  margin: 0 0 36px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: center;
}

.audit-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.audit-intro-card {
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 16px 40px rgba(52, 37, 20, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.audit-intro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 27, 23, 0.12);
  box-shadow: 0 22px 50px rgba(52, 37, 20, 0.10);
}

.audit-intro-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 18px;
}

.audit-intro-icon svg {
  width: 100%;
  height: 100%;
}

.audit-intro-card h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.audit-intro-card p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--copy);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  padding: 34px 0 38px;
  background: linear-gradient(180deg, #f2eadf 0%, #eee5d8 100%);
  border-top: 1px solid rgba(31, 27, 23, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(31, 27, 23, 0),
    rgba(31, 27, 23, 0.12),
    rgba(31, 27, 23, 0)
  );
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-logo {
  width: 36px;
  height: 36px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-copy {
  margin: 12px 0 0;
  color: var(--copy);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 20px;
}

.footer-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.22s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 251, 246, 0.85);
  border: 1px solid rgba(31, 27, 23, 0.10);
  box-shadow: 0 10px 24px rgba(52, 37, 20, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.footer-social:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(31, 27, 23, 0.16);
  box-shadow: 0 16px 30px rgba(52, 37, 20, 0.10);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* =========================
   GRADE COLOR UTILITIES
========================= */

.bg-grade-A { background: var(--grade-a) !important; }
.bg-grade-B { background: var(--grade-b) !important; }
.bg-grade-C { background: var(--grade-c) !important; }
.bg-grade-D { background: var(--grade-d) !important; }
.bg-grade-F { background: var(--grade-f) !important; }

.stroke-grade-A { stroke: var(--grade-a) !important; }
.stroke-grade-B { stroke: var(--grade-b) !important; }
.stroke-grade-C { stroke: var(--grade-c) !important; }
.stroke-grade-D { stroke: var(--grade-d) !important; }
.stroke-grade-F { stroke: var(--grade-f) !important; }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .audit-cta-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-wrap,
  .footer-links,
  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .audit-categories { grid-template-columns: repeat(2, 1fr); }
  .audit-intro-grid { grid-template-columns: repeat(2, 1fr); }

  .audit-overall {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  /* Mobile header: logo left, hamburger right — no stacking */
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
  }

  .main-nav {
    display: none; /* hidden on mobile; use hamburger instead */
  }

  .nav-hamburger {
    display: flex;
  }

  .site-header.is-scrolled .header-inner {
    width: calc(100% - 22px);
    padding: 10px 16px;
    border-radius: 16px;
  }

  .audit-hero {
    min-height: auto;
    padding: 150px 0 72px;
  }

  .audit-hero-title {
    font-size: clamp(2.35rem, 9vw, 4.2rem);
  }

  /* Bigger, easier to tap URL input on mobile */
  .audit-url-input {
    height: 66px;
    font-size: 1.08rem;
    padding: 0 24px;
  }

  .audit-input-row {
    flex-direction: column;
  }

  .audit-submit-btn {
    width: 100%;
    min-height: 58px;
  }

  .audit-check-item { padding: 16px 18px; }
  .audit-check-group-header { padding: 18px 22px; }
  .audit-cta-block { padding: 60px 0 72px; }

  .site-footer { padding: 28px 0 32px; }
}

@media (max-width: 560px) {
  .audit-categories { grid-template-columns: repeat(2, 1fr); }
  .audit-intro-grid { grid-template-columns: 1fr; }
  .audit-cta-actions { flex-direction: column; }
  .audit-url-input { height: 70px; font-size: 1.12rem; padding: 0 26px; }
}
