/* ============================================
   Site Sorted — Wisprflow-Inspired Design
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Figtree:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #ffffeb;
  --color-text: #1a1a1a;
  --color-accent1: #034f46;
  --color-accent2: #ffa946;
  --color-accent3: #f0d7ff;
  --color-danger: #7f1c34;
  --color-bg-dark: #e4e4d0;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-border: rgba(26,26,26,0.3);
  --alpha-light-50: rgba(255,255,235,0.5);
  --alpha-dark-50: rgba(26,26,26,0.65);
  --alpha-dark-30: rgba(26,26,26,0.3);
  --alpha-light-70: rgba(255,255,235,0.7);
  --alpha-light-90: rgba(255,255,235,0.9);
  --font-heading: 'EB Garamond', Georgia, serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --h1: 7.5rem;
  --h2: 4rem;
  --h3: 3rem;
  --h4: 2rem;
  --h5: 1.25rem;
  --body-large: 1.25rem;
  --body-medium: 1.125rem;
  --body-regular: 1rem;
  --body-small: 0.875rem;
  --body-xsmall: 0.8125rem;
  --section-padding: 5.5rem;
  --section-padding-md: 4rem;
  --section-padding-xl: 7rem;
  --spacer-sm: 1rem;
  --spacer-md: 1.5rem;
  --spacer-lg: 3rem;
  --radius-tiny: 2rem;
  --radius-sm: 2.5rem;
  --radius-reg: 3rem;
  --radius-md: 4rem;
  --radius-lg: 5rem;
  --shadow-card: 0 4px 24px rgba(26,26,26,0.06);
  --shadow-elevated: 0 8px 40px rgba(26,26,26,0.1);
  --transition: 0.3s ease;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.6s ease;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body { font-family: var(--font-body); font-size: var(--body-regular); line-height: 1.6; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { opacity: 0.7; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-family: var(--font-body); font-size: var(--h5); font-weight: 500; line-height: 1.4; }
h1 em, h2 em, h3 em { font-style: italic; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

/* Announcement Bar */
.announcement-bar { background: var(--color-accent1); color: var(--color-bg); text-align: center; padding: 0.75rem 1rem; font-size: var(--body-small); font-weight: 500; }
.announcement-bar a { color: var(--color-bg); font-weight: 600; margin-left: 1rem; }
.announcement-bar a:hover { opacity: 0.8; }

/* Header — Wispr-style floating pill nav */
.site-header { position: sticky; top: 0; z-index: 102; padding: 0.75rem 1.5rem; transition: padding var(--transition); }
.site-header.scrolled { padding: 0.5rem 1.5rem; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.6rem 0.6rem 1.5rem; max-width: 900px; margin: 0 auto; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 99px; box-shadow: 0 2px 20px rgba(26,26,26,0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow var(--transition), background var(--transition); }
.site-header.scrolled .nav-inner { background: rgba(255,255,255,0.92); box-shadow: 0 4px 30px rgba(26,26,26,0.1); }
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo img { height: 20px; width: auto; }
.nav-logo span { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: var(--body-small); font-weight: 500; padding: 0.75rem 0; transition: color var(--transition), opacity var(--transition); }
.nav-links a:hover { opacity: 0.6; }
.nav-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.25rem; background: var(--color-accent3); color: var(--color-text); border-radius: 99px; font-size: var(--body-small); font-weight: 600; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,215,255,0.4); opacity: 1; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 11px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero { padding: var(--section-padding-xl) 0 var(--section-padding); text-align: center; position: relative; overflow: hidden; }
.hero-badge { display: inline-block; padding: 0.4rem 1.2rem; border: 1px solid var(--color-border); color: var(--color-text); border-radius: 99px; font-size: var(--body-xsmall); font-weight: 500; margin-bottom: 2rem; }
.hero h1 { max-width: 900px; margin: 0 auto 1.5rem; }
.hero h1 em { font-style: italic; color: var(--alpha-dark-50); }
.hero-sub { max-width: 600px; margin: 0 auto 2.5rem; font-size: var(--body-large); color: var(--alpha-dark-50); line-height: 1.6; }
.hero-cta-group { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; background: var(--color-accent3); color: var(--color-text); border-radius: 99px; font-size: var(--body-regular); font-weight: 600; transition: transform var(--transition), box-shadow var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); opacity: 1; }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; background: transparent; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 99px; font-size: var(--body-regular); font-weight: 500; transition: background var(--transition), border-color var(--transition); }
.btn-secondary:hover { background: rgba(26,26,26,0.05); opacity: 1; }
.hero-price { font-size: var(--body-small); color: var(--alpha-dark-50); margin-top: 1rem; }

