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

:root {
  --bg: #f8f4ef;
  --bg-alt: #f0ebe3;
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --accent: #1a3c2e;
  --accent-warm: #d4a853;
  --accent-warm-dim: rgba(212, 168, 83, 0.15);
  --border: #d8cfc4;
  --card-bg: #ffffff;
  --fix-high: #c0392b;
  --fix-high-bg: #fdf2f2;
  --fix-medium: #b7791f;
  --fix-medium-bg: #fef9ec;
  --fix-low: #276749;
  --fix-low-bg: #f0fff4;
  --radius: 4px;
  --radius-lg: 8px;
}

html { scroll-behavior: smooth; }

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
}

em { font-style: italic; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.brand-mark {
  font-size: 18px;
  color: var(--accent-warm);
}

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
}

/* === HERO === */
.hero {
  padding: 80px 64px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-warm-dim);
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-sep { color: var(--border); font-size: 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}

.hero-headline {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 440px;
}

/* === INPUT BLOCK === */
.hero-input-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.input-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.goal-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.goal-btn {
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.goal-btn:hover { border-color: var(--accent); color: var(--accent); }

.goal-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.profile-input {
  width: 100%;
  min-height: 140px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  resize: vertical;
  transition: border-color 0.15s;
}

.profile-input:focus { outline: none; border-color: var(--accent); }
.profile-input::placeholder { color: #aaa; }

.input-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}

.privacy-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

.score-submit-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s;
}
.score-submit-btn:hover { opacity: 0.85; }
.score-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* === HERO STATS === */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 48px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  margin-right: 48px;
}

/* === SECTIONS === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 96px 64px;
  background: var(--bg-alt);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto 64px;
}

.step { padding: 0; }

.step-num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-warm-dim);
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc { font-size: 15px; color: var(--fg-muted); line-height: 1.7; }

/* Scoring breakdown */
.scoring-breakdown {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.breakdown-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 24px;
  text-align: center;
}

.scoring-bars { display: flex; flex-direction: column; gap: 12px; }

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 40px;
  align-items: center;
  gap: 12px;
}

.bar-name { font-size: 13px; color: var(--fg); font-weight: 500; }

.bar-track {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.bar-wt { font-size: 11px; color: var(--fg-muted); text-align: right; }

.breakdown-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  margin-top: 20px;
  text-align: center;
}

/* === SAMPLE REPORT === */
.sample-report { padding: 96px 64px; background: var(--bg); }

.report-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.07);
}

.report-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: var(--accent);
  color: #fff;
  padding: 28px 32px;
  gap: 32px;
}

.report-score-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-score-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.report-score-label {
  font-size: 20px;
  opacity: 0.7;
}

.report-goal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.15);
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 8px;
  width: fit-content;
}

.report-breakdown {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.8;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.breakdown-item:last-child { border-bottom: none; }

.bi-val { font-weight: 600; opacity: 1; }

/* Fixes */
.report-fixes { padding: 0 32px 32px; }

.fix {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
}

.fix-high { border-color: var(--fix-high); background: var(--fix-high-bg); }
.fix-medium { border-color: var(--fix-medium); background: var(--fix-medium-bg); }
.fix-low { border-color: var(--fix-low); background: var(--fix-low-bg); }

.fix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fix-priority {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 100px;
}

.fix-priority.high { background: var(--fix-high); color: #fff; }
.fix-priority.medium { background: var(--fix-medium); color: #fff; }
.fix-priority.low { background: var(--fix-low); color: #fff; }

.fix-points { font-size: 12px; color: var(--fg-muted); }

.fix-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; font-family: 'Fraunces', Georgia, serif; }

.fix-why { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }

.fix-example { border-top: 1px solid var(--border); padding-top: 16px; }

.ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 8px; }

.ex-before, .ex-after { margin-bottom: 8px; }

.ex-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.ex-before p, .ex-after p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
}

.ex-after p { color: var(--accent); font-weight: 500; }

/* === PRICING === */
.pricing { padding: 96px 64px; background: var(--bg-alt); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-card.pro {
  border-color: var(--accent);
  box-shadow: 0 4px 32px rgba(26,60,46,0.12);
}

.card-header { margin-bottom: 24px; }

.plan-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--fg);
}

.price-note { font-size: 14px; color: var(--fg-muted); }

