@font-face {
  font-family: Instrument Sans;
  src: url('assets/instrument-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color: #211637;
  background: #fbf9f7;
  font: 400 1rem/1.5 "Instrument Sans", system-ui, sans-serif;
  font-synthesis: none;
  --ink: #211637;
  --muted: #574e65;
  --violet: #4324b8;
  --gold: #ffda76;
  --paper: #fbf9f7;
  --line: #ded6e9;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: .17rem solid #643fca; outline-offset: .24rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
p { line-height: 1.5; }
.shell { width: min(100% - 6rem, 82rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .6rem .9rem; border-radius: .65rem; background: #fff; }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .62rem; font-size: clamp(1.03rem, 2.2vw, 1.32rem); font-weight: 750; letter-spacing: -.056em; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 1.92rem; height: 1.55rem; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; display: block; width: 1.02rem; height: 1.02rem; transform: rotate(45deg); border-radius: .12rem; }
.brand-mark::before { top: .2rem; left: .08rem; border: .24rem solid var(--violet); border-right: 0; border-bottom: 0; }
.brand-mark::after { top: .22rem; right: .14rem; border: .23rem solid #9e412b; border-top: 0; border-left: 0; }
.site-header nav a, .site-header > a:not(.wordmark) { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .95rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .site-header > a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-block-size: clamp(25rem, 33vw, 30rem);
  border-radius: 2rem;
  overflow: hidden;
  background: #241544;
  color: #fff;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.75rem, 3.9vw, 3.75rem);
  background: radial-gradient(ellipse at 5% 0%, #432879, transparent 71%);
}
.hero h1 { font-size: clamp(2.2rem, 4.08vw, 4rem); max-inline-size: 18ch; line-height: 1.02; text-wrap: balance; }
.hero-description { max-inline-size: 36ch; margin-top: 1rem; color: #f0e9ff; font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.4; text-wrap: pretty; }
.hero-media { position: relative; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 49%; }
.hero .button { margin-top: 1.65rem; }
.hero-note { color: #f0e9ff; margin-top: .65rem; font-size: .93rem; }
.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 3.2rem; border: 0; border-radius: 99rem; padding: .88rem 1.62rem; font-weight: 750; font-size: 1.04rem; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color 150ms ease; }
.button.primary { background: var(--gold); color: #1b1030; }
.button.primary:hover { background: #ffe49c; }
.button.review-cta { background: #087b4f; color: #fff; }
.button.review-cta:hover { background: #05603d; }
.button.secondary { background: #f0ebf5; color: var(--ink); }
.button.secondary:hover { background: #e9e1f0; }
.button:disabled { cursor: wait; opacity: .67; }
.hero .button:focus-visible, .closing .button:focus-visible { outline-color: white; }

.section { margin-top: clamp(3.5rem, 6.7vw, 6.1rem); }
.section h2 { margin-bottom: clamp(1.22rem, 3vw, 2rem); font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.lenders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.6rem, 1.35vw, 1.3rem); }
.lender { display: flex; justify-content: center; align-items: center; gap: .48rem; min-height: 4.55rem; background: #fff; border: 1px solid #eee8f0; border-radius: 1.13rem; padding: .6rem .5rem; font-size: clamp(.88rem, 1.55vw, 1.18rem); font-weight: 750; white-space: nowrap; text-decoration: none; }
.lender:hover { border-color: #bfaed9; background: #f6f0fc; }
.lender img { flex: 0 0 auto; object-fit: contain; border-radius: .26rem; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.85rem, 1.7vw, 1.35rem);
}
.benefit {
  color: white;
  border-radius: clamp(1.15rem, 1.9vw, 1.6rem);
  padding: clamp(1.25rem, 2.2vw, 2rem);
  min-block-size: 11rem;
}
.benefit h3 { font-size: clamp(1.35rem, 1.95vw, 1.9rem); line-height: 1.1; text-wrap: balance; }
.benefit p { font-size: 1.02rem; line-height: 1.4; margin-top: .65rem; max-inline-size: 32ch; }
.benefit-rate { background-color: #492aa4; }
.benefit-repayments { background-color: #185476; }
.benefit-equity { background-color: #241738; background-image: linear-gradient(90deg, #20142cf5 0%, #20142cec 57%, #20142c35 100%), url('assets/equity.webp'); background-position: center; background-size: cover; }
.benefit-equity h3, .benefit-equity p { max-inline-size: 74%; }
.benefit-debts { background-color: #075e58; }
.benefit-sooner { background-color: #1b4d7d; }
.benefit-fixed { background-color: #57285e; }

.how { border-radius: 2rem; padding: clamp(1.7rem, 4vw, 3.1rem); background: #f0e9fb; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.how h3 { font-size: 1.26rem; line-height: 1.2; }
.how p { margin-top: .48rem; }
.how .how-summary { max-inline-size: 62ch; margin: -0.65rem 0 1.8rem; }
.guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.4rem; background: #fff; }
.guide-card h3 { font-size: clamp(1.28rem, 2.35vw, 1.65rem); line-height: 1.2; }
.guide-card p { margin-top: .55rem; color: var(--muted); }
.reading-shell { width: min(100% - 2rem, 44rem); margin: clamp(2rem, 5vw, 4.25rem) auto; }
.reading-shell h1 { font-size: clamp(2.1rem, 5vw, 3.55rem); line-height: 1.06; text-wrap: balance; }
.reading-shell h2 { font-size: clamp(1.32rem, 3vw, 1.85rem); line-height: 1.18; margin-top: 2.2rem; }
.reading-shell p { margin-top: .85rem; }
.reading-shell .article-lead { margin-top: 1.15rem; font-size: clamp(1.13rem, 2vw, 1.3rem); }
.article-meta { color: var(--muted); font-size: .93rem; }
.reading-shell ul { padding-inline-start: 1.25rem; margin-top: .8rem; }
.reading-shell li + li { margin-top: .4rem; }
.article-action { margin-top: 2.4rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 1.5rem; background: #f0e9fb; }
.article-action h2 { margin: 0; }
.article-action .button { margin-top: 1.05rem; }
.faq { max-width: 50rem; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 0; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.1rem; max-width: 65ch; color: var(--muted); }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding: clamp(1.7rem, 4.4vw, 4rem); border-radius: 2rem; color: white; background: var(--violet); }
.closing h2 { margin: 0; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: .68rem 1rem; padding: 3rem 0 2.3rem; font-size: .95rem; color: var(--muted); }
.footer-name { font-weight: 750; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer p { grid-column: 1 / -1; }
.mobile-action { display: none; }

.inner-page { min-height: 100vh; background: radial-gradient(80rem 43rem at 45% 0%, #f2ebfc 0%, var(--paper) 60%); }
.form-shell { width: min(100% - 2rem, 39rem); margin: 1.6rem auto 3rem; }
.progress { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; margin: 0 .25rem 1.1rem; color: var(--muted); font-size: .92rem; font-weight: 650; }
.progress progress { grid-column: 1 / -1; width: 100%; height: .5rem; border: 0; border-radius: 1rem; overflow: hidden; appearance: none; accent-color: var(--violet); background: #e7dff2; }
.progress progress::-webkit-progress-bar { background: #e7dff2; }
.progress progress::-webkit-progress-value { background: var(--violet); border-radius: 1rem; }
.progress progress::-moz-progress-bar { background: var(--violet); border-radius: 1rem; }
.form-card { padding: clamp(1.45rem, 4.7vw, 2.9rem); border-radius: 1.9rem; border: 1px solid #eee8f1; background-color: #fff; }
.form-card h1, .policy h1 { font-size: clamp(2rem, 5vw, 2.85rem); line-height: 1.08; }
.form-card > p, .form-card #question-description { color: var(--muted); margin-top: .85rem; }
.form-card #question-heading:focus { outline: none; }
.form-card #fields { margin-top: 1.35rem; }
.questions { display: grid; gap: .65rem; padding: 0; border: 0; margin: 0; min-width: 0; }
.choice { display: flex; gap: .8rem; align-items: center; min-height: 3.25rem; padding: .64rem .85rem; border: 1px solid var(--line); border-radius: .83rem; cursor: pointer; font-weight: 650; }
.choice:hover { background: #f8f4fc; }
.choice:has(input:checked) { border-color: #714ed5; background: #f1ebff; }
.choice input, .permission input { flex: 0 0 auto; margin: 0; width: 1.15rem; height: 1.15rem; accent-color: var(--violet); }
.field { display: grid; gap: .35rem; margin-bottom: .92rem; font-size: .98rem; font-weight: 650; }
.field input, .field select { display: block; color: var(--ink); width: 100%; min-height: 3.05rem; border-radius: .74rem; border: 1px solid #bcb0cc; background-color: white; padding: .65rem .8rem; font-weight: 500; }
.field input[aria-invalid="true"] { border-color: #af293d; }
.field select { appearance: none; padding-right: 2.45rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.35rem) center, calc(100% - 1rem) center; background-size: .35rem .35rem; background-repeat: no-repeat; }
.field-note { color: var(--muted); font-size: .94rem; margin: .25rem 0 .95rem; }
.permission { display: flex; gap: .75rem; align-items: flex-start; margin: 1.1rem 0 .5rem; cursor: pointer; }
.permission input { margin-top: .17rem; }
.form-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.55rem; }
.form-actions > :last-child { margin-left: auto; }
.form-status { margin-top: .85rem; color: var(--muted); }
.error { padding: .65rem .8rem; border-radius: .6rem; background: #fcebf0; color: #8b1830; margin-top: 1rem; }
.form-footnote { display: flex; justify-content: center; gap: .6rem; margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }
.form-links { margin-top: 1rem; display: flex; gap: 1.22rem; flex-wrap: wrap; }
.text-button { min-height: 2.4rem; padding: 0; border: 0; background: transparent; color: #442693; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }
.text-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.05rem; margin: 1.5rem 0; }
.detail-list dt { font-weight: 700; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.form-card > .button { margin-top: 1.2rem; }
.policy { padding: 1rem .45rem 2rem; }
.policy h2 { margin: 1.7rem 0 .5rem; font-size: 1.4rem; }
.policy p { margin-top: .65rem; overflow-wrap: anywhere; }

@media (max-width: 66rem) {
  .shell { width: calc(100% - 3rem); }
}

@media (max-width: 56rem) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .site-header { min-height: 4.25rem; }
  .site-header nav a { font-size: .86rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-block-size: 0; border-radius: 1.6rem; }
  .hero-copy { padding: clamp(1.4rem, 5.7vw, 2.5rem); }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 3.25rem); }
  .hero .button { margin-top: 1.4rem; }
  .hero-description { margin-top: .85rem; }
  .hero-media { aspect-ratio: 16 / 9; max-block-size: 17rem; }
  .hero-image { object-position: 50% 43%; }
  .lenders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lender { min-height: 3.6rem; font-size: 1rem; }
  .benefit { min-block-size: 10rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .guide-links { grid-template-columns: 1fr; }
  .closing { align-items: flex-start; flex-direction: column; }
  .site-footer { margin-bottom: 4.75rem; }
  .mobile-action { display: block; position: fixed; bottom: 0; right: 0; left: 0; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid #e8deec; z-index: 6; }
  .mobile-action .button { display: flex; margin-inline: auto; width: min(100%, 29rem); }
}

@media (max-width: 28rem) {
  .benefits { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .benefit { min-block-size: 8.5rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { gap: .9rem; }
  .form-shell { margin-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
