:root {
  color-scheme: light;
  --ink: #121a16;
  --muted: #64726b;
  --line: #dfe6e0;
  --paper: #f8faf6;
  --band: #edf4ee;
  --accent: #12664f;
  --accent-dark: #0a4636;
  --gold: #bf7d20;
  --warning: #ad412d;
  --danger: #ad412d;
  --amber: #bf7d20;
  --success: #12664f;
  --blue: #315f9f;
  --mist: #f3f7f2;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(18, 26, 22, 0.12);
  --soft-shadow: 0 10px 28px rgba(18, 26, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 36%, #f2f6ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 224, 218, 0.6);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 560;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 140ms ease;
}

nav a:hover {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 64px) 56px;
  position: relative;
  overflow: hidden;
}

/* ── Hero animated background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Subtle dot-grid base layer */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(18,102,79,0.13) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.hero-bg-sq {
  position: absolute;
  border-radius: var(--br, 4px);
  will-change: transform, opacity;
}

/* Animated variants start invisible and fade in via keyframes */
.hero-bg-sq.anim-float,
.hero-bg-sq.anim-drift,
.hero-bg-sq.anim-pulse {
  opacity: 0;
}

/* Float straight up — small particles */
.hero-bg-sq.anim-float {
  animation: hbFloat var(--dur, 9s) var(--delay, 0s) ease-in-out infinite;
}

/* Drift diagonally */
.hero-bg-sq.anim-drift {
  animation: hbDrift var(--dur, 12s) var(--delay, 0s) ease-in-out infinite;
}

/* Slow spin + gentle bob — large anchor tiles */
.hero-bg-sq.anim-spin {
  animation: hbSpin var(--dur, 18s) var(--delay, 0s) ease-in-out infinite;
}

/* Pulse in-place */
.hero-bg-sq.anim-pulse {
  animation: hbPulse var(--dur, 6s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes hbFloat {
  0%   { transform: translateY(0) scale(1);       opacity: 0; }
  10%  { opacity: var(--op, 0.18); }
  88%  { opacity: var(--op, 0.18); }
  100% { transform: translateY(-120px) scale(0.8); opacity: 0; }
}

@keyframes hbDrift {
  0%   { transform: translate(0, 0) rotate(0deg);          opacity: 0; }
  8%   { opacity: var(--op, 0.18); }
  50%  { transform: translate(var(--dx, 40px), -80px) rotate(180deg); opacity: var(--op, 0.18); }
  92%  { opacity: var(--op, 0.18); }
  100% { transform: translate(calc(var(--dx, 40px) * 2), -160px) rotate(360deg); opacity: 0; }
}

@keyframes hbSpin {
  0%   { transform: rotate(0deg)   translateY(0px); }
  25%  { transform: rotate(90deg)  translateY(-14px); }
  50%  { transform: rotate(180deg) translateY(0px); }
  75%  { transform: rotate(270deg) translateY(-14px); }
  100% { transform: rotate(360deg) translateY(0px); }
}

@keyframes hbPulse {
  0%, 100% { transform: scale(1);    opacity: 0; }
  15%       { opacity: var(--op, 0.22); }
  50%       { transform: scale(1.15); opacity: var(--op, 0.22); }
  85%       { opacity: var(--op, 0.22); }
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy,
.section-heading {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.65rem, 7.6vw, 6.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

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

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-note {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 34px 0 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
}

.trust-strip svg {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.proof-strip div,
.hero-panel,
.audit-form,
.results,
.sample-grid article,
.step-grid article,
.ai-feature-grid article,
.pricing-grid article,
.script-box,
.mini-form,
.done-for-you-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.proof-strip div {
  padding: 16px;
  box-shadow: none;
}

.proof-strip dt {
  font-size: 1.45rem;
  font-weight: 700;
}

.proof-strip dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(18, 102, 79, 0.42), rgba(49, 95, 159, 0.26)) border-box;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue));
}

.score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid #cfe2d6;
  border-radius: 999px;
  background: #f7fbf5;
  padding: 6px 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(18, 102, 79, 0.12);
}

