/* United Loans — About page (about.html).
   Loaded after united-site.css, united-sections.css and united-products.css. It reuses their
   hero, figures strip, tiles, one-line marquee, rotating statements, pill tabs, fact strip,
   product cards and footer, and adds only what this page needs. New classes are prefixed a-. */

/* ---------- Hero ---------- */
.a-hero.hero-expanded h1 { font-size: clamp(44px, 4.6vw, 72px); }
.a-hero .hero-copy { align-self: center; }
.a-hero-art { min-width: 0; align-self: center; container-type: inline-size; }
.a-hero-stage { position: relative; aspect-ratio: 620 / 440; max-width: 680px; margin-left: auto; font-size: clamp(9px, 2.5cqw, 17px); color: var(--ink); }
.a-hero-photo { position: absolute; overflow: hidden; border-radius: 1em; background: #d0e1ef; }
.a-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.a-hero-photo--main { left: 46%; top: 0; width: 47%; height: 100%; }
.a-hero-photo--main img { object-position: 54% center; }
.a-hero-photo--side { left: 19%; top: 50%; width: 23.5%; height: 50%; }
.a-hero-photo--side img { object-position: 20% center; }
.a-hero-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7em;
  padding: .7em 1.15em .75em .75em; border-radius: .6em; background: #fff; white-space: nowrap;
  box-shadow: 0 1.2em 2em -1.2em #020c1a99;
}
.a-hero-chip strong { display: block; font-size: 1.45em; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-hero-chip small { display: block; margin-top: .15em; font-size: .8em; color: var(--muted); }
.a-hero-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.7em; height: 2.7em; border-radius: .5em; background: var(--sky); color: var(--navy); }
.a-hero-ico .u-i { width: 1.35em; height: 1.35em; }
.a-hero-chip--project { left: 22%; top: 7%; }
.a-hero-chip--loan { left: 0; top: 73%; padding-left: 1.15em; }
.a-hero-chip--term { right: 0; top: 78%; padding: .55em 1em .6em; background: var(--green); color: var(--navy); font-size: 1.3em; font-weight: 700; letter-spacing: -.02em; rotate: -3deg; }

/* The collage assembles once on load. Resting styles are the finished picture. */
.a-hero-photo--main { animation: u-pop .9s var(--u-out) .15s both; }
.a-hero-photo--side { animation: u-rise .8s var(--u-out) .45s both; }
.a-hero-chip--project { animation: u-fly-r .8s var(--u-out) .9s both, u-bob 5s ease-in-out 1.7s infinite alternate; }
.a-hero-chip--loan { animation: u-fly-l .8s var(--u-out) 1.15s both, u-bob 5s ease-in-out 2.4s infinite alternate; }
.a-hero-chip--term { animation: u-pop .6s var(--u-out) 1.5s both, u-bob 5s ease-in-out 3s infinite alternate; }

/* ---------- Who we are ---------- */
.a-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.a-story-grid h2 { max-width: 12.5em; text-wrap: balance; }
.a-story-copy p { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.5; }
.a-story-copy p + p { margin-top: 1.1em; }
.a-story-copy a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.a-facts .u-tile { min-height: clamp(250px, 21vw, 370px); }
.a-facts .u-tile-fig small { text-wrap: balance; }

