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

:root {
  --bg: #fffbf5;
  --bg-white: #ffffff;
  --text: #1a1a1a;
  --text-mid: #444;
  --text-light: #777;
  --accent: #6d3bfa;
  --accent-hover: #5a2de0;
  --blue: #e8f0fe;
  --blue-strong: #3b82f6;
  --green: #e6f9ed;
  --green-strong: #16a34a;
  --amber: #fef3e2;
  --amber-strong: #f59e0b;
  --border: #e0dcd5;
  --border-light: #eee9e1;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-md { padding: 12px 24px; font-size: 15px; width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text-light); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,251,245,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.logo-q { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: white; }

/* ── Handwritten scrawl ── */
.scrawl {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

/* ── Hero ── */
.hero {
  padding: 130px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 500px; }
.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-highlight { color: var(--accent); display: block; margin-top: 0.25em; }
.hero-sub {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-actions { margin-bottom: 12px; }
.hero-note { font-size: 13px; color: var(--text-light); }

/* Phone mockup */
.phone-frame {
  width: 260px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.phone-notch { width: 80px; height: 6px; background: #333; border-radius: 99px; margin: 0 auto 12px; }
.phone-screen {
  background: var(--bg);
  border-radius: 20px;
  padding: 20px 16px;
  min-height: 340px;
}
.ps-title { font-weight: 800; font-size: 18px; margin-bottom: 16px; color: var(--text); }
.ps-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.ps-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); font-weight: 600; }
.ps-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }
.ps-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-mid); padding: 3px 0; }
.ps-row.total { font-weight: 700; color: var(--text); border-top: 1px solid var(--border-light); padding-top: 6px; margin-top: 4px; }
.ps-btn {
  background: var(--accent);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  margin-top: 12px;
}

/* ── USP strip ── */
.usp-strip {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 14px 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.usp-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  width: max-content;
}
.usp-track span { flex-shrink: 0; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Features ── */
.features { padding: 80px 0; }

.feat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.feat-block.reverse { direction: rtl; }
.feat-block.reverse > * { direction: ltr; }

.feat-copy h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.feat-copy p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

.feat-vis {
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.fv-blue { background: var(--blue); }
.fv-green { background: var(--green); }
.fv-amber { background: var(--amber); }

/* Wizard mock */
.mock-wizard { display: flex; align-items: center; }
.mw-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mw-step span { font-size: 11px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.mw-step.active span { color: var(--blue-strong); }
.mw-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--border); border: 3px solid white; }
.mw-step.active .mw-dot { background: var(--blue-strong); }
.mw-line { width: 32px; height: 3px; background: var(--border); margin: 0 4px; margin-bottom: 20px; border-radius: 2px; }
.mw-line.done { background: var(--blue-strong); }

/* Convert mock */
.mock-convert { display: flex; align-items: center; gap: 16px; }
.mc-doc {
  background: white;
  border-radius: 12px;
  padding: 16px;
  width: 120px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1.5px solid var(--border-light);
}
.mc-doc.pop { border-color: var(--green-strong); }
.mc-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 10px; }
.mc-doc.pop .mc-tag { color: var(--green-strong); }
.mc-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mc-l { height: 6px; background: #eee; border-radius: 3px; }
.mc-l.w80 { width: 80%; }
.mc-l.w60 { width: 60%; }
.mc-amount { font-size: 18px; font-weight: 800; color: var(--text); }
.mc-arrow { color: var(--green-strong); }

/* PDF mock */
.mock-pdf {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.mpdf-bar { height: 4px; background: var(--amber-strong); border-radius: 2px; margin-bottom: 16px; }
.mpdf-logo { width: 32px; height: 32px; border-radius: 6px; background: var(--amber); border: 1.5px solid var(--amber-strong); margin-bottom: 12px; }
.mpdf-h { height: 8px; width: 60%; background: var(--text); border-radius: 4px; margin-bottom: 16px; }
.mpdf-divider { height: 1px; background: var(--border-light); margin-bottom: 12px; }
.mpdf-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.mpdf-row span { height: 6px; border-radius: 3px; background: #eee; }
.mpdf-row span:first-child { width: 50%; }
.mpdf-row span:last-child { width: 20%; }
.mpdf-total {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--text);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* ── Extras ── */
.extras { padding: 48px 0 72px; }
.extras-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.extra-chip {
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}
.extra-chip strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.extra-chip span { font-size: 13px; color: var(--text-light); line-height: 1.45; }

/* ── Pricing ── */
.pricing {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text);
}
.pricing-sub { text-align: center; color: var(--text-light); font-size: 16px; margin-bottom: 48px; }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 580px;
  margin: 0 auto;
}
.price-card {
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  background: var(--bg);
}
.price-pop {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 4px 24px rgba(109, 59, 250, 0.1);
}
.price-save-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}
.price-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.price-cents { font-size: 24px; }
.price-period { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.price-list { list-style: none; text-align: left; margin-bottom: 20px; }
.price-list li { font-size: 14px; color: var(--text-mid); padding: 4px 0; }
.price-list li::before { content: "\2713"; color: var(--green-strong); font-weight: 700; margin-right: 8px; }
.pricing-note { text-align: center; font-size: 13px; color: var(--text-light); margin-top: 24px; }

/* ── CTA ── */
.cta { padding: 80px 0; text-align: center; }
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.cta p { color: var(--text-light); font-size: 17px; margin-bottom: 28px; }

/* ── Footer ── */
.footer { padding: 48px 0 28px; border-top: 1px solid var(--border-light); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.footer-brand p { color: var(--text-light); font-size: 13px; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-light); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: 20px; }
.footer-bottom p { color: var(--text-light); font-size: 12px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { display: none; }
  .feat-block, .feat-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feat-vis { min-height: 200px; padding: 28px; }
  .extras-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 320px; }
}
@media (max-width: 480px) {
  .hero { padding: 110px 0 48px; }
  .hero h1 br { display: none; }
  .features, .pricing, .cta { padding: 56px 0; }
  .extras-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
