/* IsItReadyForAI.com - public styles (v2: futuristic SaaS) */

:root {
  /* Core palette */
  --color-bg: #050816;
  --color-bg-2: #0a0f24;
  --color-surface: rgba(15, 23, 42, 0.55);
  --color-surface-solid: #0e1530;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --color-dim: #64748b;

  /* Brand */
  --color-primary: #8b5cf6; /* violet */
  --color-primary-700: #7c3aed;
  --color-cyan: #06b6d4;
  --color-pink: #ec4899;
  --color-accent: #10b981; /* emerald */
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Lines & glow */
  --color-border: rgba(148, 163, 184, 0.14);
  --color-border-strong: rgba(167, 139, 250, 0.28);
  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.35);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.35);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --grad-brand-soft: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(6, 182, 212, 0.18)
  );
  --grad-aurora: linear-gradient(135deg, #ec4899 0%, #8b5cf6 45%, #06b6d4 100%);
  --grad-text: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 100%);
  --grad-mesh:
    radial-gradient(
      60% 60% at 15% 10%,
      rgba(139, 92, 246, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      50% 50% at 85% 0%,
      rgba(6, 182, 212, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      40% 40% at 50% 100%,
      rgba(236, 72, 153, 0.16) 0%,
      transparent 60%
    );

  /* Radius, layout, type */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-display:
    "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}
*::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  position: relative;
}

/* Ambient mesh background that follows the whole page */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background: var(--grad-mesh);
  filter: blur(20px) saturate(120%);
  z-index: -2;
  pointer-events: none;
  animation: mesh-drift 24s ease-in-out infinite alternate;
}
/* Subtle dotted grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    rgba(148, 163, 184, 0.08) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

@keyframes mesh-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-2%, 1%) rotate(0.5deg);
  }
  100% {
    transform: translate(2%, -1%) rotate(-0.5deg);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

a {
  color: #c4b5fd;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #67e8f9;
  text-decoration: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header / Nav (sticky glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 22, 0.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.brand img {
  height: 34px;
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  color: var(--color-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  font-weight: 500;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.nav a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}
.nav a.is-active {
  color: #fff;
  background: transparent;
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav .nav-cta {
  margin-left: 14px;
  padding: 11px 22px;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  box-shadow:
    0 10px 28px -8px rgba(139, 92, 246, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 0 rgba(255, 255, 255, 0.22) inset;
  color: white !important;
}
.nav .nav-cta:hover {
  box-shadow:
    0 16px 38px -10px rgba(139, 92, 246, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 0 rgba(255, 255, 255, 0.28) inset;
}
.nav .nav-cta .nav-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 14px rgba(255, 255, 255, 0.8);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav .nav-cta .nav-cta-dot {
    animation: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow:
    0 8px 24px -8px rgba(139, 92, 246, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px -10px rgba(139, 92, 246, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn:hover::before {
  opacity: 1;
}
.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  box-shadow: none;
}
.btn-secondary::before {
  display: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
  padding: 10px 16px;
}
.btn-ghost::before {
  display: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}
.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* Nav-toggle (mobile) */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.muted {
  color: var(--color-muted);
}
.text-center {
  text-align: center;
}
.section {
  padding: 56px 0;
}
.page-section {
  margin-bottom: 96px;
}
.page-section:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin: 0 0 14px;
}
.section-head p {
  color: var(--color-muted);
  font-size: 1.08rem;
  margin: 0;
}

.lead {
  font-size: 1.18rem;
  color: var(--color-muted);
  max-width: 720px;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.aurora-text {
  background: var(--grad-aurora);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: aurora-shift 8s ease-in-out infinite;
}
@keyframes aurora-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ==========================================================================
   Grid helpers
   ========================================================================== */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   Cards (glass surface)
   ========================================================================== */
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.3),
    rgba(6, 182, 212, 0.2),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

/* ==========================================================================
   Feature cards (bento)
   ========================================================================== */
.feature-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-strong);
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.3);
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}
.feature-card .ic,
.feature-card .ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--color-border-strong);
  margin-bottom: 16px;
  color: #c4b5fd;
}
.feature-card .ficon svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Signal grid (55-factor framework on About)
   ========================================================================== */
