/* Dynasty Tax Pro — B2B Service Bureau Landing Page
 * Palette: #C41E2A (brand red), white, near-black, light gray
 * Fonts: Playfair Display (serif display) + DM Sans (body)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --red: #C41E2A;
  --red-dark: #9e1621;
  --red-dim: rgba(196, 30, 42, 0.08);
  --red-border: rgba(196, 30, 42, 0.2);
  --black: #0e0e0e;
  --charcoal: #1a1a1a;
  --graphite: #2d2d2d;
  --mid: #555;
  --muted: #888;
  --light: #f4f4f4;
  --white: #fff;
  --border: rgba(0,0,0,0.09);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-crown {
  width: 32px;
  height: 32px;
  color: var(--red);
}
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-brand-text span {
  color: var(--red);
}
.nav-cta {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-dark); }

/* ── HERO ── */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(196,30,42,0.03) 40px,
    rgba(196,30,42,0.03) 41px
  );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  width: fit-content;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.hero h1 em {
  color: var(--red);
  font-style: normal;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.hero-trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--red);
}
.trust-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero CTA card */
.hero-card {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 2rem 1.75rem;
}
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.hero-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.hero-card .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-card input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.hero-card input::placeholder { color: rgba(255,255,255,0.3); }
.hero-card input:focus { border-color: var(--red); }
.hero-card .btn-primary { width: 100%; text-align: center; margin-top: 0.25rem; }
.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 0.75rem;
}

/* ── CALCULATOR ── */
.calculator {
  padding: 5rem 2rem;
  background: var(--light);
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--black);
}
.section-sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}
.calc-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.calc-inputs {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.calc-inputs h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite);
  margin-bottom: 0.5rem;
}
.form-field input {
  width: 100%;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus { border-color: var(--red); background: var(--white); }
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.calc-result {
  background: var(--black);
  border-radius: 10px;
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.calc-result::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(196,30,42,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.calc-result h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.result-row:last-of-type { border-bottom: none; }
.result-label { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.result-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.result-savings {
  margin-top: 1.5rem;
  background: var(--red);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}
.savings-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.35rem;
}
.savings-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.savings-period { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.tier-info {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.calc-cta {
  margin-top: 1.5rem;
  display: block;
  text-align: center;
}

/* Pricing tier table */
.tier-table {
  margin-top: 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.tier-table table { width: 100%; border-collapse: collapse; }
.tier-table th {
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem;
  text-align: left;
}
.tier-table th:first-child { border-radius: 0; }
.tier-table td {
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}
.tier-table tr:last-child td { border-bottom: none; }
.tier-table tr:hover td { background: var(--light); }
.tier-active td { font-weight: 600; }
.tier-best td:first-child {
  border-left: 3px solid var(--red);
}
.tier-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 5rem 2rem;
  background: var(--white);
}
.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 0.5rem;
}
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(196,30,42,0.2) 100%);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  border: 2px solid var(--red);
}
.step-num.active {
  background: var(--red);
  border-color: var(--red);
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--black);
}
.step p {
  font-size: 0.87rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── WHY SWITCH ── */
.why-switch {
  padding: 5rem 2rem;
  background: var(--charcoal);
  color: var(--white);
}
.why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.why-switch .section-label { color: var(--red); }
.why-switch .section-title { color: var(--white); }
.why-switch .section-sub { color: rgba(255,255,255,0.55); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.compare-col {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.75rem;
}
.compare-col.ours {
  background: rgba(196,30,42,0.1);
  border-color: var(--red-border);
}
.compare-col h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.compare-col.ours h4 { color: var(--red); }
.compare-col.theirs h4 { color: rgba(255,255,255,0.4); }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.compare-col.ours .compare-list li { color: rgba(255,255,255,0.85); }
.compare-col.theirs .compare-list li { color: rgba(255,255,255,0.45); }
.icon-check { color: var(--red); font-size: 1rem; flex-shrink: 0; }
.icon-x { color: rgba(255,255,255,0.25); font-size: 1rem; flex-shrink: 0; }

/* ── EMAIL CAPTURE ── */
.email-capture {
  padding: 5rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.capture-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.capture-card {
  background: var(--black);
  border-radius: 12px;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.capture-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(196,30,42,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.capture-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.capture-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.capture-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}
.audit-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  position: relative;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.audit-form input,
.audit-form select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.audit-form input::placeholder { color: rgba(255,255,255,0.3); }
.audit-form input:focus,
.audit-form select:focus { border-color: var(--red); }
.audit-form select option { background: var(--charcoal); color: var(--white); }
.audit-form .btn-primary { width: 100%; margin-top: 0.25rem; padding: 0.9rem; font-size: 1rem; }
.capture-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.75rem;
  text-align: center;
  position: relative;
}
.success-msg {
  display: none;
  background: rgba(196,30,42,0.15);
  border: 1px solid var(--red-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1rem;
}
.success-msg.visible { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  border-top: 2px solid var(--red);
  padding: 2rem 2rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand span { color: var(--red); }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 0.2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 480px; }
  .calc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps::before { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 3.5rem; }
  .calculator, .how-it-works, .why-switch, .email-capture { padding: 3.5rem 1.25rem; }
  .steps { grid-template-columns: 1fr; }
  .capture-card { padding: 2rem 1.25rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.5rem; }
  .nav-inner { padding: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