/* ---------- Rotating statements: the three pictures ---------- */
/* 01: a short form fills itself in */
.a-s1 { display: grid; place-items: center; padding: 0 13%; background: var(--mint); }
.a-s1-card { position: relative; width: 100%; padding: 2em 1.8em 1.9em; border-radius: .9em; background: #fff; box-shadow: 0 1.8em 2.6em -2em #08295180; }
.a-s1-art { position: absolute; right: -3em; top: -3.6em; width: 7.6em; height: auto; }
.u-points .a-s1-title { color: var(--ink); font-size: 1.6em; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; text-align: center; }
.a-s1-field { position: relative; display: flex; align-items: center; gap: .55em; min-height: 3.1em; margin-top: .6em; padding: 0 1.15em; border: 1px solid var(--line); border-radius: 1.6em; font-weight: 700; white-space: nowrap; }
.a-s1-title + .a-s1-field { margin-top: 1.3em; }
.a-s1-name { width: fit-content; }
.a-s1-select { justify-content: space-between; }
.a-s1-ph { position: absolute; left: 1.15em; font-weight: 400; color: var(--muted); opacity: 0; }
.a-s1-val { display: flex; align-items: center; gap: .5em; }
.a-s1-val .u-i, .a-s1-list .u-i { width: 1.15em; height: 1.15em; }
.a-s1-caret { width: 1.1em; height: 1.1em; }
.a-s1-list {
  position: absolute; left: -1px; right: -1px; top: calc(100% + .4em); z-index: 2;
  list-style: none; margin: 0; padding: .45em; border: 1px solid var(--line); border-radius: 1em; background: #fff;
  box-shadow: 0 1.4em 2em -1.4em #08295166; opacity: 0; visibility: hidden; transform-origin: top;
}
.a-s1-list li { display: flex; align-items: center; gap: .6em; padding: .62em .7em; border-radius: .6em; font-weight: 400; }
.a-s1-btn { display: flex; align-items: center; justify-content: center; gap: .5em; width: fit-content; margin: 1.1em auto 0; padding: .85em 1.7em; border-radius: .6em; background: var(--green); color: var(--navy); font-weight: 700; }
.a-s1-btn .u-i { width: 1.1em; height: 1.1em; }
.u-scene.is-active .a-s1-card { animation: u-rise .7s var(--u-out) .15s both; }
.u-scene.is-active .a-s1-art { animation: u-pop .7s var(--u-out) .55s both, u-float 3.2s ease-in-out 1.3s infinite alternate; }
.u-scene.is-active .a-s1-name { animation: u-type .7s steps(10) .9s both; }
.u-scene.is-active .a-s1-ph { animation: a-hold 3.6s linear backwards; }
.u-scene.is-active .a-s1-val { animation: u-rise .5s var(--u-out) 3.6s both; }
.u-scene.is-active .a-s1-list { animation: a-list 1.8s linear 1.9s both; }
.u-scene.is-active .a-s1-list li:nth-child(3) { animation: a-pick .75s linear 2.95s backwards; }
.u-scene.is-active .a-s1-btn { animation: u-pop .6s var(--u-out) 4.3s both; }

/* 02: the three banks, each with a review bar */
.a-s2 { background: var(--blue); }
.a-s2-photo { position: absolute; left: 27%; top: 15%; width: 46%; height: 70%; overflow: hidden; border-radius: .9em; background: #d0e1ef; }
.a-s2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 20% center; }
.a-s2-chip {
  position: absolute; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65em .7em;
  width: 13.6em; padding: .85em 1em .95em; border-radius: .65em; background: #fff; box-shadow: 0 1.4em 2em -1.4em #020c1a99; white-space: nowrap;
}
.a-s2-chip b { font-size: 1.02em; letter-spacing: -.015em; }
.a-s2-chip i { grid-column: 1 / -1; height: .34em; overflow: hidden; border-radius: 1em; background: #e3ebf3; }
.a-s2-chip i::after { content: ''; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--c); transform-origin: left; }
.a-s2-chip--1 { right: 5%; top: 9%; }
.a-s2-chip--2 { left: 5%; top: 43%; }
.a-s2-chip--3 { right: 5%; bottom: 9%; }
.u-scene.is-active .a-s2-photo { animation: u-pop .8s var(--u-out) .2s both; }
.u-scene.is-active .a-s2-chip--1 { animation: u-fly-r .7s var(--u-out) .8s both; }
.u-scene.is-active .a-s2-chip--2 { animation: u-fly-l .7s var(--u-out) 1.25s both; }
.u-scene.is-active .a-s2-chip--3 { animation: u-fly-r .7s var(--u-out) 1.7s both; }
.u-scene.is-active .a-s2-chip i::after { animation: u-grow-x 1.4s var(--u-ease) 1.3s both; }
.u-scene.is-active .a-s2-chip--2 i::after { animation-delay: 1.75s; }
.u-scene.is-active .a-s2-chip--3 i::after { animation-delay: 2.2s; }

/* 03 and the lender tab: one loan, its rate and its payment */
.a-s3, .a-quote .a-stage-in { display: flex; flex-direction: column; justify-content: center; padding: 3.2em 12% 0; background: var(--sky); }
.a-s3 .u-chip b, .a-quote .u-chip b { background: var(--navy); }
.a-loan { padding: 1.6em 1.8em 1.8em; border-radius: .9em; background: #fff; }
.a-loan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.a-loan-top strong { display: block; font-size: 2.9em; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.a-loan-top div > span { display: block; margin-top: .3em; color: var(--muted); }
.u-points .a-loan-rate, .a-how .a-loan-rate { margin: 2.1em 0 .6em; color: var(--ink); font-size: .95em; line-height: 1.2; }
.a-loan-bar { height: .42em; overflow: hidden; border-radius: 1em; background: #e3ebf3; }
.a-loan-bar i { display: block; width: 46%; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; }
.a-sum-rule { height: 1px; margin: 1.8em 0 1.4em; background: #08295166; transform-origin: left; }
.a-sum { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1em; padding-inline: .6em; }
.a-sum strong { display: block; color: var(--navy); font-size: 1.9em; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-sum strong small { margin-left: .1em; font-size: .55em; font-weight: 400; letter-spacing: 0; }
.a-sum div > span { display: block; margin-top: .3em; font-size: .98em; line-height: 1.2; color: #24507a; }
.u-scene.is-active .a-loan { animation: u-emerge .8s var(--u-out) .2s both; }
.u-scene.is-active .a-loan-bar i { animation: u-grow-x 1.2s var(--u-ease) .9s both; }
.u-scene.is-active .a-sum-rule { animation: u-grow-x .7s var(--u-ease) 1.2s both; }
.u-scene.is-active .a-sum > div { animation: u-rise .6s var(--u-out) 1.45s both; }
.u-scene.is-active .a-sum > div + div { animation-delay: 1.65s; }
.u-scene.is-active.a-s3 .u-chip--top { animation: u-drop .7s var(--u-out) 3s both; }

/* ---------- Who does what ---------- */
.a-how { background: radial-gradient(ellipse at 86% -8%, #2d618f 0, transparent 55%), var(--u-dark-bg); }
.a-how h2 { margin-inline: auto; }
.a-how.is-alt .u-tabs-indicator { background: var(--sky); }
.a-panels { margin-top: clamp(40px, 4.6vw, 80px); }
.a-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 7vw, 140px); align-items: center; }
.a-panel[hidden] { display: none; }
.a-panel + .a-panel { margin-top: 56px; }
.a-panel-copy h3 { font-size: clamp(28px, 2.7vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.a-panel-copy .u-lead { max-width: 25em; margin-top: clamp(18px, 1.6vw, 26px); font-size: clamp(18px, 1.5vw, 24px); text-wrap: balance; }
.a-panel-copy .u-checks { margin-block: clamp(24px, 2vw, 34px) clamp(30px, 2.5vw, 44px); }
.a-panel-copy .u-checks li { align-items: flex-start; max-width: 27em; color: #dbe7f3; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.35; }
.a-panel-copy .u-check { margin-top: .08em; }
.a-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px clamp(20px, 2vw, 32px); }
.a-link { display: inline-flex; align-items: center; gap: .55em; color: #fff; font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; }
.a-link .u-i { width: 1.1em; height: 1.1em; transition: transform .25s var(--u-ease); }
.a-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.a-link:hover .u-i { transform: translateX(4px); }
/* A tab the visitor picks brings its panel in; the first panel is simply there on load */
.a-how.is-switched .a-panel.is-active .a-panel-copy > * { animation: u-rise .6s var(--u-out) both; }
.a-how.is-switched .a-panel.is-active .a-panel-copy > :nth-child(2) { animation-delay: .06s; }
.a-how.is-switched .a-panel.is-active .a-panel-copy > :nth-child(3) { animation-delay: .12s; }
.a-how.is-switched .a-panel.is-active .a-panel-copy > :nth-child(4) { animation-delay: .18s; }
.a-how.is-switched .a-panel.is-active .a-stage { animation: u-pop .7s var(--u-out) .05s both; }

/* The pictures beside each tab, sized in em like the scenes above */
.a-stage { position: relative; aspect-ratio: 552 / 510; container-type: inline-size; }
.a-stage-in { position: absolute; inset: 0; overflow: hidden; border-radius: var(--u-radius); font-size: clamp(8.5px, 2.75cqw, 20px); color: var(--ink); }
.a-offers .a-stage-in { background: var(--mint); }
/* Five payment rows take turns in three slots: one leaves at the top, one arrives at the bottom */
.a-offers-list { position: absolute; left: 8.5%; right: 8.5%; top: 50%; height: 15.6em; margin: -7.8em 0 0; padding: 0; list-style: none; }
.a-offer {
  position: absolute; left: 0; right: 0; top: 0; height: 4.8em;
  display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: .95em;
  padding: 0 1.05em; border-radius: .75em; background: #fff; box-shadow: 0 1.4em 2em -1.6em #08295180;
  opacity: 0; transform: translateY(15.2em) scale(.9);
  transition: transform .7s var(--u-out), opacity .45s;
}
.a-offer[data-slot="-1"] { transform: translateY(-5.4em) scale(.94); }
.a-offer[data-slot="0"] { opacity: 1; transform: none; }
.a-offer[data-slot="1"] { opacity: 1; transform: translateY(5.4em); }
.a-offer[data-slot="2"] { opacity: 1; transform: translateY(10.8em); }
.a-offer-ico { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .55em; background: var(--soft); color: var(--blue); }
.a-offer-ico .u-i { width: 1.3em; height: 1.3em; }
.a-offer b { display: block; font-size: 1.45em; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.a-offer small { display: block; margin-top: .45em; font-size: .74em; line-height: 1.1; color: var(--muted); white-space: nowrap; }
.a-offer-go { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--sky); color: var(--navy); }
.a-offer-go .u-i { width: 1em; height: 1em; stroke-width: 2.2; }
.a-float {
  position: absolute; z-index: 2; right: -.9em; top: 11%; padding: .7em 1em .75em; border-radius: .6em;
  background: var(--navy); color: #fff; font-size: clamp(8.5px, 2.75cqw, 20px); white-space: nowrap; rotate: 5deg;
  box-shadow: 0 1.2em 2em -1.2em #020c1a99; animation: u-bob 5s ease-in-out infinite alternate;
}
.a-float strong { display: block; font-size: 1.35em; letter-spacing: -.03em; line-height: 1.1; }
.a-float span { display: block; margin-top: .15em; font-size: .68em; color: #b8cbe0; }

/* Security strip: the homepage fact panel, with its text rules restated for this section */
.a-how .u-tag { align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--green); color: var(--navy); font-size: 14px; line-height: 1.2; font-weight: 700; }
.a-how .u-facts-legend { max-width: 220px; color: #fff; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.a-how .u-fact-title { min-height: 70px; border-bottom: 1px solid #ffffff24; color: #fff; font-size: 16px; line-height: 1.25; font-weight: 700; }
.a-how .u-fact-value { display: flex; align-items: center; gap: 12px; color: #fff; font-size: clamp(28px, 2.9vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }

/* ---------- Who it is for ---------- */
.a-fit h2 { max-width: 12em; margin-inline: auto; text-wrap: balance; }
.a-fit-grid { list-style: none; margin: clamp(36px, 3.6vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.a-fit-card { display: flex; flex-direction: column; min-height: clamp(310px, 25vw, 430px); padding: clamp(22px, 2vw, 36px); border-radius: var(--u-radius); background: var(--sky); color: var(--navy); }
.a-fit-ico { display: grid; place-items: center; width: clamp(40px, 3vw, 50px); height: clamp(40px, 3vw, 50px); border-radius: 50%; background: var(--navy); color: #fff; }
.a-fit-ico .u-i { width: 46%; height: 46%; stroke-width: 2; }
.a-fit-card h3 { max-width: 9.5em; margin: clamp(18px, 1.6vw, 28px) 0 28px; font-size: clamp(22px, 1.95vw, 34px); letter-spacing: -.025em; line-height: 1.12; }
.a-fit-card p { margin-top: auto; padding-top: clamp(16px, 1.3vw, 24px); border-top: 1px solid #08295126; color: var(--navy); font-size: clamp(15.5px, 1.1vw, 19px); line-height: 1.45; }

/* ---------- Three common questions: a white panel that almost fills the width ---------- */
.a-faq { padding: 0 clamp(10px, 1.25vw, 18px) var(--u-pad); background: linear-gradient(180deg, var(--paper) 0%, #eef2f5 100%); }
.a-faq-panel { padding-block: clamp(56px, 7vw, 120px); border-radius: 16px; background: #fff; }
.a-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 7vw, 120px); align-items: center; width: min(1400px, calc(100% - clamp(44px, 9vw, 150px))); margin-inline: auto; }
.a-faq-copy h2 { max-width: 9em; text-wrap: balance; }
.a-faq-copy .u-lead { max-width: 20em; margin: clamp(16px, 1.5vw, 24px) 0 clamp(26px, 2.4vw, 40px); }
.a-qa { display: grid; gap: 12px; }
.a-qa details { border-radius: var(--u-radius); background: var(--mint); color: var(--navy); }
.a-qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 1.8vw, 32px) clamp(20px, 2vw, 34px); border-radius: var(--u-radius);
  font-size: clamp(18px, 1.45vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
}
.a-qa summary::-webkit-details-marker { display: none; }
.a-plus { position: relative; flex-shrink: 0; width: 20px; height: 20px; transition: rotate .45s var(--u-ease); }
.a-plus::before, .a-plus::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.a-plus::after { rotate: 90deg; }
.a-qa details[open] .a-plus { rotate: 45deg; }
.a-qa details p { max-width: 46em; padding: 0 clamp(20px, 2vw, 34px) clamp(22px, 1.9vw, 34px); color: var(--navy); font-size: clamp(16px, 1.1vw, 18px); line-height: 1.6; }
@supports (interpolate-size: allow-keywords) {
  .a-qa details { interpolate-size: allow-keywords; }
  .a-qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--u-ease), content-visibility .35s allow-discrete; }
  .a-qa details[open]::details-content { block-size: auto; }
}

/* ---------- Products ---------- */
.a-products h2 { max-width: 15em; margin: 0 auto clamp(36px, 3.6vw, 60px); text-wrap: balance; }

/* ---------- Keyframes ---------- */
@keyframes a-hold { from, to { opacity: 1; } }
@keyframes a-list {
  0% { opacity: 0; visibility: visible; transform: translateY(-.5em) scaleY(.92); animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  18%, 86% { opacity: 1; visibility: visible; transform: none; }
  100% { opacity: 0; visibility: hidden; transform: translateY(-.3em); }
}
@keyframes a-pick { from, to { background: var(--soft); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .a-story-grid, .a-panel, .a-faq-grid { gap: 40px; }
  .a-facts .u-tile-fig b { font-size: clamp(34px, 5vw, 46px); }
  .a-how .u-facts-legend { max-width: none; }
}

/* Below the two-column hero the picture follows the copy */
@media (max-width: 900px) {
  .a-hero.hero-expanded { padding-top: clamp(48px, 8vw, 72px); }
  .a-hero.hero-expanded .hero-grid { padding-bottom: clamp(44px, 7vw, 64px); }
  .a-hero-art { width: 100%; max-width: 600px; margin-inline: auto; }
  .a-hero-stage { margin-inline: auto; }
}

@media (max-width: 760px) {
  .a-hero.hero-expanded h1 { font-size: clamp(32px, 9.6vw, 60px); }
  .a-hero-stage { font-size: 2.9cqw; }

  .a-story-grid, .a-panel, .a-faq-grid { grid-template-columns: 1fr; }
  .a-story-grid { gap: 24px; }
  .a-facts .u-tile { min-height: 210px; }
  .a-facts .u-tile-fig b { font-size: clamp(44px, 14vw, 60px); }

  .a-panel { gap: 36px; }
  .a-panel-actions .u-btn { width: 100%; }
  .a-float { right: -6px; }
  .a-how .u-fact-title { min-height: 0; padding-bottom: 20px; }

  .a-fit-grid { grid-template-columns: 1fr; }
  .a-fit-card { min-height: 0; }
  .a-fit-card h3 { max-width: none; margin-bottom: 22px; }

  .a-faq-grid { width: calc(100% - 40px); gap: 32px; }
  .a-faq-copy h2 { max-width: none; }
  .a-faq-copy .u-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .a-hero-stage *, .a-float, .a-how.is-switched .a-panel * { animation: none !important; }
  .a-offer, .a-plus { transition: none; }
}
