:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #ffffff;
  --ink: #172322;
  --muted: #596866;
  --line: #d9e4e1;
  --teal: #0f766e;
  --teal-dark: #0b544f;
  --coral: #ef6f61;
  --gold: #f2b84b;
  --blue: #2563eb;
  --shadow: 0 18px 55px rgba(20, 45, 42, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(247, 250, 249, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.trust-row,
.widget-values,
.offer-meta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  background: var(--teal);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.nav-cta,
.button,
.offer-meta a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta,
.button,
.offer-meta a {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: white;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: min(650px, calc(100svh - 118px));
  padding: clamp(28px, 6vw, 58px) clamp(16px, 5vw, 72px) 24px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.65rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.button.primary {
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.button.ghost {
  color: var(--teal-dark);
  background: #e2f3ef;
}

.trust-row {
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}

.trust-row div {
  min-width: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.trust-row dt {
  font-size: 1.22rem;
  font-weight: 900;
}

.trust-row dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: min(100%, 620px);
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.notice,
.widget-section,
.benefits,
.guide,
.content-grid,
.faq,
.final-cta {
  padding: clamp(42px, 7vw, 86px) clamp(16px, 5vw, 72px);
}

.notice {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 1px solid #f1d89a;
  border-radius: var(--radius);
  background: #fff7df;
  color: #493b1b;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.compact {
  margin-bottom: 22px;
}

.widget-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.ranking-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-card.featured {
  grid-column: span 3;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: var(--shadow);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.ranking-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ranking-card a,
.iframe-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: white;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ranking-frame-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.iframe-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.iframe-head h3 {
  margin-top: 2px;
}

.ranking-frame-shell iframe {
  width: 100%;
  height: min(760px, 78svh);
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.source-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.loan-widget {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.widget-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.widget-toolbar label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.widget-values {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: #eef8f6;
}

.offer-list {
  display: grid;
  gap: 12px;
}

.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.offer-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.offer-meta {
  gap: 10px;
}

.offer-meta span {
  color: var(--coral);
  font-weight: 900;
  white-space: nowrap;
}

.offer-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: white;
  background: var(--blue);
}

.benefit-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.benefit-grid article,
.steps article,
.checklist,
.faq details,
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.benefit-grid article,
.steps article,
.checklist {
  padding: 22px;
}

.icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.benefit-grid p,
.steps p,
.content-grid p,
.faq p,
.final-cta p,
.footer {
  color: var(--muted);
}

.guide {
  background: #eef4fb;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.content-grid h3 {
  margin-top: 26px;
}

.checklist {
  align-self: start;
}

.checklist ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq details {
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  margin-bottom: 0;
}

.final-cta {
  max-width: 920px;
  margin: clamp(28px, 5vw, 64px) auto;
  text-align: center;
}

.footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .brand span:last-child {
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 30px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-visual img {
    max-height: 42svh;
    object-fit: cover;
  }

  .trust-row div {
    min-width: calc(50% - 8px);
  }

  .benefit-grid,
  .steps,
  .content-grid,
  .ranking-summary,
  .widget-toolbar {
    grid-template-columns: 1fr;
  }

  .ranking-card.featured {
    grid-column: span 1;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ranking-card.featured a {
    grid-column: 1 / -1;
  }

  .section-head {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-inline: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero {
    gap: 20px;
    padding-inline: 14px;
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .trust-row div {
    min-width: 100%;
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-meta {
    justify-content: space-between;
  }

  .iframe-head {
    display: grid;
  }

  .iframe-head a {
    width: 100%;
  }

  .ranking-frame-shell iframe {
    height: 72svh;
    min-height: 520px;
  }

  .notice,
  .widget-section,
  .benefits,
  .guide,
  .content-grid,
  .faq,
  .final-cta {
    padding-inline: 14px;
  }

  .footer {
    display: grid;
  }
}