.signal-category {
  margin-top: 40px;
}
.signal-category:first-child {
  margin-top: 0;
}
.signal-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.signal-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--grad-brand-soft);
  border: 1px solid var(--color-border-strong);
}
.signal-category-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}
.signal-category-count {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.signal-grid {
  gap: 16px;
}
.signal-card {
  padding: 20px;
}
.signal-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.signal-card p {
  font-size: 0.88rem;
  line-height: 1.5;
}
.signal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--grad-brand-soft);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  margin-bottom: 12px;
}
/* Category accent tints */
.accent-a {
  --accent-1: #8b5cf6;
  --accent-2: #06b6d4;
}
.accent-b {
  --accent-1: #22d3ee;
  --accent-2: #818cf8;
}
.accent-c {
  --accent-1: #a78bfa;
  --accent-2: #f472b6;
}
.accent-d {
  --accent-1: #38bdf8;
  --accent-2: #8b5cf6;
}
.accent-e {
  --accent-1: #f472b6;
  --accent-2: #8b5cf6;
}
.accent-f {
  --accent-1: #fbbf24;
  --accent-2: #f472b6;
}
.accent-g {
  --accent-1: #34d399;
  --accent-2: #22d3ee;
}
.accent-h {
  --accent-1: #818cf8;
  --accent-2: #06b6d4;
}
.accent-i {
  --accent-1: #f59e0b;
  --accent-2: #a78bfa;
}
.signal-category-pill.accent-a,
.signal-category-pill.accent-b,
.signal-category-pill.accent-c,
.signal-category-pill.accent-d,
.signal-category-pill.accent-e,
.signal-category-pill.accent-f,
.signal-category-pill.accent-g,
.signal-category-pill.accent-h,
.signal-category-pill.accent-i {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border-color: color-mix(in srgb, var(--accent-1) 45%, transparent);
}
.signal-category-pill.accent-a::before,
.signal-category-pill.accent-b::before,
.signal-category-pill.accent-c::before,
.signal-category-pill.accent-d::before,
.signal-category-pill.accent-e::before,
.signal-category-pill.accent-f::before,
.signal-category-pill.accent-g::before,
.signal-category-pill.accent-h::before,
.signal-category-pill.accent-i::before {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-1) 65%, transparent);
}
.signal-num.accent-a,
.signal-num.accent-b,
.signal-num.accent-c,
.signal-num.accent-d,
.signal-num.accent-e,
.signal-num.accent-f,
.signal-num.accent-g,
.signal-num.accent-h,
.signal-num.accent-i {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-1) 22%, transparent),
    color-mix(in srgb, var(--accent-2) 18%, transparent)
  );
  border-color: color-mix(in srgb, var(--accent-1) 40%, transparent);
  color: #fff;
}

/* ==========================================================================
   Steps (numbered with connectors)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  box-shadow: var(--glow-violet);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--color-muted);
}

/* ==========================================================================
   Hero (two-column with floating live demo)
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 88px 0 64px;
  position: relative;
}
.hero-grid .hero-copy {
  text-align: left;
}
.hero-grid h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 20px;
  line-height: 1.05;
  font-weight: 700;
}
.hero-grid .sub {
  font-size: 1.18rem;
  color: var(--color-muted);
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-grid .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Centered hero variant: copy on top, form (or other content) directly below. */
.hero-centered {
  position: relative;
  padding: 32px 0 56px;
  text-align: center;
}
.hero-centered .hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-centered h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  margin: 0 0 20px;
  line-height: 1.05;
  font-weight: 700;
}
.hero-centered .sub {
  font-size: 1.18rem;
  color: var(--color-muted);
  margin: 0 auto 28px;
  max-width: 680px;
}
.hero-centered .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero-centered .hero-badges {
  justify-content: center;
}
.hero-centered .hero-form {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}
@media (max-width: 960px) {
  .hero-centered {
    padding: 20px 0 36px;
  }
  .hero-centered .hero-form {
    margin-top: 36px;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-badges .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-muted);
}
.hero-badges .chip svg {
  width: 14px;
  height: 14px;
}

