/* === Site Sorted — wispr.ai-inspired design === */

:root {
  --color-bg: #ffffeb;
  --color-surface: #ffffff;
  --color-primary: #034f46;
  --color-accent: #f0d7ff;
  --color-glow: #ffa946;
  --color-text: #1a1a1a;
  --color-text-muted: #1a1a1a80;
  --color-text-light: #ffffeb;
  --color-border: #1a1a1a1a;
  --color-lumen-dark: #e4e4d0;
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --radius-section: 3rem;
  --radius-card: 1.5rem;
  --radius-button: 50px;
  --spacing-section: clamp(4rem, 8vw, 8rem);
  --spacing-section-sm: clamp(3rem, 6vw, 6rem);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 235, 0.92);
  box-shadow: 0 1px 0 var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: var(--color-border);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-cta:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
}

.mobile-nav .btn-primary {
  margin-top: 1rem;
}

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.announcement-bar a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-close {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
  margin-left: 0.5rem;
}

/* === HERO === */
.hero {
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: var(--spacing-section);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--color-accent);
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  text-wrap: pretty;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(240, 215, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(26, 26, 26, 0.04);
}

.hero-price {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.platform-badge {
  padding: 0.35rem 0.85rem;
  background: rgba(26, 26, 26, 0.04);
  border-radius: var(--radius-button);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* === STATS === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-section);
}

.stat { text-align: center; }

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* === MARQUEE === */
.marquee-section {
  padding: 2rem 0;
  overflow: hidden;
  margin-bottom: var(--spacing-section-sm);
}

.marquee-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.marquee-wrapper { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0.5;
}

/* === SECTIONS === */
.section {
  padding: var(--spacing-section) 0;
}

.section-center { text-align: center; }

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-title em { font-style: italic; }

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
  text-wrap: pretty;
}

/* === DARK SECTIONS === */
.section-dark {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--radius-section);
  margin: 0 1rem;
  padding: var(--spacing-section) clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--spacing-section);
}

.section-dark .section-label { color: var(--color-accent); }
.section-dark .section-subtitle { color: rgba(255, 255, 235, 0.7); }
.section-dark .section-title { color: var(--color-text-light); }

/* === HOW IT WORKS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: left;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === SPEED COMPARISON === */
.speed-section {
  padding: var(--spacing-section) 0;
  text-align: center;
}

.speed-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.speed-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: var(--radius-button);
  border: 1px solid var(--color-border);
}

.speed-bar.highlight {
  background: var(--color-accent);
  border-color: transparent;
}

.speed-bar-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.speed-bar-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
}

/* === SERVICES (Made For You — dark section with tabs) === */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.services-tabs button {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 235, 0.1);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 235, 0.15);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.services-tabs button.active,
.services-tabs button:hover {
  background: var(--color-accent);
  color: var(--color-text);
  border-color: transparent;
}

.service-panel {
  display: none;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.service-panel.active { display: block; }

.service-panel h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.service-panel h3 em { font-style: italic; }

.service-panel p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 235, 0.8);
  margin-bottom: 1.5rem;
}

.service-panel .btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text);
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === TESTIMONIALS === */
.testimonials-section {
  background-color: var(--color-primary);
  border-radius: var(--radius-section);
  margin: 0 1rem;
  padding: var(--spacing-section) 0;
  overflow: hidden;
  margin-bottom: var(--spacing-section);
}

.testimonials-header {
  text-align: center;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--color-text-light);
}

.testimonials-track-wrapper {
  overflow: hidden;
  max-width: 100vw;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.5rem;
  animation: testimonialSlide 40s linear infinite;
  width: max-content;
}

@keyframes testimonialSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  flex-shrink: 0;
  width: 340px;
  padding: 2rem;
  background: rgba(255, 255, 235, 0.08);
  border: 1px solid rgba(255, 255, 235, 0.1);
  border-radius: var(--radius-card);
  color: var(--color-text-light);
}

.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 235, 0.9);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 235, 0.5);
  margin-top: 0.15rem;
}

/* === CASE STUDY CARDS === */
.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

.case-card {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  padding: 2rem;
  color: var(--color-text);
  transition: transform 0.3s ease;
}

.case-card:hover { transform: translateY(-4px); }

.case-stat {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.case-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.case-author { font-weight: 600; font-size: 0.9rem; }
.case-role { font-size: 0.8rem; color: var(--color-text-muted); }

/* === PRICING COMPARISON === */
.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  min-width: 500px;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.pricing-table td:nth-child(2) {
  font-weight: 600;
  color: var(--color-primary);
}

/* === FAQ === */
.faq-list {
  max-width: 680px;
  margin: 3rem auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

/* === AI VALIDATION === */
.ai-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ai-btn {
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ai-btn:hover {
  background-color: rgba(26, 26, 26, 0.04);
  transform: translateY(-2px);
}

/* === BOTTOM CTA === */
.bottom-cta {
  text-align: center;
  padding: var(--spacing-section) 0;
}

.bottom-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.bottom-cta h2 em { font-style: italic; }

.bottom-cta p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.bottom-cta .cta-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand .nav-logo { margin-bottom: 0.5rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--color-text); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-reveal {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-reveal:nth-child(2) { animation-delay: 0.1s; }
.hero-reveal:nth-child(3) { animation-delay: 0.2s; }
.hero-reveal:nth-child(4) { animation-delay: 0.3s; }
.hero-reveal:nth-child(5) { animation-delay: 0.4s; }
.hero-reveal:nth-child(6) { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .mobile-toggle { display: flex; }
  .nav-logo img { height: 28px; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .case-studies { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --radius-section: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-cta-group { flex-direction: column; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section-dark { margin: 0 0.5rem; padding: 3rem 1.5rem; }
  .testimonials-section { margin: 0 0.5rem; }
  .testimonial-card { width: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .pricing-table { font-size: 0.85rem; }
  .pricing-table th, .pricing-table td { padding: 0.75rem 1rem; }
  .speed-bars { flex-direction: column; }
}

/* Build identity tag for EAG pipeline */
meta[name="eag-build"] { display: none; }
