/* Loanistry homepage styles. Loaded by index.html, and by apply.html (with apply.css) so the application page shares the concept frame.
   Ported from the Homepage Concept (Main.dc.html): its global styles below are copied as written and
   scoped to .lo-root; each section keeps the concept's own inline styles in index.html.
   The shared header and footer styles live in chrome.css. */


/* ---------- page frame ---------- */
html { scroll-padding-top: 84px; }
body { margin: 0; background: #FFFFFF; color: #151514; font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body > .frame { max-width: none; padding-left: 0; padding-right: 0; }
body > .frame > main { padding-bottom: 0; }

.lo-root { --hf: 'Hedvig Letters Serif', Georgia, serif; width: 100%; font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; }
.lo-root { background: #FFFFFF; color: #151514; }

/* ---------- concept global styles ---------- */
.lo-root a, .lo-foot a { color: #01673E; }
.lo-root a:hover { color: #012E1D; }
.lo-root *, .lo-foot * { box-sizing: border-box; }
.lo-root button, .lo-root select, .lo-root input, .lo-foot button, .lo-foot input { font-family: inherit; }
.lo-root button, .lo-foot button { cursor: pointer; }
.lo-root h1, .lo-root h2, .lo-root h3, .lo-root p, .lo-foot p { margin: 0; }
.lo-root h1, .lo-root h2, .lo-root h3 { text-wrap: balance; font-weight: 400; }
.lo-root p, .lo-foot p { text-wrap: pretty; }
.lo-root img, .lo-foot img { display: block; max-width: 100%; }
@keyframes lo-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lo-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lo-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lo-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
.lo-in { animation: lo-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.lo-d1 { animation-delay: .08s; } .lo-d2 { animation-delay: .16s; } .lo-d3 { animation-delay: .26s; } .lo-d4 { animation-delay: .36s; }
.lo-swap { animation: lo-fade .28s ease both; }
@supports (animation-timeline: view()) {
  .lo-rv { animation: lo-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
}
.lo-marq { animation: lo-marq 44s linear infinite; }
.lo-marqwrap:hover .lo-marq { animation-play-state: paused; }
.lo-fl { animation: lo-float 6s ease-in-out infinite alternate; }
.lo-f2 { animation-delay: -2s; } .lo-f3 { animation-delay: -4s; } .lo-f4 { animation-delay: -1s; } .lo-f5 { animation-delay: -3s; } .lo-f6 { animation-delay: -5s; }
.lo-pill { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.lo-pill:hover { transform: translateY(-1px); }
.lo-green:hover { background: #012E1D !important; color: #FFFFFF; }
.lo-dark:hover { background: #01673E !important; color: #FFFFFF; }
.lo-line:hover { box-shadow: inset 0 0 0 1px #012E1D !important; color: #012E1D; }
.lo-mint:hover { background: #B8FDC5 !important; color: #012E1D; }
.lo-hc { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lo-hc:hover { transform: translateY(-8px); }
.lo-row { transition: background-color .18s ease; }
.lo-row:hover { background: #FAF8EF; }
.lo-row:hover .lo-go, .lo-g:hover .lo-go { background: #012E1D; color: #FFFFFF; box-shadow: none; }
.lo-go { transition: background-color .18s ease, color .18s ease; }
.lo-opt { transition: background-color .15s ease, box-shadow .15s ease; }
.lo-opt:hover { background: #E6F6E9 !important; }
.lo-g { transition: transform .25s ease; }
.lo-g:hover { transform: translateY(-3px); }
.lo-foot a { color: rgba(255,255,255,.86); text-decoration: none; }
.lo-foot a:hover { color: #92FBA6; }
.lo-scroll { scrollbar-width: none; } .lo-scroll::-webkit-scrollbar { display: none; }
.lo-root select { -webkit-appearance: none; appearance: none; }
.lo-root input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.lo-root input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: rgba(21,21,20,.12); }
.lo-root input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #01673E; border: 4px solid #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,.25); margin-top: -8px; }
.lo-root input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(21,21,20,.12); }
.lo-root input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #01673E; border: 4px solid #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.lo-root input:focus-visible, .lo-root button:focus-visible, .lo-root a:focus-visible, .lo-root select:focus-visible,
.lo-foot input:focus-visible, .lo-foot button:focus-visible, .lo-foot a:focus-visible { outline: 2px solid #01C667; outline-offset: 3px; }
.lo-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.lo-b7 { grid-column: span 7; } .lo-b5 { grid-column: span 5; }
.lo-orbit { position: relative; height: 720px; }
.lo-oc { position: absolute; width: 248px; }
.lo-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; width: min(440px, 60%); }
@media (max-width: 1000px) {
  .lo-b7, .lo-b5 { grid-column: 1 / -1; }
  .lo-orbit { height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
  .lo-oc { position: static !important; width: auto !important; animation: none !important; }
  .lo-center { position: static; transform: none; width: auto; grid-column: 1 / -1; padding: 8px 0 28px; }
  .lo-orbit svg, .lo-od { display: none !important; }
}
@media (max-width: 720px) {
  .lo-hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .lo-in, .lo-swap, .lo-rv, .lo-marq, .lo-fl { animation: none !important; }
  .lo-pill, .lo-hc, .lo-g { transition: none; }
}


/* ---------- latest guides (added by the build above the footer) in the concept's card style ---------- */
main > section.section { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6.67vw, 96px) clamp(72px, 8.3vw, 120px); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; letter-spacing: -0.01em; color: #151514; }
main > section.section .wrap { max-width: none; }
main > section.section .sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
main > section.section .sec-head .h2 { font-family: 'Hedvig Letters Serif', Georgia, serif; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; color: #012E1D; }
main > section.section .sec-head a { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px #DADCD6; color: #151514; transition: box-shadow .18s ease, transform .18s ease; }
main > section.section .sec-head a:hover { box-shadow: inset 0 0 0 1px #012E1D; transform: translateY(-1px); }
main > section.section .grid { gap: 16px; }
main > section.section .card { background: #FAF8EF; border-radius: 20px; padding: 24px; gap: 10px; transition: transform .25s ease; }
main > section.section .card:hover { transform: translateY(-3px); background: #FAF8EF; }
main > section.section .card .kicker { font-size: 14px; color: #5C605A; }
main > section.section .card h3 { font-family: 'Hedvig Letters Serif', Georgia, serif; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; color: #151514; }

/* ---------- concept header: the shared nav, restyled on this page only ---------- */
/* ---------- header on this page: sticky in the flow, as in the concept (shared styles in chrome.css) ---------- */
.nav-fixed { position: sticky; top: 0; inset: auto; z-index: 30; box-shadow: none; }
@media (max-width: 809px) {
  .nav-fixed .nav-bar { min-height: 84px; }
  .nav-fixed .nav-top { height: 84px; }
  .nav-fixed .nav-wordmark { height: 30px; }
}

/* ---------- Amount dropdown (styled list over the native select) ---------- */
.lo-dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.lo-dd-form.is-open { z-index: 20; }
.lo-dd-btn { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 0 0; border: none; background: transparent; color: #151514; font: inherit; font-size: 16px; letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.lo-dd-btn.is-empty .lo-dd-val { color: #5C605A; }
.lo-dd-val { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lo-dd-chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #5C605A; transition: transform .2s ease, background-color .2s ease; }
.lo-dd-btn:hover .lo-dd-chev { background: #F1F4EF; }
.lo-dd-btn[aria-expanded="true"] .lo-dd-chev { transform: rotate(180deg); background: #F1F4EF; color: #012E1D; }
.lo-dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 2; margin: 0; padding: 8px; list-style: none; text-align: left; background: #FFFFFF; border-radius: 22px; box-shadow: 0 0 0 1px rgba(1,46,29,.08), 0 28px 60px -24px rgba(1,46,29,.38), 0 8px 18px -12px rgba(1,46,29,.18); outline: none; animation: lo-dd-in .18s cubic-bezier(.2,.7,.2,1); }
.lo-dd-list.is-up { top: auto; bottom: calc(100% + 10px); }
.lo-dd-list[hidden] { display: none; }
.lo-dd-head { padding: 10px 16px 8px; font-size: 13px; color: #5C605A; letter-spacing: 0; }
.lo-dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 0 16px; border-radius: 14px; font-size: 16px; color: #151514; cursor: pointer; transition: background-color .12s ease; }
.lo-dd-opt + .lo-dd-opt { margin-top: 2px; }
.lo-dd-opt.is-active { background: #F1F7F2; }
.lo-dd-opt[aria-selected="true"] { color: #01673E; background: #E6F6E9; }
.lo-dd-tick { display: grid; place-items: center; width: 16px; height: 16px; opacity: 0; }
.lo-dd-opt[aria-selected="true"] .lo-dd-tick { opacity: 1; }
.lo-dd-list:focus-visible { box-shadow: 0 0 0 2px #01C667, 0 28px 60px -24px rgba(1,46,29,.38); }
@keyframes lo-dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lo-dd-list.is-up { animation-name: lo-dd-up; }
@keyframes lo-dd-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero cards: swipeable row with arrows and edge fade when it does not fit ---------- */
.lo-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.lo-scroll.is-ovf { scroll-snap-type: x proximity; scroll-padding: 0 clamp(20px, 5vw, 64px); cursor: grab; }
.lo-scroll.is-ovf > div { padding: 0 clamp(20px, 5vw, 64px) !important; gap: clamp(16px, 2vw, 22px) !important; }
.lo-scroll.is-ovf .lo-hc { scroll-snap-align: start; flex: none; }
.lo-scroll.is-ovf:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.lo-scroll.is-ovf.at-start:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
.lo-scroll.is-ovf.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.lo-scroll.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; -webkit-user-select: none; }
.lo-scroll.is-drag .lo-hc { pointer-events: none; }
.lo-scroll img { -webkit-user-drag: none; }
.lo-snav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.lo-snav[hidden] { display: none; }
.lo-snav-b { width: 42px; height: 42px; display: grid; place-items: center; border: none; border-radius: 50%; background: #FFFFFF; color: #012E1D; box-shadow: inset 0 0 0 1px #DADCD6; cursor: pointer; transition: box-shadow .18s ease, background-color .18s ease, opacity .18s ease; }
.lo-snav-b:hover:not(:disabled) { box-shadow: inset 0 0 0 1px #012E1D; }
.lo-snav-b:disabled { opacity: .35; cursor: default; }
.lo-snav-b:focus-visible { outline: 2px solid #01C667; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .lo-dd-list, .lo-dd-chev { animation: none; transition: none; } }
