:root {
  color-scheme: light;
  --wp-orange: #f05a1a;
  --wp-orange-dark: #b83c08;
  --wp-orange-soft: #fff1e8;
  --wp-black: #050505;
  --wp-white: #ffffff;
  --wp-cream: #fbfaf7;
  --wp-cream-2: #f5f1eb;
  --wp-border: #e6ded3;
  --wp-muted: #6d675f;
  --wp-muted-2: #938a80;
  --wp-shadow: 0 18px 60px rgba(5, 5, 5, .07);
  --danger: #8a1f11;
  --danger-bg: #fff0ea;
  --success: #17643a;
  --success-bg: #e8f7ef;
  --warn: #8b4a0b;
  --warn-bg: #fff6df;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--wp-white) 0%, var(--wp-cream) 42%, var(--wp-cream-2) 100%);
  color: var(--wp-black);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button {
  border: 1px solid var(--wp-border);
  background: var(--wp-white);
  color: var(--wp-black);
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
button:hover { transform: translateY(-1px); border-color: var(--wp-orange); box-shadow: 0 10px 24px rgba(240, 90, 26, .12); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(240, 90, 26, .32); outline-offset: 3px; }
button.selected, button.active, .scenario-card.active {
  background: var(--wp-black);
  color: var(--wp-white);
  border-color: var(--wp-black);
}
#app { max-width: 1480px; margin: 0 auto; padding: 24px; }

.brand-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  margin: -24px -24px 28px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--wp-border);
  backdrop-filter: blur(16px);
}
.brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 280px; }
.brand-logo { width: 76px; height: 46px; object-fit: contain; display: block; }
.brand-kicker { display: block; color: var(--wp-orange-dark); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 900; }
.brand-lockup strong { font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: -.03em; }
.brand-nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 30px); white-space: nowrap; overflow-x: auto; padding-bottom: 2px; }
.brand-nav a { color: var(--wp-black); text-decoration: none; font-weight: 750; font-size: .92rem; padding: 12px 0 10px; border-bottom: 2px solid transparent; }
.brand-nav a[aria-current="page"], .brand-nav a:hover { color: var(--wp-orange-dark); border-bottom-color: var(--wp-orange); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
}
.eyebrow { color: var(--wp-orange-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 900; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 5.4vw, 5.7rem); line-height: .92; margin: 0 0 18px; letter-spacing: -0.055em; font-weight: 700; }
.subtitle { font-size: 1.2rem; color: var(--wp-muted); max-width: 760px; line-height: 1.55; }
.notice, .temporary-note, .summary-card, .step {
  border: 1px solid var(--wp-border);
  background: rgba(255, 255, 255, .92);
  border-radius: 24px;
  box-shadow: var(--wp-shadow);
}
.notice { padding: 22px; }
.notice strong, .notice span { display: block; }
.notice strong { color: var(--wp-black); }
.notice span { color: var(--wp-muted); margin-top: 10px; line-height: 1.5; }
.temporary-note { margin: 20px 0 22px; background: var(--wp-orange-soft); padding: 16px 18px; border-color: #ffd8c4; }
.temporary-note strong { color: var(--wp-orange-dark); }

.dashboard-overview {
  display: grid;
  grid-template-columns: 1.08fr .9fr .9fr;
  gap: 16px;
  margin: 16px 0 18px;
}
.summary-card { padding: 22px; min-height: 220px; }
.card-label { display: block; text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 900; color: var(--wp-black); margin-bottom: 14px; }
.summary-card strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -.04em; }
.founder-summary strong, .threshold-summary strong { color: var(--wp-orange-dark); }
.summary-card p { margin: 12px 0; }
.soft-callout { margin-top: 18px; border-radius: 16px; padding: 13px 14px; background: var(--wp-orange-soft); color: var(--wp-black); border: 1px solid #ffd8c4; }
.paid-first-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.paid-first-list li { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.paid-first-list li::before { content: counter(item); counter-increment: item; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--wp-orange); color: var(--wp-orange-dark); font-size: .78rem; }
.paid-first-list { counter-reset: item; }
.mini-note { font-size: .9rem; color: var(--wp-muted); }

.steps { display: grid; gap: 22px; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 22px;
}
.step-number {
  width: 76px;
  min-height: 76px;
  border-radius: 24px;
  background: var(--wp-orange-soft);
  border: 1px solid #ffd8c4;
  display: grid;
  place-items: center;
  color: var(--wp-orange-dark);
  font-weight: 900;
  text-align: center;
}
h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.55rem, 3vw, 2.35rem); margin: 0 0 8px; letter-spacing: -0.04em; }
h3 { margin: 0; }
p { color: var(--wp-muted); line-height: 1.55; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.scenario-card { text-align: left; border-radius: 22px; min-height: 154px; display: flex; flex-direction: column; gap: 10px; white-space: normal; }
.scenario-card small, .scenario-type { opacity: .84; line-height: 1.35; }
.scenario-card.active .scenario-type, .scenario-card.active small { opacity: .9; }
.scenario-type { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; color: var(--wp-orange-dark); }
.scenario-card.active .scenario-type { color: #ffb18b; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.wrap { flex-wrap: wrap; }
.helper { background: var(--wp-orange-soft); border: 1px dashed #ffc9ad; border-radius: 18px; padding: 12px 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
label { display: grid; gap: 7px; color: var(--wp-muted); font-weight: 750; }
label span { font-size: .9rem; }
input { border: 1px solid var(--wp-border); border-radius: 15px; padding: 12px 13px; background: var(--wp-white); color: var(--wp-black); width: 100%; }
.check { display: flex; align-items: center; gap: 10px; background: var(--wp-white); border: 1px solid var(--wp-border); border-radius: 15px; padding: 12px; }
.check input { width: auto; accent-color: var(--wp-orange); }
.good, .warning, .big-warning { border-radius: 18px; padding: 14px; font-weight: 850; }
.good, .success { color: var(--success); background: var(--success-bg); }
.warning { color: var(--warn); background: var(--warn-bg); }
.danger { color: var(--danger); background: var(--danger-bg); }
.round-list { display: grid; gap: 14px; }
.round-card { background: var(--wp-white); border: 1px solid var(--wp-border); border-radius: 24px; padding: 18px; }
.round-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.notes-grid p { background: var(--wp-cream-2); border-radius: 18px; padding: 14px; margin: 0; color: var(--wp-muted); }
.notes-grid strong { color: var(--wp-black); }
.equation { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.equation span { background: var(--wp-cream-2); padding: 16px; border-radius: 18px; font-weight: 900; text-align: center; }
.payment-ladder { display: grid; gap: 10px; }
.payment-ladder div { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; background: var(--wp-white); border: 1px solid var(--wp-border); border-radius: 18px; padding: 14px; }
.payment-ladder strong { display: grid; place-items: center; background: var(--wp-orange-soft); border: 1px solid #ffd8c4; color: var(--wp-orange-dark); border-radius: 999px; width: 34px; height: 34px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.result-card { background: var(--wp-white); border: 1px solid var(--wp-border); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.result-card span { color: var(--wp-muted); font-weight: 750; }
.result-card strong { font-size: 1.45rem; }
.founder strong { font-size: 1.9rem; }
.big-warning { font-size: 1.1rem; }
.thresholds { border: 1px solid var(--wp-border); background: var(--wp-white); border-radius: 24px; padding: 18px; margin-top: 18px; }
.comparison-table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 780px; background: var(--wp-white); border-radius: 18px; overflow: hidden; }
th, td { border-bottom: 1px solid var(--wp-border); padding: 14px; text-align: left; }
th { background: var(--wp-black); color: var(--wp-white); }
td:first-child { font-weight: 800; }
@media (max-width: 1040px) {
  .brand-header { align-items: flex-start; flex-direction: column; }
  .brand-nav { width: 100%; }
  .hero, .dashboard-overview { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  #app { padding: 16px; }
  .brand-header { margin: -16px -16px 20px; padding: 12px 16px; }
  .brand-logo { width: 62px; height: 38px; }
  .step { grid-template-columns: 1fr; }
  .step-number { width: auto; min-height: auto; padding: 12px; }
  .equation { grid-template-columns: 1fr; }
  .payment-ladder div { grid-template-columns: 36px 1fr; }
  .payment-ladder b { grid-column: 2; }
  .summary-card { min-height: auto; }
}
