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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ========================================
   2. Custom Properties
   ======================================== */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent-primary: #e85d04;
  --accent-hover: #f97316;
  --border-subtle: #333333;
}

/* ========================================
   3. Base Typography
   ======================================== */
h1, h2, h3, h4 {
  line-height: 1.2;
}

/* ========================================
   4. Container
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
}

/* ========================================
   5. Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  transition: background 0.3s ease;
}

.header--scrolled {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  text-decoration: none;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--accent-primary);
}

.header__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.header__mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
}

.header__mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header__mobile-menu .nav-link {
  font-size: 18px;
  padding: 8px 0;
}

.header__mobile-menu .btn-primary {
  width: 100%;
  max-width: 300px;
  text-align: center;
  margin-top: 8px;
}

/* ========================================
   6. Buttons
   ======================================== */
.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #0d0d0d;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 20px;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid #555555;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #888888;
}

.btn-google {
  background: #ffffff;
  color: #333333;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-google:hover {
  background: #f0f0f0;
}

.btn-google svg {
  flex-shrink: 0;
}

.btn-accent {
  background: var(--accent-primary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

/* ========================================
   7. Input Fields
   ======================================== */
.input-field {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s ease;
}

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

.input-field:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ========================================
   8. Section Utilities
   ======================================== */
.section-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}

.section-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

/* ========================================
   9. Hero Section
   ======================================== */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero__headline em {
  font-style: italic;
  color: var(--accent-primary);
}

.hero__subheadline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 480px;
}

.hero__auth {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.hero__email-btn {
  width: 100%;
}

.hero__divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.hero__divider-text {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__legal {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 400px;
}

.hero__legal a {
  text-decoration: underline;
  transition: color 0.2s ease;
}

.hero__legal a:hover {
  color: var(--text-secondary);
}

/* Hero Demo Carousel */
.hero__right {
  display: none;
}

.hero__demo {
  width: 100%;
}

/* Tab Bar */
.demo__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.demo__tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo__tab:hover {
  color: var(--text-secondary);
}

.demo__tab--active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Demo Card */
.demo__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  min-height: 380px;
  max-height: 520px;
  position: relative;
  overflow-y: auto;
}

.demo__conversation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo__conversation[hidden] {
  display: none;
}

/* Messages */
.demo__message {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.demo__message--user {
  align-self: flex-end;
  max-width: 85%;
}

.demo__message--user p {
  background: var(--bg-tertiary);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 18px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}

.demo__message--ziggy {
  display: flex;
  gap: 10px;
  max-width: 90%;
}

.demo__ziggy-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
}

.demo__message--ziggy p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 14px 18px;
}

/* Typing Indicator */
.demo__message--typing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo__typing {
  display: flex;
  gap: 6px;
  padding: 12px 18px;
}

.demo__typing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: typing-pulse 1.4s ease-in-out infinite;
}

.demo__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.demo__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-pulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Website pane — replaces demo__card for this tab */
.demo__website-pane {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  max-height: 520px;
}

.demo__website-pane[hidden] {
  display: none;
}

/* Large browser preview */
.demo__website-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.demo__browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #1a1a1a;
  border-bottom: 1px solid var(--border-subtle);
}

.demo__browser-dots {
  display: flex;
  gap: 6px;
}

.demo__browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3a3a;
}

.demo__browser-url {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 6px 14px;
  border-radius: 6px;
  text-align: center;
}

