@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0C0C0E;
  --bg-card: #161619;
  --bg-accent: #1E1E22;
  --fg: #E8E6E1;
  --fg-dim: #9B978F;
  --yellow: #F5C518;
  --yellow-dim: #C49E00;
  --orange: #E8853D;
  --green: #5CB85C;
  --red: #e74c3c;
  --border: #2A2A2F;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 10% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  max-width: 700px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.hero-stat .stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--yellow);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* ─── PROBLEM ─── */
.problem {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.problem-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.problem-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.problem-header p {
  color: var(--fg-dim);
  font-size: 1.1rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.pain-card:hover {
  border-color: rgba(245,197,24,0.3);
}

.pain-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.pain-card p {
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── WHAT YOU GET ─── */
.features {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.features-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.features-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.features-header p {
  color: var(--fg-dim);
  font-size: 1.1rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.template-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.template-item:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
}

.template-check {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.template-check--starter {
  color: var(--green);
}

.template-check--pro {
  color: var(--yellow);
}

.template-item--pro {
  border-color: rgba(245,197,24,0.15);
}

.template-item--pro:hover {
  border-color: rgba(245,197,24,0.4);
}

.template-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.template-item p {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* ─── FEATURES TIER KEY ─── */
.features-tier-key {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tier-key-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-weight: 500;
}

.tier-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-dot--starter {
  background: var(--green);
}

.tier-dot--pro {
  background: var(--yellow);
}

.pro-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.25);
  vertical-align: middle;
  margin-left: 6px;
}

.features-note {
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.6;
  padding: 20px 24px;
  background: rgba(245,197,24,0.04);
  border: 1px solid rgba(245,197,24,0.15);
  border-radius: var(--radius);
  max-width: 700px;
}

/* ─── LEGAL DISCLAIMER ─── */
.legal-disclaimer {
  display: block;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--fg-dim);
  opacity: 0.75;
  margin-top: 5px;
  line-height: 1.4;
}

.legal-disclaimer-block {
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--fg-dim);
  line-height: 1.6;
  opacity: 0.8;
}

/* ─── HERO STAT-UNIT ─── */
.stat-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-dim);
}

/* ─── TIERS ─── */
.tiers {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.tiers-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.tiers-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.tiers-header p {
  color: var(--fg-dim);
  font-size: 1.1rem;
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  position: relative;
}

.tier-card.featured {
  border-color: var(--yellow);
  background: linear-gradient(180deg, rgba(245,197,24,0.04) 0%, var(--bg-card) 40%);
}

/* tier badge handled by .tier-badge element instead */

.tier-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.tier-price {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}

.tier-note {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-list li {
  font-size: 0.92rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-list li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.tier-list li.tier-list-header {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 4px;
}

.tier-list li.tier-list-header::before {
  content: none;
  display: none;
}

.tier-list li.tier-list-subheader {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

.tier-list li.tier-list-subheader::before {
  content: none;
  display: none;
}

.tier-list li.tier-list-divider {
  display: none;
}

.tier-list li.tier-list-divider::before {
  content: none;
  display: none;
}

/* ─── TIER BADGES & BUTTONS ─── */
.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-accent);
  color: var(--fg-dim);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.featured-badge {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.tier-btn {
  display: block;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  background: var(--bg-accent);
  color: var(--fg);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.tier-btn:hover {
  background: var(--bg);
  border-color: rgba(245,197,24,0.4);
  transform: translateY(-1px);
}

.featured-btn {
  background: var(--yellow);
  color: #0C0C0E;
  border-color: var(--yellow);
}

.featured-btn:hover {
  background: var(--yellow-dim);
  border-color: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.25);
}

.tier-reassurance {
  margin-top: 12px !important;
  font-size: 0.78rem;
  color: var(--fg-dim);
  text-align: center;
}

.tiers-guarantee {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ─── HERO CTA ─── */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--yellow);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}

.hero-btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,197,24,0.28);
}

.hero-btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.hero-btn-secondary:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}

/* ─── HERO SOFT CTA ─── */
.hero-soft-cta {
  margin-top: 8px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--fg-dim);
}

.hero-soft-cta a {
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.hero-soft-cta a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* ─── CLOSING ACTIONS ─── */
.closing-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 16px;
}

.closing-btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--yellow);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.closing-btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,197,24,0.28);
}

.closing-btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.closing-btn-secondary:hover {
  border-color: rgba(245,197,24,0.4);
}

.closing-sub {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-align: center;
  margin-top: 0 !important;
}

/* ─── SUCCESS / ERROR PAGE ─── */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 10%;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.success-card h1 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--fg);
}

.success-card h1 span {
  color: var(--yellow);
}

.success-card p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.success-card .success-email-note {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin: 24px 0;
  text-align: left;
}

.success-card .success-email-note strong {
  color: var(--fg);
}

.success-back {
  display: inline-block;
  margin-top: 8px;
  color: var(--fg-dim);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.success-back:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

@media (max-width: 600px) {
  .success-card {
    padding: 40px 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

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

/* ─── CLOSING ─── */
.closing {
  padding: 120px 10%;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 650px;
  margin: 0 auto 20px;
}

.closing h2 span {
  color: var(--yellow);
}

.closing p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  padding: 40px 10%;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--fg-dim);
  font-size: 0.82rem;
}

footer > :not(.footer-legal) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

footer .footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
  overflow: visible;
  padding-top: 3px; /* same Syne J top-stroke fix as .site-nav-name */
}

footer .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

footer .footer-links a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--yellow);
}

/* ─── SITE NAV (logo + top CTA) ─── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10%;
  border-bottom: 1px solid var(--border);
  overflow: visible;
  position: relative;
  z-index: 10;
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
  min-width: max-content;
  overflow: visible;
}

.site-nav-icon {
  /* Lock SVG size — inline SVGs can grow unpredictably in flex containers */
  width: 24px;
  height: 28px;
  min-width: 24px;
  flex: 0 0 24px;
}

.site-nav-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 3px; /* Syne 800 J top bar sits at ascender boundary — 3px buffer prevents top-stroke clipping */
}

.site-nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--yellow);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.15s;
  white-space: nowrap;
}

