/* Upright Lend app styles: warm charcoal + burnt orange, Outfit + DM Sans */

:root {
  --charcoal: #221C15;
  --orange: #EA580C;
  --orange-dark: #C2410C;
  --orange-deep: #9A3412;
  --orange-tint: #FDE9DC;
  --orange-tint-soft: #FDF3EA;
  --stone: #FAF8F5;
  --coal: #26201A;
  --text: #5C564E;
  --stitch: #E7E2DC;
  --sheet: #FFFFFF;
  --amber: #EE9B3A;
  --dash: #E8CDB8;
  --tint-border: #F3D9C6;
  --foot-text: #D9D3CB;
  --foot-muted: #B8B0A6;
  --foot-line: rgba(255, 255, 255, 0.12);
  --r-card: 16px;
  --r-input: 12px;
  --shade-1: 0 1px 2px rgba(34, 28, 21, 0.05), 0 2px 8px rgba(34, 28, 21, 0.04);
  --shade-2: 0 2px 4px rgba(34, 28, 21, 0.05), 0 14px 34px -14px rgba(34, 28, 21, 0.16);
  --shade-3: 0 2px 6px rgba(34, 28, 21, 0.05), 0 28px 60px -20px rgba(34, 28, 21, 0.20);
  --face-head: 'Outfit', sans-serif;
  --face-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--face-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sheet);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--face-head);
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.55rem, 5.4vw, 3.95rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
}

h3 { font-weight: 600; }

p { margin: 0; }

a { color: var(--orange-dark); }

::selection { background: var(--orange-tint); color: var(--charcoal); }

:focus-visible {
  outline: 3px solid rgba(234, 88, 12, 0.5);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.jump {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 300;
  background: var(--charcoal);
  color: var(--sheet);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.jump:focus { top: 12px; }

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.pop { color: var(--orange); }

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: var(--orange);
  color: var(--sheet);
  box-shadow: 0 10px 24px -10px rgba(234, 88, 12, 0.55);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.go:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(194, 65, 12, 0.55);
}
.go:active { transform: translateY(0); }

.go.wide { width: 100%; margin-top: 28px; padding: 18px 32px; }

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--orange-dark);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.arrowlink svg { transition: transform 0.2s ease; }
.arrowlink:hover {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.arrowlink:hover svg { transform: translateX(4px); }

.topstrip {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--stitch);
  transition: box-shadow 0.25s ease;
}
.topstrip.stuck { box-shadow: 0 10px 26px -14px rgba(34, 28, 21, 0.18); }

.toprow {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brandmark {
  font-family: var(--face-head);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.brandmark span { color: var(--orange); }
.brandmark.lite { color: var(--sheet); font-size: 26px; }

.topnav { margin-inline: auto; }
.topnav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topnav a {
  color: var(--coal);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.topnav a:hover { color: var(--orange-dark); }

.navgo { padding: 13px 26px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--sheet);
  border: 1px solid var(--stitch);
  border-radius: 12px;
  color: var(--charcoal);
  cursor: pointer;
}
.burger .cross { display: none; }
body.menuon .burger .bars { display: none; }
body.menuon .burger .cross { display: block; }

.mobgo { display: none; }

.intro {
  position: relative;
  overflow: hidden;
  background: var(--stone);
  padding: 88px 0 100px;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 320px at 10% 0%, rgba(234, 88, 12, 0.07), transparent 65%),
    radial-gradient(520px 300px at 94% 12%, rgba(238, 155, 58, 0.08), transparent 60%);
}

.pitch {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sub {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 19px;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sheet);
  border: 1px solid var(--stitch);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--coal);
  box-shadow: var(--shade-1);
}
.chips svg { color: var(--orange); flex: none; }

.matchbox {
  position: relative;
  max-width: 880px;
  margin: 58px auto 0;
  background: var(--sheet);
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
  box-shadow: var(--shade-3);
  padding: 44px 48px;
  scroll-margin-top: 100px;
}

.cardtitle {
  font-size: 28px;
  text-align: center;
}
.cardsub {
  max-width: 540px;
  margin: 12px auto 34px;
  text-align: center;
  font-size: 16px;
}

.group label,
.grouplabel {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--coal);
}

.labelrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.labelrow .grouplabel { margin-bottom: 0; }

.amountview {
  font-family: var(--face-head);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  white-space: nowrap;
}

.pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.pill { position: relative; }