/* Stats Row */
.stats-row { display: flex; justify-content: center; gap: 3rem; padding: 3rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 4rem auto; max-width: 900px; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: var(--h3); font-weight: 400; line-height: 1; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--body-small); color: var(--alpha-dark-50); }

/* Section Shared */
.section { padding: var(--section-padding) 0; }
.section-label { font-size: var(--body-xsmall); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--alpha-dark-50); margin-bottom: 1rem; }
.section-title { max-width: 700px; margin-bottom: 1.5rem; }
.section-subtitle { font-size: var(--body-large); color: var(--alpha-dark-50); max-width: 600px; margin-bottom: 3rem; line-height: 1.6; }
.section-center { text-align: center; }
.section-center .section-title, .section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Steps — compact cards */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.step-card { background: var(--color-white); border-radius: var(--radius-sm); padding: 1.75rem 1.5rem; border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition); }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.steps-dots { display: none; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-text); color: var(--color-bg); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 1rem; }
.step-card h3 { font-size: var(--h5); margin-bottom: 0.6rem; }
.step-card p { font-size: var(--body-small); color: var(--alpha-dark-50); line-height: 1.6; }

/* Templates Grid */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.template-card { background: var(--color-white); border-radius: var(--radius-tiny); padding: 1.75rem; border: 1px solid var(--color-border); transition: transform var(--transition), box-shadow var(--transition); }
.template-card:hover { transform: scale(1.02); box-shadow: var(--shadow-card); }
.template-card h4 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.template-card p { font-size: var(--body-small); color: var(--alpha-dark-50); line-height: 1.5; }

/* Comparison Table */
.comparison-section { background: var(--color-white); border-radius: var(--radius-md); padding: 4rem 3rem; border: 1px solid var(--color-border); }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.comparison-table th, .comparison-table td { text-align: left; padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.comparison-table th { font-family: var(--font-body); font-weight: 600; font-size: var(--body-small); }
.comparison-table th:first-child { width: 35%; }
.highlight { color: var(--color-accent1); font-weight: 600; }
.comparison-table td:nth-child(3) { color: var(--alpha-dark-50); }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.5rem 0; font-family: var(--font-body); font-size: var(--body-medium); font-weight: 500; text-align: left; color: var(--color-text); cursor: pointer; transition: color var(--transition); }
.faq-question:hover { color: var(--alpha-dark-50); }
.faq-icon { font-size: 1.5rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 1.5rem; font-size: var(--body-regular); color: var(--alpha-dark-50); line-height: 1.6; }

/* CTA Section */
.cta-section { text-align: center; padding: var(--section-padding-xl) 0 var(--section-padding); }
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-section p { font-size: var(--body-large); color: var(--alpha-dark-50); max-width: 500px; margin: 0 auto 2rem; }
.cta-price-note { font-size: var(--body-small); color: var(--alpha-dark-50); margin-top: 1.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { font-size: var(--body-small); color: var(--alpha-dark-50); max-width: 250px; line-height: 1.5; margin-top: 1rem; }
.footer-col h5 { font-size: var(--body-xsmall); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; color: var(--alpha-dark-50); }
.footer-col a { display: block; font-size: var(--body-small); margin-bottom: 0.5rem; transition: opacity var(--transition); }
.footer-col a:hover { opacity: 0.5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--color-border); font-size: var(--body-xsmall); color: var(--alpha-dark-50); }

/* Big Footer Logo */
.footer-biglogo { padding: 6rem 0 2rem; text-align: center; overflow: hidden; }
.footer-biglogo-text { font-family: var(--font-heading); font-size: clamp(4rem, 12vw, 12rem); font-weight: 400; line-height: 0.9; color: var(--color-text); letter-spacing: -0.04em; }

