/* ==========================================================================
   UTF Cash Advance Loans — site styles
   Design tokens taken from the Hvey app design system (Figma):
   ink #101221 · accent green #23B027 (press #56D55A) · accent orange #E8653A
   page gradient #FFFFFF → #E4E4E4 · flat white cards · 38px sheet radius
   ========================================================================== */

:root {
  /* Palette */
  --ink: #101221;
  --ink-soft: #1B1E30;
  --ink-line: #23263F;
  --green: #23B027;
  --green-press: #1C9220;
  --green-bright: #56D55A;
  --green-tint: #E9F7E9;
  --green-tint-line: #B6E3B7;
  --orange: #E8653A;
  --orange-press: #D2532A;
  --orange-tint: #FDEEE8;
  --text-2: #6E6F7B;

  --page: #FFFFFF;
  --page-end: #E4E4E4;
  --surface: #F7F7F7;
  --surface-2: #FAFAFA;
  --line: #E6E6EA;
  --line-strong: #D6D6DC;
  --on-ink: #FFFFFF;
  --on-ink-muted: #A8ABBC;

  /* Radii — the app uses pills and generously rounded panels (38px sheets) */
  --r-pill: 999px;
  --r-panel: 38px;
  --r-card: 24px;
  --r-sm: 16px;

  /* Spacing (4px grid) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s7: 32px; --s8: 40px; --s9: 56px; --s10: 72px;
  --s11: 96px; --s12: 128px;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --header-h: 76px;
  --section-y: 104px;
  --prose: 40em;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow-card: 0 1px 2px rgba(16, 18, 33, .04), 0 8px 24px rgba(16, 18, 33, .05);
  --shadow-lift: 0 2px 4px rgba(16, 18, 33, .05), 0 18px 44px rgba(16, 18, 33, .1);
  --shadow-ink: 0 24px 60px rgba(16, 18, 33, .18);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* The app's light canvas: white at the top easing to #E4E4E4. Fixed so the
   gradient tracks the viewport like an app screen. Web only — the in-app
   block at the bottom of this file owns the webview background. */
html:not(.in-app) {
  background-color: var(--page);
  background-image: linear-gradient(180deg, var(--page) 0%, var(--page-end) 100%);
  background-attachment: fixed;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--ink); color: var(--on-ink);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------- Typography */

/* The app sets headlines in SF Pro Medium — Inter 600 is its closest web step. */
.h1, .h2, .h3, .h4 { letter-spacing: -.02em; line-height: 1.08; font-weight: 600; }

.h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.025em; }
.h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.24; }
.h4 { font-size: 17px; line-height: 1.3; }

/* The app writes the emphasised half of every headline in green italic. */
.accent { color: var(--green); font-style: italic; }
.accent--orange { color: var(--orange); font-style: italic; }

.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: var(--s4);
}
.kicker--orange { color: var(--orange); }
.kicker--muted { color: var(--text-2); }
.on-ink .kicker, .kicker--on-ink { color: var(--green); }

.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); line-height: 1.62; }
.lead--on-ink { color: var(--on-ink-muted); }

.muted { color: var(--text-2); }
.note { font-size: 13px; color: var(--text-2); line-height: 1.55; }

.link-inline {
  color: var(--ink); font-weight: 600;
  border-bottom: 2px solid var(--green-tint-line);
  transition: border-color .18s ease, color .18s ease;
}
.link-inline:hover { border-color: var(--green); color: var(--green); }
.on-ink .link-inline { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.on-ink .link-inline:hover { color: var(--green); border-bottom-color: var(--green); }

/* ------------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; text-align: center;
  transition: background-color .18s ease, color .18s ease, transform .18s ease,
              box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn > svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

/* The app's press state lightens the green (Figma UI kit: #56D55A). */
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-bright); }