/* Floating orbs inside hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-orb.v {
  width: 320px;
  height: 320px;
  background: #8b5cf6;
  top: -40px;
  left: -80px;
  animation: float-a 14s ease-in-out infinite;
}
.hero-orb.c {
  width: 280px;
  height: 280px;
  background: #06b6d4;
  bottom: -60px;
  right: -60px;
  animation: float-b 18s ease-in-out infinite;
}
@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-25px, 15px);
  }
}

/* ==========================================================================
   Score preview card (homepage hero demo)
   ========================================================================== */
.score-preview {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.5)
  );
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(167, 139, 250, 0.05) inset,
    var(--glow-violet);
  animation: card-float 7s ease-in-out infinite;
}
@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.score-preview .preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 14px;
}
.score-preview .preview-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}
.score-preview .score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 0 8px;
}
.score-preview .score-title {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.score-preview .score-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.score-preview .score-num small {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 600;
  -webkit-text-fill-color: var(--color-muted);
}
.score-rows {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.score-row .score-row-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-text);
}
.score-row .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}
.score-row .bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  position: relative;
  animation: bar-shimmer 2.4s ease-in-out infinite;
}
@keyframes bar-shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}
.preview-note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  color: var(--color-dim);
  text-align: center;
}

/* "What's in your report" feature list (paired with .score-preview). */
.report-preview-grid {
  align-items: center;
  gap: 48px;
}
.report-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.report-includes li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.report-includes .ri-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.22),
    rgba(6, 182, 212, 0.18)
  );
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  box-shadow: 0 6px 18px -10px rgba(139, 92, 246, 0.7);
}
.report-includes .ri-icon svg {
  width: 16px;
  height: 16px;
}
.report-includes h3 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-fg);
}
.report-includes p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 960px) {
  .report-preview-grid {
    gap: 28px;
  }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.form-control::placeholder {
  color: var(--color-dim);
}
.form-control:hover {
  border-color: rgba(167, 139, 250, 0.3);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(5, 8, 22, 0.85);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

/* Honeypot field (kept hidden) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

.field-help {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--color-muted);
}
.field-optional {
  font-weight: 500;
  color: var(--color-dim);
  font-size: 0.82rem;
}

/* Radio cards */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.radio-card {
  position: relative;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(5, 8, 22, 0.5);
  padding: 16px 14px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  overflow: hidden;
}
.radio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.radio-card:hover {
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-1px);
}
.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card .rc-title {
  position: relative;
  font-weight: 600;
  display: block;
  font-size: 0.96rem;
}
.radio-card .rc-desc {
  position: relative;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 4px;
}
.radio-card.is-selected {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px var(--color-primary) inset,
    0 8px 24px -10px rgba(139, 92, 246, 0.5);
}
.radio-card.is-selected::before {
  opacity: 1;
}

/* Live word count */
.word-count {
  font-size: 0.84rem;
  color: var(--color-muted);
  margin-top: 8px;
}
.word-count.over {
  color: var(--color-warning);
  font-weight: 600;
}

/* Selected file name */
.file-name {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 10px;
}

/* Dev / config notice */
.dev-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 18px;
}
.dev-warning code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Form limits chips */
.form-limits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.form-limits li {
  font-size: 0.8rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
}
.form-limits li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--grad-brand);
  margin-right: 8px;
  vertical-align: middle;
}

.submit-note {
  font-size: 0.86rem;
  color: var(--color-muted);
  margin: 12px 0 0;
}

/* Flash + errors */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
}
.flash-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}
.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

.errors {
  color: var(--color-danger);
  margin-bottom: 16px;
}
.errors ul {
  margin: 0;
  padding-left: 18px;
}

