:root {
  --bg: #FEF9F0;
  --surface: #FFFFFF;
  --fg: #1A1A2E;
  --fg-muted: #6B7280;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --ink: #1A1A2E;
  --border: #E5E7EB;
  --card-shadow: 0 4px 24px rgba(26,26,46,0.10);
  --radius: 16px;
}

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

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

h1, h2, h3, .nav-logo, .footer-logo {
  font-family: 'Syne', system-ui, sans-serif;
}

/* NAV */
.nav {
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--fg);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

/* HERO */
.hero {
  padding: 80px 32px 64px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-pricing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.hero-price {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--fg);
}
.hero-period {
  font-size: 16px;
  color: var(--fg-muted);
}
.hero-calc {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'DM Sans', monospace;
}

/* CARD STACK */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  position: relative;
}
.card-1 { transform: rotate(-1.5deg); }
.card-2 { transform: rotate(0.8deg); }
.card-3 { transform: rotate(-0.5deg); }
.card-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.card-text {
  font-size: 14px;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
}
.card-source {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
}

/* PROOF STRIP */
.proof {
  background: var(--fg);
  color: white;
  padding: 40px 32px;
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.proof-number {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
}
.proof-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  max-width: 160px;
  line-height: 1.4;
}
.proof-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

/* HOW */
.how {
  padding: 80px 32px;
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-headline {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  color: var(--fg);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.step-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* TEMPLATES */
.templates {
  padding: 80px 32px;
  background: var(--surface);
}
.templates-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.templates-headline {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.templates-sub {
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 40px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tmpl {
  border-radius: 16px;
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tmpl-card-a {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D54 100%);
  color: white;
}
.tmpl-quote {
  font-size: 64px;
  font-family: 'Syne', serif;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.tmpl-card-a .tmpl-review {
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
}
.tmpl-card-a .tmpl-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.tmpl-card-b {
  background: var(--accent);
  color: var(--fg);
}
.tmpl-badge {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tmpl-card-b .tmpl-review {
  font-size: 15px;
  line-height: 1.5;
}
.tmpl-card-b .tmpl-footer {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
}

.tmpl-card-c {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--fg);
}
.tmpl-stars {
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.tmpl-card-c .tmpl-review {
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
}
.tmpl-card-c .tmpl-footer {
  font-size: 12px;
  color: var(--fg-muted);
}

/* CLOSING */
.closing {
  padding: 80px 32px;
  background: var(--fg);
  color: white;
}
.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.closing-headline {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* FOOTER */
.footer {
  padding: 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.footer-desc {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-legal {
  font-size: 13px;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .card-stack { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .review-card { min-width: 260px; }
  .proof-inner { flex-direction: column; }
  .proof-divider { display: none; }
  .how-steps { grid-template-columns: 1fr; gap: 32px; }
  .template-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; }
}

/* ============================================================
   DEMO HERO WIDGET
   ============================================================ */
.demo-hero {
  padding: 56px 32px 64px;
  background: var(--bg);
}
.demo-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left panel — form */
.demo-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.demo-headline {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 18px;
}
.demo-sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.6;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--fg);
  resize: vertical;
  min-height: 110px;
  transition: border-color 0.15s;
}
.form-textarea:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.form-field--grow { flex: 1; }
.form-field--color { flex: 0 0 80px; }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--fg);
}
.form-color {
  width: 56px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.template-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpl-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-right: 4px;
}
.tpl-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tpl-btn:hover { border-color: var(--accent); color: var(--accent); }
.tpl-btn--active {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}

.btn-render {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
}
.btn-render:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.btn-render:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Right panel — preview */
.demo-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-preview-wrap {
  position: relative;
}
.demo-preview-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-inner { text-align: center; }
.placeholder-stars {
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.placeholder-hint {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.6;
}
.demo-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--card-shadow);
  display: block;
}
.demo-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.btn-download {
  flex: 1;
  display: block;
  padding: 12px 0;
  background: var(--fg);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s;
}
.btn-download:hover { background: #2d2d4e; }
.btn-regenerate {
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-regenerate:hover { border-color: var(--accent); }

/* CTA block */
.demo-cta {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.demo-cta-headline {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}
.demo-cta-sub {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cta-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cta-email {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
}
.cta-email:focus { outline: none; border-color: var(--accent); }
.btn-cta {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--accent-dark); }
.cta-fine {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-muted);
}
.cta-confirm {
  font-size: 15px;
  font-weight: 600;
  color: #16a34a;
  padding: 8px 0;
}

/* Mobile adjustments for demo hero */
@media (max-width: 768px) {
  .demo-hero { padding: 40px 20px 48px; }
  .demo-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .demo-right { order: -1; }
  .form-row { flex-direction: row; }
}