/* ═══════════════════════════════════════════════════════════════════
   TradesBiz Sales Funnel — Light Simplistic Theme
   Aesthetic: Clean editorial. Warm whites. Confident typography.
   Font pairing: Fraunces (display) + DM Sans (body)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Colour tokens */
  --cream:       #FAFAF7;
  --warm-white:  #FFFFFF;
  --off-white:   #F4F1EC;
  --parchment:   #EDE8E0;
  --charcoal:    #1A1816;
  --charcoal-70: #4A4642;
  --charcoal-40: #9A9590;
  --charcoal-15: #E8E4DE;
  --orange:      #D4520A;
  --orange-warm: #E8620A;
  --orange-pale: #FDF0E8;
  --orange-mid:  #F5D5C0;
  --green:       #2A7A4F;
  --green-pale:  #EBF5EF;
  --amber:       #B87B0A;
  --amber-pale:  #FBF3E0;
  --red:         #B83A2A;
  --red-pale:    #FAECEA;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing scale */
  --space-xs:  0.375rem;
  --space-sm:  0.75rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3.5rem;
  --space-2xl: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(26,24,22,0.08), 0 1px 2px rgba(26,24,22,0.06);
  --shadow-md:  0 4px 12px rgba(26,24,22,0.10), 0 2px 4px rgba(26,24,22,0.06);
  --shadow-lg:  0 16px 48px rgba(26,24,22,0.12), 0 4px 12px rgba(26,24,22,0.08);
  --shadow-orange: 0 8px 32px rgba(212,82,10,0.20);
}

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background:  var(--cream);
  color:       var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--orange); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .75; }

/* ── Navigation ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--charcoal-15);
  padding: .875rem 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--charcoal); text-decoration: none;
  letter-spacing: -.02em;
}
.nav-brand span { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: background .15s, transform .12s;
}
.nav-cta:hover { background: var(--orange-warm); transform: translateY(-1px); opacity: 1; }

/* ── Container ────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; text-decoration: none;
  letter-spacing: -.01em;
}
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-warm); transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,82,10,0.28); color: #fff; opacity: 1;
}
.btn-secondary {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid var(--charcoal-15);
}
.btn-secondary:hover {
  background: var(--off-white); color: var(--charcoal); opacity: 1;
}
.btn-ghost {
  background: var(--orange-pale); color: var(--orange);
  border: 1.5px solid var(--orange-mid);
}
.btn-ghost:hover { background: var(--orange-mid); opacity: 1; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-xl { padding: 1.125rem 3rem; font-size: 1.15rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--charcoal-70); margin-bottom: .4rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.form-input, .form-select {
  width: 100%; padding: .875rem 1rem;
  background: var(--warm-white); border: 1.5px solid var(--charcoal-15);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 1rem; color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(212,82,10,0.12);
}
.form-input::placeholder { color: var(--charcoal-40); }
.form-hint { font-size: .78rem; color: var(--charcoal-40); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border: 1px solid var(--charcoal-15);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card-accent {
  background: var(--warm-white);
  border: 1.5px solid var(--orange-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-orange);
}
.card-filled {
  background: var(--off-white);
  border: 1px solid var(--parchment);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

/* ── Typography ───────────────────────────────────────────────────── */
.display-1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.0; letter-spacing: -.04em;
  color: var(--charcoal);
}
.display-2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1; letter-spacing: -.03em;
}
.display-3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2; letter-spacing: -.02em;
}
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: .75rem; display: block;
}
.lead-text {
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300;
  color: var(--charcoal-70); line-height: 1.7;
}
.text-orange { color: var(--orange); }
.text-muted  { color: var(--charcoal-40); }
.text-center { text-align: center; }
.italic-serif { font-family: var(--font-display); font-style: italic; }