/* Marquee */
.marquee-section { padding: 2rem 0; overflow: hidden; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.marquee-label { text-align: center; font-size: var(--body-small); color: var(--alpha-dark-50); margin-bottom: 1.25rem; }
.marquee-wrapper { overflow: hidden; padding: 0.25rem 0; }
.marquee-track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { flex-shrink: 0; font-family: var(--font-body); font-size: var(--body-small); font-weight: 500; color: var(--alpha-dark-50); white-space: nowrap; padding: 0.35rem 1rem; border: 1px solid var(--color-border); border-radius: 99px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-reveal { opacity: 0; animation: fadeUp 0.8s var(--ease-expo) both; }
.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.25s; }
.hero-reveal:nth-child(3) { animation-delay: 0.4s; }
.hero-reveal:nth-child(4) { animation-delay: 0.55s; }
.hero-reveal:nth-child(5) { animation-delay: 0.7s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* Speed Bars */
.speed-compare { display: flex; gap: 1.5rem; margin-top: 2rem; }
.speed-col { flex: 1; }
.speed-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.5rem; }
.speed-header span { font-size: var(--body-small); color: var(--alpha-dark-50); }
.speed-header strong { font-family: var(--font-heading); font-size: var(--h4); }
.speed-bar-track { height: 36px; background: rgba(26,26,26,0.06); border-radius: 0.75rem; overflow: hidden; }
.speed-bar { height: 100%; border-radius: 1rem; width: 0; transition: width 1.2s var(--ease-expo); display: flex; align-items: center; overflow: hidden; }
.speed-bar.keyboard { background: var(--color-border); }
.speed-bar.flow { background: var(--color-accent3); }
.speed-bar.visible.keyboard { width: 20%; }
.speed-bar.visible.flow { width: 100%; }
.speed-bar-text { padding: 0 1rem; font-size: var(--body-xsmall); color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Testimonial Carousel */
.testimonial-section { overflow: hidden; padding: var(--section-padding) 0; }
.testimonial-track { display: flex; gap: 1.5rem; padding-left: 1.25rem; animation: testimonialSlide 60s linear infinite; }
.testimonial-track:hover { animation-play-state: paused; }
@keyframes testimonialSlide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.testimonial-card { flex: 0 0 380px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2rem; transition: transform var(--transition); }
.testimonial-card:hover { transform: scale(1.02); }
.testimonial-card blockquote { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1.5rem; font-style: italic; font-family: var(--font-heading); quotes: none; }
.testimonial-card blockquote::before, .testimonial-card blockquote::after { content: none; }
.testimonial-author { font-size: var(--body-small); font-weight: 500; }
.testimonial-role { font-size: var(--body-xsmall); color: var(--alpha-dark-50); }

/* Tab Section */
.tab-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.tab-btn { padding: 0.65rem 1.25rem; min-height: 44px; border-radius: 99px; border: 1px solid var(--color-border); font-size: var(--body-small); font-weight: 500; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.tab-btn.active { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.tab-btn:hover:not(.active) { background: rgba(26,26,26,0.05); }
.tab-panels { position: relative; min-height: 200px; }
.tab-panel { opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.tab-panel.active { opacity: 1; transform: translateY(0); position: relative; pointer-events: auto; }
.tab-panel { text-align: center; }
.tab-panel p { margin-left: auto; margin-right: auto; }

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-bg); z-index: 101; padding: 7.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 1.5rem; font-family: var(--font-heading); font-weight: 400; min-height: 44px; display: flex; align-items: center; }
.mobile-nav .btn-primary { margin-top: auto; text-align: center; justify-content: center; }

/* Responsive */
@media (max-width: 1024px) {
  :root { --h1: 4.5rem; --h2: 2.75rem; --h3: 2rem; --section-padding: 5rem; }
  .subpage-hero h1 { font-size: 3rem; }
  .subpage-hero h2 { font-size: 2.25rem; }
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .mobile-toggle { display: flex; }
  .nav-logo img { max-height: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .speed-compare { flex-direction: column; }
  .stats-row { flex-wrap: wrap; gap: 2rem; }
}
@media (max-width: 640px) {
  :root { --h1: 3rem; --h2: 2.25rem; --h3: 1.75rem; --h4: 1.5rem; --section-padding: 2.5rem; --section-padding-md: 2rem; --section-padding-xl: 3.5rem; }
  .subpage-hero h1 { font-size: 2.25rem; }
  .subpage-hero h2 { font-size: 1.75rem; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero-cta-group { flex-direction: column; }
  .stats-row { flex-direction: row; flex-wrap: wrap; gap: 0; align-items: center; justify-content: center; margin: 2rem auto; padding: 1.5rem 0; }
  .stats-row .stat { flex: 0 0 50%; padding: 0.75rem 0; }
  .comparison-section { padding: 2rem 1.5rem; }
  .comparison-table th, .comparison-table td { padding: 0.75rem 0.5rem; font-size: var(--body-small); }

  /* Templates → horizontal scroll instead of stacking */
  .templates-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .templates-grid::-webkit-scrollbar { display: none; }
  .template-card { flex: 0 0 80%; scroll-snap-align: start; }

  /* Features → 2-col compact grid */
  .feature-cards-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .feature-card-dark { padding: 1.25rem; }
  .feature-card-dark h3 { font-size: var(--body-regular); }

  /* Case studies → single full-width card on mobile */
  .case-study-grid { display: flex; flex-direction: column; }
  .case-study-grid .case-study-card:nth-child(n+2) { display: none; }
  .case-study-card { width: 100%; }

  /* Footer → 2-col grid instead of 1-col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-biglogo { padding: 3rem 0 1rem; }
  .footer-biglogo-text { font-size: 4rem; }

  /* Tighten vertical gaps between sections */
  .section { padding: var(--section-padding) 0; }
  .section-subtitle { margin-bottom: 2rem; }
  .testimonial-card { flex: 0 0 280px; }
  .ai-buttons { flex-direction: column; }
  .ai-section { padding: 2.5rem 1.5rem; }
  .cta-section { padding: 3rem 0 2.5rem; }
  /* Speed up scrolling elements on mobile */
  .marquee-track { animation-duration: 20s; }
  .testimonial-track { animation-duration: 20s; }
  /* How It Works → horizontal snap carousel */
  .steps-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
  .steps-grid::-webkit-scrollbar { display: none; }
  .step-card { flex: 0 0 85%; scroll-snap-align: center; }
  /* Dot indicators for steps carousel */
  .steps-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
  .steps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); border: none; padding: 0; cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; }
  .steps-dot.active { background: var(--color-text); transform: scale(1.3); }
}

/* ============================================
   POLISH PASS — 20 New Animations & Details
   ============================================ */

/* 1. Footer link arrow slide-in */
.footer-col a { position: relative; padding-left: 0; transition: opacity var(--transition), padding-left var(--transition); }
.footer-col a::before { content: '\2192'; position: absolute; left: -0.5rem; opacity: 0; transform: translateX(-10px); transition: opacity var(--transition), transform var(--transition); font-size: 0.75rem; top: 2px; }
.footer-col a:hover { padding-left: 1rem; opacity: 1; }
.footer-col a:hover::before { opacity: 1; transform: translateX(0); }

/* 2. Button dual-timing hover (transform 0.2s + color 0.3s) */
.btn-primary, .btn-secondary { transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
.btn-secondary:hover { border-color: var(--color-text); }

/* 3. Nav link underline animation */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--color-text); transition: width 0.3s var(--ease-expo); }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after { width: 100%; }

/* 4. Tab active state scale + margin grow */
.tab-btn { transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.3s ease, padding 0.3s ease; }
.tab-btn.active { transform: scale(1.05); padding: 0.7rem 1.5rem; }

/* 5. Template card arrow rotation on hover */
.template-card { position: relative; overflow: hidden; }
.template-card::after { content: '\2197'; position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.25rem; opacity: 0; transform: translate(-5px, 5px); transition: opacity 0.3s ease, transform 0.3s ease; color: var(--alpha-dark-50); }
.template-card:hover::after { opacity: 1; transform: translate(0, 0); }

/* 6. Dark feature cards (Wisprflow-style rounded dark sections) */
.feature-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.feature-card-dark { background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-sm); padding: 1.75rem; position: relative; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.feature-card-dark:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,26,26,0.3); }
.feature-card-dark h3 { font-size: var(--h5); margin-bottom: 0.6rem; color: var(--color-bg); }
.feature-card-dark p { font-size: var(--body-small); color: var(--alpha-light-70); line-height: 1.6; }
.feature-card-dark .feature-icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.feature-card-dark .feature-icon-svg { margin-bottom: 1rem; display: block; color: var(--color-accent3); opacity: 0.8; width: 24px; height: 24px; }