.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-press); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--ghost-ink { background: rgba(255, 255, 255, .06); color: #fff; border: 1.5px solid rgba(255, 255, 255, .22); }
.btn--ghost-ink:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #EBEBEB; }

.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* -------------------------------------------------------------------- Chips */

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--page);
  box-shadow: var(--shadow-card);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.chip--active {
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1.5px var(--green);
  color: var(--green-press);
  font-weight: 600;
}
.chip--orange { background: var(--orange); box-shadow: none; color: #fff; font-weight: 600; }
/* Dark-section presets: the app's amount chips keep a white/20 outline. */
.chip--ink { background: transparent; box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ------------------------------------------------------------------ Sections */

.section { padding: var(--section-y) 0; }
.section--tight { padding: var(--s10) 0; }
/* The app has no gray bands — everything sits on the shared light gradient. */
.section--surface { background: transparent; }

/* Dark navy panel — the app's bottom sheet, used here as a full band. */
.section--ink {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-panel);
  margin: 0 var(--gutter);
  padding: var(--s11) 0;
}
.on-ink { color: var(--on-ink); }
.on-ink .muted, .on-ink .note { color: var(--on-ink-muted); }

.section-head { max-width: 760px; margin-bottom: var(--s9); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--wide { max-width: none; }
.section-head .lead { margin-top: var(--s4); }

.prose-block { max-width: min(var(--prose), 100%); }
.prose-block--wide { max-width: none; }
.prose-block > * + * { margin-top: var(--s5); }
.prose-block h3 { margin-top: var(--s8); }

/* ------------------------------------------------------------------- Header */

.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header--scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(16, 18, 33, .05); }

.header__inner { display: flex; align-items: center; gap: var(--s6); height: 100%; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.logo__sub { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }

.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav__link {
  font-size: 15px; font-weight: 500; color: var(--text-2);
  padding: 8px 0; position: relative;
  transition: color .18s ease;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: var(--s3); }
.header__actions .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

.burger {
  display: none; width: 46px; height: 46px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
  background: var(--page);
  padding: var(--s6) var(--gutter) var(--s8);
  display: none; flex-direction: column; gap: var(--s2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 18, 33, .12);
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__link {
  display: flex; align-items: center; min-height: 54px;
  padding: 0 22px; background: var(--page);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-card);
  font-size: 16px; font-weight: 500;
}
.mobile-nav__link[aria-current="page"] { background: var(--green-tint); box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green-press); font-weight: 600; }
.mobile-nav .btn { margin-top: var(--s3); }

/* --------------------------------------------------------------------- Hero */

.hero { padding: var(--s10) 0 0; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--s9); align-items: center;
}
.hero__title { margin-bottom: var(--s5); }
.hero__lead { max-width: 30em; margin-bottom: var(--s7); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s8); }
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-value { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hero__meta-label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }

/* Figma's onboarding screen: the 3D render sits right on the light gradient. */
.hero__visual { position: relative; }
.hero-stage {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  padding: var(--s6) var(--s6) 0;
  min-height: 440px;
  display: flex; align-items: flex-end; justify-content: center;
}
.hero-stage__img { width: 100%; max-width: 330px; height: auto; }
body[data-app-page="index"] .hero-stage__img { max-width: 480px; }
/* Dollar reveal sits higher and a bit larger so the offer card covers the torn edge, not the portrait. */
body[data-app-page="emergency-loans"] .hero-stage {
  align-items: flex-end;
  padding-top: 72px;
  padding-bottom: 148px;
}
body[data-app-page="emergency-loans"] .hero-stage__img { max-width: 400px; }
.hero-stage__badge {
  position: absolute; top: var(--s6); left: var(--s6); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 13px; font-weight: 600;
}
.hero-stage__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* "Zero bill" receipt (how-we-make-money hero) — a flat paper receipt with a
   zigzag torn bottom edge, every charge at $0.00 and a lender-paid stamp. */
.hero-stage--receipt { align-items: center; padding: var(--s9) var(--s6) calc(var(--s9) + 12px); }
.receipt {
  --zig: 12px;
  position: relative;
  z-index: 1;
  width: 100%; max-width: 340px;
  background: var(--page);
  border-radius: var(--r-card) var(--r-card) 0 0;
  padding: var(--s6) var(--s6) calc(var(--s9) + var(--zig));
  filter: drop-shadow(0 10px 28px rgba(16, 18, 33, .1));
  transform: rotate(1.5deg);
  -webkit-mask:
    conic-gradient(from -30deg at 50% 100%, #000 60deg, #0000 0) 50% 100% / 24px var(--zig) repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--zig)) no-repeat;
  mask:
    conic-gradient(from -30deg at 50% 100%, #000 60deg, #0000 0) 50% 100% / 24px var(--zig) repeat-x,
    linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--zig)) no-repeat;
}
.receipt__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s4); margin-bottom: var(--s3);
  border-bottom: 1px dashed var(--line-strong);
}
.receipt__brand { font-weight: 800; letter-spacing: -.01em; }
.receipt__meta { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.receipt__rows li {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: 7px 0; font-size: 15px; color: var(--text-2);
}
.receipt__rows b { color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt__total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: var(--s3); padding-top: var(--s4);
  border-top: 1px dashed var(--line-strong);
  font-weight: 700;
}
.receipt__total b { font-size: 28px; letter-spacing: -.03em; color: var(--green); font-variant-numeric: tabular-nums; }
.receipt__stamp {
  position: absolute; right: var(--s5); bottom: calc(var(--zig) + 14px);
  transform: rotate(-8deg);
  border: 2px solid var(--green); border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); opacity: .92;
}

