/* Default theme: dark (Linear/Vercel-style landing). Used on index.html. */
:root {
  --bg: #0b0b0e;
  --bg-elevated: #17171b;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --accent: #6f93ff;
  --accent-contrast: #0b0b0e;
  --status-green: #4ade80;
  --status-green-bg: rgba(74, 222, 128, 0.14);
  --status-yellow: #fbbf24;
  --status-yellow-bg: rgba(251, 191, 36, 0.14);
  --status-red: #f87171;
  --status-red-bg: rgba(248, 113, 113, 0.14);
  --radius: 10px;
}

/* Light theme override: used on report.html body (readability for the actual
   business owner reading their report on a phone, often in bright light). */
body.theme-light {
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --text: #18181b;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --accent: #2451e8;
  --accent-contrast: #ffffff;
  --status-green: #16a34a;
  --status-green-bg: rgba(22, 163, 74, 0.1);
  --status-yellow: #b45309;
  --status-yellow-bg: rgba(180, 83, 9, 0.1);
  --status-red: #dc2626;
  --status-red-bg: rgba(220, 38, 38, 0.1);
}

@font-face {
  font-family: "Geist";
  src: url("/static/vendor/Geist-Variable.woff2") format("woff2-variations"), url("/static/vendor/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  height: 68px;
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 20px;
  height: 20px;
  display: block;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* faint grid + slow-drifting aurora blobs, fixed behind the whole landing page */
body.landing {
  position: relative;
  background-image:
    linear-gradient(rgba(244, 244, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 244, 245, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  overflow-x: clip;
}

body.landing .aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

body.landing .aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

body.landing .aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  top: -12vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(111, 147, 255, 0.55), transparent 70%);
  animation: aurora-drift-1 26s ease-in-out infinite;
}

body.landing .aurora span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  top: 10vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(111, 147, 255, 0.35), transparent 70%);
  animation: aurora-drift-2 32s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 8vw) scale(1.15); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, -6vw) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  body.landing .aurora span {
    animation: none;
  }
}

.hero {
  padding: 96px 0 64px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

body.landing .hero::before {
  content: "";
  position: absolute;
  inset: -35% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(circle at 30% 15%, rgba(111, 147, 255, 0.22), transparent 55%),
    radial-gradient(circle at 75% 30%, rgba(111, 147, 255, 0.12), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 147, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero h1 .word {
  display: inline-block;
}

.hero p.sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 auto 40px;
}

.audit-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(244, 244, 245, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: 480px;
  margin: 0 auto;
}

@media (prefers-reduced-transparency: reduce) {
  .audit-card {
    background: var(--bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* JS-driven reveal: hidden until landing.js animates them in.
   No-JS / reduced-motion fallback below keeps content visible. */
body.landing.js-anim .hero h1 .word,
body.landing.js-anim .hero p.sub,
body.landing.js-anim .hero form.audit-form,
body.landing.js-anim .reveal {
  opacity: 0;
}

body.landing.js-anim .hero h1 .word {
  transform: translateY(36px);
}

body.landing.js-anim .reveal {
  transform: translateY(40px);
}

@media (prefers-reduced-motion: reduce) {
  body.landing.js-anim .hero h1 .word,
  body.landing.js-anim .hero p.sub,
  body.landing.js-anim .hero form.audit-form,
  body.landing.js-anim .reveal {
    opacity: 1;
    transform: none;
  }
}

form.audit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

section.blocks-preview {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section.blocks-preview h2 {
  font-size: 1.6rem;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.bento-cell {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  background: var(--bg-elevated);
}

.bento-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: linear-gradient(135deg, rgba(111, 147, 255, 0.14), rgba(111, 147, 255, 0.02));
  border-color: rgba(111, 147, 255, 0.25);
}

.bento-cell:nth-of-type(3) {
  background: linear-gradient(160deg, rgba(111, 147, 255, 0.1), transparent);
}

.bento-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  margin-bottom: 14px;
}

.bento-featured .bento-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 0;
}

.bento-cell h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.bento-cell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-featured {
    flex-direction: column;
    gap: 8px;
  }
}

section.how {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section.how h2 {
  font-size: 1.6rem;
  margin: 0 0 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .steps::before {
    display: none;
  }
}

section.privacy-note {
  padding: 32px 0 72px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .blocks-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 36px;
  }
}

/* --- pending / loading page --- */

section.pending {
  min-height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.pending-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: pending-spin 1.1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.pending-ring-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 147, 255, 0.55), transparent 70%);
  animation: pending-pulse 1.6s ease-in-out infinite;
}

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

@keyframes pending-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

section.pending h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
}