.site-nav-cta:hover {
  opacity: 0.88;
}

/* ─── TRADE NAV (main page) ─── */
.trade-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 10% 0;
}

.trade-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  align-self: center;
  margin-right: 4px;
}

.trade-nav-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-card);
  color: var(--fg-dim);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.trade-nav-link:hover {
  background: var(--bg-accent);
  color: var(--fg);
  border-color: rgba(245,197,24,0.3);
}

/* ─── TRADE PAGE ─── */
.trade-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 10% 60px;
  position: relative;
  overflow: hidden;
}

.trade-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,197,24,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.trade-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  font-size: 0.88rem;
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.trade-back-link:hover {
  color: var(--yellow);
}

.trade-badge {
  display: inline-block;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}

.trade-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  max-width: 680px;
  margin-bottom: 20px;
}

.trade-hero h1 span {
  color: var(--yellow);
}

.trade-hero p {
  font-size: 1.2rem;
  color: var(--fg-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.trade-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trade-cta .hero-btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--yellow);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.trade-cta .hero-btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,197,24,0.28);
}

/* Trade pain points */
.trade-pain-section {
  padding: 80px 10%;
  border-top: 1px solid var(--border);
}

.trade-pain-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 48px;
  max-width: 600px;
  line-height: 1.15;
}

.trade-pain-section h2 span {
  color: var(--yellow);
}

.trade-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.trade-pain-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

.trade-pain-item:hover {
  border-color: rgba(245,197,24,0.3);
}

.trade-pain-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.trade-pain-item h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.trade-pain-item p {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* Trade CTAs at bottom */
.trade-closing {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
  text-align: center;
}

.trade-closing h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.15;
}

.trade-closing h2 span {
  color: var(--yellow);
}

.trade-closing p {
  color: var(--fg-dim);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

.trade-closing .closing-btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--yellow);
  color: #0C0C0E;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.trade-closing .closing-btn-primary:hover {
  background: var(--yellow-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,197,24,0.28);
}

.trade-closing .closing-sub {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-top: 14px;
}

@media (max-width: 768px) {
  .trade-nav {
    padding: 16px 6% 0;
  }

  .trade-hero {
    padding: 60px 6% 40px;
    min-height: 60vh;
  }

  .trade-pain-section {
    padding: 60px 6%;
  }

  .trade-closing {
    padding: 60px 6%;
  }

  .trade-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-pain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 6% 60px;
    min-height: 80vh;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .problem, .features, .tiers, .closing {
    padding: 60px 6%;
  }

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

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

  .tier-cards {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 32px 6% 56px;
  }

  .site-nav {
    padding: 14px 6%;
  }

  .site-nav-cta {
    display: none;
  }
}

/* ─── DOCUMENT SHOWCASE ─── */
.doc-showcase {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.doc-showcase-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.doc-showcase-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.2;
}

.doc-showcase-header p {
  color: var(--fg-dim);
  font-size: 1.05rem;
  line-height: 1.65;
}

.doc-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.doc-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.doc-showcase-card:hover {
  border-color: rgba(245,197,24,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Thumbnail area — dark bg, paper doc floats inside */
.doc-showcase-thumb {
  background: #0e0e11;
  padding: 32px 24px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.doc-showcase-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,197,24,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* The white paper document */
.doc-paper {
  background: #ffffff;
  border-radius: 4px;
  padding: 18px 20px;
  width: 100%;
  max-width: 230px;
  font-family: 'DM Sans', sans-serif;
  font-size: 6.5px;
  line-height: 1.4;
  color: #1a1a1a;
  transform: rotate(-1.5deg);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    0 12px 40px rgba(0,0,0,0.4),
    0 28px 60px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.doc-showcase-card:hover .doc-paper {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.2),
    0 16px 48px rgba(0,0,0,0.35),
    0 32px 72px rgba(0,0,0,0.25);
}

/* Company letterhead */
.doc-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1.5px solid #1a1a1a;
  margin-bottom: 9px;
}

.doc-company-name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-transform: uppercase;
}

.doc-company-sub {
  font-size: 5.5px;
  color: #888;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.doc-type-badge {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
}

.doc-type-badge--estimate {
  background: #e8f5e9;
  color: #2e7d32;
  border: 0.5px solid #a5d6a7;
}

.doc-type-badge--invoice {
  background: #e3f2fd;
  color: #1565c0;
  border: 0.5px solid #90caf9;
}

.doc-type-badge--change {
  background: #fff3e0;
  color: #e65100;
  border: 0.5px solid #ffcc80;
}

.doc-type-badge--service {
  background: #f3e5f5;
  color: #6a1b9a;
  border: 0.5px solid #ce93d8;
}

/* Bill To section */
.doc-billto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 0.5px solid #e8e8e8;
}

.doc-billto-col {}

.doc-field-label {
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2px;
}

.doc-field-value {
  font-size: 6.5px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.5;
}

.doc-field-value--muted {
  color: #666;
  font-weight: 400;
}

/* Line items table */
.doc-table-header {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 0.5px solid #ddd;
  margin-bottom: 2px;
}

.doc-table-col-label {
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
}

.doc-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 0.3px solid #f0f0f0;
}

.doc-line-desc {
  font-size: 6px;
  color: #333;
  flex: 1;
}

.doc-line-qty {
  font-size: 5.5px;
  color: #888;
  font-family: 'Space Mono', monospace;
  width: 28px;
  text-align: center;
}

.doc-line-amount {
  font-size: 6px;
  color: #1a1a1a;
  font-family: 'Space Mono', monospace;
  width: 38px;
  text-align: right;
}

/* Totals row */
.doc-totals {
  margin-top: 6px;
  border-top: 0.5px solid #ddd;
  padding-top: 5px;
}

.doc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 0;
}

.doc-total-label {
  font-size: 5.5px;
  color: #888;
}

.doc-total-value {
  font-size: 6px;
  color: #333;
  font-family: 'Space Mono', monospace;
}

.doc-grand-total {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #1a1a1a;
}

.doc-grand-total .doc-total-label {
  font-size: 6.5px;
  font-weight: 700;
  color: #1a1a1a;
}