/* Score badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--color-border);
}
.score-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.score-badge.ai_ready {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}
.score-badge.needs_improvement {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.score-badge.not_ready {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(6, 182, 212, 0.14)
  );
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(167, 139, 250, 0.15),
    transparent 30%
  );
  animation: spin-slow 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.cta-band p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto 26px;
}

/* ==========================================================================
   Compare table (GEO vs AEO)
   ========================================================================== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.02);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  width: 24%;
}
.compare-table tbody td {
  color: var(--color-muted);
}
.compare-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}
@media (max-width: 720px) {
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
  .compare-table tbody td:first-child {
    width: auto;
  }
}

/* ==========================================================================
   Prose
   ========================================================================== */
.prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.prose h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}
.prose h3 {
  margin-top: 28px;
  font-size: 1.18rem;
}
.prose p,
.prose li {
  color: var(--color-text);
}
.prose ul {
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
}
.prose a {
  color: #c4b5fd;
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover {
  color: #67e8f9;
  text-decoration-color: rgba(103, 232, 249, 0.6);
}

/* ==========================================================================
   AI engine logo strip
   ========================================================================== */
.engine-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}
.engine-strip .engine {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.engine-strip .engine:hover {
  opacity: 1;
  color: var(--color-text);
}
.engine-strip .engine svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Stats / metrics row
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  backdrop-filter: blur(10px);
}
.stat .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .stat-label {
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   Live demo wrapper on home
   ========================================================================== */
.live-demo {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.7),
    rgba(10, 15, 36, 0.5)
  );
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px -40px rgba(139, 92, 246, 0.45);
  overflow: hidden;
}
.live-demo::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.6),
    rgba(6, 182, 212, 0.4),
    transparent 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.live-demo .demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.live-demo .demo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ==========================================================================
   Reveal-on-scroll animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 {
  transition-delay: 0.08s;
}
.reveal.delay-2 {
  transition-delay: 0.16s;
}
.reveal.delay-3 {
  transition-delay: 0.24s;
}
.reveal.delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  body::before,
  .hero-orb,
  .cta-band::before,
  .score-preview,
  .score-row .bar > span {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.7));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  color: var(--color-text);
  padding: 4px 0;
  font-size: 0.94rem;
}
.footer-col a:hover {
  color: #c4b5fd;
}
.footer-brand p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 14px 0 0;
  max-width: 280px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.86rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.footer-bottom a {
  color: var(--color-muted);
}
.footer-bottom a:hover {
  color: #c4b5fd;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }
  .site-header .container {
    position: relative;
  }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(10, 15, 36, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    margin-left: 0;
    padding: 10px 12px;
    width: 100%;
  }
  .nav .btn {
    margin-top: 6px;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 40px;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    gap: 28px;
  }
  .cta-band {
    padding: 40px 24px;
  }
  .live-demo {
    padding: 24px;
  }
  .page-section {
    margin-bottom: 64px;
  }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .grid-4,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .radio-cards {
    grid-template-columns: 1fr;
  }
}

/* Temporary extraction preview */
.preview-meta {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 4px 16px;
  margin: 0 0 18px;
  font-size: 0.9rem;
}
.preview-meta dt {
  font-weight: 600;
  color: var(--color-muted);
}
.preview-meta dd {
  margin: 0;
  color: var(--color-text);
  word-break: break-word;
}
.preview-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ==========================================================================
   Public report (/report/{uuid})
   ========================================================================== */

.report {
  padding: 32px 0 16px;
}

/* 1 + 2. Header summary + score visual */
.report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.report-hero-main {
  flex: 1 1 320px;
}
.report-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}
.report-meta {
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 6px 18px;
  margin: 0;
}
.report-meta div {
  display: contents;
}
.report-meta dt {
  font-weight: 600;
  color: var(--color-muted);
}
.report-meta dd {
  margin: 0;
  color: var(--color-text);
  word-break: break-word;
}

/* Circular overall-score gauge driven by inline --pct (0-100). */
.score-ring {
  --pct: 0;
  --ring: var(--color-primary);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.score-ring.ai_ready {
  --ring: var(--color-accent);
}
.score-ring.needs_improvement {
  --ring: var(--color-warning);
}
.score-ring.not_ready {
  --ring: var(--color-danger);
}
.score-ring-inner {
  width: 168px;
  height: 168px;
  border-radius: 999px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  background:
    radial-gradient(
      closest-side,
      var(--color-surface) 78%,
      transparent 79% 100%
    ),
    conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--color-border) 0);
}
.score-ring-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.score-ring-max {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-muted);
}
.score-ring-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 168px;
}

