/* Loan types page (loan-types.html). Every class is namespaced lt-*.
   Loaded only on this page, after css/styles.css. No animations. */

.lt-hero {
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 48%, var(--hero-bottom) 100%);
  color: #fff;
  padding: 56px 0 60px;
}

.lt-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.lt-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.lt-hero h1 {
  font-size: 34px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
  max-width: 18em;
  margin-bottom: 14px;
}

.lt-hero-sub {
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin-bottom: 20px;
}

.lt-hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.lt-hero-chips li {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
}

.lt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lt-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.lt-btn-ghost:hover,
.lt-btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Jump links */
.lt-jump {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.lt-jump-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
  -webkit-overflow-scrolling: touch;
}

.lt-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  white-space: nowrap;
}

.lt-jump-pill:hover,
.lt-jump-pill:focus-visible {
  background: var(--line);
  text-decoration: none;
}

.lt-jump-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Sections */
.lt-section {
  padding: 56px 0;
}

.lt-section-alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lt-h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 10px;
}

.lt-lede {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 28px;
}

/* Loan type cards */
.lt-types {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.lt-type {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.lt-type-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.lt-type-head h3 {
  font-size: 21px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.lt-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--purple);
}

.lt-icon svg {
  width: 26px;
  height: 26px;
}

.lt-icon-sm {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.lt-icon-sm svg {
  width: 22px;
  height: 22px;
}

.lt-type-summary {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  margin-bottom: 16px;
}

.lt-type-block {
  margin-bottom: 14px;
}

.lt-type-block h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 6px;
}

.lt-type-block p {
  color: var(--muted);
}

.lt-ticks {
  list-style: none;
  display: grid;
  gap: 8px;
}

.lt-ticks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
}

.lt-ticks svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green);
}

.lt-exit {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--green-bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 18px;
}

.lt-exit-icon svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--green);
  display: block;
}

.lt-type-apply {
  margin-top: auto;
  width: 100%;
}

/* Which is right for me */
.lt-match {
  list-style: none;
  display: grid;
  gap: 10px;
}

.lt-match-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.lt-match-situation {
  font-size: 16px;
  line-height: 23px;
  color: var(--ink);
  font-weight: 600;
}

.lt-match-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.lt-match-result:hover,
.lt-match-result:focus-visible {
  background: var(--purple-deep);
  color: #fff;
  text-decoration: none;
}

.lt-match-result svg {
  width: 16px;
  height: 16px;
}

.lt-match-other,
.lt-match-other:hover {
  background: var(--chip-bg);
  color: var(--purple);
}

.lt-match-note {
  margin-top: 18px;
  color: var(--muted);
  max-width: 680px;
}

/* At a glance table */
.lt-glance-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lt-glance {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lt-glance th,
.lt-glance td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.lt-glance thead th {
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lt-glance tbody tr:last-child th,
.lt-glance tbody tr:last-child td {
  border-bottom: 0;
}

.lt-glance tbody th {
  font-weight: 800;
  width: 26%;
}

.lt-glance tbody td {
  color: var(--muted);
}

/* Common features */
.lt-common {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.lt-common-item {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}

.lt-common-item h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.lt-common-item p {
  color: var(--muted);
}

.lt-warning {
  margin-top: 20px;
  border-left: 4px solid #EA580C;
  background: #FFF4EC;
  border-radius: 12px;
  padding: 16px 18px;
}

.lt-warning h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.lt-warning p {
  color: var(--ink);
}

/* Steps */
.lt-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.lt-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
}

.lt-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
}

.lt-steps h3 {
  font-size: 17px;
  line-height: 23px;
  font-weight: 800;
  margin-bottom: 4px;
}

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

.lt-steps-link {
  margin-top: 16px;
  font-weight: 700;
}

/* Closing CTA */
.lt-cta {
  background: linear-gradient(180deg, var(--hero-mid) 0%, var(--hero-bottom) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.lt-cta h2 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
  margin-bottom: 10px;
}

.lt-cta p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
  margin: 0 auto 22px;
}

.lt-cta .lt-cta-links {
  margin: 18px auto 0;
  font-size: 14px;
}

.lt-cta-links a {
  color: #fff;
  text-decoration: underline;
}

/* Mobile: stack the table rows */
@media (max-width: 639px) {
  .lt-hero {
    padding: 40px 0 44px;
  }

  .lt-hero h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .lt-hero-actions .btn {
    width: 100%;
  }

  .lt-section {
    padding: 40px 0;
  }

  .lt-h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .lt-glance thead {
    display: none;
  }

  .lt-glance,
  .lt-glance tbody,
  .lt-glance tr,
  .lt-glance th,
  .lt-glance td {
    display: block;
    width: 100%;
  }

  .lt-glance tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }

  .lt-glance tbody tr:last-child {
    border-bottom: 0;
  }

  .lt-glance tbody th,
  .lt-glance td {
    border-bottom: 0;
    padding: 6px 16px;
  }

  .lt-glance tbody th {
    width: 100%;
    font-size: 17px;
  }

  .lt-glance td:nth-of-type(1)::before {
    content: "What it does: ";
    font-weight: 700;
    color: var(--ink);
  }

  .lt-glance td:nth-of-type(2)::before {
    content: "Usual exit: ";
    font-weight: 700;
    color: var(--ink);
  }
}

@media (min-width: 640px) {
  .lt-common {
    grid-template-columns: 1fr 1fr;
  }

  .lt-match-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .lt-match-result {
    align-self: center;
  }
}

@media (min-width: 860px) {
  .lt-types {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .lt-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .lt-hero {
    padding: 72px 0 76px;
  }

  .lt-hero h1 {
    font-size: 46px;
    line-height: 52px;
  }

  .lt-common {
    grid-template-columns: repeat(4, 1fr);
  }
}