/* ── Section spacings ─────────────────────────────────────────────── */
.section       { padding: var(--space-2xl) 0; }
.section-sm    { padding: var(--space-xl) 0; }
.section-white { background: var(--warm-white); }
.section-off   { background: var(--off-white); }
.section-parch { background: var(--parchment); }
.section-dark  { background: var(--charcoal); color: var(--cream); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center,
    rgba(212,82,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--orange-pale); border: 1px solid var(--orange-mid);
  color: var(--orange); padding: .35rem .875rem;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-visual {
  background: var(--warm-white);
  border: 1px solid var(--charcoal-15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-mockup-bar {
  background: var(--charcoal); padding: .75rem 1rem;
  display: flex; gap: .4rem; align-items: center;
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ── Benefits / Features ──────────────────────────────────────────── */
.benefit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.benefit-item {
  padding: 1.5rem;
  border-top: 2px solid var(--orange);
  background: var(--warm-white);
}
.benefit-icon { font-size: 1.75rem; margin-bottom: .875rem; display: block; }
.benefit-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; margin-bottom: .5rem; color: var(--charcoal);
}
.benefit-desc { font-size: .9rem; color: var(--charcoal-70); line-height: 1.6; }

/* ── Proof / testimonial ──────────────────────────────────────────── */
.testimonial {
  padding: 2rem 2.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.testimonial-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; line-height: 1.6; color: var(--charcoal);
  margin-bottom: 1rem;
}
.testimonial-author { font-size: .85rem; font-weight: 600; color: var(--charcoal-70); }
.stars { color: var(--amber); font-size: 1rem; margin-bottom: .5rem; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.toggle-label { font-size: .9rem; font-weight: 500; color: var(--charcoal-70); }
.toggle-pill {
  width: 48px; height: 26px; background: var(--charcoal-15);
  border-radius: 13px; cursor: pointer; position: relative;
  transition: background .2s; border: none;
}
.toggle-pill.active { background: var(--orange); }
.toggle-pill::after {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; top: 3px; left: 3px;
  transition: transform .2s;
}
.toggle-pill.active::after { transform: translateX(22px); }
.savings-badge {
  background: var(--green-pale); color: var(--green);
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem;
  border-radius: 20px; letter-spacing: .04em;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pricing-card {
  background: var(--warm-white);
  border: 1.5px solid var(--charcoal-15);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.popular-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .25rem .875rem;
  border-radius: 20px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.plan-name { font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--charcoal-40); margin-bottom: .5rem; }
.plan-price {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.75rem; letter-spacing: -.04em; line-height: 1;
}
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: .4rem; }
.plan-price .period { font-size: .9rem; font-weight: 400; color: var(--charcoal-40); }
.plan-feature-list { list-style: none; margin: 1.5rem 0; }
.plan-feature-list li {
  padding: .45rem 0; font-size: .9rem; color: var(--charcoal-70);
  display: flex; align-items: flex-start; gap: .5rem;
  border-bottom: 1px solid var(--charcoal-15);
}
.plan-feature-list li:last-child { border-bottom: none; }
.check { color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── Capture form card ────────────────────────────────────────────── */
.capture-card {
  background: var(--warm-white);
  border: 1px solid var(--charcoal-15);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 520px; margin: 0 auto;
}
.capture-card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; text-align: center; margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.capture-card-sub {
  text-align: center; color: var(--charcoal-70);
  font-size: .95rem; margin-bottom: 2rem; line-height: 1.6;
}

/* ── Progress / steps ─────────────────────────────────────────────── */
.step-list { list-style: none; counter-reset: steps; }
.step-item {
  counter-increment: steps;
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--charcoal-15);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  margin-top: .1rem;
}
.step-content-title { font-weight: 600; margin-bottom: .25rem; }
.step-content-desc { font-size: .9rem; color: var(--charcoal-70); }

/* ── Stat bar ─────────────────────────────────────────────────────── */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--charcoal-15);
  border: 1px solid var(--charcoal-15); border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-bar-item {
  background: var(--warm-white); padding: 1.5rem;
  text-align: center;
}
.stat-bar-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.2rem; letter-spacing: -.04em; color: var(--orange);
  line-height: 1; margin-bottom: .3rem;
}
.stat-bar-label { font-size: .8rem; color: var(--charcoal-70); font-weight: 500; }

/* ── Thank you page ───────────────────────────────────────────────── */
.thankyou-hero {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.thankyou-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-pale); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.5rem;
}

/* ── Invoice branding settings ────────────────────────────────────── */
.branding-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.color-swatch-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s;
}
.color-swatch.selected { border-color: var(--charcoal); }
.invoice-preview-frame {
  background: white; border: 1px solid var(--charcoal-15);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.inv-preview-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 2px solid var(--preview-color, #E8620A);
}
.inv-preview-logo-area { flex: 1; }
.inv-preview-logo { max-height: 56px; max-width: 180px; object-fit: contain; }
.inv-preview-biz-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; color: var(--charcoal);
}
.inv-preview-tagline { font-size: .78rem; color: var(--charcoal-40); margin-top: .15rem; }
.inv-preview-meta { text-align: right; font-size: .78rem; color: var(--charcoal-40); }
.inv-preview-number { font-weight: 700; font-size: .9rem; color: var(--charcoal); }

/* ── Email template base ──────────────────────────────────────────── */
.email-outer { background: #F4F1EC; padding: 2rem 1rem; }
.email-inner {
  max-width: 580px; margin: 0 auto;
  background: white; border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.email-header {
  background: var(--charcoal); padding: 1.5rem 2rem;
  text-align: center;
}
.email-header-brand {
  font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700;
  color: white; letter-spacing: -.02em;
}
.email-header-brand span { color: #E8620A; }
.email-body { padding: 2rem; }
.email-h1 {
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  color: #1A1816; margin-bottom: 1rem; line-height: 1.3;
}
.email-p { font-size: .95rem; color: #4A4642; line-height: 1.7; margin-bottom: 1rem; }
.email-cta {
  display: block; background: #D4520A; color: white !important;
  text-align: center; padding: .875rem 2rem; border-radius: 6px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  margin: 1.5rem 0;
}
.email-highlight {
  background: #FDF0E8; border-left: 3px solid #D4520A;
  padding: .875rem 1rem; border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}
.email-footer {
  padding: 1.25rem 2rem; background: #F4F1EC;
  text-align: center; font-size: .75rem; color: #9A9590;
  border-top: 1px solid #E8E4DE;
}

/* ── Animations ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s .1s ease both; }
.fade-up-3 { animation: fadeUp .5s .2s ease both; }
.fade-up-4 { animation: fadeUp .5s .3s ease both; }

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.03); }
}
.pulse-soft { animation: pulse-soft 3s ease infinite; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-grid        { grid-template-columns: 1fr; }
  .benefit-grid     { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .stat-bar         { grid-template-columns: 1fr 1fr; }
  .branding-layout  { grid-template-columns: 1fr; }
  .hero-visual      { display: none; }
  .section          { padding: var(--space-xl) 0; }
  .capture-card     { padding: 2rem 1.5rem; }
}