/* 3. Category scores */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.cat-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}
.cat-name {
  font-weight: 600;
}
.cat-score {
  font-size: 1.5rem;
  font-weight: 800;
}
.cat-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--color-bg);
  overflow: hidden;
}
.cat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
}
.cat-bar-fill.is-high {
  background: var(--color-accent);
}
.cat-bar-fill.is-mid {
  background: var(--color-warning);
}
.cat-bar-fill.is-low {
  background: var(--color-danger);
}

/* 4. Executive summary */
.report-summary {
  margin: 0;
  font-size: 1.05rem;
}

/* 5 + 6 + 7. Strengths / Improvements / Critical issues */
.report-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.list-card {
  margin-bottom: 0;
  border-left: 4px solid var(--color-border);
}
.list-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}
.list-card ul {
  margin: 0;
  padding-left: 18px;
}
.list-card li {
  margin-bottom: 8px;
  color: var(--color-text);
}
.list-strengths {
  border-left-color: var(--color-accent);
}
.list-improve {
  border-left-color: var(--color-warning);
}
.list-critical {
  border-left-color: var(--color-danger);
}

/* 8. Priority fixes */
.fix-list {
  display: grid;
  gap: 16px;
}
.fix-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.fix-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fix-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.fix-card p {
  margin: 6px 0 0;
  color: var(--color-text);
}
.fix-action {
  color: var(--color-muted);
}
.fix-priority {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}
.fix-priority.p-high-priority,
.fix-priority.p-high,
.fix-priority.p-critical {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--color-danger);
  color: var(--color-danger);
}
.fix-priority.p-medium-priority,
.fix-priority.p-medium {
  background: rgba(245, 166, 35, 0.15);
  border-color: var(--color-warning);
  color: var(--color-warning);
}
.fix-priority.p-low-priority,
.fix-priority.p-low {
  background: rgba(25, 195, 125, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 9. Full 55-factor breakdown */
.factor-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.factor-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.factor-group > summary::-webkit-details-marker {
  display: none;
}
.factor-group > summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-muted);
  line-height: 1;
}
.factor-group[open] > summary::after {
  content: "\2212";
}
.fg-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}
.fg-body {
  padding: 0 20px 8px;
}
.factor-row {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.factor-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.factor-name {
  font-weight: 600;
}
.factor-feedback {
  margin: 8px 0 0;
  color: var(--color-text);
}
.factor-meta {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}
.score-pill {
  flex: 0 0 auto;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.score-pill.is-high {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.score-pill.is-mid {
  color: var(--color-warning);
  border-color: var(--color-warning);
}
.score-pill.is-low {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* 10. CTA */
.report-cta {
  background: linear-gradient(
    135deg,
    rgba(79, 124, 255, 0.14),
    rgba(25, 195, 125, 0.12)
  );
  text-align: center;
}
.report-cta h2 {
  margin: 0 0 12px;
}
.report-cta .lead {
  max-width: 680px;
  margin: 0 auto 24px;
}
.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
}

@media (max-width: 860px) {
  .report-hero {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
  .report-meta {
    justify-content: center;
  }
  .score-ring {
    align-self: center;
  }
}

/* ---------- Print-friendly report ---------- */
@media print {
  :root {
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-muted: #444444;
    --color-border: #cccccc;
  }
  body {
    background: #fff;
    color: #111;
  }
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }
  .report {
    padding: 0;
  }
  .card,
  .fix-card,
  .cat-card,
  .factor-group {
    box-shadow: none;
    break-inside: avoid;
  }
  .page-section {
    margin-bottom: 24px;
  }
  /* Reveal every factor group's detail when printed, open or not. */
  .factor-group > summary::after {
    content: "";
  }
  .factor-group .fg-body {
    display: block !important;
  }
  a {
    color: #111;
    text-decoration: none;
  }
}