.doc-grand-total .doc-total-value {
  font-size: 9px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Space Mono', monospace;
}

/* Signature area */
.doc-sig {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 0.5px solid #e8e8e8;
  display: flex;
  gap: 16px;
}

.doc-sig-block {
  flex: 1;
}

.doc-sig-line {
  height: 0.5px;
  background: #999;
  width: 100%;
  margin-bottom: 2px;
}

.doc-sig-label {
  font-size: 4.5px;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* Change order specific */
.doc-co-scope {
  background: #fff8f0;
  border: 0.5px solid #ffe0b2;
  border-radius: 2px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.doc-co-scope-label {
  font-size: 4.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e65100;
  margin-bottom: 3px;
}

.doc-co-scope-text {
  font-size: 5.5px;
  color: #4a3020;
  line-height: 1.5;
}

.doc-co-impact {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.doc-co-impact-item {
  text-align: center;
}

.doc-co-impact-value {
  font-size: 8px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

.doc-co-impact-label {
  font-size: 4.5px;
  color: #aaa;
  letter-spacing: 0.06em;
}

/* Service ticket work log */
.doc-work-log {
  margin-bottom: 8px;
}

.doc-work-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border-bottom: 0.3px solid #f0f0f0;
}

.doc-work-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doc-work-desc {
  font-size: 5.5px;
  color: #333;
  flex: 1;
}

.doc-work-hours {
  font-size: 5px;
  color: #888;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}

/* Card info area */
.doc-showcase-info {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--border);
}

.doc-showcase-pack {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: rgba(92,184,92,0.1);
  color: var(--green);
  border: 1px solid rgba(92,184,92,0.25);
}

.doc-showcase-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}

.doc-showcase-info p {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .doc-showcase {
    padding: 60px 6%;
  }
  .doc-showcase-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* ─── WHAT'S INSIDE (PREVIEW) ─── */
.preview {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.preview-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.preview-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.preview-header p {
  color: var(--fg-dim);
  font-size: 1.05rem;
}

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

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.preview-card:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.preview-card--pro {
  border-color: rgba(245,197,24,0.2);
}

.preview-card--pro:hover {
  border-color: rgba(245,197,24,0.5);
}

/* Document thumbnail area — slight drop shadow behind each doc */
.preview-card-thumb {
  background: #111114;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

/* First 4 cards: hero-style angled documents */
.preview-card:nth-child(1) .preview-doc,
.preview-card:nth-child(2) .preview-doc,
.preview-card:nth-child(3) .preview-doc,
.preview-card:nth-child(4) .preview-doc {
  transform: rotate(-1.5deg);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 12px 36px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Remaining 9 cards: angled document style matching first 4 */
.preview-card:nth-child(5) .preview-doc,
.preview-card:nth-child(6) .preview-doc,
.preview-card:nth-child(7) .preview-doc,
.preview-card:nth-child(8) .preview-doc,
.preview-card:nth-child(9) .preview-doc,
.preview-card:nth-child(10) .preview-doc,
.preview-card:nth-child(11) .preview-doc,
.preview-card:nth-child(12) .preview-doc,
.preview-card:nth-child(13) .preview-doc {
  transform: rotate(-1.5deg);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.4),
    0 12px 36px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Mocked document inside thumbnail */
.preview-doc {
  background: #2a2a30;
  border: 1px solid #3a3a42;
  border-radius: 6px;
  padding: 14px 16px;
  width: 100%;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-doc:hover {
  transform: rotate(0deg) scale(1.02);
}

/* Document header row */
.preview-doc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.preview-doc-logo {
  width: 22px;
  height: 22px;
  background: var(--yellow);
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(245,197,24,0.3);
}

.preview-doc-logo--orange {
  background: var(--orange);
  box-shadow: 0 1px 3px rgba(232,133,61,0.3);
}

.preview-doc-logo--blue {
  background: #60b4f7;
  box-shadow: 0 1px 3px rgba(96,180,247,0.3);
}

.preview-doc-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
}

.preview-doc-label--orange {
  color: var(--orange);
}

.preview-doc-label--blue {
  color: #60b4f7;
}

.preview-doc-label--top {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.preview-doc-label--pro {
  color: var(--yellow);
}

.preview-doc-label--red {
  color: var(--red);
}

.preview-doc-num {
  font-size: 0.48rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* Realistic content lines */
.preview-doc-line {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}
.preview-doc-line--wide { width: 78%; }
.preview-doc-line--med  { width: 58%; }
.preview-doc-line--sm   { width: 38%; }

.preview-doc-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 2px 0;
}

.preview-doc-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.preview-doc-row {
  height: 5px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}

.preview-doc-row--accent {
  background: rgba(245,197,24,0.12);
}

/* Total row with actual-looking amount */
.preview-doc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.preview-doc-total--accent {
  border-top: 1px solid rgba(245,197,24,0.2);
}

.preview-doc-amount {
  font-size: 0.62rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.05em;
  font-family: 'Space Mono', monospace;
}

.preview-doc-amount--accent {
  color: var(--yellow);
}

.preview-doc-amount--orange {
  color: var(--orange);
}

/* Invoice doc */
.preview-doc--invoice .preview-doc-header .preview-doc-label {
  color: var(--fg);
}

/* Service ticket — blue accent */
.preview-doc--service .preview-doc-header .preview-doc-logo {
  background: #60b4f7;
}
.preview-doc--service .preview-doc-header .preview-doc-label {
  color: #60b4f7;
}

/* Signature area */
.preview-doc-sig-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.preview-doc-sig-line {
  height: 1px;
  background: rgba(255,255,255,0.12);
  width: 75%;
  border-radius: 1px;
}

/* Line item rows (estimate/invoice) */
.preview-doc-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.preview-doc-line-desc {
  font-size: 0.5rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.preview-doc-line-price {
  font-size: 0.5rem;
  color: #555;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}

.preview-doc-line-price--total {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow);
  font-family: 'Space Mono', monospace;
}

/* Client info row (invoice) */
.preview-doc-client {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  color: #555;
  margin-bottom: 2px;
}

/* Work description rows (service ticket) */
.preview-doc-work-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 0;
}

.preview-doc-work-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(92,184,92,0.6);
  flex-shrink: 0;
}

.preview-doc-work-text {
  font-size: 0.5rem;
  color: #666;
  flex: 1;
}

.preview-doc-work-time {
  font-size: 0.48rem;
  color: #444;
  font-family: 'Space Mono', monospace;
  flex-shrink: 0;
}

/* Change order details */
.preview-doc-co-detail {
  font-size: 0.5rem;
  color: #555;
  padding: 1px 0;
}

/* Checklist styles */
.preview-doc-check-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-doc-check-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-doc-checkbox {
  width: 8px;
  height: 8px;
  border: 1px solid #3a3a40;
  border-radius: 2px;
  flex-shrink: 0;
}

.preview-doc-checkbox--done {
  background: var(--green);
  border-color: var(--green);
}

.preview-doc-check-line {
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  flex: 1;
}

.preview-doc-check-line--short {
  max-width: 55%;
}

/* Fields for intake form */
.preview-doc-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-doc-field {
  height: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}

.preview-doc-field--sm {
  width: 60%;
}

/* Table for material tracker */
.preview-doc-table {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-doc-table-row {
  display: flex;
  gap: 3px;
}

.preview-doc-table-row--header .preview-doc-table-cell {
  background: rgba(255,255,255,0.06);
  height: 6px;
}

.preview-doc-table-cell {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.03);
  border-radius: 1px;
}

.preview-doc-table-cell--wide {
  flex: 2;
}

.preview-doc-table-cell--green {
  background: rgba(92,184,92,0.18);
}

.preview-doc-table-cell--orange {
  background: rgba(232,133,61,0.18);
}

/* Google Sheets tracker */
.preview-doc-sheet-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preview-doc-sheet-row {
  display: flex;
  gap: 2px;
}

.preview-doc-sheet-row--header .preview-doc-sheet-cell {
  background: rgba(255,255,255,0.06);
  height: 7px;
}

.preview-doc-sheet-cell {
  flex: 1;
  height: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 1px;
}

.preview-doc-sheet-cell--yellow {
  background: rgba(245,197,24,0.15);
}

.preview-doc-sheet-cell--green {
  background: rgba(92,184,92,0.18);
}

.preview-doc-sheet-cell--pending {
  background: rgba(232,133,61,0.15);
}

/* Quote calculator rows */
.preview-doc-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.preview-doc-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-doc-calc-label {
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  flex: 1;
}

.preview-doc-calc-label--margin {
  background: rgba(245,197,24,0.1);
}

.preview-doc-calc-value {
  width: 32px;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
}

.preview-doc-calc-value--accent {
  background: rgba(245,197,24,0.2);
}

/* Subcontractor agreement — no header, text body */
.preview-doc-agreement-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 10px 4px;
}

/* Lien waiver — top label, text body */
.preview-doc--waiver .preview-doc-label--top {
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 7px 10px 4px;
  background: #2a2a30;
  border-radius: 3px 3px 0 0;
  margin: -14px -16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Completion certificate — top label, formal body */
.preview-doc--certificate .preview-doc-label--top {
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 7px 10px 4px;
  background: #2a2a30;
  border-radius: 3px 3px 0 0;
  margin: -14px -16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Warranty certificate — top label, formal body */
.preview-doc--warranty .preview-doc-label--top {
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 7px 10px 4px;
  background: #2a2a30;
  border-radius: 3px 3px 0 0;
  margin: -14px -16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Collections notice — top label, formal body */
.preview-doc--collections .preview-doc-label--top {
  font-size: 0.36rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  padding: 7px 10px 4px;
  background: rgba(231,76,60,0.08);
  border-radius: 3px 3px 0 0;
  margin: -14px -16px 8px;
  border-bottom: 1px solid rgba(231,76,60,0.15);
}

/* Card info area */
.preview-card-info {
  padding: 18px 20px 20px;
}

.preview-card-pack {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.starter-pack {
  background: rgba(92,184,92,0.12);
  color: var(--green);
  border: 1px solid rgba(92,184,92,0.25);
}

.pro-pack {
  background: rgba(245,197,24,0.1);
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.25);
}

.preview-card-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--fg);
}

.preview-card-info p {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.55;
}

.preview-note {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--fg-dim);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ─── GUARANTEE ─── */
.guarantee {
  padding: 60px 10%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245,197,24,0.04) 0%, transparent 100%);
}

.guarantee-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.guarantee-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.guarantee-content {
  flex: 1;
  min-width: 240px;
}

.guarantee-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--fg);
}

.guarantee-content p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

.guarantee-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.guarantee-cta .tier-btn {
  white-space: nowrap;
  padding: 14px 28px;
}

.guarantee-cta-note {
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-align: center;
  white-space: nowrap;
}

/* ─── MONEY-BACK BADGE ─── */
/* Small inline trust signal placed directly under $49 CTA buttons */
.money-back-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-dim);
  background: rgba(245,197,24,0.07);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 100px;
  padding: 5px 14px;
  margin-top: 12px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.money-back-badge-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Centered variant inside tier card */
.money-back-badge--tier {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 4px;
}

/* Centered variant in trade page closing section */
.money-back-badge--closing {
  display: flex;
  justify-content: center;
  margin: 10px auto 0;
}

/* ─── FAQ ─── */
.faq {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.faq-header {
  max-width: 600px;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.faq-grid {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--yellow);
}

.faq-q[aria-expanded="true"] {
  color: var(--yellow);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: transform 0.25s, color 0.2s;
  line-height: 1;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--yellow);
}

.faq-a {
  padding: 0 0 22px;
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 660px;
}

.faq-a[hidden] {
  display: none;
}

/* ─── RESPONSIVE: preview + guarantee + faq ─── */
@media (max-width: 768px) {
  .preview {
    padding: 60px 6%;
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .guarantee {
    padding: 48px 6%;
  }

  .guarantee-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 24px;
  }

  .guarantee-content p {
    max-width: 100%;
  }

  .guarantee-cta {
    width: 100%;
  }

  .guarantee-cta .tier-btn {
    width: 100%;
    max-width: 320px;
  }

  .faq {
    padding: 60px 6%;
  }
}

/* ─── LEAD MAGNET ─── */
.lead-magnet {
  padding: 80px 10%;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(245,197,24,0.05) 0%, transparent 60%);
}