/* Entrance choreography: the receipt slides up and settles into its tilt, the
   lines print one by one, then the stamp slams down. `backwards` keeps each
   piece hidden until its turn. */
@keyframes receipt-in {
  from { opacity: 0; transform: translateY(28px) rotate(5deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.5deg); }
}
@keyframes receipt-line-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes receipt-stamp-in {
  0% { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  55% { opacity: 1; transform: rotate(-8deg) scale(.92); }
  75% { transform: rotate(-8deg) scale(1.05); }
  100% { opacity: .92; transform: rotate(-8deg) scale(1); }
}
.receipt { animation: receipt-in .7s cubic-bezier(.22, 1, .36, 1) .15s backwards; }
.receipt__head { animation: receipt-line-in .5s ease .5s backwards; }
.receipt__rows li { animation: receipt-line-in .5s ease backwards; }
.receipt__rows li:nth-child(1) { animation-delay: .6s; }
.receipt__rows li:nth-child(2) { animation-delay: .72s; }
.receipt__rows li:nth-child(3) { animation-delay: .84s; }
.receipt__rows li:nth-child(4) { animation-delay: .96s; }
.receipt__total { animation: receipt-line-in .5s ease 1.15s backwards; }
.receipt__stamp { animation: receipt-stamp-in .5s cubic-bezier(.2, 1.4, .4, 1) 1.5s backwards; }
@media (prefers-reduced-motion: reduce) {
  .receipt, .receipt__head, .receipt__rows li, .receipt__total, .receipt__stamp { animation: none; }
}

/* Floating offer card, styled like the app's offer rows. */
.offer-float {
  position: absolute; left: -18px; bottom: 40px;
  width: 268px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-card);
  padding: var(--s5);
  box-shadow: var(--shadow-ink);
}
.offer-float__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.offer-float__name { font-size: 13px; font-weight: 600; color: var(--on-ink-muted); }
.offer-float__tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.offer-float__apr { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.offer-float__apr span { font-size: 15px; font-weight: 600; color: var(--on-ink-muted); }
.offer-float__grid {
  display: flex; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--ink-line);
}
.offer-float__grid div { display: flex; flex-direction: column; }
.offer-float__grid b { font-size: 16px; font-weight: 700; white-space: nowrap; }
.offer-float__grid small {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-ink-muted); white-space: nowrap;
}

/* Overlapping step cards under the hero */
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s10);
}
.hero-card {
  background: var(--page);
  border-radius: var(--r-card);
  padding: var(--s7);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.hero-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-press);
  font-size: 15px; font-weight: 700; margin-bottom: var(--s5);
}
.hero-card--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-card--accent .hero-card__num { background: var(--orange); color: #fff; }
.hero-card--accent .muted { color: var(--on-ink-muted); }
.hero-card__title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: var(--s2); }

/* ---------------------------------------------------------------- Trust bar */

.trust-bar { padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
.trust-bar__list { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.trust-bar__item {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--page);
  box-shadow: var(--shadow-card);
}
.trust-bar__item svg { width: 18px; height: 18px; flex: none; color: var(--green); }

/* -------------------------------------------------------------- Step cards */

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

.step-card {
  background: var(--page);
  border-radius: var(--r-card);
  padding: var(--s6);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-card__tile {
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s5); margin-bottom: var(--s5);
  aspect-ratio: 16 / 10;
}
.step-card__tile svg { width: 52px; height: 52px; color: var(--green); }
.step-card__tile:has(img) { padding: 0; overflow: hidden; }
.step-card__tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.step-card__num {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--orange); margin-bottom: var(--s2);
}
.step-card__title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: var(--s2); }
.step-card__desc { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ------------------------------------------------------- Stats / why (dark) */

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: center; }

/* Grid items default to min-width:auto, which lets wide content (illustration
   panels, horizontal lists) push the page wider than the viewport. */
.hero__grid > *, .split-grid > *, .app-grid > *, .legal-layout > *,
.steps-grid > *, .card-grid > *, .hero-cards > *, .flow > * { min-width: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--s6) var(--s7); margin: var(--s8) 0; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.stat__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.on-ink .stat__label { color: var(--on-ink-muted); }
.stat__value--green { color: var(--green); }
.stat__value--orange { color: var(--orange); }

/* Offer card stack */
.offer-stack { display: grid; gap: var(--s4); }
.offer-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  padding: var(--s5) var(--s6);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4);
  align-items: center;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.offer-card:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, .3); }
