/* ============================================================
   Precision AEO — Instrument Theme — index.css
   ============================================================
   1. Reset & base
   2. Header
   3. Hero section + grid overlay + glows
   4. Form container + inputs + button
   5. Stat strip
   6. Loading state
   7. Results: header, score display, analysis details,
      categories, findings, recommendations
   8. Lead capture form
   9. Benefits section
   10. Trust section
   11. FAQ section
   12. GPT Spotlight section
   13. AEO Get Smart section
   14. CTA section
   15. Footer
   16. Responsive breakpoints (960px, 768px, 480px)
   17. Focus / accessibility
   18. Animations + reduced-motion override
   ============================================================ */

/* ----------------------------------------------------------
   1. Reset & base
   ---------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Utility: hidden class used by HTML and toggled by JS */
.hidden {
  display: none !important;
}

body {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------------------------------------------------
   2. Header
   ---------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(8, 15, 30, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--accent-border);
  padding: 0.875rem 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.branding a {
  display: flex;
  align-items: center;
}

.branding img {
  height: 28px;
  width: auto;
}

.branding span {
  font-size: 0.675rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

header nav a.how-link {
  font-weight: 700;
}

/* ----------------------------------------------------------
   3. Hero section + grid overlay + glows
   ---------------------------------------------------------- */
#main-content {
  margin-top: 3.5rem;
}

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -160px;
  right: -120px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.highlight-text {
  color: var(--accent);
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-content .subheadline {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.675rem;
  color: var(--text-2);
  background: var(--accent-dim-2);
  border: 1px solid var(--accent-border);
  padding: 5px 13px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

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

/* ----------------------------------------------------------
   4. Form container + inputs + button
   ---------------------------------------------------------- */
.form-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  overflow: hidden;
}

.form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #3B82F6 50%, transparent 100%);
  opacity: 0.6;
}

.form-container h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-align: center;
}

.form-subtitle {
  color: var(--text-3);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-form input {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--display);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form input::placeholder {
  color: var(--text-3);
}

.hero-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
  background: rgba(59, 130, 246, 0.04);
}

.hero-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9375rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--display);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.hero-form button:hover:not(:disabled) {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.hero-form button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.hero-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Inline button spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.url-preview {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
  font-style: italic;
}

/* ----------------------------------------------------------
   5. Stat strip
   ---------------------------------------------------------- */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 0.75rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   6. Loading state
   ---------------------------------------------------------- */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: var(--bg);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  padding: 2rem;
}

.loading.active {
  display: flex;
}

.loading h3 {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.loading p {
  color: var(--text-2);
  max-width: 480px;
}

.analysis-progress {
  width: 100%;
  max-width: 400px;
  margin-top: 1.25rem;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.spinner {
  border: 3px solid var(--surface);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

body.is-analyzing {
  overflow: hidden;
}

/* ----------------------------------------------------------
   7. Results
   ---------------------------------------------------------- */
.results {
  padding: 60px 20px;
  background: var(--bg);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.results-header h2 {
  color: var(--text);
  font-weight: 700;
}

.score-display {
  text-align: center;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.score-display h2 {
  color: var(--text);
}

.score-display p {
  color: var(--text-2);
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.score-circle #score-number,
.score-circle span {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 500;
}

.score-excellent {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 0 48px rgba(16, 185, 129, 0.35);
}

.score-good {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.35);
}

.score-fair {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 48px rgba(245, 158, 11, 0.35);
}

.score-poor {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 0 48px rgba(239, 68, 68, 0.35);
}

.score-critical {
  background: linear-gradient(135deg, #7C3AED, #EF4444);
  box-shadow: 0 0 48px rgba(239, 68, 68, 0.35);
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.4s ease-out both;
}

.category:nth-child(2) { animation-delay: 0.05s; }
.category:nth-child(3) { animation-delay: 0.1s; }
.category:nth-child(4) { animation-delay: 0.15s; }
.category:nth-child(5) { animation-delay: 0.2s; }
.category:nth-child(6) { animation-delay: 0.25s; }

.category:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.category h3 {
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
}

.category-score {
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mono);
}

.findings {
  margin-top: 14px;
}

.finding-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  padding: 6px 0;
  color: var(--text-2);
}

.finding-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.finding-good {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.finding-warning {
  background: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.finding-poor {
  background: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.recommendations {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.recommendations h3 {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.15rem;
  font-weight: 700;
}

.recommendations ul {
  color: var(--text-2);
  padding-left: 20px;
}

.recommendations li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.analysis-details {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px auto;
  text-align: center;
  max-width: 1200px;
}

.analysis-details h4 {
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.check-item {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

.check-item.good {
  background: var(--accent-dim);
  border-color: var(--accent-border-2);
  color: var(--text);
}

body.results .hero,
body.results #features-section,
body.results .benefits,
body.results .trust,
body.results .faq,
body.results .cta,
body.results #aeo-get-smart {
  display: none;
}

body.results header nav a.how-link {
  display: none;
}

/* ----------------------------------------------------------
   8. Lead capture form
   ---------------------------------------------------------- */
.lead-capture {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.lead-capture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #3B82F6 50%, transparent 100%);
  opacity: 0.4;
}

.lead-capture h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.lead-capture p {
  color: var(--text-2);
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: center;
  font-size: 0.95rem;
}

.lead-form {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lead-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.lead-form label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-family: var(--display);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: var(--text-3);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
  background: rgba(59, 130, 246, 0.04);
}

.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

.lead-form select option {
  background: var(--surface);
  color: var(--text);
}

.lead-form textarea {
  min-height: 110px;
  resize: vertical;
  grid-column: 1 / -1;
}

.lead-form button {
  grid-column: 1 / -1;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--display);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
}

.lead-form button:hover:not(:disabled) {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.lead-form button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.lead-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------------------------
   9. Benefits section
   ---------------------------------------------------------- */
.benefits {
  padding: 5rem 0;
  border-top: 1px solid var(--accent-border);
}

.section-label-mono {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
}

.section-label-mono::before,
.section-label-mono::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.benefits h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-item {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.benefit-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.benefit-item p {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------
   10. Trust section
   ---------------------------------------------------------- */
.trust {
  padding: 4rem 0;
  border-top: 1px solid var(--accent-border);
}

.trust h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: center;
}

.trust p {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: 1rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.trust blockquote {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-2);
  margin: 2rem auto;
  max-width: 720px;
  position: relative;
  border: 1px solid var(--accent-border);
  font-size: 1.05rem;
  line-height: 1.65;
}

.trust blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 20px;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.35;
  font-style: normal;
}

.trust blockquote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------
   11. FAQ section
   ---------------------------------------------------------- */
.faq {
  padding: 4rem 0;
  border-top: 1px solid var(--accent-border);
}

.faq h2 {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: var(--text);
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--accent-border);
}

.faq-toggle {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  font-family: var(--display);
  transition: background 0.2s;
}

.faq-toggle:hover {
  background: var(--accent-dim-2);
}

.faq-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-toggle .toggle-icon {
  font-size: 1.25rem;
  transition: transform 0.3s;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding: 0.75rem 1.5rem 1.5rem;
}

.faq-content p {
  color: var(--text-2);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------
   12. GPT Spotlight section
   ---------------------------------------------------------- */
#precision-aeo-gpt {
  padding: 5rem 0;
  border-top: 1px solid var(--accent-border);
}

.spotlight-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3B82F6, transparent);
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.spotlight-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.25);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0.05);
  }
}

.spotlight-card h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.spotlight-card p {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.spotlight-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.875rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--display);
  display: inline-block;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.spotlight-btn:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.spotlight-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* ----------------------------------------------------------
   13. AEO Get Smart section
   ---------------------------------------------------------- */
#aeo-get-smart {
  padding: 4rem 0;
  border-top: 1px solid var(--accent-border);
}

#aeo-get-smart h2 {
  text-align: center;
  margin: 0 0 0.75rem 0;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
}

#aeo-get-smart .section-subtitle {
  text-align: center;
  color: var(--text-2);
  font-size: 1rem;
  margin: 0 0 2.5rem 0;
  line-height: 1.5;
}

