/* ==========================================================================
   PlatAI — home page
   Rebuilt from the Framer site. Tokens below mirror the Framer color styles.
   ========================================================================== */

:root {
  /* Brand palette (Framer tokens) */
  --navy: #1b3085;          /* token 63f3d0da */
  --blue: #5670c8;          /* token c192a0d5 */
  --blue-2: #5b6fc2;        /* token bee478b3 */
  --periwinkle: #dae4fe;    /* token 7a5912cc */
  --periwinkle-2: #ccd3ed;  /* token aef163f9 */
  --ink: #2f3338;           /* token 7269e52b — primary text */
  --ink-2: #30353d;         /* token 39b8e27e */
  --ink-green: #1d332c;     /* token e294f27a */
  --muted: #525357;         /* token e98759e8 */
  --placeholder: #818185;
  --slate: #4f5c5c;         /* token ef1d3702 */
  --line: #d5d9e3;          /* token 7ab481f7 */
  --line-warm: #e3e3dc;     /* token e821df36 */
  --bg: #f5f6fa;            /* token 3c4dceba — page background */
  --bg-2: #f2f2f5;          /* token 16f611a0 */
  --white: #ffffff;
  --sand: #f5e4cb;          /* token 2dd5ff80 */
  --orange: #ed9434;        /* token 058b6f23 */

  --font-serif: "Hedvig Letters Serif", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-tab: "Merriweather", Georgia, serif;
  --inter-features: "cv03" on, "cv04" on, "cv09" on, "cv11" on;

  --max: 1600px;
  --gutter: 40px;

  /* Motion (approximations of Framer springs) */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-feature-settings: var(--inter-features);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul { margin: 0; }
.icon { width: 24px; height: 24px; flex: none; --sw: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography (Framer text styles) ---------- */
.t-h1 { font-family: var(--font-serif); font-weight: 400; font-size: 80px; line-height: 1.1; letter-spacing: -0.06em; }
.t-h2 { font-family: var(--font-serif); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.t-h3 { font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -0.05em; color: var(--ink); font-feature-settings: "cv01" on, "cv09" on, "cv11" on, "cv05" on, "ss03" on; }
.t-h4 { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -0.05em; color: var(--ink); font-feature-settings: "cv01" on, "cv09" on, "cv11" on, "cv05" on, "ss03" on; }
.t-h6 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: -0.04em; color: var(--ink); }
.t-lead { font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
.t-body { font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; }
.t-ui { font-size: 16px; line-height: 1.3; letter-spacing: -0.02em; }
.t-ui-sm { font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; }
.t-ui-xs { font-size: 13px; line-height: 1.3; letter-spacing: -0.02em; }
.center { text-align: center; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; position: relative; }
.frame { width: 100%; max-width: var(--max); position: relative; }
.rule-x { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Buttons (text slides up, fill rises on hover) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 180px; height: 44px; padding: 1px 16px 0; border-radius: 8px; overflow: hidden;
  font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; text-align: center;
  isolation: isolate;
}
.btn__label { position: relative; z-index: 2; height: 19px; flex: 1; overflow: hidden; }
.btn__label span { position: absolute; left: 0; right: 0; transition: transform .45s var(--ease-spring); }
.btn__label span:first-child { top: 0; }
.btn__label span:last-child { top: 100%; padding-top: 1px; }
.btn__fill { position: absolute; inset: 0; z-index: 1; background: var(--periwinkle); transform: translateY(100%); transition: transform .45s var(--ease-spring); }
.btn:hover .btn__label span, .btn:focus-visible .btn__label span { transform: translateY(-100%); }
.btn:hover .btn__fill, .btn:focus-visible .btn__fill { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; }

.btn--primary { background: var(--white); color: var(--ink); }
.btn--outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn--outline .btn__label span:last-child { color: var(--ink); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy .btn__label span:last-child { color: var(--ink); }
.btn--sm { width: 128px; height: 40px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 0 var(--gutter);
  background: var(--navy);
  transition: background-color .5s var(--ease-soft), backdrop-filter .5s;
}
.nav__bar {
  max-width: var(--max); margin: 0 auto; padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(218, 228, 254, .2); border-top: 0;
  transition: border-color .5s;
}
.nav__logo { display: block; width: 63px; height: 27px; position: relative; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
.nav__logo .logo-dark { opacity: 0; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__links { display: flex; gap: 16px; }
.nav__link { padding: 6px 4px; color: var(--white); transition: color .4s, opacity .25s ease; }
.nav__link:hover, .nav__link:focus-visible { opacity: .7; }
.nav__cta { width: 140px; height: 40px; transition: background-color .4s, color .4s; }

.nav.is-light { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(53px); backdrop-filter: blur(53px); }
.nav.is-light .nav__bar { border-color: rgba(213, 217, 227, .6); }
.nav.is-light .nav__link { color: var(--ink); }
.nav.is-light .logo-white { opacity: 0; }
.nav.is-light .logo-dark { opacity: 1; }
.nav.is-light .nav__cta { background: var(--navy); color: var(--white); }
.nav.is-light .nav__cta .btn__label span:last-child { color: var(--ink); }

/* Mobile menu (phone only) */
.nav__burger, .nav__menu { display: none; }
@media (max-width: 809.98px) {
  .nav__bar { padding: 8px 16px; }
  .nav__burger { display: block; position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; }
  .nav__burger span { position: absolute; left: calc(50% - 10px); width: 20px; height: 2px; border-radius: 10px; background: var(--white); transition: top .4s var(--ease-soft), transform .4s var(--ease-soft), background-color .4s; }
  .nav__burger span:first-child { top: calc(37.5% - 1px); }
  .nav__burger span:last-child { top: calc(62.5% - 1px); }
  .nav.is-light .nav__burger span { background: var(--ink); }
  .nav__burger:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 2px; }

  .nav.is-open { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: auto; overscroll-behavior: contain; background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .nav__bar { width: 100%; border-color: rgba(213, 217, 227, .3); }
  .nav.is-open .logo-white { opacity: 1; }
  .nav.is-open .logo-dark { opacity: 0; }
  .nav.is-open .nav__cta { display: none; }
  .nav.is-open .nav__burger span { top: calc(47.73% - 1px); background: var(--white); }
  .nav.is-open .nav__burger span:first-child { transform: rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: rotate(-45deg); }
  .nav.is-open .nav__menu {
    display: flex; flex-direction: column; align-items: center; gap: 32px;
    flex: 1 0 auto; width: 100%; max-width: var(--max); margin: 0 auto; padding: 40px;
    border: 1px solid rgba(213, 217, 227, .3); border-top: 0; border-bottom: 0;
    animation: navMenuIn .4s var(--ease-soft) both;
  }
  .nav.is-open .nav__menu .nav__link { color: var(--white); }
  .nav__menu-cta { width: 100%; height: 40px; }
}
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Shader backgrounds (WebGL "Bands" shader, masked like the original)
   ========================================================================== */
.shader {
  position: absolute; inset: 0 1px -1px; z-index: 0; pointer-events: none;
  -webkit-mask: radial-gradient(98% 89% at 50% 4.9%, #0000 60.64%, #000 100%);
          mask: radial-gradient(98% 89% at 50% 4.9%, #0000 60.64%, #000 100%);
  opacity: 0.001; transform: scale(1.1);
  transition: opacity 2.4s var(--ease-spring) .2s, transform 2.4s var(--ease-spring) .2s;
}
.shader.is-ready { opacity: 1; transform: scale(1); }
.shader canvas { width: 100%; height: 100%; display: block; }
.shader--inset { inset: 1px -6px -3px -4px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: clip;
  background: linear-gradient(180deg, var(--navy) 8%, var(--blue) 51.58%, var(--periwinkle) 100%);
  padding: 0 var(--gutter) 80px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__frame {
  position: relative; width: 100%; max-width: var(--max);
  padding-top: 140px;
  border-left: 1px solid rgba(218, 230, 255, .2); border-right: 1px solid rgba(218, 230, 255, .2);
  display: flex; flex-direction: column; align-items: center;
}
.hero__inner { position: relative; width: 90%; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.hero__copy { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 32px; z-index: 1; }
.hero__copy-top { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__title { color: var(--white); text-align: center; }
.hero__text { color: var(--white); width: 900px; max-width: 100%; text-align: center; }
.btn-row { display: flex; justify-content: center; gap: 12px; width: 100%; }

/* SOC pill with rotating light border */
.pill-shine { position: relative; width: 168px; height: 40px; border-radius: 40px; overflow: hidden; }
.pill-shine::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1;
  background: conic-gradient(transparent 200deg, var(--periwinkle));
  transform: translate(-50%, -50%) rotate(0deg);
  animation: pill-spin 6s linear infinite;
}
.pill-shine__inner {
  position: absolute; inset: 1px; border-radius: 39px; z-index: 1;
  background: rgba(27, 48, 133, .2); border: 1px solid rgba(218, 228, 254, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-shine__inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); z-index: -1; opacity: .9; }
.pill-shine__text { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 16px; letter-spacing: 0; }
@keyframes pill-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Dashboard */
.hero__dash { position: relative; z-index: 1; width: 100%; max-width: 1200px; aspect-ratio: 1.68; display: flex; justify-content: center; align-items: center; }
.hero__dash-frame {
  width: 90%; aspect-ratio: 1.88; padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .3); border: 1px solid rgba(251, 251, 249, .4);
  -webkit-backdrop-filter: blur(77px); backdrop-filter: blur(77px);
  box-shadow: 0 13px 32px -5px rgba(4, 22, 48, .2);
  transition: width .9s var(--ease-spring);
  will-change: width;
}
.hero__dash-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 8px; }
.hero.is-scrolled .hero__dash-frame { width: 100%; }

/* Floating cards: hidden at the top, shown after scrolling down, hidden again on the way back up.
   Same easing both ways; the stagger runs forward on show and in reverse on hide. */
.float {
  position: absolute; z-index: 2; opacity: 0; transform: translateY(40px); filter: blur(3px);
  transition: opacity .6s var(--ease-soft), transform .8s var(--ease-spring), filter .6s var(--ease-soft);
  transition-delay: var(--hide-delay, 0s);
  will-change: opacity, transform;
}
.hero.is-scrolled .float { opacity: 1; transform: none; filter: blur(0); transition-delay: var(--show-delay, 0s); }
.float--underwriting { --show-delay: 0s;   --hide-delay: .18s; }
.float--rec          { --show-delay: .06s; --hide-delay: .12s; }
.float--soc          { --show-delay: .12s; --hide-delay: .06s; }
.float--pii          { --show-delay: .18s; --hide-delay: 0s; }
.float--pii { left: -39px; bottom: -23px; width: 371px; }
.float--underwriting { left: 0; top: 528px; }
.float--rec { right: -68px; top: -60px; width: 371px; z-index: 3; }   /* overlaps the dashboard's top-right corner */
.float--soc { right: 4px; top: 69%; }

/* Chip (white tile with icon) */
.chip {
  display: flex; align-items: center; gap: 10px; padding: 8px; width: 223px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--white); border-radius: 12px;
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .09);
  color: var(--ink-green);
}
.chip__tile { width: 50px; height: 50px; border-radius: 8px; background: var(--periwinkle); display: grid; place-items: center; color: var(--ink); flex: none; }
.chip__tile--grad { background: linear-gradient(180deg, var(--periwinkle) 0%, var(--periwinkle-2) 100%); }
.chip__text { flex: 1; }

/* ==========================================================================
   Mock UI cards (shared by hero, features, expanding cards)
   ========================================================================== */
.glass {
  padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(100px); backdrop-filter: blur(100px);
}
.ui-card { border-radius: 12px; border: 1px solid var(--line-warm); box-shadow: 0 2px 6px rgba(41, 41, 38, .12); overflow: hidden; background: var(--white); }
.ui-card--cool { border-color: var(--line); }
.ui-card__head {
  height: 48px; padding: 12px 12px 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg); border-bottom: 1px solid var(--line-warm); color: var(--ink);
}
.ui-card--cool .ui-card__head { border-bottom-color: var(--line); }
.ui-card__head--pl12 { padding-left: 12px; }
.ui-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.ui-card__body--tight { padding: 12px 20px 12px 12px; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }
.w500 { font-weight: 500; }

.tag { display: inline-flex; padding: 4px 8px; border-radius: 4px; font-size: 14px; line-height: 1.3; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); background: var(--periwinkle); }
.tag--navy { background: var(--navy); color: var(--white); font-weight: 500; }
.tag--grey { background: var(--line); color: var(--ink-green); font-weight: 500; }
.tag--sand { background: var(--sand); font-weight: 500; }
.tag--soft { background: var(--periwinkle); font-weight: 500; }

.bar { height: 10px; border-radius: 12px; background: var(--line); flex: none; }
.bar--faint { background: rgba(213, 217, 227, .4); }
.bar--half { background: rgba(213, 217, 227, .5); }
.bar--sixty { background: rgba(213, 217, 227, .6); }
.bars { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }

.summary { display: flex; align-items: flex-start; color: var(--ink); }
.summary__label { width: 130px; flex: none; }

.row-pill {
  height: 48px; padding: 12px 12px 12px 20px; border-radius: 8px; background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--ink);
  -webkit-backdrop-filter: blur(31px); backdrop-filter: blur(31px);
}

/* Privacy-masked card */
.mask-card { position: relative; }
.mask-card__veil {
  position: absolute; top: 7px; bottom: 9px; right: 7px; width: 48%; z-index: 2;
  background: linear-gradient(90deg, rgba(247, 247, 245, .5) 0%, rgba(255, 255, 255, .1) 100%);
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
  border-radius: 0 12px 12px 0;
}
.mask-card__divider { position: absolute; top: 0; bottom: 0; left: calc(50% - .5px); width: 1px; z-index: 3; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--navy) 52.14%, rgba(255,255,255,.49) 100%); }
.lock-tile {
  position: absolute; z-index: 3; display: grid; place-items: center; color: var(--white);
  background: var(--navy); border-radius: 17.6%; box-shadow: 0 13px 26px rgba(0, 0, 0, .15);
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Section — Designed for Home Improvement Lending
   ========================================================================== */
.lending { background: var(--white); }
.lending .frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.section-head { max-width: 1400px; margin: 0 auto; padding: 100px 0px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.section-head .t-h2 { width: 90%; text-align: center; }
.lending .section-head .t-h2 .reveal-line { display: inline; }
.lending .section-head .t-h2 .reveal-line:not(:last-child)::after { content: " "; }
.lending__stage {
  position: relative; overflow: clip; background: var(--bg); border-top: 1px solid var(--line);
  padding: 80px 40px 0; display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.lending__flow { position: relative; z-index: 1; width: 90%; max-width: 1200px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.audiences { display: flex; gap: 8px; width: 100%; }
.audience {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px;
  background: var(--periwinkle); border-radius: 12px;
  font-family: var(--font-tab); font-size: 20px; letter-spacing: -0.04em; color: var(--ink); line-height: 1.2;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
.audience:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(27, 48, 133, .08); }
.audience svg { width: 24px; height: 24px; overflow: visible; }
.audience:nth-child(odd) svg { width: 20px; height: 20px; margin: 2px; }
.tree { width: 725px; max-width: 100%; height: 46px; }
.tree--sm { display: none; }

.board-wrap { position: relative; width: 1053px; max-width: 100%; height: 287px; overflow: clip; }
.board {
  position: absolute; top: 0; bottom: 0; left: 6.55%; width: 87%; z-index: 2;
  padding: 24px; display: flex; flex-direction: column; gap: 24px;
  background: rgba(247, 247, 245, .5); border: 1px solid var(--white); border-bottom: 0;
  border-radius: 16px 16px 0 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .09);
  -webkit-backdrop-filter: blur(100px); backdrop-filter: blur(100px);
}
.board__heads { display: flex; }
.board__heads span { flex: 1; display: flex; justify-content: center; padding: 0 24px; }
.board__heads i { display: block; width: 80px; height: 8px; border-radius: 12px; background: var(--line); }
.board__cols { display: flex; gap: 10px; align-items: flex-start; }
.board__col { flex: 1; min-width: 0; aspect-ratio: 1; background: var(--line); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.doc { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 7px rgba(0, 0, 0, .09); }
.doc__head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.doc__head span { flex: 1; }
.doc__head i { width: 60px; height: 8px; border-radius: 12px; background: var(--line); }
.doc__file { height: 44px; display: flex; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.board__fade { position: absolute; left: 6.55%; width: 87%; bottom: -3px; height: 88px; z-index: 10; background: linear-gradient(180deg, rgba(245,246,250,0) 0%, var(--bg) 100%); }

.badge {
  position: absolute; z-index: 8; height: 40px; padding: 12px; gap: 8px;
  display: flex; align-items: center; white-space: nowrap;
  background: var(--navy); color: var(--white); border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .1); text-shadow: 0 5px 10px rgba(0, 0, 0, .1);
  user-select: none; cursor: default;
}
.badge--secure { top: 37px; left: 0; }
.badge--auto { bottom: 69px; left: 612px; }
.badge--ai { top: 50px; right: 0; }
.badge--rules { bottom: 68px; left: 76px; width: 268px; }
.badge.is-in:hover { transform: translateX(var(--hx, 10px)) !important; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1) !important; }
.badge--auto, .badge--ai { --hx: -10px; }
@media (min-width: 1200px) { .board__fade { z-index: 3; } } /* keep the fade under the badges on desktop */

/* ==========================================================================
   Section — Built to Go Beyond (sticky features)
   ========================================================================== */
.features { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 2; }
.features__grid { display: flex; align-items: flex-start; }
.features__left { width: 50%; padding-top: 1px; }
.features__intro {
  position: sticky; top: 64px; z-index: 1; background: var(--white);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 100px 40px 64px; display: flex; flex-direction: column; gap: 24px;
}
.features__list { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 40px 56px; }
.feature { padding: 64px 0; display: flex; flex-direction: column; gap: 24px; }
.feature > * { max-width: 500px; }
.feature > .feature__visual-mobile { max-width: none; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__head { display: flex; align-items: center; gap: 24px; }
.feature__icon { width: 50px; height: 50px; flex: none; border-radius: 8px; background: var(--periwinkle); display: grid; place-items: center; color: var(--ink-green); }
.feature__text { color: var(--muted); }
.feature__visual-mobile { display: none; }

.features__right { width: 50%; align-self: stretch; border-right: 1px solid var(--line); padding: 100px 40px; }
.features__sticky { position: sticky; top: 164px; }

/* Gradient art-board used by features + expanding cards */
.art {
  position: relative; overflow: clip; border-radius: 16px; height: 527px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 48.76%, var(--periwinkle) 98.91%);
}
.art__stage { position: absolute; top: 0; bottom: 0; left: 50%; width: 499px; transform: translateX(-50%); z-index: 2; }
.art__stage > * { position: absolute; }
.art-variant { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.art-variant [data-pop] { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-spring), transform .7s var(--ease-spring); }
.art-variant [data-pop="40"] { transform: translateY(40px); }
.art-variant.is-active [data-pop] { opacity: 1; transform: none; }
.art-variant.is-active [data-pop]:nth-child(2) { transition-delay: .06s; }
.art-variant.is-active [data-pop]:nth-child(3) { transition-delay: .12s; }
.art-variant.is-active [data-pop]:nth-child(4) { transition-delay: .18s; }
.art-variant.is-active [data-pop]:nth-child(5) { transition-delay: .24s; }
.art-variant.is-active [data-pop]:nth-child(6) { transition-delay: .3s; }
.art .shader { z-index: 1; }

/* Rules builder */
.field { display: flex; align-items: center; gap: 8px; height: 38px; padding: 8px; border: 1px solid var(--line-warm); border-radius: 8px; color: var(--ink); }
.field--ph { color: var(--placeholder); }
.field .icon-sm { width: 17px; height: 17px; color: #96968d; --sw: 1.5; margin-left: auto; }
.soft-btn { display: inline-flex; align-items: center; gap: 12px; height: 37px; padding: 8px 12px; border-radius: 8px; background: var(--periwinkle); color: var(--ink); }
.soft-btn svg { width: 17px; height: 17px; --sw: 2; }
.navy-btn { height: 48px; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; gap: 16px; }

/* ==========================================================================
   Section — Expanding cards
   ========================================================================== */
.xcards { background: var(--bg); padding: 100px 40px; border-left: 1px solid var(--line-warm); border-right: 1px solid var(--line-warm); overflow: hidden; }
.xcards__row { max-width: var(--max); height: 480px; margin: 0 auto; display: flex; gap: 10px; }
.xcard {
  position: relative; flex: 0 0 8%; min-width: 0; height: 100%; border-radius: 16px; overflow: hidden;
  background: var(--blue); color: var(--white); cursor: pointer;
  transition: flex-grow .8s var(--ease-spring), flex-basis .8s var(--ease-spring), background-color .5s ease;
  text-align: left; padding: 0;
}
.xcard:hover:not(.is-open) { background: var(--blue-2); }
.xcard.is-open { flex: 1 1 0; background: var(--sand); cursor: default; }
.xcard__num { position: absolute; top: 16px; left: 16px; font-size: 16px; transition: opacity .3s; }
.xcard.is-open .xcard__num { opacity: 0; }
.xcard__body {
  position: absolute; inset: 0; padding: 32px; display: flex; gap: 40px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s;
  width: max(100%, 1004px);
}
.xcard.is-open .xcard__body { opacity: 1; visibility: visible; transition: opacity .6s ease .25s, visibility 0s; }
.xcard__copy { flex: 1; display: flex; flex-direction: column; gap: 24px; justify-content: center; min-width: 0; }
.xcard__copy .t-h3 { text-align: left; }
.xcard__copy hr { width: 100%; height: 2px; border: 0; margin: 0; background: var(--orange); }
.xcard__copy p { color: var(--ink-2); }
.xcard__art { position: relative; flex: none; width: 416px; height: 416px; border-radius: 12px; overflow: clip; background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 51.43%, var(--periwinkle) 100%); }
.xcard__art .art-variant { inset: 0; }
.xcard__art > .shader { inset: 1px -6px -3px -4px; }

/* ==========================================================================
   Section — Integrations
   ========================================================================== */
.integrations { background: var(--navy); overflow: clip; }
.integrations .frame { border-left: 1px solid rgba(218, 230, 255, .2); border-right: 1px solid rgba(218, 230, 255, .2); padding: 100px 0; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.integrations .t-h2 { width: 824px; max-width: 100%; color: var(--white); text-align: center; }
.integrations__stage { position: relative; width: 90%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.integrations__line { width: 100%; height: 67px; object-fit: fill; }
.integrations__hub {
  position: absolute; z-index: 3; left: calc(50% - 85.5px); top: calc(50.24% - 85.5px);
  width: 171px; height: 171px; border-radius: 16px; background: var(--white); border: 1px solid var(--white);
  box-shadow: 0 0 42px 30px var(--navy); display: grid; place-items: center;
}
.integrations__hub img { width: 96px; height: auto; }
.ticker { position: relative; width: 100%; overflow: hidden; border-radius: 10px; opacity: 0; transform: translateX(-10px); transition: opacity 1s ease, transform 1s ease; }
.ticker.is-in { opacity: 1; transform: none; }
.ticker__track { display: flex; gap: 10px; width: max-content; animation: ticker var(--ticker-duration, 40s) linear infinite; }
.ticker__track img { width: 111px; height: 111px; flex: none; }
@keyframes ticker { to { transform: translateX(calc(-50% - 5px)); } }
.integrations__fade { position: absolute; z-index: 2; top: -57px; bottom: -59px; width: 118px; background: var(--navy); filter: blur(18px); }
.integrations__fade--l { left: -60px; }
.integrations__fade--r { right: -50px; }

/* ==========================================================================
   Section — Capabilities grid
   ========================================================================== */
.capabilities { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 71px 62px rgba(27, 48, 133, .06); z-index: 3; }
.capabilities .frame { border: 1px solid var(--line); border-top: 0; border-bottom: 0; }
.capabilities__head { position: relative; overflow: clip; padding: 100px 0; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.capabilities__head > :not(.shader) { position: relative; z-index: 1; }
.capabilities__head .t-lead { width: 72%; }
.cap-grid { border-top: 1px solid var(--line); padding: 1px; }
.cap-row { display: flex; }
.cap-row + .cap-row { border-top: 1px solid var(--line); }
.cap {
  flex: 1; min-width: 0; height: 270px; padding: 40px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .7); border-right: 1px solid var(--line);
}
.cap:last-child { border-right: 0; }
.cap__icon { width: 64px; height: 64px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.cap__icon svg { width: 32px; height: 32px; }
.cap p { width: 80%; text-align: center; color: var(--ink); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 1400px; margin: 0 auto; padding: 100px 40px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.faq .t-h2 { text-align: center; width: 80%; }
.faq__list { width: 700px; max-width: 100%; display: flex; flex-direction: column; gap: 5px; }
.qa { border-radius: 10px; overflow: hidden; background: var(--white); transition: background-color .45s var(--ease-soft); }
.qa__q { width: 100%; display: flex; align-items: center; padding: 20px 8px 20px 0; text-align: left; cursor: pointer; }
.qa__q:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 10px; }
.qa__sign { position: relative; width: 40px; height: 40px; flex: none; }
.qa__sign::before, .qa__sign::after { content: ""; position: absolute; background: var(--line); border-radius: 1px; transition: transform .45s var(--ease-spring), background-color .45s; }
.qa__sign::before { width: 14px; height: 2px; top: calc(50% - 1px); left: calc(50% - 7px); }
.qa__sign::after { width: 2px; height: 14px; top: calc(50% - 7px); left: calc(50% - 1px); }
.qa__q .t-h6 { flex: 1; transition: color .45s; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-spring); }
.qa__a > div { overflow: hidden; }
.qa__content { padding: 0 40px 20px 40px; color: var(--white); font-size: 16px; line-height: 1.2; display: flex; flex-direction: column; gap: 20px; opacity: 0; transition: opacity .3s ease; }
.qa__content ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.qa__content strong, .qa__content b { font-weight: 600; }
.qa__content a { text-decoration: underline; color: var(--periwinkle); }
.qa.is-open { background: var(--navy); }
.qa.is-open .qa__q .t-h6 { color: var(--white); }
.qa.is-open .qa__sign::before { background: var(--white); }
.qa.is-open .qa__sign::after { transform: rotate(90deg) scaleY(0); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__content { opacity: 1; transition: opacity .5s ease .1s; }
.qa:not(.is-open):hover { background: var(--periwinkle); }
.qa:not(.is-open):hover .qa__sign::before, .qa:not(.is-open):hover .qa__sign::after { background: var(--ink); }

/* ==========================================================================
   CTA + Footer
   ========================================================================== */
.footer { position: relative; overflow: clip; padding: 0 var(--gutter); background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 50.19%, var(--periwinkle) 100%); }
.footer .frame { margin: 0 auto; z-index: 3; }
.cta { position: relative; z-index: 3; padding: 100px 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; border: 1px solid rgba(218, 228, 254, .3); border-top: 0; }
.cta .t-h3 { width: 70%; text-align: center; color: var(--white); }
.footer__bar { position: relative; z-index: 3; padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 24px; border: 1px solid rgba(218, 228, 254, .3); border-top: 0; border-bottom: 0; }
.footer__top { display: flex; align-items: center; gap: 84px; }
.footer__logo { width: 75px; height: 32px; }
.footer__links { flex: 1; display: flex; justify-content: flex-end; gap: 24px; }
.footer__links a { color: var(--ink); transition: color .25s; }
.footer__links a:hover { color: rgba(47, 51, 56, .6); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-size: 14px; letter-spacing: 0; color: var(--ink); }
.footer__badges { display: flex; gap: 10px; }
.footer__badge { position: relative; width: 56px; height: 56px; border-radius: 100px; background: var(--white); }
.footer__badge img { position: absolute; }

/* ==========================================================================
   Scroll / appear animations
   ========================================================================== */
[data-appear] { opacity: .001; transform: translateY(40px); transition: opacity .6s var(--ease-spring), transform .6s var(--ease-spring); }
[data-appear].is-in { opacity: 1; transform: none; }

[data-inview] { opacity: 0; transform: translateY(var(--from-y, 40px)); transition: opacity .6s var(--ease-spring), transform .8s var(--ease-spring); transition-delay: var(--delay, 0s); will-change: transform, opacity; }
[data-inview].is-in { opacity: 1; transform: none; }
[data-inview="150"] { --from-y: 150px; }
[data-inview="20"] { --from-y: 20px; --delay: .3s; }

/* Line-by-line text reveal */
.reveal-line { display: block; opacity: .001; transform: translateY(10px); transition: opacity .4s var(--ease-spring), transform .5s var(--ease-spring); }
.is-revealed .reveal-line { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .ticker__track { animation: none; }
}

/* ==========================================================================
   Tablet (810–1199)
   ========================================================================== */
@media (max-width: 1199.98px) {
  :root { --gutter: 24px; }
  .t-h1 { font-size: 64px; }
  .t-h2 { font-size: 48px; }
  .t-h3 { font-size: 40px; }
  .t-h4 { font-size: 22px; }
  .t-h6 { font-size: 20px; }
  .section-head { padding: 64px 24px 40px; gap: 40px; }
  .hero__frame { padding-top: 120px; }
  .float--rec, .float--pii { display: none; }
  .float--underwriting { top: auto; bottom: 40%; left: -10px; }
  .badge--auto { left: auto; right: 22%; }
  .features__intro { padding: 64px 24px 40px; }
  .features__list { padding: 0 24px 40px; }
  .feature { padding: 40px 0; }
  .features__right { padding: 64px 24px; }
  .art__stage { transform: translateX(-50%) scale(.8); transform-origin: center center; }
  .xcards { padding: 64px 24px; }
  .xcard__body { width: max(100%, 640px); }
  .xcard__art { width: 300px; height: 300px; }
  .xcard__art .art__stage { transform: translateX(-50%) scale(.72); }
  .integrations .frame { padding: 64px 0; }
  .capabilities__head { padding: 64px 0 40px; gap: 40px; }
  .cap-row { flex-wrap: wrap; }
  .cap { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .faq { padding: 64px 24px; gap: 40px; }
  .cta .t-h3 { width: 80%; }
}

/* ==========================================================================
   Phone (≤809)
   ========================================================================== */
@media (max-width: 809.98px) {
  :root { --gutter: 20px; }
  .t-h1 { font-size: 40px; }
  .t-h2 { font-size: 32px; }
  .t-h3 { font-size: 32px; }
  .t-h6 { font-size: 18px; }
  .t-lead { font-size: 16px; }
  .nav__links { display: none; }
  .hero { padding-bottom: 24px; }
  .hero__frame { padding-top: 104px; }
  .hero__inner { gap: 24px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero__dash-frame, .hero.is-scrolled .hero__dash-frame { width: 100%; }
  .hero__dash-frame { padding: 4px; border-radius: 12px; }
  .float { display: none; }
  .section-head { padding: 40px 24px; gap: 24px; }
  /* Heading: one fluid sentence + fluid type on phones */
  .lending .section-head .t-h2 { font-size: clamp(26px, 8.2vw, 40px); }
  .lending__stage { padding: 24px 16px 0; }
  .lending__flow { width: 100%; gap: 6px; }
  .audiences { gap: 4px; }
  .audience { flex-direction: column; gap: 8px; padding: 10px; font-size: 12px; border-radius: 8px; }
  .audience svg { width: 16px; height: 16px; }
  .audience:nth-child(odd) svg { width: 14px; height: 14px; margin: 1px; }
  .tree { display: none; }
  .tree--sm { display: block; width: 235px; height: 32px; }
  .board-wrap { width: 100%; height: 145px; overflow: visible; }
  .board { left: 0; right: 0; width: auto; bottom: -10px; padding: 7px; gap: 6px; border-radius: 8px 8px 0 0; }
  .board__heads span { min-width: 0; }
  .board__cols { gap: 4px; }
  .board__col:first-child { border-radius: 8px; gap: 4px; padding: 4px; }
  .board__col:last-child { aspect-ratio: auto; align-self: stretch; border-radius: 8px; padding: 4px; }
  .doc { gap: 4px; padding: 8px; }
  .doc__head span { font-size: 8px !important; line-height: 1.3; }
  .doc__head span:not([style]) { font-weight: 500; }
  .doc__head i { display: none; }
  .doc__file { height: auto; padding: 4px; border-radius: 4px; font-size: 6px; line-height: 1.3; overflow-wrap: anywhere; }
  .board__fade { left: 0; width: 100%; height: 77px; bottom: -2px; z-index: 3; } /* Framer: 8px above the board's bottom, which overhangs by 10px */
  .board[data-inview="150"] { --from-y: 60px; }
  .badge { height: 24px; padding: 12px 8px; gap: 4px; border-radius: 4px; font-size: 11px; }
  .badge .icon { width: 12px; height: 12px; }
  .badge--secure { top: 22px; left: -8px; }
  .badge--auto { bottom: 55px; left: 162px; right: auto; }
  .badge--ai { top: 20px; right: -10px; }
  .badge--rules { bottom: 17px; left: -9px; width: auto; }
  .features__grid { flex-direction: column; }
  .features__left { width: 100%; }
  .features__intro { position: static; padding: 40px 20px 24px; }
  .features__list { padding: 0 20px 20px; }
  .features__right { display: none; }
  .feature__visual-mobile { display: block; }
  .feature__visual-mobile .art { height: auto; aspect-ratio: 300 / 240; border-radius: 16px; }
  /* Scale + centring are computed in main.js (fitMobileArt) from the container size */
  .feature__visual-mobile .art__stage { left: 0; transform: translate(var(--art-tx, 0px), var(--art-ty, 0px)) scale(var(--art-k, var(--art-s, .6))); transform-origin: 0 0; }
  /* Mobile image layouts (Framer "Mobile" variants, 300 x 240) — positions in desktop stage units */
  .feature__visual-mobile [data-variant="1"] { --art-s: .626; }
  .feature__visual-mobile [data-variant="2"] { --art-s: .6; }
  .feature__visual-mobile [data-variant="3"] { --art-s: .615; }
  .feature__visual-mobile [data-variant="4"] { --art-s: .576; }
  .feature__visual-mobile [data-variant="1"] .art__stage > :nth-child(1) { top: 20px !important; }
  .feature__visual-mobile [data-variant="1"] .art__stage > :nth-child(2) { top: 76px !important; }
  .feature__visual-mobile [data-variant="1"] .art__stage > :nth-child(3) { top: 131px !important; }
  .feature__visual-mobile [data-variant="1"] .art__stage > :nth-child(4) { top: 180px !important; height: 34px !important; }
  .feature__visual-mobile [data-variant="1"] .art__stage > :nth-child(5) { top: 213px !important; }
  .feature__visual-mobile [data-variant="1"] .ui-card__head { height: 53px; }
  .feature__visual-mobile [data-variant="1"] .ui-card__body { padding: 9.6px; }
  .feature__visual-mobile [data-variant="1"] .bars { gap: 6.4px; }
  .feature__visual-mobile [data-variant="1"] .bar { height: 6.4px; }
  .feature__visual-mobile [data-variant="1"] .bar:nth-child(1) { width: 217px !important; }
  .feature__visual-mobile [data-variant="1"] .bar:nth-child(3) { width: 201px !important; }
  .feature__visual-mobile [data-variant="1"] .bar:nth-child(4) { width: 137px !important; }
  .feature__visual-mobile [data-variant="2"] .art__stage > :nth-child(1) { top: 46px !important; }
  .feature__visual-mobile [data-variant="2"] .art__stage > :nth-child(2) { top: 231px !important; left: 120.5px !important; width: 258px !important; height: 58px !important; }
  .feature__visual-mobile [data-variant="2"] .art__stage > :nth-child(3) { top: 297.5px !important; }
  .feature__visual-mobile [data-variant="2"] .art__stage > :nth-child(4) { top: 297.5px !important; }
  .feature__visual-mobile [data-variant="3"] .art__stage > :nth-child(1) { top: 46px !important; }
  .feature__visual-mobile [data-variant="3"] .ui-card__body { padding: 14.6px; }
  .feature__visual-mobile [data-variant="3"] .art__stage > :nth-child(2) { top: 227px !important; height: 36px !important; }
  .feature__visual-mobile [data-variant="3"] .art__stage > :nth-child(3) { top: 267.5px !important; height: 62px; }
  .feature__visual-mobile [data-variant="4"] .art__stage > :nth-child(1) { top: 51px !important; }
  .feature__visual-mobile [data-variant="4"] .art__stage > :nth-child(2) { top: 214px !important; }
  .feature__visual-mobile [data-variant="4"] .ui-card__body { min-height: 119.5px; padding: 15.6px !important; }
  .feature__visual-mobile [data-variant="4"] .ui-card__body > div { gap: 14px !important; }
  .feature__visual-mobile [data-variant="4"] .bar { height: 12px; }
  .feature__visual-mobile [data-variant="4"] .t-ui { font-size: 19px; }
  .feature__visual-mobile [data-variant="4"] .tag { font-size: 17px; }
  .feature__visual-mobile [data-variant="4"] .bar:not(.bar--sixty) { width: 257px !important; }
  .feature__visual-mobile [data-variant="4"] .bar--sixty { width: 156px !important; }
  .feature__visual-mobile [data-variant="4"] .lock-tile { top: 148px !important; left: 204.5px !important; width: 90px !important; height: 90px !important; }
  .xcards { padding: 40px 20px; }
  .xcards__row { flex-direction: column; height: auto; }
  .xcard { flex: none; height: 64px; border-radius: 12px; transition: height .8s var(--ease-spring), background-color .5s; }
  .xcard.is-open { flex: none; height: var(--xcard-open-h, 640px); } /* fits its content (main.js) */
  .xcard__num { top: 0; left: 16px; height: 64px; display: flex; align-items: center; }
  .xcard__body { flex-direction: column; width: 100%; padding: 16px 20px 20px; gap: 24px; justify-content: flex-start; }
  .xcard__copy { flex: none; justify-content: flex-start; }
  .xcard__art { width: 100%; height: auto; aspect-ratio: 240 / 186; border-radius: 12px; }
  /* Inner image: kept at its 416px design size, then scaled + centred to fit (main.js fitXcardArt) */
  .xcard__art .art-variant { inset: auto; left: 0; top: 0; width: 416px; height: 416px; transform: translate(var(--xa-tx, 0px), var(--xa-ty, 0px)) scale(var(--xa-k, .5)); transform-origin: 0 0; }
  .integrations .frame { padding: 40px 0; gap: 24px; }
  .integrations .frame { position: relative; }
  .integrations .frame::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-left: 1px solid rgba(218, 230, 255, .2); border-right: 1px solid rgba(218, 230, 255, .2); }
  .integrations .t-h2 { position: relative; z-index: 4; }
  /* Heading flows as one continuous sentence on phones (no fixed per-line breaks) */
  .integrations .t-h2 .reveal-line { display: inline; }
  .integrations .t-h2 .reveal-line:not(:last-child)::after { content: " "; }
  .integrations__line { height: 36px; }
  .integrations__fade { width: 84px; }
  .integrations__fade--l { left: -48px; }
  .integrations__fade--r { right: -42px; }
  .integrations__hub { width: 92px; height: 92px; left: calc(50% - 46px); top: calc(50% - 46px); }
  .integrations__hub img { width: 54px; }
  .ticker__track img { width: 80px; height: 80px; }
  .capabilities__head { padding: 40px 16px 24px; gap: 24px; }
  .capabilities__head .t-lead { width: 100%; }
  .cap { flex: 1 1 100%; height: auto; padding: 28px 8px; justify-content: center; gap: 16px; }
  .cap-grid { padding: 0; }
  .cap { border-right: 0; }
  .cap-row + .cap-row { border-top: 0; }
  .cap-row:last-child .cap:last-child { border-bottom: 0; }
  .cap__icon { width: 48px; height: 48px; }
  .cap__icon svg { width: 24px; height: 24px; }
  /* Heading flows as one continuous sentence on phones (desktop <br> ignored) */
  .capabilities__head .t-h2 .reveal-line { display: inline; }
  .capabilities__head .t-h2 .reveal-line:not(:last-child)::after { content: " "; }
  .faq { padding: 40px 20px; gap: 32px; }
  .cta { padding: 64px 20px; }
  .cta .t-h3 { width: 100%; }
  .footer__bar { padding: 24px 20px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__links { flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ==========================================================================
   Inner pages — shared hero
   ========================================================================== */
.t-h5 { font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: -0.04em; font-feature-settings: "cv01" on, "cv09" on, "cv11" on, "cv05" on, "ss03" on; }
.page-hero { position: relative; background: var(--navy); padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; overflow: clip; }
.page-hero__frame {
  position: relative; z-index: 1; width: 100%; max-width: var(--max); padding: 140px 40px 80px;
  border-left: 1px solid rgba(218, 230, 255, .2); border-right: 1px solid rgba(218, 230, 255, .2);
}
.page-hero .t-h1 { color: var(--white); }
.page-hero__meta { margin-top: 24px; color: var(--white); }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { position: relative; overflow: clip; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, var(--navy) 12%, var(--blue) 54.36%, var(--periwinkle) 100%); }
.about-hero .shader { inset: 192px 1px -136px; }
.about-hero__frame { position: relative; z-index: 1; width: 100%; max-width: var(--max); padding: 180px 0 140px;
  border-left: 1px solid rgba(218, 230, 255, .2); border-right: 1px solid rgba(218, 230, 255, .2);
  display: flex; flex-direction: column; align-items: center; }
.about-hero__inner { width: 72%; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.about-hero .t-h1 { color: var(--white); text-align: center; }
.about-hero__text { width: 720px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; color: var(--white); text-align: center; }
.scroll-reveal .ch { opacity: var(--dim, .2); transition: opacity .12s linear; }

.funnel-sec { position: relative; overflow: clip; background: var(--navy); padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.funnel-sec .frame { border-left: 1px solid rgba(213, 217, 227, .3); border-right: 1px solid rgba(213, 217, 227, .3); display: flex; justify-content: center; }
.funnel-sec__inner { position: relative; max-width: 1400px; width: 100%; padding: 100px 80px; display: flex; flex-direction: column; align-items: center; gap: 100px; }
.funnel-sec__copy { position: relative; z-index: 2; width: 80%; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.funnel-sec .t-h2 { color: var(--white); text-align: center; }
.funnel-sec__text { display: flex; flex-direction: column; gap: 16px; color: var(--white); text-align: center; }
.funnel-sec__glow { position: absolute; z-index: 1; width: 713px; height: 713px; left: calc(50% - 356.5px); bottom: -703px; border-radius: 200px; background: var(--orange); filter: blur(100px); pointer-events: none; }
.funnel { position: relative; z-index: 2; width: 920px; max-width: 100%; aspect-ratio: 920 / 394; }
.funnel svg.funnel__art { position: absolute; top: -17%; bottom: -17.5%; left: -8.5%; right: -8.7%; width: 117.2%; height: 134.5%; overflow: visible; }
.funnel__logo { position: absolute; left: 46.6%; top: 44.2%; width: 6.85%; height: auto; }
.funnel text { font-family: var(--font-sans); font-weight: 400; text-transform: none; letter-spacing: -0.02em; } /* font-size set in main.js to 16px on screen */

.built { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 3; }
.built .frame { border: 1px solid var(--line); border-bottom: 0; }
.built__head { padding: 100px 0 80px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.built__text { width: 80%; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.built__cta { border-top: 1px solid var(--line); background: var(--sand); padding: 80px 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.built__cta .t-h3 { width: 60%; text-align: center; }
.built__cta hr { width: 50%; height: 2px; margin: 0; border: 0; background: #b87127; }
.built__cta .btn--primary { box-shadow: 0 1px 2px rgba(41, 41, 38, .06); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-hero__row { display: flex; gap: 40px; align-items: center; }
.contact-hero__intro { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; color: var(--white); }
.contact-hero__intro .lines { display: flex; flex-direction: column; gap: 8px; }
.contact-form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-form__row { display: flex; gap: 20px; }
.field-lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; color: var(--white); }
.field-lbl input, .field-lbl textarea {
  width: 100%; height: 40px; padding: 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(136, 136, 136, .1);
  color: var(--white); font: 400 14px/1.2 var(--font-sans); letter-spacing: 0; outline: none;
  transition: border-color .2s, background-color .2s;
}
.field-lbl textarea { height: 100px; resize: vertical; }
.field-lbl input::placeholder, .field-lbl textarea::placeholder { color: rgba(255, 255, 255, .5); }
.field-lbl input:focus, .field-lbl textarea:focus { border-color: var(--white); }
.field-lbl.is-invalid input, .field-lbl.is-invalid textarea { border-color: #ffb4a8; background: rgba(255, 120, 100, .12); }
.contact-form .btn { width: 100%; }
.contact-form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__status { min-height: 19px; color: var(--periwinkle); }
.contact-form__status.is-error { color: #ffcfc7; }
.contact-form [hidden] { display: none !important; }
.contact-form__loading, .contact-form__result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 20px; text-align: center; color: var(--white); border: 1px solid rgba(218, 230, 255, .2); border-radius: 16px; }
.contact-form__result .t-h4, .contact-form__result .t-lead, .contact-form__loading .t-lead { color: inherit; }
.contact-form__result .t-h4:focus { outline: none; }
.contact-form__result-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--periwinkle); border-radius: 50%; color: var(--periwinkle); font-size: 32px; }
.contact-form__result.is-error .contact-form__result-icon { color: #ffcfc7; border-color: #ffcfc7; }
.contact-form__spinner { width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--white); border-radius: 50%; animation: contact-form-spin .8s linear infinite; }
.contact-form button:disabled { cursor: wait; }
@keyframes contact-form-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .contact-form__spinner { animation: none; } }

.contact-cards { background: var(--bg); border-bottom: 1px solid var(--line); }
.contact-cards .frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 40px; display: flex; gap: 30px; }
.contact-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px;
  border-radius: 12px; background: var(--periwinkle); color: var(--ink); text-align: center;
  transition: transform .4s var(--ease-spring), box-shadow .4s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27, 48, 133, .1); }
.contact-card .t-lead { width: 60%; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal { background: var(--bg); border-bottom: 1px solid var(--line); }
.legal .frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 100px 40px; display: flex; flex-direction: column; gap: 40px; }
.legal__sec { display: flex; flex-direction: column; gap: 24px; }
.legal__sec .t-h6 { color: var(--ink); }
.legal__body { display: flex; flex-direction: column; gap: 20px; color: var(--ink); font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; }
.legal__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal__body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { font-weight: 600; }

/* ---------- Inner pages: tablet & phone ---------- */
@media (max-width: 1199.98px) {
  .t-h5 { font-size: 24px; }
  .page-hero__frame { padding: 120px 24px 64px; }
  .about-hero__frame { padding: 140px 0 70px; }
  .about-hero__inner { width: 90%; gap: 40px; }
  .funnel-sec__inner { padding: 64px 24px 40px; gap: 72px; }
  .funnel-sec__copy { width: 90%; gap: 40px; }
  .funnel-sec__glow { width: 509px; height: 509px; left: calc(50% - 254.5px); bottom: -501px; }
  .built__head { padding: 64px 0 80px; gap: 40px; }
  .built__cta { padding: 40px; gap: 24px; }
  .built__cta .t-h3 { width: 80%; }
  .legal .frame { padding: 64px 24px; }
  .contact-hero__row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 809.98px) {
  .t-h5 { font-size: 20px; }
  .page-hero__frame { padding: 104px 20px 40px; }
  .about-hero__frame { padding: 104px 0 50px; }
  .about-hero__inner { width: 100%; gap: 24px; padding: 0 20px; }
  .funnel-sec__inner { padding: 40px 20px 24px; gap: 56px; }
  .funnel-sec__copy { width: 100%; gap: 32px; }
  .funnel-sec__glow { width: 219px; height: 219px; left: calc(50% - 109.5px); bottom: -196px; }
  .built__head { padding: 40px 16px; gap: 24px; }
  .built__text { width: 100%; }
  .built__cta { padding: 40px 20px; }
  .built__cta .t-h3, .built__cta hr { width: 100%; }
  .built__cta .btn { width: 100%; }
  .contact-form__row { flex-direction: column; }
  .contact-cards .frame { flex-direction: column; padding: 24px 20px; gap: 16px; }
  .contact-card .t-lead { width: 100%; }
  .legal .frame { padding: 40px 20px; gap: 32px; }
}

/* Hero title: exactly 2 lines on desktop/tablet, 4 lines on phones */
.hero__title { white-space: nowrap; }
.hero__title .reveal-line { white-space: nowrap; }
.mbr { display: none; }
@media (max-width: 809.98px) { .hero__title { white-space: normal; width: 100%; font-size: min(40px, 11.2vw); } }

/* ---------- 404 ---------- */
.error-page .about-hero__inner { gap: 32px; }
.error-page__code { font-family: var(--font-serif); font-size: clamp(120px, 20vw, 240px); line-height: .85; letter-spacing: -.06em; color: var(--white); }
.error-page .t-lead { color: var(--white); }
