/* ==============================================
   Overachiever Public Pages Design System
   Matches SPA dark theme with neon green accent
   ============================================== */

/* Design Tokens */
:root {
  --bg: #09090B;
  --surface: #111114;
  --surface-hover: #19191D;
  --surface-elevated: #222228;
  --border: #27272D;
  --border-subtle: #1C1C22;
  --accent: #D4FF00;
  --accent-dim: #6B8000;
  --accent-muted: rgba(212, 255, 0, 0.08);
  --accent-glow: rgba(212, 255, 0, 0.25);
  --text: #EEEEE8;
  --text-secondary: #85858F;
  --text-muted: #52525A;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

a {
  color: var(--text);
  text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */

.public-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #09090B;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s;
}

.nav-cta-btn:hover {
  box-shadow: 0 0 20px var(--accent-glow);
  color: #09090B;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

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

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

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

.nav-mobile-link {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.nav-mobile-cta {
  display: inline-block;
  background: var(--accent);
  color: #09090B;
  font-weight: 600;
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

/* ============================================
   Section Titles
   ============================================ */

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 64px;
  text-align: center;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #09090B;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.hero-cta:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  color: #09090B;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #09090B;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Features Grid
   ============================================ */

.features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ============================================
   Social Proof
   ============================================ */

.social-proof {
  padding: 64px 24px;
  text-align: center;
}

.proof-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proof-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Template Showcase
   ============================================ */

.template-showcase {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.showcase-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.05);
}

.showcase-category {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.showcase-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.showcase-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.showcase-tone {
  color: var(--accent-dim);
  font-weight: 500;
}

.showcase-more {
  text-align: center;
  margin-top: 32px;
}

/* ============================================
   Secondary Button
   ============================================ */

.btn-secondary {
  display: inline-block;
  background: var(--surface-elevated);
  color: var(--text);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
}

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

/* ============================================
   Full-width CTA Block
   ============================================ */

.cta-block {
  background: var(--accent-muted);
  border-top: 1px solid rgba(212, 255, 0, 0.1);
  border-bottom: 1px solid rgba(212, 255, 0, 0.1);
  padding: 80px 24px;
  text-align: center;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */

.public-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Pricing Page
   ============================================ */

.pricing-page {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 12px;
}

.trial-banner {
  text-align: center;
  background: var(--accent-muted);
  border: 1px solid rgba(212, 255, 0, 0.15);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trial-badge {
  background: var(--accent);
  color: #09090B;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.trial-banner p {
  color: var(--text);
  font-size: 0.95rem;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(212, 255, 0, 0.1);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #09090B;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 16px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.08em;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tier-price {
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

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

.tier-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  padding: 0;
  flex: 1;
  margin-bottom: 24px;
}

.tier-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-included .check {
  color: var(--accent);
  font-weight: bold;
}

.feature-excluded {
  color: var(--text-muted);
}

.feature-excluded .cross {
  color: var(--text-muted);
}

.tier-cta {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.tier-cta-free {
  background: var(--surface-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.tier-cta-free:hover {
  background: var(--surface-hover);
}

.tier-cta-recommended {
  background: var(--accent);
  color: #09090B;
}

.tier-cta-recommended:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

.tier-cta-pro {
  background: var(--surface-elevated);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.tier-cta-pro:hover {
  background: rgba(212, 255, 0, 0.08);
}

/* FAQ */
.pricing-faq {
  max-width: 720px;
  margin: 0 auto 64px;
}

.faq-list {
  margin-top: 32px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  padding: 20px 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Template Detail Page
   ============================================ */

.template-detail-page {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.template-hero {
  text-align: center;
  margin-bottom: 48px;
}

.template-category-badge {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.template-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.template-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px;
}

.template-meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.template-meta-item {
  font-size: 0.9rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--accent);
  font-weight: 500;
}

/* Sample Messages */
.template-samples {
  margin-bottom: 48px;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.sample-messages-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sample-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.sample-message p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.samples-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
}

/* Template CTA */
.template-cta-section {
  margin-bottom: 48px;
}

.template-cta-card {
  background: var(--accent-muted);
  border: 1px solid rgba(212, 255, 0, 0.15);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.template-cta-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.template-cta-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

/* Related Templates */
.related-templates {
  margin-bottom: 64px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* ============================================
   Templates Index Page
   ============================================ */

.templates-index-page {
  padding-top: 100px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.templates-header {
  text-align: center;
  margin-bottom: 48px;
}

.templates-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 12px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.template-index-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.template-index-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.05);
}

.template-index-category {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.template-index-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.template-index-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.template-index-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.template-index-tone {
  color: var(--accent-dim);
  font-weight: 500;
}

.templates-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 64px 0;
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */

.legal-page {
  padding-top: 100px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 64px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-page p,
.legal-page ul,
.legal-page ol {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}

/* Register redirect page */
.register-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 100px;
}

.register-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.register-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.register-card p {
  color: var(--text-secondary);
}

/* ============================================
   Error Page
   ============================================ */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 100px;
  text-align: center;
}

.error-content {
  max-width: 480px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-message {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-detail {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .proof-stats {
    flex-direction: column;
    gap: 32px;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .tier-recommended {
    order: -1;
  }

  .template-title {
    font-size: 1.75rem;
  }

  .template-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

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

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

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

  .hero-cta {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .proof-number {
    font-size: 2.5rem;
  }

  .cta-headline {
    font-size: 1.5rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .template-title {
    font-size: 1.5rem;
  }

  .error-code {
    font-size: 4rem;
  }
}