.offer-card--best { background: var(--green-tint); border-color: var(--green); color: var(--ink); }
.offer-card__name { font-size: 14px; font-weight: 600; color: var(--on-ink-muted); margin-bottom: 4px; }
.offer-card--best .offer-card__name { color: var(--green-press); }
.offer-card__apr { font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.offer-card__apr small { font-size: 13px; font-weight: 600; color: var(--on-ink-muted); margin-left: 4px; }
.offer-card--best .offer-card__apr small { color: var(--green-press); }
.offer-card__side { text-align: right; }
.offer-card__side b { display: block; font-size: 17px; font-weight: 700; }
.offer-card__side small { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-ink-muted); }
.offer-card--best .offer-card__side small { color: var(--green-press); }
.offer-card__badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: var(--orange);
  border-radius: var(--r-pill); padding: 3px 10px; margin-bottom: 6px;
}

/* ------------------------------------------------------------ Compare table */

.compare-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--page); box-shadow: var(--shadow-card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: var(--s5) var(--s6);
  text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface);
}
.compare-table thead th:nth-child(2) { color: var(--green-press); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th { font-weight: 600; }
.compare-table td { color: var(--text-2); }
.compare-table td:nth-child(2) { color: var(--ink); font-weight: 500; }
.compare-table--center td:not(:first-child), .compare-table--center th:not(:first-child) { text-align: center; }

.mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700; }
.mark--yes { background: var(--green-tint); color: var(--green-press); }
.mark--no { background: var(--orange-tint); color: var(--orange-press); }

/* ------------------------------------------------------------- Simple cards */

.card-grid { display: grid; gap: var(--s5); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--page);
  border-radius: var(--r-card);
  padding: var(--s7);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: var(--s2); }
.card__desc { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.card--ink { background: var(--ink-soft); color: #fff; }
.card--ink .card__desc { color: var(--on-ink-muted); }
.card--flush { background: var(--surface); box-shadow: none; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--green-tint); color: var(--green-press);
  margin-bottom: var(--s5);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--orange { background: var(--orange-tint); color: var(--orange-press); }
.icon-badge--ink { background: rgba(255, 255, 255, .08); color: var(--green); }

/* Feature list with check bullets */
.check-list { display: grid; gap: var(--s4); }
.check-list li {
  position: relative; min-width: 0;
  padding-left: 42px; font-size: 15.5px; line-height: 1.55;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-pill);
  background: var(--green-tint); color: var(--green-press);
  font-size: 13px; font-weight: 700;
}
.check-list--neutral li::before { content: '–'; background: var(--surface); color: var(--text-2); }
.on-ink .check-list li::before { background: rgba(35, 176, 39, .16); color: var(--green); }

/* ----------------------------------------------------------- Money flow row */

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--s4); align-items: stretch; }
.flow__node {
  background: var(--page);
  border-radius: var(--r-card); padding: var(--s6); text-align: center;
  box-shadow: var(--shadow-card);
}
.flow__node b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.flow__node span { font-size: 14px; color: var(--text-2); }
.flow__node--you {
  background: var(--green-tint);
  border: 1.5px solid rgba(35, 176, 39, .38);
  box-shadow: 0 1px 2px rgba(16, 18, 33, .04), 0 10px 28px rgba(35, 176, 39, .14);
}
.flow__node--us { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow__node--us span { color: var(--on-ink-muted); }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--line-strong); }
.flow__arrow svg { width: 24px; height: 24px; }

/* ---------------------------------------------------------- App / phone shot */

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s10); align-items: center; }

.phone-row { display: flex; gap: var(--s5); justify-content: center; align-items: flex-end; }
.phone {
  position: relative; flex: none;
  width: 250px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(180deg, #8E93A0 0%, #5E6370 100%);
  box-shadow: 0 1px 2px rgba(16, 18, 33, .08), 0 16px 36px rgba(16, 18, 33, .14);
  border: 1px solid rgba(16, 18, 33, .18);
}
.phone--sm { width: 210px; }
.phone--lift { margin-bottom: var(--s8); }
/* Device-shaped screen (402×874): taller exports get top-cropped, never stretched. */
.phone__screen { border-radius: 33px; overflow: hidden; background: #fff; aspect-ratio: 402 / 874; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px; border-radius: var(--r-pill);
  background: #4E5260; z-index: 2;
}

/* App screen carousel */
.app-carousel { display: flex; flex-direction: column; align-items: center; gap: var(--s6); }
.app-carousel__viewport { position: relative; width: 262px; }
.app-carousel__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
}
.app-carousel__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.app-carousel__dots { display: flex; gap: 8px; }
.app-carousel__dot {
  width: 9px; height: 9px; padding: 0; border-radius: var(--r-pill);
  background: rgba(16, 18, 33, .18);
  transition: background-color .2s ease, width .2s ease;
}
.on-ink .app-carousel__dot { background: rgba(255, 255, 255, .35); }
.app-carousel__dot.is-active { background: var(--green); width: 26px; }
@media (prefers-reduced-motion: reduce) {
  .app-carousel__slide { transition: none; }
}