section.pending p.sub {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 40px;
}

.pending-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.pending-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.pending-steps li .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pending-steps li.active {
  color: var(--text);
}

.pending-steps li.active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 147, 255, 0.18);
  animation: pending-pulse 1.4s ease-in-out infinite;
}

.pending-steps li.done {
  color: var(--text);
}

.pending-steps li.done .step-dot {
  border-color: var(--status-green);
  background: var(--status-green);
}

/* No prefers-reduced-motion override here on purpose: this spinner is a
   functional progress indicator (the only signal that anything is
   happening), not decoration, so it stays animated even with reduced
   motion preferred. */

/* --- report page --- */

.report-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}

.report-header .target {
  color: var(--text-muted);
  font-size: 0.95rem;
  word-break: break-all;
}

.report-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 6px 0 4px;
}

.summary-counts {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.count-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.green {
  background: var(--status-green);
}

.dot.yellow {
  background: var(--status-yellow);
}

.dot.red {
  background: var(--status-red);
}

section.first-impression {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

section.first-impression h2 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
}

.ai-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.ai-points {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-points li {
  color: var(--text);
  font-size: 0.95rem;
}

section.top-issues {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

section.top-issues h2 {
  font-size: 1.3rem;
  margin: 0 0 18px;
}

.issue-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.issue-row:first-of-type {
  border-top: none;
}

.issue-rank {
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
}

.issue-body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.issue-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

section.report-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

section.report-block h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.check-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.check-row:first-of-type {
  border-top: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

.status-pill.green {
  background: var(--status-green-bg);
  color: var(--status-green);
}

.status-pill.yellow {
  background: var(--status-yellow-bg);
  color: var(--status-yellow);
}

.status-pill.red {
  background: var(--status-red-bg);
  color: var(--status-red);
}

.check-body h4 {
  margin: 0 0 3px;
  font-size: 0.95rem;
}

.check-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.check-body p.explain {
  font-style: italic;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.fix-hint {
  margin-top: 8px !important;
  padding: 10px 12px;
  background: var(--status-green-bg);
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 0.88rem !important;
}

.fix-hint strong {
  color: var(--status-green);
}

.subpages-block .subpage-card {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.subpages-block .subpage-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.subpage-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.subpage-head h3 {
  margin: 0;
  font-size: 1rem;
}

.subpage-url {
  color: var(--text-muted);
  font-size: 0.82rem;
  word-break: break-all;
}

.subpage-ok {
  color: var(--status-green);
  font-size: 0.92rem;
  margin: 0;
}

section.upsell {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

section.upsell .upsell-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

section.upsell h2 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

section.upsell p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

section.upsell ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-muted);
}

section.lead-form {
  padding: 40px 0 72px;
}

section.lead-form h2 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

section.lead-form p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

form.lead {
  display: flex;
  gap: 12px;
  max-width: 480px;
  flex-wrap: wrap;
}

form.lead .field {
  flex: 1;
  min-width: 220px;
}

.thank-you {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--status-green-bg);
  color: var(--status-green);
  font-weight: 600;
}

.error-box {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--status-red-bg);
  color: var(--status-red);
  margin: 24px 0;
}