.pill input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 8px;
  background: var(--sheet);
  border: 1.5px solid var(--stitch);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--coal);
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover span { border-color: var(--orange); }

.pill input:checked + span {
  background: var(--orange-tint);
  border-color: var(--orange);
  color: var(--orange-dark);
  font-weight: 600;
}

.pill input:focus-visible + span {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.dropdown { position: relative; }
.dropdown svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text);
}
.dropdown select {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--face-body);
  font-size: 16px;
  color: var(--coal);
  background: var(--sheet);
  border: 1px solid var(--stitch);
  border-radius: var(--r-input);
  padding: 15px 44px 15px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dropdown select:hover { border-color: #D8D0C7; }
.dropdown select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16);
}
.dropdown select:invalid { color: #8D857B; }

.group.invalid select {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.14);
}
.group.invalid .pill span { border-color: var(--orange-dark); }

.err {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--orange-dark);
}

.locknote {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13.5px;
  text-align: center;
}
.locknote svg { flex: none; margin-top: 3px; color: var(--orange-dark); }

.win { text-align: center; padding: 28px 12px; }
.win h3 {
  margin: 0 0 12px;
  font-size: 26px;
}
.win p {
  max-width: 52ch;
  margin: 0 auto;
}
.winmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-tint);
  color: var(--orange);
}

.ribbon { padding: 100px 0; }
.ribbon.tint { background: var(--stone); }

.ribbonhead {
  max-width: 640px;
  margin: 0 auto 58px;
  text-align: center;
}
.ribbonsub { margin: 16px 0 0; font-size: 17.5px; }

.ribbon[id], .matchbox[id], .tile[id] { scroll-margin-top: 88px; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 44px 40px;
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
  background: var(--sheet);
  box-shadow: var(--shade-1);
}
.tile h3 { margin: 0 0 12px; font-size: 26px; }
.tile p { margin: 0 0 26px; }

.tile.warm {
  background: linear-gradient(160deg, var(--orange-tint) 0%, var(--orange-tint-soft) 100%);
  border-color: var(--tint-border);
}
.tileicon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--sheet);
  color: var(--orange);
  box-shadow: var(--shade-1);
}
.tile.plain .tileicon { background: var(--orange-tint); box-shadow: none; }

.quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 940px;
  margin: 0 auto;
}
.quote {
  margin: 0;
  padding: 32px 30px;
  background: var(--sheet);
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
  box-shadow: var(--shade-1);
}
.fivestar {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: var(--amber);
}
.fivestar svg { width: 17px; height: 17px; }
.quote blockquote {
  margin: 0 0 20px;
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--coal);
}
.quote figcaption { font-size: 14.5px; color: var(--text); }
.quote figcaption strong { color: var(--charcoal); font-weight: 500; }

.stairs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stairs::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 17%;
  right: 17%;
  border-top: 2px dashed var(--dash);
}
.rung { position: relative; text-align: center; padding: 0 8px; }
.rungicon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-tint);
  border: 8px solid var(--sheet);
  color: var(--orange);
}
.rung h3 { margin: 0 0 10px; font-size: 20px; }
.rung p { margin: 0; font-size: 15.5px; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cell {
  padding: 34px 30px;
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
  background: var(--sheet);
  box-shadow: var(--shade-1);
}
.cell h3 { margin: 0 0 8px; font-size: 19px; }
.cell p { margin: 0; font-size: 15.5px; }

.cellicon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--orange-tint);
  color: var(--orange);
}

.cell.warm {
  background: linear-gradient(160deg, var(--orange-tint) 0%, var(--orange-tint-soft) 100%);
  border-color: var(--tint-border);
}
.cell.warm .cellicon { background: var(--sheet); }