/* 7. Before/after text demo card */
.demo-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2.5rem; margin-top: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.demo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.demo-before { color: var(--alpha-dark-50); font-size: var(--body-small); line-height: 1.7; }
.demo-before .correction { background: rgba(255,169,70,0.15); padding: 0 0.2rem; border-radius: 3px; text-decoration: line-through; text-decoration-color: var(--color-accent2); }
.demo-after { font-size: var(--body-small); line-height: 1.7; }
.demo-label { font-size: var(--body-xsmall); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--alpha-dark-50); margin-bottom: 0.75rem; }
@media (max-width: 640px) { .demo-columns { grid-template-columns: 1fr; } }

/* 8. Platform badges */
.platform-badges { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.platform-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; border: 1px solid var(--color-border); border-radius: 99px; font-size: var(--body-xsmall); font-weight: 500; color: var(--alpha-dark-50); transition: border-color var(--transition), color var(--transition); }
.platform-badge:hover { border-color: var(--color-text); color: var(--color-text); }

/* 9. Case study cards */
.case-study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.case-study-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 2.5rem; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); cursor: pointer; }
.case-study-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: var(--color-accent3); }
.case-study-stat { font-family: var(--font-heading); font-size: var(--h3); color: var(--color-accent1); margin-bottom: 0.5rem; }
.case-study-quote { font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; line-height: 1.5; margin-bottom: 1.5rem; }
.case-study-author { font-size: var(--body-small); font-weight: 500; }
.case-study-role { font-size: var(--body-xsmall); color: var(--alpha-dark-50); }