.plan-tagline { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.feat {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feat::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.feat.excluded::before { content: '—'; color: var(--border); }
.feat.excluded { color: var(--fg-muted); opacity: 0.5; }

/* === SOCIAL PROOF === */
.social-proof { padding: 80px 64px; background: var(--bg); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
}

.proof-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.proof-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 16px;
}

.proof-meta { display: flex; flex-direction: column; gap: 2px; }

.proof-name { font-size: 13px; font-weight: 600; color: var(--fg); }

.proof-role { font-size: 12px; color: var(--fg-muted); }

.not-affiliated {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === CLOSING === */
.closing {
  padding: 96px 64px;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.closing-inner { max-width: 680px; margin: 0 auto; }

.closing-headline {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* === FOOTER === */
.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.5);
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .brand-name { color: rgba(255,255,255,0.9); }
.footer-brand .brand-mark { color: var(--accent-warm); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-links a:hover { color: rgba(255,255,255,0.9); text-decoration: none; }

.footer-disclaimer { font-size: 12px; max-width: 500px; line-height: 1.6; }
.footer-copy { font-size: 12px; }

/* === FORM HELPERS === */
.input-label--spaced { margin-top: 20px; }

.submit-error {
  display: none;
  font-size: 13px;
  color: var(--fix-high);
  margin-top: 8px;
}

/* === SCORE RESULTS PAGE === */
.report-page { min-height: 100vh; }

.score-hero {
  padding: 48px 64px;
  max-width: 900px;
  margin: 0 auto;
}
.score-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.score-eyebrow a { font-size: 14px; color: var(--accent); font-weight: 500; }
.score-eyebrow span { color: var(--fg-muted); }

.score-block {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  color: #fff;
  margin-bottom: 24px;
}
.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.score-circle svg { transform: rotate(-90deg); }
.score-circle text { font-family: 'Fraunces', Georgia, serif; font-weight: 900; }
.score-info { flex: 1; }
.score-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}
.score-label { font-size: 16px; opacity: 0.7; margin-top: 4px; }
.goal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 100px;
  margin-top: 12px;
}
.score-breakdown { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.sb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; opacity: 0.85; }
.sb-name { text-transform: capitalize; }
.sb-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.sb-fill { height: 100%; background: rgba(255,255,255,0.7); border-radius: 2px; }
.sb-val { font-weight: 600; min-width: 24px; text-align: right; }

.retake-row { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.btn-retake {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-retake:hover { border-color: var(--accent); color: var(--accent); }

.fixes-section { padding: 0 64px 80px; max-width: 900px; margin: 0 auto; }
.fixes-header { margin-bottom: 32px; }
.fixes-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; font-family: 'Fraunces', Georgia, serif; }
.fixes-sub { font-size: 15px; color: var(--fg-muted); }
.fix { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; transition: box-shadow 0.15s; }
.fix:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.fix-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fix-meta { display: flex; gap: 8px; align-items: center; }
.fix-priority { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 100px; }
.fix-pts { font-size: 12px; color: var(--fg-muted); }
.fix-area { font-size: 12px; text-transform: capitalize; color: var(--fg-muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 8px; border-radius: 100px; }
.fix-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; font-family: 'Fraunces', Georgia, serif; color: var(--fg); }
.fix-problem { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 12px; }
.fix-why { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 20px; padding: 10px 14px; background: var(--accent-warm-dim); border-radius: var(--radius); }
.fix-example { border-top: 1px solid var(--border); padding-top: 16px; }
.ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 8px; }
.ex-before, .ex-after { margin-bottom: 10px; }
.ex-tag { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-muted); margin-bottom: 4px; }
.ex-before p, .ex-after p { font-size: 14px; line-height: 1.65; color: var(--fg); font-style: italic; }
.ex-after p { color: var(--accent); font-weight: 500; }

.upgrade-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}
.upgrade-icon { font-size: 32px; flex-shrink: 0; }
.upgrade-text { flex: 1; }
.upgrade-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.upgrade-sub { font-size: 14px; opacity: 0.75; }
.btn-upgrade {
  background: var(--accent-warm);
  color: var(--accent);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}

.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(248,244,239,0.9);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loading-overlay.visible { display: flex; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-msg { font-size: 16px; color: var(--fg-muted); font-family: 'DM Sans', sans-serif; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 60px 24px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .report-header { grid-template-columns: 1fr; }
  .how-it-works, .sample-report, .pricing, .social-proof, .closing { padding: 64px 24px; }
  .bar-row { grid-template-columns: 120px 1fr 36px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .site-footer { padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  .goal-selector { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 700px) {
  .score-hero, .fixes-section { padding: 32px 24px; }
  .score-block { flex-direction: column; padding: 28px; }
  .score-breakdown { width: 100%; }
  .upgrade-banner { flex-direction: column; text-align: center; }
}