.store-badge { display: inline-block; margin-top: var(--s6); }
.store-badge img { height: 54px; width: auto; }

/* ------------------------------------------------------------------ Range/illo */

.illo-panel {
  border-radius: var(--r-panel);
  padding: clamp(var(--s5), 4vw, var(--s8));
  display: flex; align-items: center; justify-content: center;
  min-height: 340px;
}
.illo-panel img { width: 100%; max-width: 300px; height: auto; }
body[data-app-page="index"] .illo-panel img { max-width: 450px; }

/* growth-chart.png renders the hemisphere cut off by the canvas bottom edge —
   dissolve the bottom of the image into the page so the crop reads as a soft
   fade instead of a hard horizontal cut. */
.illo-panel--fade img {
  -webkit-mask: linear-gradient(#000 58%, #0000 96%);
  mask: linear-gradient(#000 58%, #0000 96%);
}

.range-bar { margin: var(--s8) 0 var(--s6); }
.range-bar__track { height: 10px; border-radius: var(--r-pill); background: var(--surface); overflow: hidden; display: flex; }
.range-bar__fill { height: 100%; background: linear-gradient(90deg, var(--green) 0%, var(--orange) 100%); border-radius: var(--r-pill); }
.range-bar__scale { display: flex; justify-content: space-between; margin-top: var(--s3); font-size: 13px; font-weight: 600; color: var(--text-2); }

/* App form progress: 12px pills, orange when done, ink at 10% otherwise. */
.progress-pills { display: flex; gap: 6px; margin-bottom: var(--s6); }
.progress-pills span { height: 12px; flex: 1; border-radius: var(--r-pill); background: rgba(16, 18, 33, .1); }
.progress-pills span.is-done { background: var(--orange); }

/* --------------------------------------------------------------------- FAQ */

.faq { display: grid; gap: var(--s3); max-width: 840px; margin: 0 auto; }
/* Flat white cards on the light gradient, like the app's FAQ list. */
.faq__item {
  border-radius: var(--r-card);
  background: var(--page);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: background-color .2s ease;
}
.faq__item[open] { background: var(--page); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) var(--s6);
  font-size: 16.5px; font-weight: 600; cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__item[open] .faq__q { color: var(--green); }
.faq__icon {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--surface); position: relative;
  transition: background-color .2s ease, transform .25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%);
}
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; transition: opacity .2s ease; }
.faq__item[open] .faq__icon { background: var(--green); }
.faq__item[open] .faq__icon::before { background: #fff; }
.faq__item[open] .faq__icon::after { opacity: 0; }
.faq__a { padding: 0 var(--s6) var(--s6); }
.faq__a p { font-size: 15.5px; color: var(--text-2); line-height: 1.62; }
.faq__a p + p { margin-top: var(--s4); }

/* -------------------------------------------------------------- Support form */

.form-grid { display: grid; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
/* App-style fields: transparent fill, ink/20 outline, green when focused. */
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent;
  border: 1.5px solid rgba(16, 18, 33, .2);
  border-radius: var(--r-pill);
  min-height: 54px; padding: 0 22px;
  transition: border-color .18s ease, background-color .18s ease;
  width: 100%;
}
.field textarea { border-radius: var(--r-card); padding: 16px 22px; min-height: 148px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6F7B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: transparent; }
.field__hint { font-size: 12.5px; color: var(--text-2); }

.form-status {
  display: none; align-items: center; gap: var(--s3);
  background: var(--green-tint); border: 1.5px solid var(--green);
  color: var(--green-press); border-radius: var(--r-card);
  padding: var(--s5); font-size: 15px; font-weight: 500;
}
.form-status.is-visible { display: flex; }

.contact-list { display: grid; gap: var(--s4); }
.contact-list li { display: flex; gap: var(--s4); align-items: flex-start; min-width: 0; }
.contact-list li > span:last-child { min-width: 0; }
.contact-list__icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--green-tint); color: var(--green-press);
  display: flex; align-items: center; justify-content: center;
}
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list__label {
  display: block; margin-bottom: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-2);
}
.contact-list__value { display: block; font-size: 16px; font-weight: 600; }

/* --------------------------------------------------------------- Legal pages */

.legal-progress { position: fixed; top: var(--header-h); left: 0; right: 0; height: 3px; z-index: 98; background: transparent; }
.legal-progress__bar { height: 100%; width: 0; background: var(--green); transition: width .1s linear; }