.lead-magnet-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lead-magnet-text .section-label {
  margin-bottom: 16px;
}

.lead-magnet-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--fg);
}

.lead-magnet-text p {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.lead-magnet-text em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 600;
}

.lead-magnet-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.lead-magnet-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.lead-magnet-input {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}

.lead-magnet-input:focus {
  border-color: var(--yellow);
}

.lead-magnet-input::placeholder {
  color: var(--fg-dim);
}

.lead-magnet-btn {
  background: var(--yellow);
  border: none;
  border-radius: 6px;
  color: #0C0C0E;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 20px;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

.lead-magnet-btn:hover:not(:disabled) {
  background: var(--yellow-dim);
  transform: translateY(-1px);
}

.lead-magnet-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lead-magnet-note {
  color: var(--fg-dim);
  font-size: 0.8rem;
  margin-top: 4px;
}

.lead-magnet-error {
  color: #e74c3c;
  font-size: 0.88rem;
  margin-top: 8px;
}

/* Success state */
.lead-magnet-success {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-magnet-success-icon {
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-magnet-success-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-magnet-success-text strong {
  color: var(--fg);
  font-size: 0.98rem;
}

.lead-magnet-success-text span {
  color: var(--fg-dim);
  font-size: 0.88rem;
}

.lead-magnet-dl-link {
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.lead-magnet-dl-link:hover {
  text-decoration: underline;
}

.lead-magnet-upsell {
  background: rgba(245,197,24,0.07);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 6px;
  color: var(--fg-dim);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 4px;
  padding: 14px 16px;
}

.lead-magnet-upsell strong {
  color: var(--fg);
}

.lead-magnet-upsell a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lead-magnet-upsell a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .lead-magnet {
    padding: 60px 6%;
  }

  .lead-magnet-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── TRADE SECTIONS (homepage by-trade blocks) ─── */
.trade-sections {
  padding: 100px 10%;
  border-top: 1px solid var(--border);
}

.trade-sections-header {
  max-width: 600px;
  margin-bottom: 72px;
}

.trade-sections-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.trade-sections-header h2 span {
  color: var(--yellow);
}

.trade-sections-header p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* All-trades tile grid */
.trade-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 72px;
}

.trade-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px 22px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.trade-tile:hover {
  border-color: rgba(245,197,24,0.4);
  background: var(--bg-accent);
  transform: translateY(-2px);
}

.trade-tile-icon {
  font-size: 2rem;
  line-height: 1;
}

.trade-tile-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.trade-tile-cta {
  font-size: 0.75rem;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── OTHER TRADES (trade page cross-links) ─── */
.other-trades {
  border-top: 1px solid var(--border);
  padding: 48px 10%;
}

.other-trades-inner {
  max-width: 900px;
  margin: 0 auto;
}

.other-trades-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.other-trades-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.other-trades-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.other-trades-link:hover {
  border-color: rgba(245,197,24,0.4);
  background: var(--bg-accent);
  color: var(--yellow);
}

.other-trades-icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* Individual trade block */
.trade-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

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

.trade-block-meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.trade-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.trade-block-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--fg);
}

.trade-block-sub {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* 4-column grid of doc cards */
.trade-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.trade-doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.trade-doc-card:hover {
  border-color: rgba(245,197,24,0.3);
  transform: translateY(-2px);
}

.trade-doc-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.trade-doc-desc {
  font-size: 0.84rem;
  color: var(--fg-dim);
  line-height: 1.6;
  flex: 1;
}

.trade-doc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(245,197,24,0.07);
  border: 1px solid rgba(245,197,24,0.18);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-top: 4px;
}

.trade-cta-btn {
  display: inline-block;
  padding: 12px 26px;
  background: transparent;
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.4);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.trade-cta-btn:hover {
  background: rgba(245,197,24,0.08);
  border-color: var(--yellow);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .trade-sections {
    padding: 60px 6%;
  }

  .trade-doc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trade-block-meta {
    gap: 14px;
  }
}

/* ─── What You Get After Checkout ─── */
.what-you-get {
  padding: 80px 6%;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.what-you-get-inner {
  max-width: 900px;
  margin: 0 auto;
}

.what-you-get h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  margin: 8px 0 6px;
  line-height: 1.15;
}

.what-you-get-sub {
  color: var(--fg-dim);
  font-size: 1rem;
  margin: 0 0 32px;
}

.wyg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.wyg-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}

.wyg-item:nth-child(2n) {
  border-right: none;
}

.wyg-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.wyg-item--full {
  grid-column: 1 / -1;
  border-right: none;
}

.wyg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 700;
}