.score-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.score-card strong {
  color: var(--accent);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
}

.score-card small {
  color: var(--muted);
  font-size: 1.2rem;
}

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

.issue-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-radius: 7px;
  background: var(--band);
  padding: 14px;
}

.issue-list span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.band,
.sample,
.outreach,
.ai-engine,
.mini-scan,
.done-for-you,
.faq {
  padding: clamp(46px, 7vw, 90px) clamp(18px, 5vw, 64px);
}

.ai-engine {
  background: var(--ink);
  color: var(--white);
}

.ai-engine .eyebrow {
  color: #a7e0c9;
}

.ai-engine .section-heading p:not(.eyebrow) {
  color: #d6dfd9;
}

.ai-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.ai-feature-grid article {
  background: #223027;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  padding: 22px;
}

.ai-feature-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 7px;
  background: #a7e0c9;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.ai-feature-grid p {
  color: #d6dfd9;
}

.band {
  background: linear-gradient(180deg, var(--band), #f7faf4);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.audit-form,
.results {
  padding: 24px;
}

.audit-form {
  display: grid;
  align-content: start;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 102, 79, 0.1);
  outline: none;
}

input.field-error {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(173, 65, 45, 0.12);
  animation: fieldShake 0.28s ease;
}

@keyframes fieldShake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

input::placeholder {
  color: #b0bdb5;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 28px 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.file-drop:hover,
.file-drop.dragging {
  border-color: var(--accent);
  background: #f0f8f3;
}

.file-drop input[type="file"] {
  display: none;
}

.file-drop-icon {
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 4px;
}

.file-drop-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.file-drop-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.file-name {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.form-note,
.empty-state p,
.pricing-grid .plan-desc,
.sample-grid p,
.step-grid p,
.done-for-you-grid p,
.paid-cta p {
  color: var(--muted);
}

.results {
  min-height: 420px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.82);
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-content: center;
  text-align: center;
}

.unlocked-state {
  gap: 12px;
  padding: 32px;
}

.unlock-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 4px;
}

.report-shell {
  display: grid;
  gap: 24px;
}

.report-cover {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f4f8f2);
  padding: 28px;
}

.report-cover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue));
}

.report-cover h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.report-cover p {
  color: var(--muted);
  margin-bottom: 0;
}

.report-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.report-download-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.85rem !important;
  padding: 10px 16px !important;
  white-space: nowrap;
}

.report-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 6px 10px;
  white-space: nowrap;
}

.report-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.score-ring {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 62%, transparent 63%),
    conic-gradient(var(--score-color, var(--accent)) 0 var(--score-deg), #e8f0ea var(--score-deg) 100%);
  color: var(--score-color, var(--accent));
  font-size: 2.1rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--score-color, var(--accent)) 10%, white),
              0 4px 18px color-mix(in srgb, var(--score-color, var(--accent)) 18%, transparent);
  transition: box-shadow 0.3s ease;
}

.score-ring strong {
  align-self: end;
  line-height: 0.9;
}

.score-ring span {
  align-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

/* 65+ now shows brand green (not amber) — 78 reads as healthy, not a warning */
.score-green {
  --score-color: #12664f;
}

.score-amber {
  --score-color: #3a9e72; /* soft mint-green instead of orange */
}

.score-red {
  --score-color: var(--danger);
}

.score-band {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--score-color) 12%, white);
  color: var(--score-color);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-grid,
.sample-grid,
.pricing-grid,
.step-grid,
.done-for-you-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 18px 16px;
  box-shadow: 0 5px 16px rgba(18, 26, 22, 0.05);
}

