:root {
  --bg: #f6f7f6;
  --bg-alt: #ffffff;
  --text: #25364a;
  --muted: #7e8a98;
  --accent: #ef9a1e;
  --accent-dark: #e08b10;
  --card: #ffffff;
  --border: #e4e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: #2f5f99;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.container {
  width: min(1060px, calc(100% - 3rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 3rem));
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  text-decoration: none;
  color: #2e5a95;
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.brand-mark {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.45rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d3def0;
  background: #f7faff;
}

.brand-mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: #2f5e9d;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: grid;
  gap: 0.02rem;
  line-height: 1;
}

.brand-text strong {
  font-size: 0.72rem;
}

.brand-text small {
  font-size: 0.58rem;
  font-weight: 700;
  opacity: 0.92;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topnav a {
  color: #344457;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.topnav a:hover {
  color: #2b5c96;
}

.hero {
  padding: 6.6rem 0 7.3rem;
  border-bottom: 1px solid var(--border);
  background: #f7f8f7;
}

.hero-inner {
  text-align: center;
  width: min(840px, calc(100% - 1rem));
}

.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: var(--muted);
}

h1 {
  margin: 0 auto 1.25rem;
  max-width: 15ch;
  font-size: clamp(2rem, 5.1vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.highlight {
  color: var(--accent);
}

.hero-note {
  margin: 0.2rem auto 0;
  max-width: 34ch;
  font-size: clamp(1.02rem, 1.55vw, 1.78rem);
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}

.hero-subnote {
  margin: 0.95rem auto 0;
  max-width: 44ch;
  font-size: 0.95rem;
  color: #8b95a2;
}

.hero-cta {
  margin-top: 1.15rem;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.66rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-cta:hover {
  background: var(--accent-dark);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.2;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

h3 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.2rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.section-lead {
  max-width: 66ch;
  color: var(--muted);
}

.cycle-grid,
.tier-grid,
.loan-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.05rem;
}

.cycle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tier-grid,
.loan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(40, 55, 78, 0.05);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #fff3df;
  color: #d1800d;
  font-weight: 800;
}

.tier-card {
  text-align: center;
}

.tier-amount {
  margin: 0.25rem 0 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #27466f;
}

.math-box {
  margin-top: 1rem;
  border: 1px dashed #cfd7e2;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #f7faff;
}

.demo-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.demo-number {
  margin: 0.2rem 0 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #27466f;
}

.demo-copy {
  color: #4d5d70;
}

.demo-list {
  margin: 0;
  padding-left: 1rem;
  color: #4d5d70;
}

.demo-projection {
  margin-top: 1.05rem;
}

.quotes {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

blockquote {
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-left: 4px solid #e8b56e;
  background: #fffdf9;
  border-radius: 8px;
  color: #3a4b5f;
}

.join-form {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.join-form label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #38485c;
  display: grid;
  gap: 0.45rem;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid #cfd8e4;
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  outline: 2px solid #d7e5f8;
  border-color: #a8c4eb;
}

.join-form .full-width {
  grid-column: 1 / -1;
}

.join-form button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.68rem 1.1rem;
  cursor: pointer;
}

.join-form button:hover {
  background: var(--accent-dark);
}

.form-message {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message[data-state="success"] {
  color: #2d6e47;
}

.form-message[data-state="error"] {
  color: #b13a3a;
}

.disclaimer {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: #798797;
}

.footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer p {
  color: var(--muted);
}

.footer a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .cycle-grid,
  .demo-grid,
  .tier-grid,
  .loan-grid,
  .join-form {
    grid-template-columns: 1fr;
  }

  .section,
  .section-alt {
    padding: 3rem 0;
  }

  .topbar-inner {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 0.7rem 0;
  }

  .topnav {
    width: 100%;
    gap: 1rem;
    padding-bottom: 0.2rem;
  }

  .hero {
    padding-top: 4.6rem;
    padding-bottom: 5rem;
  }

  .hero-note {
    font-size: 1.1rem;
  }
}