.wyg-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wyg-item > div strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.wyg-item > div span {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.4;
}

.wyg-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wyg-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--yellow);
  color: #0C0C0E;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.wyg-btn:hover {
  background: var(--yellow-dim);
  transform: translateY(-1px);
}

.wyg-cta-note {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

@media (max-width: 600px) {
  .what-you-get {
    padding: 60px 5%;
  }

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

  .wyg-item {
    border-right: none;
  }

  .wyg-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .wyg-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .trade-doc-grid {
    grid-template-columns: 1fr;
  }

  .what-you-get {
    padding: 60px 5%;
  }

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

  .wyg-item {
    border-right: none;
  }

  .wyg-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .wyg-item:last-child {
    border-bottom: none;
  }
}
/* ─── INSTANT DELIVERY SECTION ─── */
.instant-delivery {
  padding: 80px 10%;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245,197,24,0.03) 0%, transparent 60%);
}

.instant-delivery-inner {
  max-width: 1100px;
}

.instant-delivery-heading {
  max-width: 580px;
  margin-bottom: 48px;
}

.instant-delivery-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0;
}

.instant-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.instant-format-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.instant-format-item:hover {
  background: rgba(245,197,24,0.04);
}

.instant-format-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.85;
}

.instant-format-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
}

.instant-format-item span {
  font-size: 0.8rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .instant-delivery {
    padding: 60px 6%;
  }
  .instant-formats-grid {
    grid-template-columns: 1fr;
  }
  .instant-format-item {
    border-right: none;
  }
}