.metric strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.severity-bar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.severity-bar span {
  flex: var(--size);
  min-height: 36px;
  min-width: 86px;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.severity-bar .high {
  background: var(--warning);
}

.severity-bar .medium {
  background: var(--gold);
}

.severity-bar .low {
  background: var(--accent);
}

.findings {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.finding {
  border-left: 4px solid var(--gold);
  background: #fff9ed;
  border-radius: 7px;
  padding: 16px 18px;
}

.finding h3 {
  font-size: 0.97rem;
  margin-bottom: 5px;
}

.finding.high {
  border-left-color: var(--warning);
  background: #fff2ef;
}

.plan-box,
.paid-cta,
.locked-report,
.locked-feature,
.recheck-cta {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  padding: 18px;
}

.report-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.report-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-section-heading h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.ai-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  border: 1px solid #cfe2d6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fbf5, #ffffff);
  padding: 18px;
}

.ai-brief.fallback {
  display: block;
  border-color: var(--line);
  background: #f7faf4;
}

.ai-brief-main h3 {
  font-size: 1.12rem;
  line-height: 1.14;
}

.ai-brief-main p,
.ai-narrative p {
  color: var(--muted);
}

.ai-summary {
  color: var(--ink) !important;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-weight: 750;
}

.opportunity-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 118px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.opportunity-score span {
  font-size: 2.5rem;
  font-weight: 950;
  line-height: 1;
}

.opportunity-score small {
  max-width: 100px;
  color: #d6dfd9;
  font-weight: 800;
}

.ai-narrative,
.ai-columns {
  grid-column: 1 / -1;
}

.ai-narrative {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ai-narrative h4,
.ai-columns h4 {
  margin: 0 0 6px;
}

.ai-narrative strong {
  color: var(--accent);
}

.ai-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ai-columns div {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 14px;
}

.ai-columns li {
  color: var(--muted);
}

.ai-columns ul {
  margin: 0;
  padding-left: 18px;
}

.ai-columns li + li {
  margin-top: 6px;
}

.plan-box ol {
  margin: 0;
  padding-left: 22px;
}

.plan-box li + li {
  margin-top: 8px;
}

.paid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff9ed;
  box-shadow: 0 8px 26px rgba(191, 125, 32, 0.09);
}

.locked-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.locked-feature .button,
.locked-actions .button,
.paid-cta .button {
  white-space: nowrap;
  flex-shrink: 0;
}

.unlock-price-was {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78em;
  font-weight: 400;
  opacity: 0.6;
  text-decoration: line-through;
}

.locked-feature {
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(18, 102, 79, 0.08), rgba(49, 95, 159, 0.06)),
    var(--white);
}

.locked-feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.recheck-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #f7fbf5, #ffffff);
}

.recheck-cta p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.locked-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.locked-feature-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 15px;
}

.locked-feature-grid article::after {
  content: "Locked";
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: #f2f6f0;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.locked-feature-grid h3 {
  max-width: calc(100% - 76px);
  line-height: 1.18;
}

.locked-feature-grid p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.paid-cta p {
  margin-bottom: 0;
}

.locked-report {
  background: var(--ink);
  color: var(--white);
}

.locked-report.unlocked {
  background: #173c31;
}

.locked-report p {
  color: #d6dfd9;
}

.locked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.recommendation-list {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 6px 18px rgba(18, 26, 22, 0.05);
}

.recommendation-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.recommendation-head span,
.recommendation-fields dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recommendation-head h4 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.issue-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.issue-pills span {
  border: 1px solid #f0c8c0;
  border-radius: 999px;
  background: #fff2ef;
  padding: 4px 9px;
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: none;
}

.recommendation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 16px 0 0;
}

.recommendation-fields div {
  min-width: 0;
}

.recommendation-fields .wide {
  grid-column: 1 / -1;
}

.recommendation-fields dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.recommendation-fields .ai-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.recommendation-fields .ai-note dt {
  color: var(--accent);
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--white);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f6f0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.loading-report {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 22px;
  text-align: center;
}

.scanner-frame {
  position: relative;
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f8f2);
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.scanner-grid span {
  height: 28px;
  border-radius: 6px;
  background: #e6eee7;
  animation: pulseCell 1000ms ease-in-out infinite;
  animation-delay: calc(var(--i) * 55ms);
}

.scanner-grid span:nth-child(3n) {
  background: #d7e7dc;
}

