:root {
  color-scheme: light;
  --background: #f5f6ef;
  --surface: #fffdf7;
  --surface-strong: #ffe47a;
  --text: #161616;
  --muted: #3f3f3f;
  --muted-soft: #5d5b50;
  --primary: #fdda24;
  --primary-dark: #d1aa00;
  --accent: #8b7100;
  --success: #245f3d;
  --warning: #a05f00;
  --border: #d8d0ad;
  --shadow: 0 20px 48px rgba(32, 31, 24, 0.12);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(253, 218, 36, 0.18), transparent 30rem),
    linear-gradient(180deg, #fffffb 0%, var(--background) 42rem);
  color: var(--text);
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

.site-header,
.section,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 22px 0 10px;
}

.brand,
.nav-link,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--text);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-link {
  border-radius: 999px;
  background: var(--primary);
  color: #111111;
  font-weight: 850;
  padding: 11px 18px;
  box-shadow: 0 12px 24px rgba(139, 110, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--primary-dark);
  box-shadow: 0 16px 30px rgba(139, 110, 0, 0.24);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
  padding: 46px 0 58px;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1040px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5.6vw, 4.55rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions,
.value-strip,
.two-column {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: center;
  width: min(360px, 100%);
}

.hero-actions .button-primary {
  width: 100%;
  min-height: 58px;
}

.offer-eyebrow {
  margin-bottom: 16px;
}

.value-strip {
  justify-content: center;
  margin: 26px 0 22px;
}

.value-strip span {
  border: 1px solid rgba(200, 155, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 254, 245, 0.74);
  color: var(--muted-soft);
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: #111111;
  box-shadow: 0 18px 30px rgba(139, 110, 0, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-dark);
}

.button-secondary {
  background: rgba(255, 255, 251, 0.86);
  border: 1px solid rgba(200, 155, 0, 0.32);
  color: #3b3200;
}

.hero-card,
.audit-form,
.result-card,
.upsell-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(320px, 1fr);
  gap: 22px;
  width: min(920px, 100%);
  align-items: center;
  padding: 22px;
  text-align: left;
}

.price-panel {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  background: #fffef5;
  padding: 20px;
}

.price-panel strong {
  display: block;
  font-size: clamp(3.4rem, 8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.price-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.status-pill,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e9fff7;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 800;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 rgba(15, 143, 98, 0.55);
  animation: pulse 1.8s infinite;
}

.timeline-preview {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-preview li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-preview span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-strong);
  color: #171717;
  font-weight: 900;
}

.section {
  padding: 30px 0;
}

.grid-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(440px, 1.18fr);
  gap: 42px;
  align-items: start;
}

.conversion-copy {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
  padding: 22px;
}

.conversion-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.conversion-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.included-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(139, 113, 0, 0.2);
}

.included-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 0;
}

.included-item + .included-item {
  border-top: 1px solid rgba(139, 113, 0, 0.12);
}

.included-item span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--text);
  font-weight: 900;
  line-height: 1;
}

.included-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
  line-height: 1.25;
}

.included-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

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

.form-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(200, 155, 0, 0.24);
  padding-bottom: 18px;
}

.form-header .eyebrow {
  margin-bottom: 6px;
}

.form-header h3 {
  margin-bottom: 0;
  font-size: 1.4rem;
  letter-spacing: 0;
}

fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(36, 87, 255, 0.12);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #dc5068;
}