/* ─── FORMAT BADGES (tier cards) ─── */
.tier-format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fmt-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-accent);
  color: var(--fg-dim);
  border: 1px solid var(--border);
}

.fmt-badge--sheets {
  background: rgba(92,184,92,0.1);
  color: var(--green);
  border-color: rgba(92,184,92,0.25);
}

/* ─── TRUST BADGES (below tier cards) ─── */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--fg-dim);
  transition: border-color 0.2s, color 0.2s;
}

.trust-badge:hover {
  border-color: rgba(245,197,24,0.35);
  color: var(--fg);
}

.trust-badge-icon {
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .trust-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── FOOTER LEGAL DISCLAIMER ─── */
.footer-legal {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--fg-dim);
  opacity: 0.7;
  line-height: 1.6;
  max-width: 700px;
}

footer {
  overflow: visible;
  padding-bottom: 56px;
}

/* ─── LEAD MAGNET HOOK TEXT ─── */
.lead-magnet-hook {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow) \!important;
  margin-bottom: 12px;
  line-height: 1.4;
}


/* ─── FOLDER MOCKUP ─── */
.folder-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 640px;
  margin-bottom: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.folder-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-accent);
  border-bottom: 1px solid var(--border);
}

.folder-tab-icon {
  font-size: 1rem;
}

.folder-tab-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.folder-contents {
  padding: 8px 0;
}

.folder-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.folder-file:last-child {
  border-bottom: none;
}

.folder-file:hover {
  background: rgba(245,197,24,0.04);
}

.folder-file--more {
  opacity: 0.6;
  font-style: italic;
}

.file-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
}

.file-icon--word {
  background: #1a6bb5;
  color: #fff;
}

.file-icon--pdf {
  background: #c0392b;
  color: #fff;
}

.file-icon--gdoc {
  background: #2980b9;
  color: #fff;
}

.file-icon--sheet {
  background: #27ae60;
  color: #fff;
}

.file-icon--folder {
  background: transparent;
  font-size: 1rem;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-top: 2px;
}

.file-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg-accent);
  color: var(--fg-dim);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.file-badge--pdf {
  background: rgba(192,57,43,0.1);
  color: #e74c3c;
  border-color: rgba(192,57,43,0.25);
}

.file-badge--google {
  background: rgba(41,128,185,0.1);
  color: #3498db;
  border-color: rgba(41,128,185,0.25);
}

.file-badge--sheet {
  background: rgba(39,174,96,0.1);
  color: var(--green);
  border-color: rgba(39,174,96,0.25);
}

.file-badge--example {
  background: rgba(245,197,24,0.1);
  color: var(--yellow);
  border-color: rgba(245,197,24,0.25);
}

@media (max-width: 600px) {
  .folder-mockup {
    max-width: 100%;
  }
  .file-name {
    font-size: 0.75rem;
  }
}

/* ─── TEMPLATE PREVIEW MODAL ─── */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}

.preview-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.preview-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.preview-modal-overlay.open .preview-modal {
  transform: translateY(0);
}

.preview-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.preview-modal-header-text {
  flex: 1;
  min-width: 0;
}

.preview-modal-pack {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.preview-modal-pack--starter {
  background: rgba(92,184,92,0.12);
  color: var(--green);
  border: 1px solid rgba(92,184,92,0.25);
}

.preview-modal-pack--pro {
  background: rgba(245,197,24,0.1);
  color: var(--yellow);
  border: 1px solid rgba(245,197,24,0.25);
}

.preview-modal-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 4px;
}

.preview-modal-desc {
  font-size: 0.82rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

.preview-modal-close {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

.preview-modal-close:hover {
  background: var(--bg);
  color: var(--fg);
  border-color: rgba(245,197,24,0.35);
}

.preview-modal-body {
  flex: 1;
  overflow: auto;
  position: relative;
  /* Mobile: allow natural scroll, no zoom */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  min-height: 200px;
  max-height: calc(90vh - 120px);
  /* Hide scrollbar but allow scroll on all devices */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.preview-modal-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.preview-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

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

/* The document inside the modal — larger than thumbnail */
.preview-modal-doc-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.preview-modal-doc {
  /* Clone of .preview-doc from the card, rendered at 1.5x scale */
  transform: scale(1.5);
  transform-origin: center center;
  pointer-events: none;
  flex-shrink: 0;
}

.preview-modal-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--fg-dim);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.preview-modal-body.zoomed .preview-modal-zoom-hint {
  opacity: 1;
}

@media (max-width: 600px) {
  .preview-modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .preview-modal {
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .preview-modal-doc {
    transform: scale(1.3);
  }
}

/* Clickable preview cards */
.preview-card {
  cursor: pointer;
}

/* ─── SITE NAV LINKS (blog pages) ─── */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav-link {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav-link:hover,
.site-nav-link--active {
  color: var(--fg);
}

/* ─── BLOG LAYOUT ─── */
.blog-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Blog index */
.blog-header {
  margin-bottom: 56px;
}

.blog-label {
  display: inline-block;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.blog-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
}

.blog-header-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 560px;
}

.blog-index-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.15s;
}

.blog-card:hover {
  border-color: rgba(245,197,24,0.3);
}

.blog-card-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.blog-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card h2 a {
  color: var(--fg);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--yellow);
}

.blog-card p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-card-link:hover {
  text-decoration: underline;
}

/* Blog index CTA */
.blog-cta-block {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.blog-cta-block .blog-cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.blog-cta-block p {
  color: var(--fg-dim);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* Blog post */
.blog-post-header {
  margin-bottom: 48px;
}

.blog-post-breadcrumb {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.blog-post-breadcrumb a {
  color: var(--fg-dim);
  text-decoration: none;
}

.blog-post-breadcrumb a:hover {
  color: var(--yellow);
}

.blog-post-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 16px;
}

.blog-post-meta {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  margin: 44px 0 16px;
  line-height: 1.2;
}

.blog-post-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 32px 0 12px;
}

.blog-post-body ul,
.blog-post-body ol,
.blog-ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-post-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.blog-post-body a {
  color: var(--yellow);
  text-decoration: none;
}

.blog-post-body a:hover {
  text-decoration: underline;
}

.blog-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Blog tables */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.9rem;
}

.blog-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-accent);
  color: var(--fg-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.blog-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--fg);
  line-height: 1.5;
}