.legal-hero { padding: var(--s10) 0 var(--s9); border-bottom: 1px solid var(--line); }
.legal-hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--page); box-shadow: var(--shadow-card);
  border-radius: var(--r-pill); padding: 8px 18px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-top: var(--s5);
}
.legal-hero .h1 { max-width: 20em; }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s10); padding: var(--s10) 0 var(--s11); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + var(--s6)); min-width: 0; }
.legal-toc__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-bottom: var(--s4); }
.legal-toc__list { display: grid; gap: 2px; max-height: 62vh; overflow-y: auto; min-width: 0; }
.legal-toc__link {
  display: block; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 13.5px; color: var(--text-2); line-height: 1.35;
  transition: background-color .18s ease, color .18s ease;
}
.legal-toc__link:hover { background: var(--surface); color: var(--ink); }
.legal-toc__link.is-current { background: var(--green-tint); color: var(--green-press); font-weight: 600; }

.legal-content { max-width: min(var(--prose), 100%); }
.legal-content > p { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.legal-section { display: grid; grid-template-columns: 56px 1fr; gap: var(--s5); margin-top: var(--s9); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-section > * { min-width: 0; }
.legal-section__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 700;
}
.legal-section h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: var(--s4); }
.legal-section p { font-size: 15.5px; color: var(--text-2); line-height: 1.68; }
.legal-section p + p { margin-top: var(--s4); }
.legal-section ul { margin-top: var(--s4); display: grid; gap: var(--s3); }
.legal-section li {
  position: relative; min-width: 0; padding-left: 18px;
  font-size: 15.5px; color: var(--text-2); line-height: 1.6;
}
.legal-section li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.legal-term { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- Final CTA */

.final-cta { text-align: center; }
.final-cta .h2 { max-width: 22em; margin: 0 auto var(--s5); }
.final-cta .lead { max-width: 34em; margin: 0 auto var(--s8); }

/* ------------------------------------------------------------------- Footer */

.footer { background: var(--ink); color: var(--on-ink); padding: var(--s11) 0 var(--s8); margin-top: var(--s11); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s8); }
.footer__desc { font-size: 14.5px; color: var(--on-ink-muted); line-height: 1.6; margin: var(--s5) 0 var(--s6); max-width: 34em; }
.footer .logo__sub { color: var(--on-ink-muted); }
.footer__heading { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s5); }
.footer__links { display: grid; gap: var(--s3); }
.footer__link { font-size: 14.5px; color: var(--on-ink-muted); transition: color .18s ease; }
.footer__link:hover { color: #fff; }

.footer__notice-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s10) 0 var(--s6); }
.footer__notice {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink-line); border-radius: var(--r-pill);
  padding: 8px 18px; font-size: 13px; font-weight: 500; color: #fff;
}
.footer__disclaimer { border-top: 1px solid var(--ink-line); padding-top: var(--s7); display: grid; gap: var(--s4); }
.footer__disclaimer p { font-size: 12.5px; color: var(--on-ink-muted); line-height: 1.65; }
.footer__company { margin-top: var(--s7); display: grid; gap: var(--s2); font-size: 13px; color: var(--on-ink-muted); line-height: 1.7; }
.footer__company strong { color: #fff; font-weight: 600; }
.footer__company a { color: #fff; border-bottom: 1px solid var(--ink-line); }
.footer__company a:hover { border-bottom-color: var(--green); }
.footer__copy { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--ink-line); font-size: 13px; color: var(--on-ink-muted); }

/* ------------------------------------------------------------- Scroll reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
  .hero__grid, .split-grid, .app-grid { grid-template-columns: 1fr; gap: var(--s9); }
  .offer-float { left: 0; bottom: 24px; }
  .steps-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 1fr; gap: var(--s7); }
  .legal-toc { position: static; max-height: none; }
  .legal-toc__list { grid-auto-flow: column; grid-auto-columns: max-content; grid-template-rows: none; overflow-x: auto; padding-bottom: var(--s2); }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); }
}

@media (max-width: 860px) {
  :root { --section-y: 76px; --header-h: 68px; }
  .nav { display: none; }
  .header__actions .btn--primary { display: none; }
  .burger { display: flex; margin-left: auto; }
  .hero-cards, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
  .section--ink { border-radius: var(--r-card); margin: 0 var(--s3); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .footer__brand { grid-column: 1 / -1; }
  .phone-row { flex-wrap: wrap; }
  .phone--lift { margin-bottom: 0; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --section-y: 64px; }
  .steps-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s8); }
  .hero-stage { min-height: 320px; padding: var(--s5) var(--s5) 0; }
  .offer-float { position: static; width: 100%; margin-top: var(--s5); }
  .hero__meta { gap: var(--s6); }
  .stat-row { gap: var(--s6); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .trust-bar__list { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal-section { grid-template-columns: 1fr; gap: var(--s4); }
  .phone { width: 100%; max-width: 280px; }
  .app-carousel__viewport { width: 100%; max-width: 280px; }
}

@media print {
  .header, .mobile-nav, .footer, .legal-toc, .legal-progress, .btn { display: none !important; }
  body { color: #000; }
}

/* ------------------------------------------------------------ In-app mode */
/* html.in-app is set by the iOS app (WKUserScript) and js/app-bridge.js. The app draws its
   own tab bar, so the site header goes and content clears the native bottom chrome. */

html.in-app .header,
html.in-app .mobile-nav,
html.in-app .skip-link { display: none !important; }
html.in-app body { padding-bottom: var(--app-content-bottom-inset, 0px); -webkit-tap-highlight-color: transparent; }

/* Blocks shown only on the site or only in the app. */
.app-only { display: none; }
html.in-app .app-only { display: block; }
html.in-app .web-only { display: none !important; }

/* FAQ in the app (Figma: Loan-Apps › FAQ) — hero, then white question cards on the app's
   white → #E4E4E4 background; the chevron flips and the question turns green when open. */
html.in-app body:is([data-app-page="faq"], [data-app-page="support"]) { --app-font: -apple-system, 'SF Pro Text', system-ui, sans-serif; }
html.in-app:has(body:is([data-app-page="faq"], [data-app-page="support"])) {
  min-height: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E4 100%);
  background-color: #FFFFFF;
}
html.in-app body:is([data-app-page="faq"], [data-app-page="support"]) {
  background: transparent;
  font-family: var(--app-font);
  color: var(--ink);
}
html.in-app body:is([data-app-page="faq"], [data-app-page="support"]) .footer { display: none; }