.scanner-grid span:nth-child(5n) {
  background: #f5e8d2;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(18, 102, 79, 0), rgba(18, 102, 79, 0.2), rgba(18, 102, 79, 0));
  animation: scanLine 1500ms ease-in-out infinite;
}

.loading-report h3 {
  font-size: 1.45rem;
}

.loading-report p {
  max-width: 540px;
  color: var(--muted);
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 760px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.loading-steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 10px 12px;
  min-height: 56px;
  text-align: center;
}

@keyframes scanLine {
  0% {
    transform: translateY(-70px);
  }
  100% {
    transform: translateY(220px);
  }
}

@keyframes pulseCell {
  0%,
  100% {
    opacity: 0.56;
  }
  50% {
    opacity: 1;
  }
}

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

.sample-grid article,
.pricing-grid article,
.step-grid article,
.done-for-you-grid article {
  padding: 22px;
  box-shadow: none;
}

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

.step-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-grid .featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff, #f7fbf5);
  box-shadow: 0 14px 42px rgba(18, 102, 79, 0.14);
}

.plan-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f0f4f2;
  color: var(--muted);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 22px;
}

.plan-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e6f3ed;
  color: var(--accent);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 22px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.price-was {
  color: #b0bdb5;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: line-through;
}

.plan-desc {
  flex: 1;
  margin-bottom: 18px;
}

.pricing-grid .button,
.done-for-you-grid .button,
.mini-form .button,
.audit-form .button {
  width: 100%;
}

.full-w {
  width: 100%;
  margin-top: auto;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.mini-scan {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 520px);
  gap: 24px;
  align-items: center;
}

.mini-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  box-shadow: none;
}

.done-for-you {
  background: var(--ink);
  color: var(--white);
}

.done-for-you .eyebrow {
  color: #a7e0c9;
}

.done-for-you-copy {
  max-width: 760px;
}

.done-for-you-copy p:not(.eyebrow) {
  color: #d6dfd9;
}

.done-for-you-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.done-for-you-grid article {
  background: #223027;
  border-color: rgba(255, 255, 255, 0.18);
}

.done-for-you-grid ul {
  margin: 0;
  padding-left: 20px;
}

.done-for-you-grid li + li {
  margin-top: 8px;
}

.faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.faq-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px 24px;
}

.faq-grid h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-grid p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.faq-grid a {
  color: var(--accent);
  text-decoration: none;
}

.faq-grid a:hover {
  text-decoration: underline;
}

pre {
  overflow-x: auto;
  margin: 16px 0 0;
  white-space: pre-wrap;
  color: #243027;
  font: 0.94rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

footer {
  padding: 28px clamp(18px, 5vw, 64px) 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.footer-legal {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  max-width: 900px;
  margin-bottom: 0;
}

footer p {
  margin-bottom: 0;
}

/* ── Scroll fade-in ── */
.fade-hidden {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-visible {
  opacity: 1;
  transform: none;
}

/* ── Stagger-in for grid children ── */
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stagger-in {
  animation: staggerIn 0.45s ease both;
}

/* ── Step connectors removed ── */
.step-grid {
  position: relative;
}

/* ── Subtle pulse on nav CTA ── */
@keyframes navPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 102, 79, 0); }
  50% { box-shadow: 0 0 0 6px rgba(18, 102, 79, 0.12); }
}

.nav-cta {
  animation: navPulse 2.8s ease-in-out infinite;
}

/* ── Hero score ring shimmer ── */
@keyframes heroScoreShimmer {
  0% { opacity: 0.85; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}

#heroScore {
  animation: heroScoreShimmer 3s ease-in-out infinite;
}

