:root {
  --ink: #15212d;
  --light-ink: #2a3c4e;
  --white: #fbfdff;
  --panel: rgba(255, 255, 255, 0.56);
  --panel-strong: rgba(255, 255, 255, 0.72);
  --line: rgba(124, 149, 173, 0.35);
  --accent: #9f8748;
  --accent-soft: rgba(159, 135, 72, 0.42);
  --shadow: 0 12px 35px rgba(18, 31, 45, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: #e6edf4;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  min-height: 350vh;
  overflow-x: hidden;
  line-height: 1.6;
  perspective: 1px;
  transform-style: preserve-3d;
}

.background-stack {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.bg-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 120vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease-out;
  will-change: transform, opacity;
}

.bg-panel-1 {
  top: 0;
  background-image: url("../images/background1.png");
}

.bg-panel-2 {
  top: 95vh;
  background-image: url("../images/background2.png");
}

.bg-panel-3 {
  top: 190vh;
  background-image: url("../images/background3.png");
}


.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(235, 244, 252, 0.52) 45%,
    rgba(255, 255, 255, 0.88) 100%
  );
}

.site-header {
  position: sticky;
  top: 1rem;
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.85rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.3rem);
}

nav a {
  text-decoration: none;
  color: var(--light-ink);
  font-size: 0.9rem;
}

main {
  position: relative;
  z-index: 2;
}

.section {
  width: min(1100px, calc(100% - 2rem));
  margin: clamp(2.8rem, 6vh, 5rem) auto;
  transform: translateZ(0.5px) scale(1);
  will-change: transform;
}

.panel {
  padding: clamp(1.4rem, 3vw, 3rem);
}

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(18, 31, 45, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.hero {
  min-height: calc(100vh - 7.5rem);
  display: grid;
  align-items: center;
}

.hero-content {
  max-width: 780px;
  background: var(--panel-strong);
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-ink);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 4.35rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  position: relative;
  padding-bottom: 0.55rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(120px, 40%);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.lead {
  max-width: 60ch;
  color: var(--light-ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, #1f3247, #2c445d);
  color: var(--white);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.process-panel,
#services .panel {
  position: relative;
}

.process-panel::before,
#services .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  pointer-events: none;
}

.step-grid,
.services-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.card {
  padding: 1.15rem;
  position: relative;
}

.step-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.step-card h3 span {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

.services-grid .card {
  min-height: 88px;
  display: flex;
  align-items: center;
  border-left: 2px solid var(--accent-soft);
}

.services-grid h3 {
  margin: 0;
  font-size: clamp(1.17rem, 1.8vw, 1.45rem);
}

.closing {
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.reveal {
  animation: rise 700ms ease both;
  animation-timeline: view();
  animation-range: entry 10% cover 25%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 18px;
    padding: 0.85rem;
    flex-direction: column;
    gap: 0.6rem;
    position: static;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }
}


.funnel-layer {
  position: fixed;
  right: clamp(1rem, 3vw, 3rem);
  top: clamp(6rem, 18vh, 12rem);
  width: min(380px, calc(100vw - 2rem));
  z-index: 3;
  pointer-events: none;
  transform: translateY(0);
  max-height: calc(100vh - 4rem);
  overflow: auto;
}

.funnel-card {
  pointer-events: auto;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: rgba(255, 255, 255, 0.68);
}

.funnel-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 1rem;
}

.funnel-card h2::after {
  width: 80px;
}

.funnel-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

#funnel-form {
  display: grid;
  gap: 0.85rem;
}

#funnel-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--light-ink);
}

#funnel-form select,
#funnel-form textarea,
#funnel-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  outline: none;
}

#funnel-form textarea {
  resize: vertical;
}

#funnel-form select:focus,
#funnel-form textarea:focus,
#funnel-form input:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(159, 135, 72, 0.14);
}

.diagnosis-output {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.diagnosis-output h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.diagnosis-output ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.diagnosis-output li {
  margin: 0.35rem 0;
}

@media (max-width: 960px) {
  .funnel-layer {
    position: relative;
    top: auto;
    right: auto;
    width: min(760px, calc(100% - 2rem));
    margin: 2rem auto;
    transform: none;
    max-height: none;
    overflow: visible;
    z-index: 3;
  }
}


.next-step-note {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.95rem;
  border-left: 2px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.48);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--light-ink);
}

.submission-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--light-ink);
}

.btn[disabled] {
  opacity: 0.62;
  cursor: wait;
}


.audit-page-body {
  min-height: 100vh;
}

.audit-main {
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}

.audit-main .section {
  transform: none;
  will-change: auto;
}

.audit-hero h1 {
  max-width: none;
}

.tracking-key,
.final-tracking-line {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.audit-context ul,
.offer-deliverables,
.agreement-box ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.audit-price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1f3247;
  margin: 0.2rem 0 0.4rem;
}

.audit-delivery-window {
  margin: 0;
  color: var(--light-ink);
}

.agreement-box {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.sensitive-warning {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.payment-placeholder {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.submission-audit-link {
  margin-top: 0.8rem;
}


.audit-question-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.audit-question-box textarea {
  width: 100%;
  margin-top: 0.45rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.audit-status {
  margin-top: 1rem;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: #1f5130;
}

.audit-status.is-error {
  color: #8b1e2f;
}

.tracking-copy-block {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.tracking-copy-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light-ink);
  font-weight: 700;
}

.tracking-copy-key {
  display: block;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--ink);
}

.copy-tracking-button {
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.copy-status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #1f5130;
}

.audit-status {
  margin-top: 1rem;
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: #1f5130;
}

.audit-status.is-error {
  color: #8b1e2f;
}

.audit-offer-card,
.audit-offer-card * {
  pointer-events: auto;
}

.audit-actions {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  clear: both;
  pointer-events: auto;
}

.audit-actions .btn,
#send-question-button,
#copy-tracking-key-button {
  position: relative;
  z-index: 11;
  pointer-events: auto;
  cursor: pointer;
}