.blog-table tbody tr:hover td {
  background: var(--bg-card);
}

.blog-table-total td {
  font-weight: 700;
  color: var(--yellow);
  border-top: 1px solid var(--border);
}

.blog-table-final td {
  font-size: 1.05rem;
  border-top: 2px solid var(--yellow);
}

/* Blog blockquote */
.blog-blockquote {
  border-left: 3px solid var(--yellow);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* Blog document example */
.blog-doc-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.blog-doc-example p {
  margin-bottom: 14px;
}

/* Blog checklist */
.blog-checklist {
  list-style: none;
  padding-left: 0;
}

.blog-checklist li::before {
  content: '☐ ';
  color: var(--yellow);
  font-weight: 700;
}

/* Mid-post CTA */
.blog-cta-mid {
  background: var(--bg-accent);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.blog-cta-mid-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.blog-cta-mid p {
  color: var(--fg-dim);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Bottom CTA */
.blog-cta-bottom {
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  margin-top: 60px;
  text-align: center;
}

.blog-cta-bottom p {
  color: var(--fg-dim);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.65;
}

.blog-cta-sub {
  margin-top: 14px !important;
  font-size: 0.8rem !important;
  color: var(--fg-dim);
}

.blog-cta-free-link {
  display: inline-block;
  color: var(--fg-dim);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.blog-cta-free-link:hover { color: var(--yellow); }

/* Mobile blog */
@media (max-width: 640px) {
  .blog-main {
    padding: 40px 20px 60px;
  }

  .blog-card {
    padding: 22px 20px;
  }

  .blog-cta-mid,
  .blog-cta-bottom {
    padding: 24px 20px;
  }

  .blog-doc-example {
    padding: 20px;
  }

  .blog-table {
    font-size: 0.8rem;
  }

  .blog-table th,
  .blog-table td {
    padding: 8px 10px;
  }
}


/* ─── PROMO BAR ──────────────────────────────────────────────────────────── */
.promo-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--yellow);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 12px;
}

.promo-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.promo-bar-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.promo-bar-text {
  text-align: center;
}

.promo-bar-link {
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(26,26,26,0.3);
  transition: border-color 0.15s;
  margin-left: 4px;
}

.promo-bar-link:hover {
  border-color: #1a1a1a;
}

.promo-bar-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  color: #1a1a1a;
  padding: 0 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.promo-bar-close:hover {
  opacity: 1;
}


/* ─── HERO TRUST ROW ─────────────────────────────────────────────────────── */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-trust-icon {
  font-size: 0.9rem;
}

.hero-trust-sep {
  color: var(--border);
  font-size: 1.1rem;
}

/* ─── HERO CTA — sharper primary button ─────────────────────────────────── */
/* Override primary button to be higher contrast */
.hero-btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: #0C0C0E;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,197,24,0.35);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  background: #ffd43b;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,197,24,0.45);
}

.hero-btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.hero-btn-secondary:hover {
  border-color: rgba(245,197,24,0.4);
  color: var(--fg);
}

/* ─── LAUNCH URGENCY (Contractor Pack card) ──────────────────────────────── */
.launch-urgency {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(245,197,24,0.06);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.launch-urgency-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.launch-urgency-countdown {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.04em;
  min-height: 1.4em;
}

/* ─── EXIT-INTENT MODAL ──────────────────────────────────────────────────── */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12,12,14,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}

.exit-modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.exit-modal {
  background: var(--bg-card);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: slideUp 0.25s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.exit-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--fg-dim);
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.exit-modal-close:hover {
  color: var(--fg);
}

.exit-modal-badge {
  display: inline-block;
  background: rgba(245,197,24,0.12);
  border: 1px solid rgba(245,197,24,0.3);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.exit-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 12px;
}

.exit-modal-sub {
  font-size: 0.97rem;
  color: var(--fg-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.exit-modal-field {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.exit-modal-input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.exit-modal-input:focus {
  border-color: rgba(245,197,24,0.5);
}

.exit-modal-input::placeholder {
  color: var(--fg-dim);
}

.exit-modal-btn {
  background: var(--yellow);
  color: #0C0C0E;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.exit-modal-btn:hover {
  background: #ffd43b;
  transform: translateY(-1px);
}

.exit-modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.exit-modal-error {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--red);
}

.exit-modal-success {
  text-align: center;
  padding: 8px 0;
}

.exit-modal-success[hidden] {
  display: none;
}

.exit-modal-success-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--green);
}

.exit-modal-success-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}

.exit-modal-success-sub {
  font-size: 0.95rem;
  color: var(--fg-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}

.exit-code {
  font-family: 'Space Mono', monospace;
  background: rgba(245,197,24,0.12);
  color: var(--yellow);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.exit-modal-cta {
  display: inline-block;
  background: var(--yellow);
  color: #0C0C0E;
  text-decoration: none;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s;
}

.exit-modal-cta:hover {
  background: #ffd43b;
}

.exit-modal-legal {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--fg-dim);
  text-align: center;
  opacity: 0.7;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .promo-bar {
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  .hero-trust-row {
    gap: 8px;
    font-size: 0.8rem;
  }

  .hero-trust-sep {
    display: none;
  }

  .exit-modal {
    padding: 28px 20px;
  }

  .exit-modal-title {
    font-size: 1.5rem;
  }

  .exit-modal-field {
    flex-direction: column;
  }

  .exit-modal-input,
  .exit-modal-btn {
    width: 100%;
  }
}

/* ── Hero pack detail link ── */
.hero-pack-link {
  margin-top: 10px;
}
.hero-pack-detail-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #6e6a62;
  text-decoration: none;
  border-bottom: 1px solid #3e3a32;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-pack-detail-link:hover {
  color: #f5c518;
  border-color: #f5c518;
}

/* ─── TEMPLATE PREVIEW GALLERY ─── */
.tpl-gallery {
  padding: 80px 10%;
  border-top: 1px solid var(--border);
}

.tpl-gallery-header {
  max-width: 640px;
  margin-bottom: 52px;
}

.tpl-gallery-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tpl-gallery-caption {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--fg-dim);
  margin: 0;
}