html.in-app .app-faq-hero { padding: 20px 20px 0; }
html.in-app .app-faq-hero__title {
  max-width: 309px;
  font-size: 33px; font-weight: 510; line-height: .9; letter-spacing: -0.66px;
  color: var(--ink);
}
html.in-app .app-faq-hero__title em { font-style: italic; color: var(--green); }
html.in-app .app-faq-hero__lead {
  max-width: 237px; margin-top: 10px;
  font-size: 14px; line-height: 1.2; letter-spacing: -0.28px;
  color: var(--ink);
}

html.in-app .faq-section { padding: 24px 0 20px; }
html.in-app .faq-section .container { padding: 0 20px; }
html.in-app .faq { gap: 14px; max-width: none; }
html.in-app .faq__item,
html.in-app .faq__item[open] { border: 0; border-radius: 19px; background: #FFFFFF; }
html.in-app .faq__q {
  gap: 18px; min-height: 52px; padding: 20px;
  font-size: 16px; font-weight: 400; line-height: 1; letter-spacing: -0.32px;
  color: var(--ink);
}
html.in-app .faq__item[open] .faq__q { color: var(--green); }
html.in-app .faq__icon,
html.in-app .faq__item[open] .faq__icon {
  width: 18px; height: 18px; border-radius: 0;
  background: currentColor;
  -webkit-mask: url('../assets/app/chevron-down.svg') center / 12px 6.75px no-repeat;
          mask: url('../assets/app/chevron-down.svg') center / 12px 6.75px no-repeat;
}
html.in-app .faq__icon::before,
html.in-app .faq__icon::after { content: none; }
html.in-app .faq__item[open] .faq__icon { transform: rotate(180deg); }
html.in-app .faq__a { padding: 0 20px 20px; margin-top: -2px; }
html.in-app .faq__a p,
html.in-app .faq__item[open] .faq__a p {
  font-size: 14px; line-height: 1.2; letter-spacing: -0.28px;
  color: var(--ink);
}
html.in-app .faq__a .link-inline { color: var(--green); }

/* Support in the app (Figma: Loan-Apps › Support) — hero and three outlined fields with the
   label in a gap on the top edge, like the loan form's fields. "Send message" is native: the
   app sends `supportSend`, js/main.js validates and reports back with `supportState`. */
html.in-app .app-support { padding: 20px 20px 24px; }
html.in-app .app-support__title {
  font-size: 33px; font-weight: 510; line-height: .9; letter-spacing: -0.66px;
  color: var(--ink);
}
html.in-app .app-support__title em { font-style: italic; color: var(--green); }
html.in-app .app-support__lead {
  max-width: 246px; margin-top: 10px;
  font-size: 14px; line-height: 1.2; letter-spacing: -0.28px;
  color: var(--ink);
}
html.in-app .app-support__form { display: grid; gap: 15px; margin-top: 24px; }

/* The legend cuts the gap into the outline: 1px border + 15px margin + 4px padding puts the
   label text 20px in, as in the design. */
html.in-app .app-field {
  min-width: 0; margin: 0; padding: 0;
  border: 1px solid rgba(16, 18, 33, .2);
  border-radius: 63px;
  transition: border-color .2s ease;
}
html.in-app .app-field--area { border-radius: 19px; }
html.in-app .app-field legend {
  margin-left: 15px; padding: 0 4px;
  font-size: 16px; line-height: .9; letter-spacing: -0.32px;
  color: var(--ink);
  transition: color .2s ease;
}
html.in-app .app-field input,
html.in-app .app-field textarea {
  display: block; width: 100%;
  /* Up under the legend's lower half, so the box measures 54px from the outline. */
  margin-top: -7px;
  border: 0; border-radius: inherit; outline: none;
  background: transparent;
  font: inherit; font-size: 16px; letter-spacing: -0.32px;
  color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
html.in-app .app-field input { height: 53px; padding: 0 19px; }
html.in-app .app-field textarea { height: 238px; padding: 19px; line-height: 1.2; resize: none; }
html.in-app .app-field input::placeholder,
html.in-app .app-field textarea::placeholder { color: rgba(16, 18, 33, .4); }
html.in-app .app-field:focus-within { border-color: var(--green); }
html.in-app .app-field.is-invalid { border-color: var(--orange); }
html.in-app .app-field.is-invalid legend { color: var(--orange); }

html.in-app .app-support__status {
  display: none;
  font-size: 14px; line-height: 1.2; letter-spacing: -0.28px;
  color: var(--green);
}
html.in-app .app-support__status.is-visible { display: block; }

/* Menu pages in the app (Figma: Loan-Apps › Loan Disclosure / [Legal page title]). The app
   draws the page title and close button; the page is its sections as white cards on the
   white → #E4E4E4 background, each heading numbered with its last word in green italic. */
/* The background spans the screen, not the (long) page, so the cards stay visible. */
html.in-app:has(.legal-content) { background: #E4E4E4; }
html.in-app:has(.legal-content)::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4E4 100%);
}
html.in-app body:has(.legal-content) {
  background: transparent;
  font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
  color: var(--ink);
}
html.in-app body:is(:has(.legal-content), [data-app-page="how-it-works"], [data-app-page="how-we-make-money"]) .footer,
html.in-app .legal-progress,
html.in-app .legal-toc,
html.in-app .legal-hero .kicker,
html.in-app .legal-hero .h1,
html.in-app .legal-section__num { display: none; }

html.in-app .legal-hero { padding: 18px 20px 0; border: 0; }
html.in-app .legal-hero .container { padding: 0; }
html.in-app .legal-hero__pill {
  display: block; margin: 0; padding: 0; border: 0; background: none;
  font-size: 12px; font-weight: 400; line-height: 1.2; color: rgba(16, 18, 33, .5);
}
html.in-app .legal-layout { display: block; padding: 12px 0 24px; }
html.in-app body:has(.legal-content) .container { padding-left: 20px; padding-right: 20px; }
html.in-app .legal-content { max-width: none; display: grid; gap: 14px; counter-reset: legal; }
html.in-app .legal-content > p:empty { display: none; }
html.in-app .legal-content > p,
html.in-app .legal-section {
  margin: 0; padding: 20px;
  border-radius: 21px; background: #FFFFFF;
}
html.in-app .legal-section { display: block; scroll-margin-top: 12px; }
html.in-app .legal-section h2 {
  margin-bottom: 10px;
  font-size: 20px; font-weight: 510; line-height: 1.15; letter-spacing: -0.4px;
  color: var(--ink);
}
html.in-app .legal-section h2::before { counter-increment: legal; content: counter(legal) ". "; }
html.in-app .legal-accent { font-style: italic; color: var(--green); }
html.in-app .legal-content > p,
html.in-app .legal-section p,
html.in-app .legal-section li {
  font-size: 14px; line-height: 1.2; letter-spacing: -0.28px; color: var(--ink);
}
html.in-app .legal-section p + p { margin-top: 8px; }
html.in-app .legal-section ul { display: block; margin-top: 8px; padding-left: 21px; list-style: disc; }
html.in-app .legal-section p + ul,
html.in-app .legal-section ul + p { margin-top: 8px; }
html.in-app .legal-section li { padding-left: 0; }
html.in-app .legal-section li::before { content: none; }
html.in-app .legal-section a { color: var(--green); }