/* 10. "Not sure?" section with AI buttons */
.ai-section { background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-lg); padding: 4rem 3rem; text-align: center; margin-top: 2rem; }
.ai-section h2 { color: var(--color-bg); font-size: var(--h4); margin-bottom: 1rem; }
.ai-section p { color: var(--alpha-light-70); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.ai-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.ai-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 1px solid rgba(255,255,235,0.3); border-radius: 99px; color: var(--color-bg); font-size: var(--body-small); font-weight: 500; transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease; }
.ai-btn:hover { background: rgba(255,255,235,0.1); border-color: rgba(255,255,235,0.6); transform: translateY(-2px); opacity: 1; }

/* 11. Announcement bar dismiss */
.announcement-bar { position: relative; transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease; max-height: 60px; overflow: hidden; }
.announcement-bar.dismissed { max-height: 0; padding: 0; opacity: 0; }
.announcement-close { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--color-bg); font-size: 1.25rem; cursor: pointer; opacity: 0.6; transition: opacity var(--transition); background: none; border: none; padding: 0.75rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.announcement-close:hover { opacity: 1; }

/* 12. Marquee slower (60s like reference) */
.marquee-track { animation-duration: 60s; }

/* 13. Testimonial card border-glow on hover */
.testimonial-card { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.testimonial-card:hover { border-color: var(--color-accent3); box-shadow: 0 4px 20px rgba(240,215,255,0.2); }

/* 14. Footer social icons */
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 50%; transition: background var(--transition), border-color var(--transition), transform 0.2s ease; font-size: 0.9rem; }
.footer-social a:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); transform: scale(1.1); opacity: 1; }

/* 15. Section gradient dividers */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--color-border), transparent); margin: 0 auto; max-width: 600px; }

/* 16. Step card number pulse on hover */
.step-card:hover .step-number { animation: pulse 0.6s ease; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* 17. Hero badge shimmer */
.hero-badge { position: relative; overflow: hidden; }
.hero-badge::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); animation: shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0% { left: -100%; } 100% { left: 200%; } }

/* 18. Comparison table row hover */
.comparison-table tbody tr { transition: background var(--transition); }
.comparison-table tbody tr:hover { background: rgba(26,26,26,0.02); }

