/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F8F5F0;
  --bg-alt: #EDEAE4;
  --fg: #1C1B18;
  --fg-muted: #6B6760;
  --accent: #E8913A;
  --accent-dark: #C97A2E;
  --green: #0B3D2E;
  --green-light: #123D2E;
  --white: #FFFFFF;
  --border: rgba(28,27,24,0.12);
  --shadow: 0 2px 20px rgba(28,27,24,0.08);
  --radius: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px 96px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.headline-accent {
  color: var(--green);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* === HERO VISUAL === */
.hero-visual {
  display: flex;
  align-items: center;
  gap: 24px;
}

.statement-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 0;
}

.panel-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.statement-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.line {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--fg-muted);
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--bg);
}

.line:nth-child(3), .line:nth-child(8) { color: var(--green); background: rgba(11,61,46,0.06); }
.line:nth-child(6) { color: var(--accent-dark); background: rgba(232,145,58,0.08); }

.statement-footer {
  margin-top: 12px;
  font-size: 0.65rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.transform-arrow {
  flex-shrink: 0;
}

.book-panel {
  background: var(--green);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--white);
  flex: 1;
  min-width: 0;
}

.book-panel .panel-label { color: rgba(255,255,255,0.5); }

.book-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  align-items: center;
  font-size: 0.7rem;
}

.entry-type {
  font-weight: 600;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.income { background: rgba(255,255,255,0.15); color: #7EE8A0; }
.expense { background: rgba(255,255,255,0.1); color: #FFB89A; }
.payroll { background: rgba(255,255,255,0.1); color: #A8C8FF; }
.tax { background: rgba(232,145,58,0.25); color: #FFD4A8; }

.entry-desc { color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.entry-amount { color: var(--white); font-weight: 600; white-space: nowrap; }

.entry-tax {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.entry-tax.clean { color: var(--accent); }

.book-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
}

.check-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
}

/* === STATS === */
.stats-section {
  background: var(--green);
  padding: 56px 48px;
}

.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* === HOW === */
.how-section {
  padding: 96px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 56px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  padding: 0 40px 0 0;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0.15;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.step-connector {
  position: absolute;
  top: 18px;
  right: 0;
  width: 48px;
  height: 2px;
  background: var(--border);
}

.step-connector-last {
  position: absolute;
  top: 18px;
  right: 0;
  width: 48px;
  height: 2px;
  background: transparent;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === FEATURES === */
.features-section {
  padding: 96px 48px;
  background: var(--bg-alt);
}

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.2s ease;
}

.feature-card:hover { background: var(--white); }

.feature-icon {
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === DIFFERENCE === */
.diff-section {
  padding: 96px 48px;
  background: var(--bg);
}

.diff-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.diff-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.diff-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.65;
}

.comparison-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
}

.compare-header .compare-col {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-header .active-col { color: var(--accent); }

.compare-col {
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  border-right: 1px solid var(--border);
}

.compare-col:last-child { border-right: none; }

.compare-row:not(.compare-header) .compare-col {
  border-right: 1px solid var(--border);
}

.compare-row:not(.compare-header) .compare-col:last-child { border-right: none; }

.compare-row:not(.compare-header) .compare-col:first-child {
  font-weight: 500;
  color: var(--fg);
}

.compare-row:not(.compare-header) .active-col {
  color: var(--green);
  font-weight: 600;
}

/* === ACCOUNTANT === */
.accountant-section {
  padding: 80px 48px;
  background: var(--green);
}

.acc-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.acc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,145,58,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.acc-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.acc-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.acc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
}

.acc-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.acc-feature svg { flex-shrink: 0; }

/* === CLOSING === */
.closing-section {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
}

.closing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(11,61,46,0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  background: var(--fg);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.footer-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; }
  .step { border-bottom: 1px solid var(--border); padding-bottom: 40px; margin-bottom: 40px; }
  .step-connector { display: none; }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 48px 24px; }
  .hero-visual { flex-direction: column; }
  .stats-inner { flex-direction: column; gap: 32px; }
  .stat-divider { width: 60px; height: 1px; }
  .stats-section { padding: 40px 24px; }
  .how-section, .features-section, .diff-section { padding: 64px 24px; }
  .accountant-section { padding: 64px 24px; }
  .closing-section { padding: 80px 24px; }
  .site-footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .features-grid { grid-template-columns: 1fr; }
  .comparison-table { overflow-x: auto; }
  .compare-row { min-width: 500px; }
  .acc-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat { padding: 0 16px; }
  .stat-number { font-size: 2.5rem; }
  .step { padding-right: 0; }
}