.smart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.smart-item {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.smart-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.smart-item h3 {
  margin: 0.25rem 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.smart-item p {
  color: var(--text-2);
  margin: 0 0 1.5rem 0;
  line-height: 1.55;
  font-size: 0.9375rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border-2);
  text-decoration: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
  font-family: var(--display);
}

.btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.btn::after {
  content: '\2192';
  opacity: 0.7;
}

/* ----------------------------------------------------------
   14. CTA section
   ---------------------------------------------------------- */
.cta {
  padding: 5rem 0;
  border-top: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta h2 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.125rem;
  color: var(--text-2);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: block;
  margin: 0 auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--display);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  background: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* ----------------------------------------------------------
   15. Footer
   ---------------------------------------------------------- */
footer {
  background: #04080F;
  border-top: 1px solid var(--accent-border);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer,
footer a {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

footer a {
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text-2);
}

.footer-links a {
  margin: 0 0.75rem;
}

/* ----------------------------------------------------------
   16. Responsive breakpoints
   ---------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .trust-pills {
    justify-content: center;
  }

  .form-container {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subheadline {
    font-size: 1rem;
  }

  .benefit-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .smart-grid {
    grid-template-columns: 1fr;
  }

  .benefits h2,
  .trust h2,
  .faq h2,
  #aeo-get-smart h2 {
    font-size: 1.75rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .spotlight-card {
    padding: 2.5rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .results-header,
  .score-display,
  .categories,
  .recommendations,
  .lead-capture,
  .analysis-details {
    max-width: 100%;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .stat-item {
    border-right: none;
    flex: 0 0 calc(50% - 0.375rem);
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .benefits h2,
  .trust h2,
  .faq h2,
  #aeo-get-smart h2 {
    font-size: 1.5rem;
  }

  .cta h2 {
    font-size: 1.75rem;
  }

  .form-container {
    padding: 1.5rem 1.25rem;
  }

  .trust-pill {
    font-size: 0.6rem;
    padding: 4px 10px;
  }

  /* Ensure 44px min tap targets on mobile */
  .hero-form button,
  .cta-button,
  .lead-form button,
  .btn,
  .btn-secondary,
  .faq-toggle {
    min-height: 44px;
  }

  .footer-links a {
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ----------------------------------------------------------
   17. Focus / accessibility
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

.info-icon {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--accent);
  position: relative;
}

.info-icon:hover::after,
.info-icon:focus::after,
.info-icon.tooltip-open::after {
  content: attr(data-description);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 140%;
  background-color: rgba(0, 0, 0, 0.92);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  min-width: 200px;
  max-width: min(250px, 90vw);
  z-index: 1000;
  white-space: normal;
  border: 1px solid var(--accent-border);
  pointer-events: none;
}

.info-icon:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   18. Animations + reduced-motion override
   ---------------------------------------------------------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-content {
  animation: heroFadeUp 0.7s ease-out;
}

.form-container {
  animation: heroFadeUp 0.7s ease-out 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   Field validation states (lead form + grader form)
   ---------------------------------------------------------- */
.form-group input.field-error,
.form-group select.field-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input.field-valid,
.form-group select.field-valid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-error-msg {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  display: block;
}