/* 19. Speed bar shimmer when visible */
.speed-bar.visible.flow::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: barShimmer 2s ease-in-out infinite; }
.speed-bar { position: relative; }
@keyframes barShimmer { 0% { transform: translateX(-60px); } 100% { transform: translateX(60px); } }

/* Subpage hero (simpler than homepage) */
.subpage-hero { padding: var(--section-padding-xl) 0 var(--section-padding-md); text-align: center; }
.subpage-hero h1 { max-width: 800px; margin: 0 auto 1.5rem; font-size: 4.5rem; }
.subpage-hero h1 em { font-style: italic; color: var(--alpha-dark-50); }
.subpage-hero h2 { font-size: 3rem; }
.subpage-hero h3 { font-size: 2rem; }
.subpage-hero .hero-sub { max-width: 600px; margin: 0 auto 2.5rem; font-size: var(--body-large); color: var(--alpha-dark-50); line-height: 1.6; }

/* Subpage pricing card */
.pricing-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 3.5rem; max-width: 560px; margin: 0 auto; text-align: center; }
.pricing-card .price { font-family: var(--font-heading); font-size: 5rem; font-weight: 400; line-height: 1; margin-bottom: 0.25rem; }
.pricing-card .price-note { font-size: var(--body-regular); color: var(--alpha-dark-50); margin-bottom: 2rem; }
.pricing-card .includes-list { text-align: left; max-width: 380px; margin: 0 auto 2rem; }
.pricing-card .includes-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; font-size: var(--body-regular); border-bottom: 1px solid rgba(26,26,26,0.08); }
.pricing-card .includes-list li:last-child { border-bottom: none; }
.pricing-card .check { color: var(--color-accent1); font-weight: 600; flex-shrink: 0; }

/* Feature list card (for features page) */
.feature-detail-card { background: var(--color-text); color: var(--color-bg); border-radius: var(--radius-sm); padding: 2.5rem; }
.feature-detail-card h3 { font-size: var(--h4); margin-bottom: 1rem; color: var(--color-bg); }
.feature-detail-card p { font-size: var(--body-regular); color: var(--alpha-light-70); line-height: 1.6; margin-bottom: 1.5rem; }
.feature-detail-card ul { list-style: none; padding: 0; }
.feature-detail-card ul li { font-size: var(--body-small); color: var(--alpha-light-70); padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.feature-detail-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--color-accent3); }

/* 20. CTA section background glow */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(240,215,255,0.2) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 0; }
.cta-section > * { position: relative; z-index: 1; }

/* ============================================
   Smart Form — Inline "Build My Site" Flow
   ============================================ */
.smart-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.smart-form-row {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  align-items: stretch;
}
.smart-form-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: var(--body-regular);
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.smart-form-input:focus {
  border-color: var(--color-accent1);
  box-shadow: 0 0 0 3px rgba(3,79,70,0.1);
}
.smart-form-input::placeholder { color: var(--alpha-dark-30); }
.smart-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-accent3);
  color: var(--color-text);
  border: none;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: var(--body-regular);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.smart-form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.smart-form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.smart-form-submit svg { width: 18px; height: 18px; }
.smart-form-label {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-align: center;
  color: var(--color-text);
  line-height: 1.3;
}
.smart-form-skip {
  font-size: var(--body-small);
  color: var(--alpha-dark-50);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color var(--transition);
}
.smart-form-skip:hover { color: var(--color-text); }
.smart-form-error {
  font-size: var(--body-small);
  color: var(--color-danger);
  text-align: center;
}
.smart-form-success {
  text-align: center;
  padding: 0.5rem 0;
}
.smart-form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.smart-form-success p {
  font-size: var(--body-regular);
  color: var(--alpha-dark-50);
  line-height: 1.6;
}
/* Fade-in for each step */
.smart-form > * {
  animation: smartFormFade 0.35s var(--ease-expo) both;
}
@keyframes smartFormFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Spinner for submit */
.smart-form-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--alpha-dark-30);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .smart-form { max-width: 100%; }
  .smart-form-row { flex-direction: column; }
  .smart-form-submit { width: 100%; justify-content: center; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