@media (max-width: 940px) {
  .hero,
  .tool-layout,
  .sample-grid,
  .pricing-grid,
  .step-grid,
  .ai-feature-grid,
  .trust-strip,
  .faq-grid,
  .mini-scan,
  .done-for-you-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .report-cover,
  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-meta {
    justify-items: start;
  }

  .paid-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .locked-feature {
    align-items: flex-start;
    flex-direction: column;
  }

  .recheck-cta {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .recommendation-head {
    grid-template-columns: 1fr;
  }

  .issue-pills {
    justify-content: flex-start;
  }

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

  .ai-brief,
  .ai-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(18, 26, 22, 0.08);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px clamp(18px, 5vw, 64px);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  nav a:last-child {
    border-bottom: none;
    padding-top: 14px;
  }

  .nav-cta {
    border-radius: 0;
    background: none;
    border: none;
    color: var(--accent) !important;
    font-size: 0.95rem;
    font-weight: 500;
    animation: none;
    box-shadow: none;
    justify-content: flex-start;
    min-height: auto;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .proof-strip,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .severity-bar {
    flex-direction: column;
  }

  .locked-feature-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-fields {
    grid-template-columns: 1fr;
  }

  .loading-steps {
    grid-template-columns: 1fr;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main .button {
    width: 100%;
  }
}

@media print {
  @page {
    margin: 14mm;
    size: A4;
  }

  .topbar,
  .hero,
  .sample,
  .mini-scan,
  .pricing-grid,
  .done-for-you,
  .outreach,
  .download-actions,
  footer,
  .audit-form {
    display: none;
  }

  body,
  .band {
    background: var(--white);
    color: #111;
  }

  .tool-layout,
  .results {
    display: block;
    margin: 0;
  }

  .results {
    border: 0;
    padding: 0;
    box-shadow: none;
    min-height: auto;
  }

  .report-shell {
    gap: 14px;
  }

  .report-cover,
  .metric,
  .finding,
  .plan-box,
  .locked-report,
  .report-section,
  .ai-brief,
  .ai-columns div,
  .recommendation-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .report-cover {
    background: #f7faf4;
  }

  .report-cover h3 {
    font-size: 24pt;
  }

  .report-meta span,
  .button {
    border-color: #ccc;
  }

  .score-ring {
    width: 82px;
    height: 82px;
    border-width: 7px;
    background: #fff;
    font-size: 22pt;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .severity-bar span {
    color: #111;
    border: 1px solid #ccc;
    background: #fff !important;
  }

  .locked-report {
    color: #111;
    background: #f7faf4;
  }

  .locked-report.unlocked {
    display: none;
  }

  .locked-report p {
    color: #333;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8.5pt;
    page-break-inside: auto;
  }

  .recommendation-list {
    gap: 10px;
  }

  .recommendation-card {
    padding: 10px;
  }

  .recommendation-head h4 {
    font-size: 12pt;
  }

  .recommendation-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 10px;
    font-size: 8.5pt;
  }

  .ai-brief {
    grid-template-columns: 1fr 100px;
    padding: 12px;
  }

  .opportunity-score {
    min-height: 92px;
  }

  .opportunity-score span {
    font-size: 26pt;
  }

  .ai-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ai-columns div {
    padding: 8px;
  }

  tr {
    break-inside: avoid;
  }

  th,
  td {
    padding: 6px;
  }

  a {
    text-decoration: none;
  }
}

/* ── Payment success modal ── */
#paymentSuccessOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#paymentSuccessOverlay.psm-visible {
  opacity: 1;
  pointer-events: auto;
}

.psm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.psm-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 48px 44px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(10, 20, 14, 0.28);
  transform: translateY(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#paymentSuccessOverlay.psm-visible .psm-card {
  transform: translateY(0);
}

.psm-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.psm-check-ring {
  display: flex;
  justify-content: center;
  margin: 8px auto 20px;
}

.psm-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a9e72;
  margin: 0 0 10px;
}

.psm-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.psm-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 12px;
}

.psm-email-note {
  font-size: 12px;
  color: #9eada6;
  margin-bottom: 32px;
}

.psm-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, transform 0.12s ease;
}

.psm-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.psm-cta:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .psm-card {
    padding: 36px 28px 32px;
    border-radius: 16px;
  }

  .psm-title {
    font-size: 22px;
  }
}