.demo__browser-content {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Mini site elements */
.mini-site {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.mini-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.mini-logo {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
}

.mini-nav-links {
  font-size: 11px;
  color: #666;
}

.mini-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  background: #f97316;
  text-align: center;
  transition: background 0.6s ease;
}

.mini-hero-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.mini-hero-subtext {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mini-services {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
}

.mini-service-item {
  flex: 1;
  height: 40px;
  background: #f3f4f6;
  border-radius: 6px;
}

/* Skeleton states */
.skeleton.mini-nav { background: #e5e5e5 !important; }
.skeleton.mini-hero { background: #d1d5db !important; }
.skeleton.mini-services { background: #e5e5e5 !important; }
.skeleton * { visibility: hidden; }

/* Website chat — stacked bubbles with divider */
.demo__website-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: 16px;
}

.demo__website-chat .demo__message--user p {
  font-size: 14px;
  padding: 10px 14px;
}

.demo__website-chat .demo__message--ziggy p {
  font-size: 14px;
  padding: 10px 14px;
}

/* ========================================
   10. Timeline Section
   ======================================== */
.timeline {
  padding: 60px 0;
}

.timeline .section-headline {
  margin-bottom: 48px;
}

.timeline__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.timeline__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  min-width: 260px;
  flex: 1;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline__label {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.timeline__icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.timeline__text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ========================================
   11. Capabilities Section
   ======================================== */
.capabilities {
  padding: 60px 0;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.capabilities__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capabilities__card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.capabilities__card--featured {
  grid-column: 1 / -1;
  border: 2px solid var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(232, 93, 4, 0.04) 100%);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.capabilities__card--featured .capabilities__icon-wrap {
  width: 64px;
  height: 64px;
}

.capabilities__featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capabilities__icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(232, 93, 4, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.capabilities__title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 16px;
}

.capabilities__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

/* ========================================
   12. Social Proof Section
   ======================================== */
.social-proof {
  padding: 60px 0;
}

.social-proof__stat {
  text-align: center;
  font-size: 20px;
  color: var(--text-secondary);
}

.social-proof__stat strong {
  color: var(--text-primary);
}

.social-proof__stat em {
  font-style: italic;
  color: var(--text-primary);
}

.social-proof__testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.testimonial {
  max-width: 480px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.testimonial__decorative-quote {
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 56px;
  line-height: 1;
  color: var(--accent-primary);
  opacity: 0.18;
  font-family: 'Playfair Display', serif;
  pointer-events: none;
}

.testimonial__quote {
  font-size: 17px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.testimonial__author {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial__name {
  font-size: 15px;
  color: var(--accent-primary);
  font-weight: 600;
}

.testimonial__business {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   13. Pricing Section
   ======================================== */
.pricing {
  padding: 60px 0;
}

.pricing .section-headline {
  margin-bottom: 48px;
}

.pricing__cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.pricing__card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  max-width: 360px;
  width: 100%;
  position: relative;
}

.pricing__card--featured {
  border: 2px solid var(--accent-primary);
}

.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pricing__tier {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing__price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

.pricing__price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing__features {
  margin-top: 24px;
}

.pricing__features li {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing__features li:last-child {
  border-bottom: none;
}

.pricing__features li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing__feature--inherited {
  opacity: 0.5;
}

.pricing__feature--inherited::before {
  color: var(--text-muted) !important;
}

.pricing__feature--new::before {
  color: var(--accent-primary);
}

.pricing__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-left: 6px;
  border-radius: 50%;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 10px;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: help;
  position: relative;
  line-height: 1;
}

.pricing__info-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.pricing__info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-style: normal;
  font-family: var(--font-sans, -apple-system, sans-serif);
  color: var(--text-secondary);
  width: 200px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pricing__info-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

.pricing__cta {
  width: 100%;
  margin-top: 32px;
}

.pricing__note {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ========================================
   14. FAQ Section
   ======================================== */
.faq {
  padding: 60px 0;
}

.faq .section-headline {
  margin-bottom: 48px;
}

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: 16px;
}

.faq__question:hover {
  color: var(--accent-primary);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   15. Footer
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__separator {
  color: var(--text-muted);
  user-select: none;
}

/* ========================================
   16. Animations
   ======================================== */
/* typing-pulse defined inline with demo carousel styles above */

/* ========================================
   17. Media Queries
   ======================================== */

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section-headline {
    font-size: 36px;
  }

  .section-subheadline {
    font-size: 20px;
  }

  .header__links {
    display: flex;
  }

  .header__hamburger {
    display: none;
  }

  .header__mobile-menu {
    display: none !important;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .hero__headline {
    font-size: 44px;
  }

  .hero__subheadline {
    font-size: 20px;
  }

  .timeline {
    padding: 100px 0;
  }

  .timeline__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .timeline__card {
    min-width: unset;
  }

  .capabilities {
    padding: 100px 0;
  }

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

  .social-proof {
    padding: 80px 0;
  }

  .social-proof__testimonials {
    flex-direction: row;
    gap: 40px;
    justify-content: center;
  }

  .pricing {
    padding: 100px 0;
  }

  .pricing__cards {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
  }

  .pricing__card {
    flex: 1 1 200px;
    max-width: 340px;
  }

  .faq {
    padding: 100px 0;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .hero__left {
    flex: 0 0 60%;
  }

  .hero__right {
    display: block;
    flex: 1;
  }

  .hero__headline {
    font-size: 52px;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 100px;
  }

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

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

  .capabilities__card--featured {
    text-align: center;
  }

  .capabilities__card--featured .capabilities__icon-wrap {
    margin: 0 auto;
  }

}

/* Wide: 1200px+ */
@media (min-width: 1200px) {
  .container {
    padding: 0;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ========================================
   18. Auth Form Wiring (Production)
   ======================================== */

/* Form layout — matches existing hero__auth flex column */
.hero__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__form[hidden] {
  display: none;
}

/* Email step (step 1 — matches hero__form spacing) */
#auth-step-email {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#auth-step-email[hidden] {
  display: none;
}

/* Email display (step 2 — replaces email input) */
.hero__email-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.hero__email-display span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__change-link {
  font-size: 13px;
  color: var(--accent-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.hero__change-link:hover {
  color: var(--accent-hover);
}

/* Forgot password link */
.hero__forgot-link {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__forgot-link:hover {
  color: var(--text-secondary);
}

.hero__forgot-link[hidden] {
  display: none;
}

/* Forgot password link (inline in toggle row) */
.hero__forgot-link-inline {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__forgot-link-inline:hover {
  color: var(--text-secondary);
}

.hero__toggle-separator {
  color: var(--text-muted);
  margin: 0 8px;
}

/* Auth mode toggle */
.hero__auth-toggle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

.hero__auth-toggle[hidden] {
  display: none;
}

.hero__auth-toggle a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hero__auth-toggle a:hover {
  color: var(--accent-hover);
}

/* Error/success alert messages */
.hero__alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero__alert--error {
  background-color: rgba(232, 93, 4, 0.1);
  color: #ff8c4a;
  border: 1px solid rgba(232, 93, 4, 0.25);
}

.hero__alert--success {
  background-color: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Screen reader only — visually hidden but announced */
.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;
}