.two-column > * {
  flex: 1 1 220px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.form-submit {
  width: 100%;
}

.form-footnote {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.form-alert {
  border-radius: 14px;
  background: #fff0f3;
  color: #9f1239;
  padding: 12px 14px;
  font-weight: 700;
}

.results-section {
  padding-top: 16px;
  padding-bottom: 28px;
}

.results-header,
.upsell-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.results-title {
  max-width: 560px;
}

.results-title .eyebrow {
  margin-bottom: 8px;
}

.results-title h2 {
  margin-bottom: 10px;
}

.results-header p {
  color: var(--muted);
}

.results-title p:last-child {
  max-width: 480px;
  margin-bottom: 0;
  font-weight: 650;
}

.progress-wrap {
  min-width: 180px;
  text-align: right;
  font-weight: 900;
}

.progress-bar {
  height: 10px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 450ms ease;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.result-card {
  min-height: 230px;
  padding: 22px;
  box-shadow: none;
}

.result-card.loading {
  background: linear-gradient(100deg, #fff 30%, #f4f8ff 50%, #fff 70%);
  background-size: 220% 100%;
  animation: shimmer 1.8s infinite linear;
}

.result-card.muted {
  color: var(--muted);
  background: #fbfdff;
}

.result-card.complete {
  border-color: rgba(15, 143, 98, 0.28);
}

.result-card.attention {
  border-color: rgba(183, 121, 31, 0.4);
}

.result-badge {
  margin-bottom: 18px;
}

.result-badge.loading-badge {
  background: #eef4ff;
  color: var(--primary);
}

.result-badge.warning-badge {
  background: #fff7e6;
  color: var(--warning);
}

.result-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.result-details {
  margin-top: 18px;
  border-top: 1px solid rgba(216, 208, 173, 0.82);
  padding-top: 14px;
}

.result-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--accent);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.result-details summary:focus-visible {
  outline: 3px solid rgba(253, 218, 36, 0.72);
  outline-offset: 4px;
  border-radius: 8px;
}

.details-notice {
  margin: 14px 0 0;
  border-left: 4px solid var(--warning);
  background: #fff7e6;
  color: #5a3900;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.details-record {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.details-record h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.details-record h4 a {
  color: var(--text);
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.details-meta {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.appointment-list {
  display: grid;
  gap: 10px;
}

.appointment-item {
  border: 1px solid rgba(216, 208, 173, 0.86);
  border-radius: 8px;
  background: rgba(255, 254, 245, 0.72);
  padding: 12px;
}

.appointment-item strong,
.appointment-item p {
  overflow-wrap: anywhere;
}

.appointment-item strong {
  display: block;
  line-height: 1.25;
}

.appointment-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.appointment-item .appointment-address {
  color: #5a3900;
  font-weight: 750;
}

.result-attribution {
  margin: 16px 0 0;
  color: var(--muted-soft);
  font-size: 0.84rem;
  font-weight: 750;
}

.result-attribution a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.upsell-card {
  margin-top: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #f7d531, #e0b800);
  color: #111111;
}

.upsell-card p,
.upsell-card .eyebrow {
  color: rgba(17, 17, 17, 0.82);
}

.upsell-card .button-primary {
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: #111111;
  color: #fffdf7;
  box-shadow: 0 18px 30px rgba(17, 17, 17, 0.22);
}

.upsell-card .button-primary:hover,
.upsell-card .button-primary:focus-visible {
  background: #2b2b2b;
}

.site-footer {
  padding: 18px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  border-top: 1px solid rgba(139, 113, 0, 0.18);
  padding-top: 26px;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(139, 113, 0, 0.18);
  border-radius: 999px;
  color: var(--muted);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  font-size: 0.92rem;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(15, 143, 98, 0);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 860px) {
  .hero,
  .grid-section,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .conversion-copy {
    position: static;
  }

  .results-header,
  .upsell-card {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-wrap {
    flex: none;
    min-width: 0;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    gap: 12px;
  }

  .button,
  .form-submit {
    width: 100%;
  }

  .audit-form,
  .hero-card,
  .upsell-card {
    padding: 18px;
  }

  .hero {
    padding-bottom: 38px;
  }

  .hero-actions {
    gap: 10px;
    width: 100%;
  }

  .form-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .form-price {
    width: fit-content;
  }
}

.results-page-header {
  padding-bottom: 12px;
}

.results-hero {
  padding: 48px 0 28px;
}

.results-hero h1 {
  margin-bottom: 18px;
}

.skeleton-card {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, #eaf0fb 30%, #f8fbff 50%, #eaf0fb 70%);
  background-size: 220% 100%;
  animation: shimmer 1.35s infinite linear;
}

.skeleton-badge {
  width: 86px;
  height: 34px;
  margin-bottom: 4px;
}

.skeleton-title {
  width: 68%;
  height: 28px;
  margin-bottom: 8px;
}

.skeleton-short {
  width: 54%;
}

.progress-wrap {
  position: relative;
  flex: 0 1 420px;
  min-width: 280px;
  border: 1px solid rgba(36, 87, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 166, 166, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 244, 255, 0.84));
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 42px rgba(36, 87, 255, 0.12);
}

.progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.progress-copy span {
  color: #3b3200;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-copy strong {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.progress-wrap p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-bar {
  height: 16px;
  border: 1px solid rgba(36, 87, 255, 0.1);
  background: rgba(220, 228, 242, 0.7);
  box-shadow: inset 0 2px 5px rgba(20, 33, 61, 0.08);
}

.progress-bar span {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #2457ff, #00a6a6, #43d17a);
  box-shadow: 0 0 22px rgba(0, 166, 166, 0.35);
}

.progress-bar span::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.45) 45%, transparent 70%);
  animation: progress-sheen 1.45s infinite;
}

.photo-results-card {
  grid-column: 1 / -1;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.photo-match {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: #f8fbff;
}

.photo-match img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-match figcaption {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
}

.photo-match strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.photo-match.high-match {
  border-color: rgba(15, 143, 98, 0.65);
  box-shadow: 0 10px 24px rgba(15, 143, 98, 0.13);
}

.photo-match.high-match strong {
  color: var(--success);
}

.photo-match.mid-match {
  border-color: rgba(183, 121, 31, 0.5);
}

.photo-match.mid-match strong {
  color: var(--warning);
}

.photo-match.low-match {
  border-color: rgba(220, 80, 104, 0.55);
}

.photo-match.low-match strong {
  color: #be123c;
}

@keyframes progress-sheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@media (max-width: 860px) {
  .photo-results-card {
    grid-column: auto;
  }

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

  .results-header .progress-wrap {
    flex: none;
    min-width: 0;
    width: 100%;
  }
}