/* 7-column thumbnail grid — horizontal scroll on mobile */
.tpl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2a2a2f transparent;
}

.tpl-gallery-grid::-webkit-scrollbar { height: 4px; }
.tpl-gallery-grid::-webkit-scrollbar-track { background: transparent; }
.tpl-gallery-grid::-webkit-scrollbar-thumb { background: #2a2a2f; border-radius: 2px; }

/* Individual thumbnail button */
.tpl-thumb-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  text-align: left;
}

.tpl-thumb-btn:hover {
  border-color: rgba(245,197,24,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.tpl-thumb-btn:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}

/* Dark area holding the scaled-down paper */
.tpl-thumb-doc-wrap {
  background: #0e0e11;
  padding: 18px 14px 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 180px;
  position: relative;
}

.tpl-thumb-doc-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,197,24,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* Scaled-down white paper thumbnail */
.tpl-thumb-paper {
  background: #ffffff;
  border-radius: 3px;
  padding: 10px 12px;
  width: 100%;
  max-width: 140px;
  font-family: 'DM Sans', sans-serif;
  font-size: 5px;
  line-height: 1.4;
  color: #1a1a1a;
  transform: rotate(-1deg);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 28px rgba(0,0,0,0.45),
    0 20px 44px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tpl-thumb-btn:hover .tpl-thumb-paper {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 12px 36px rgba(0,0,0,0.35);
}

/* Document content styles (micro font sizes) */
.tpl-thumb-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 5px;
}

.tpl-thumb-company {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.tpl-thumb-sub {
  font-size: 4px;
  color: #999;
  margin-top: 1px;
}

.tpl-thumb-badge {
  font-size: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 2px;
  font-family: 'Space Mono', monospace;
  white-space: nowrap;
}

.tpl-thumb-badge--green { background: #e8f5e9; color: #2e7d32; border: .3px solid #a5d6a7; }
.tpl-thumb-badge--blue  { background: #e3f2fd; color: #1565c0; border: .3px solid #90caf9; }
.tpl-thumb-badge--orange { background: #fff3e0; color: #e65100; border: .3px solid #ffcc80; }
.tpl-thumb-badge--purple { background: #f3e5f5; color: #6a1b9a; border: .3px solid #ce93d8; }
.tpl-thumb-badge--teal  { background: #e0f2f1; color: #00695c; border: .3px solid #80cbc4; }

.tpl-thumb-billrow {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: .3px solid #f0f0f0;
}

.tpl-thumb-lbl {
  font-size: 3.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1px;
}

.tpl-thumb-val {
  font-size: 5px;
  font-weight: 600;
  color: #1a1a1a;
}

.tpl-thumb-val--muted {
  font-size: 4.5px;
  color: #666;
}

.tpl-thumb-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 3px;
}

.tpl-thumb-item {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  font-size: 4.5px;
  color: #333;
  padding: 1.5px 0;
  border-bottom: .2px solid #f5f5f5;
}

.tpl-thumb-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3px;
  border-top: .8px solid #1a1a1a;
  font-size: 4.5px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  color: #1a1a1a;
}

.tpl-thumb-scope-box {
  background: #fff8f0;
  border: .3px solid #ffe0b2;
  border-radius: 1px;
  padding: 4px 5px;
  margin-bottom: 4px;
}

.tpl-thumb-impact {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.tpl-thumb-impact-item {
  text-align: center;
  font-family: 'Space Mono', monospace;
}

.tpl-thumb-impact-item > div:first-child {
  font-size: 6px;
  font-weight: 700;
}

.tpl-thumb-impact-item > div:last-child {
  font-size: 3.5px;
  color: #aaa;
  letter-spacing: 0.04em;
}

.tpl-thumb-sig-area {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: .3px solid #e8e8e8;
}

.tpl-thumb-sig {
  display: flex;
  flex-direction: column;
}

.tpl-thumb-sig-line {
  height: .4px;
  background: #bbb;
  width: 100%;
  margin-bottom: 1px;
}

.tpl-thumb-sig-label {
  font-size: 3.5px;
  color: #aaa;
  letter-spacing: 0.04em;
}

/* Template name label below thumb */
.tpl-thumb-label {
  padding: 10px 12px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
  border-top: 1px solid var(--border);
  line-height: 1.3;
}

/* Footer note */
.tpl-gallery-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 20px;
  opacity: 0.6;
}

/* ─── MODAL OVERLAY ─── */
.tpl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.tpl-modal-overlay[hidden] {
  display: none;
}

.tpl-modal-inner {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  animation: tplModalIn 0.18s ease;
}

@keyframes tplModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tpl-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.15s, color 0.15s;
}

.tpl-modal-close:hover {
  background: rgba(0,0,0,0.12);
  color: #111;
}

/* The doc-paper inside the modal gets boosted font size via inline style */
.tpl-modal-doc-wrap {
  padding: 28px 28px 16px;
  background: #f5f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-modal-doc-wrap .doc-paper {
  font-size: 9px;
  max-width: 100%;
  transform: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.1);
}

.tpl-modal-footer {
  padding: 16px 24px 20px;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tpl-modal-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #f0ebe0;
}

.tpl-modal-cta {
  background: #f5c518;
  color: #0d0d0d;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.tpl-modal-cta:hover { opacity: 0.88; }

/* Mobile: stack modal footer vertically */
@media (max-width: 500px) {
  .tpl-modal-inner { max-width: 100%; }
  .tpl-modal-footer { flex-direction: column; align-items: stretch; }
  .tpl-modal-cta { text-align: center; }
}

/* Responsive grid: fewer columns on smaller screens */
@media (max-width: 1200px) {
  .tpl-gallery-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .tpl-gallery {
    padding: 60px 6%;
  }
  .tpl-gallery-grid {
    grid-template-columns: repeat(7, 140px);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .tpl-gallery-header h2 {
    font-size: 1.5rem;
  }
}
