/* ============================================
   EmailSignatures.au — Global Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #fff7ed;
  --secondary: #6366f1;
  --secondary-light: #eef2ff;
  --success: #10b981;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

/* ── Announcement Banner ── */
.announcement-banner {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 1001;
}
.announcement-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 48px 10px 20px;
  min-height: 42px;
  position: relative;
}
.announcement-banner__text {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.announcement-banner__text[href]:hover {
  text-decoration: underline;
}
.announcement-banner__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}
.announcement-banner__close:hover { opacity: 1; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.container--wide {
  max-width: 1400px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-light); line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn--secondary {
  background: var(--primary);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

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

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px 20px;
}

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

.btn--lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge--secondary {
  background: var(--secondary-light);
  color: var(--secondary);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.header__logo span {
  color: var(--accent);
}

/* ─── Logo Carousel ─── */
.logo-carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.logo-carousel__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: logoScroll 20s linear infinite;
}

.logo-carousel__item {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.35;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.logo-carousel__item:hover {
  opacity: 0.7;
}

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

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

.header__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__links a {
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
  font-size: 0.95rem;
}

.header__links a:hover,
.header__links a.active {
  color: var(--accent);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

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

.mobile-nav a {
  display: block;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-nav a:hover {
  background: var(--bg-alt);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 580px;
}

.hero__badge {
  margin-bottom: 20px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 48px;
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* Rotating hero text */
.hero__rotating-wrapper {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.hero__rotating-text {
  display: inline-block;
}

@keyframes heroTextOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes heroTextIn {
  0% { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__rotating-text.slide-out {
  animation: heroTextOut 0.35s ease-in forwards;
}

.hero__rotating-text.slide-in {
  animation: heroTextIn 0.35s ease-out forwards;
}

.hero__visual {
  position: relative;
}

.hero__preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero__preview::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero__float {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

.hero__float--1 {
  top: -10px;
  right: -20px;
  animation-delay: 0s;
}

.hero__float--2 {
  bottom: 20px;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   FEATURES / BENEFITS
   ============================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.section--dark p {
  color: #94a3b8;
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section__header .badge {
  margin-bottom: 16px;
}

.section__header h2 {
  margin-bottom: 16px;
}

.section__header p {
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card__icon--orange {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-card__icon--purple {
  background: var(--secondary-light);
  color: var(--secondary);
}

.feature-card__icon--green {
  background: #ecfdf5;
  color: var(--success);
}

.feature-card h4 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ============================================
   TEMPLATES SHOWCASE
   ============================================ */
.templates-filter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tier-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--border);
}

.tier-tab {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  color: var(--text-light);
  position: relative;
}

.tier-tab__price {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.tier-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.7);
}

.tier-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tier-tab.active .tier-tab__price {
  color: var(--accent);
  opacity: 1;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  color: var(--text-light);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.industry-btn {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.78rem;
  color: var(--text-lighter);
}
.industry-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.industry-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.template-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.template-card__preview {
  padding: 24px;
  background: var(--bg-alt);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.template-card__preview .sig-preview {
  transform: scale(0.85);
  transform-origin: center;
}

.template-card__info {
  padding: 20px 24px;
}

.template-card__tier {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.template-card__tier--essential { color: var(--success); }
.template-card__tier--professional { color: var(--secondary); }
.template-card__tier--executive { color: var(--accent); }

.template-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.template-card__category {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.template-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity var(--transition);
}

.template-card:hover .template-card__overlay {
  opacity: 1;
}

/* Card action buttons (visible on mobile, hidden on desktop) */
.template-card__actions {
  display: none;
  padding: 12px 24px 20px;
  gap: 8px;
}

.template-card__actions .btn {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 12px;
}

/* FREE badge */
.template-card__free-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--success);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Pagination */
.templates-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  min-width: 60px;
  text-align: center;
}

.templates-count {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* Fade transition for grid */
.templates-grid {
  transition: opacity 0.15s ease;
}

/* ─── Preview Modal ─── */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.preview-modal.active {
  pointer-events: auto;
  opacity: 1;
}

.preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.preview-modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  max-width: 640px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.preview-modal.active .preview-modal__content {
  transform: scale(1);
}

.preview-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-lighter);
  z-index: 2;
  line-height: 1;
  padding: 4px;
}

.preview-modal__close:hover {
  color: var(--text);
}

.preview-modal__header {
  padding: 28px 32px 0;
}

.preview-modal__name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.preview-modal__meta {
  font-size: 0.85rem;
  color: var(--text-lighter);
}

.preview-modal__body {
  padding: 24px 32px;
}

.preview-modal__sig {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-x: auto;
}

.preview-modal__footer {
  padding: 0 32px 28px;
  text-align: center;
}

.preview-modal__footer .btn {
  width: 100%;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-card__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card__tier {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.pricing-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-card__currency {
  font-size: 1.25rem;
  vertical-align: super;
  font-weight: 600;
}

.pricing-card__period {
  font-size: 0.9rem;
  color: var(--text-lighter);
  margin-bottom: 24px;
}

.pricing-card__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

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

.pricing-card__features .check {
  color: var(--success);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-card__number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
}

.step-card h4 {
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
}

/* ============================================
   TESTIMONIALS CAROUSEL
   ============================================ */
.testimonial-carousel {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  padding: 8px 0 32px;
}

.testimonial-carousel__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonialScroll 60s linear infinite;
}

.testimonial-carousel__track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 380px;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text);
  font-style: italic;
  min-height: 80px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-lighter);
}

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

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

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

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-item__question:hover {
  color: var(--accent);
}

.faq-item__icon {
  transition: transform var(--transition);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding-bottom: 22px;
  font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-section .btn--primary {
  font-size: 1.1rem;
  padding: 18px 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer__logo span {
  color: var(--accent);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a:hover {
  color: var(--accent);
}

/* ============================================
   CUSTOMIZER PAGE
   ============================================ */
.customizer {
  padding: 100px 0 60px;
  min-height: 100vh;
}

.customizer__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.customizer__panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.customizer__panel::-webkit-scrollbar {
  width: 6px;
}

.customizer__panel::-webkit-scrollbar-track {
  background: var(--bg-alt);
  border-radius: 3px;
}

.customizer__panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.customizer__section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.customizer__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.customizer__section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-lighter);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  transition: border-color var(--transition);
  background: #fff;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.color-picker-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-group input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  cursor: pointer;
}

.color-picker-group span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: #fff7ed;
}

.upload-zone.has-image .upload-zone__content {
  display: none;
}

.upload-zone__input {
  display: none;
}

.upload-zone__icon {
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.upload-zone__text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.upload-zone__link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.upload-zone__hint {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: 4px;
}

.upload-zone__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-zone__preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.upload-zone__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.upload-zone__remove:hover {
  background: #dc2626;
}

.upload-zone.uploading {
  opacity: 0.6;
  pointer-events: none;
}

.upload-zone.uploading::after {
  content: 'Uploading...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.8);
  font-weight: 600;
  color: var(--accent);
  border-radius: var(--radius);
}

.upload-zone__or {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upload-url-input {
  font-size: 0.8rem !important;
  padding: 8px 12px !important;
  color: var(--text-lighter);
}

/* Preview Area */
.customizer__preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 400px;
}

.customizer__preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.customizer__preview-header h3 {
  font-size: 1.1rem;
}

.customizer__preview-actions {
  display: flex;
  gap: 8px;
}

/* Preview Mode Toggle */
.preview-mode-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 3px;
  border: 1px solid var(--border);
}

.preview-mode-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-lighter);
  cursor: pointer;
  transition: all 0.2s;
}

.preview-mode-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.5);
}

.preview-mode-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.preview-mode-btn svg {
  flex-shrink: 0;
}

/* ─── Preview Device Frame ─── */
.preview-device-frame {
  transition: all 0.4s ease;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: #fff;
}

/* ── Mobile (iPhone) ── */
.preview-device-frame[data-mode="mobile"] {
  max-width: 390px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), inset 0 0 0 2px #333;
}

.preview-device-frame[data-mode="mobile"] #emailClientChrome,
.preview-device-frame[data-mode="mobile"] .preview-container {
  border-radius: 30px;
  overflow: hidden;
}

.preview-device-frame[data-mode="mobile"] .preview-container {
  border-radius: 0 0 30px 30px;
}

/* ── Outlook Desktop ── */
.preview-device-frame[data-mode="outlook"] {
  max-width: 100%;
  background: #f3f3f3;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

/* ── Preview Container (signature area) ── */
.preview-container {
  background: #fff;
  padding: 24px 32px;
  min-height: 120px;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overflow-x: auto;
}

.preview-device-frame[data-mode="mobile"] .preview-container {
  padding: 12px 16px;
}

.preview-device-frame[data-mode="outlook"] .preview-container {
  padding: 20px 28px;
}

.preview-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: default;
}

/* ═════════════════════════════════════════════
   EMAIL CLIENT CHROME — Gmail
   ═════════════════════════════════════════════ */
.ec-gmail { font-family: 'Google Sans', Roboto, Arial, sans-serif; }

.ec-gmail__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f6f8fc;
  border-bottom: 1px solid #e8eaed;
}

.ec-gmail__toolbar-left { display: flex; gap: 16px; }
.ec-gmail__icon { color: #5f6368; font-size: 1rem; cursor: default; }

.ec-gmail__subject {
  font-size: 1.1rem;
  font-weight: 400;
  color: #202124;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8eaed;
}

.ec-gmail__meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
}

.ec-gmail__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
}

.ec-gmail__meta-text { font-size: 0.8rem; color: #202124; line-height: 1.4; }
.ec-gmail__meta-sub { font-size: 0.72rem; color: #5f6368; }

.ec-gmail__body {
  padding: 8px 20px 6px 68px;
}

/* ═════════════════════════════════════════════
   EMAIL CLIENT CHROME — Outlook
   ═════════════════════════════════════════════ */
.ec-outlook { font-family: 'Segoe UI', Calibri, Arial, sans-serif; }

.ec-outlook__ribbon {
  display: flex;
  gap: 0;
  background: #0078d4;
  padding: 0;
}

.ec-outlook__tab {
  padding: 7px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  cursor: default;
}

.ec-outlook__tab--active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-bottom: 2px solid #fff;
}

.ec-outlook__actions {
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  background: #f3f3f3;
  border-bottom: 1px solid #e1e1e1;
}

.ec-outlook__action-btn {
  font-size: 0.72rem;
  color: #333;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: default;
}

.ec-outlook__action-btn:hover {
  background: #e5e5e5;
}

.ec-outlook__headers {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.ec-outlook__header-row {
  font-size: 0.78rem;
  color: #333;
  line-height: 1.6;
}

.ec-outlook__label {
  color: #666;
  display: inline-block;
  width: 56px;
  font-weight: 600;
}

.ec-outlook__body {
  padding: 14px 16px 6px;
  background: #fff;
}

/* ═════════════════════════════════════════════
   EMAIL CLIENT CHROME — iPhone Mail
   ═════════════════════════════════════════════ */
.ec-iphone { font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif; }

.ec-iphone__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 6px;
  background: #f2f2f7;
  border-radius: 30px 30px 0 0;
}

.ec-iphone__time {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1c1c1e;
}

.ec-iphone__status-icons {
  display: flex;
  gap: 5px;
  color: #1c1c1e;
}

.ec-iphone__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 8px;
  background: #f2f2f7;
}

.ec-iphone__back {
  font-size: 0.85rem;
  color: #007aff;
  font-weight: 400;
}

.ec-iphone__nav-icons {
  font-size: 0.9rem;
  color: #007aff;
  display: flex;
  gap: 18px;
}

.ec-iphone__header {
  padding: 10px 16px;
  background: #fff;
  border-bottom: 0.5px solid #c6c6c8;
}

.ec-iphone__from {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ec-iphone__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #34c759;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.ec-iphone__sender {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1c1c1e;
}

.ec-iphone__to {
  font-size: 0.72rem;
  color: #8e8e93;
}

.ec-iphone__date {
  font-size: 0.7rem;
  color: #8e8e93;
  margin-left: auto;
  white-space: nowrap;
}

.ec-iphone__subject {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1c1e;
  margin-top: 2px;
}

.ec-iphone__body {
  padding: 12px 16px 6px;
  background: #fff;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal__header {
  padding: 28px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__header h3 {
  font-size: 1.25rem;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-lighter);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__body {
  padding: 24px 28px 28px;
}

.modal__footer {
  padding: 0 28px 28px;
}

/* Order Summary */
.order-summary {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.order-summary__total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: calc(100vw - 48px);
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--success);
}

.toast--error {
  border-left-color: #ef4444;
}

.toast--info {
  border-left-color: var(--secondary);
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content { max-width: 100%; }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { max-width: 500px; margin: 0 auto; }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 0;
  }

  .hero__stat {
    text-align: center;
    position: relative;
    padding: 0 8px;
  }

  .hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .hero__stat-label {
    font-size: 0.75rem;
  }

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

  /* Show action buttons on tablet too (no hover on touch) */
  .template-card__overlay {
    display: none;
  }

  .template-card__actions {
    display: flex;
  }

  .template-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  .testimonial-card {
    width: 320px;
  }

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

  .steps-grid::before { display: none; }

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

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

  .customizer__panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .mobile-toggle { display: block; }

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

  .testimonial-card {
    width: 280px;
  }

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

  .pricing-card--featured {
    transform: none;
  }

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

  /* Template cards: show buttons, hide hover overlay */
  .template-card__overlay {
    display: none;
  }

  .template-card__actions {
    display: flex;
  }

  .template-card:hover {
    transform: none;
  }

  .template-card__preview {
    min-height: 180px;
  }

  .template-card__preview .sig-preview {
    transform: scale(0.65);
  }

  /* Tier tabs mobile */
  .tier-tabs {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .tier-tab {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.8rem;
    text-align: center;
  }

  .category-filters {
    justify-content: center;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  /* Preview modal mobile */
  .preview-modal__content {
    width: 95%;
    max-height: 85vh;
  }

  .preview-modal__header {
    padding: 20px 20px 0;
  }

  .preview-modal__body {
    padding: 16px 20px;
  }

  .preview-modal__sig {
    padding: 16px;
  }

  .preview-modal__footer {
    padding: 0 20px 20px;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 0;
  }

  .hero__stat {
    text-align: center;
    position: relative;
    padding: 0 8px;
  }

  .hero__stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
  }

  .hero__stat-number {
    font-size: 1.35rem;
  }

  .hero__stat-label {
    font-size: 0.7rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Selection style */
::selection {
  background: rgba(249, 115, 22, 0.2);
  color: var(--primary);
}

/* ============================================
   ACCESSIBILITY: Reduced Motion
   ============================================ */
@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;
  }
}

/* ============================================
   TOUCH DEVICE: Remove hover transforms
   ============================================ */
@media (hover: none) {
  .feature-card:hover,
  .template-card:hover,
  .pricing-card:hover,
  .pricing-card--featured:hover,
  .btn--primary:hover {
    transform: none;
  }
}

/* ============================================
   SMALL PHONE (≤375px)
   ============================================ */
@media (max-width: 375px) {
  .pricing-card {
    padding: 28px 20px;
  }
  .customizer__panel {
    padding: 16px;
  }
  .customizer__preview {
    padding: 16px;
  }
  .toast-container {
    right: 12px;
    left: 12px;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }
}