.cell.dark {
  background: var(--charcoal);
  border-color: var(--charcoal);
}
.cell.dark h3 { color: var(--sheet); }
.cell.dark p { color: #CFC8BE; }
.cell.dark .cellicon {
  background: rgba(255, 255, 255, 0.1);
  color: #F2B285;
}

.qna { max-width: 820px; margin: 0 auto; }
.qn { border-bottom: 1px solid var(--stitch); }
.qn:first-child { border-top: 1px solid var(--stitch); }
.qn h3 { margin: 0; }

.ask {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: 0;
  font-family: var(--face-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.ask:hover { color: var(--orange-dark); }
.ask svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--orange-dark);
  transition: transform 0.3s ease;
}
.ask[aria-expanded="true"] svg { transform: rotate(180deg); }

.ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ans p {
  margin: 0;
  padding: 0 44px 26px 4px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.7;
}

.endband { padding: 24px 0 110px; }
.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 72px;
  border-radius: var(--r-card);
  background-color: var(--charcoal);
  background-image: radial-gradient(700px 340px at 88% 0%, rgba(234, 88, 12, 0.32), transparent 62%);
  box-shadow: var(--shade-3);
}
.closing h2 { color: var(--sheet); margin: 0; }
.closingcopy p { margin: 12px 0 0; color: #CFC8BE; max-width: 46ch; }

.basebar {
  background: var(--charcoal);
  color: var(--foot-text);
  padding: 64px 0 40px;
  text-align: center;
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin: 24px 0 20px;
}
.footlinks a {
  color: var(--foot-muted);
  font-size: 15px;
  text-decoration: none;
}
.footlinks a:hover { color: var(--sheet); text-decoration: underline; text-underline-offset: 3px; }

.footcontact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
  font-size: 15px;
}
.footcontact a { color: var(--foot-text); text-decoration: none; }
.footcontact a:hover { color: var(--sheet); text-decoration: underline; text-underline-offset: 3px; }
.footcontact .sep { color: rgba(255, 255, 255, 0.28); }

.fineprint {
  max-width: 105ch;
  margin: 28px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--foot-line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--foot-muted);
}

.copyline { margin: 16px 0 0; font-size: 14px; color: var(--foot-text); }

.paperhead {
  background: var(--stone);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--stitch);
}
.paperhead h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 2.9rem); }
.paperdate { margin: 14px 0 0; font-size: 15px; }

.paperbody { padding: 64px 0 100px; }
.paper { max-width: 70ch; }
.paper h2 {
  margin: 48px 0 14px;
  font-size: 24px;
}
.paper h2:first-child { margin-top: 0; }
.paper p { margin: 0 0 16px; line-height: 1.8; }
.paper ul {
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.8;
}
.paper li { margin-bottom: 8px; }
.paper li::marker { color: var(--orange); }
.paper strong { color: var(--coal); font-weight: 500; }

.reachbox {
  margin-top: 44px;
  padding: 28px 32px;
  background: var(--stone);
  border: 1px solid var(--stitch);
  border-radius: var(--r-card);
}
.reachbox p { margin: 0 0 10px; line-height: 1.7; }
.reachbox p:last-child { margin-bottom: 0; }

.notebox {
  margin: 0 0 8px;
  padding: 28px 32px;
  background: var(--orange-tint-soft);
  border: 1px solid var(--tint-border);
  border-radius: var(--r-card);
}
.notebox p {
  margin: 0;
  font-weight: 500;
  line-height: 1.75;
  color: var(--coal);
}

.floatup {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.floatup.shown { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .closing { padding: 52px 48px; }
}

@media (max-width: 900px) {
  .toprow { gap: 14px; }
  .brandmark { margin-right: auto; }
  .topnav { margin: 0; }
  .burger { display: grid; }
  .topnav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--sheet);
    border-bottom: 1px solid var(--stitch);
    box-shadow: var(--shade-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  body.menuon .topnav ul {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .topnav li { border-bottom: 1px solid var(--stitch); }
  .topnav li:last-child { border-bottom: 0; }
  .topnav li a:not(.go) { display: block; padding: 15px 4px; font-size: 17px; }
  .mobgo { display: list-item; padding-top: 14px; }
  .mobgo .go { width: 100%; }
}

@media (max-width: 768px) {
  .ribbon { padding: 76px 0; }
  .intro { padding: 64px 0 80px; }
  .duo,
  .bento,
  .quad,
  .stairs {
    grid-template-columns: 1fr;
  }
  .pills { grid-template-columns: repeat(3, 1fr); }
  .stairs { gap: 40px; }
  .stairs::before { display: none; }
  .rung { max-width: 420px; margin: 0 auto; }
  .closing {
    flex-direction: column;
    align-items: flex-start;
    padding: 44px 32px;
  }
  .matchbox { padding: 34px 26px; }
  .tile { padding: 34px 28px; }
  .amountview { font-size: 30px; }
}

@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
  .navgo { display: none; }
  .closing .go { width: 100%; }
  .matchbox { margin-top: 44px; }
  .chips li { font-size: 13.5px; }
}

@media (max-width: 420px) {
  .pills { grid-template-columns: repeat(2, 1fr); }
}

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