/* Ledjer's public site. Colours and type follow the app (ui/theme): Deep Green and Lime on a cool base. */

/* The app's own Manrope, copied in by scripts/site.py, so no visitor is sent to a font service. */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope_regular.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope_semibold.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope_bold.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("fonts/manrope_extrabold.ttf") format("truetype"); }

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #18222B;
  --muted: #5B6572;
  --line: #E3E8EE;
  --green: #1A5A39;
  --green-deep: #124A2E;
  --on-green: #EAF5EE;
  --lime: #C5F26B;
  --lime-deep: #B4E85A;
  --lime-ink: #12351F;
  --money-in: #1E7A4A;
  --ochre: #8A5A12;
  --ochre-bg: #F6E9CF;
  --premium: linear-gradient(120deg, #B5E655 0%, #45C08C 55%, #149A92 100%);
  --screen: #F5F7FA;
  --screen-ink: #18222B;
  --hero: radial-gradient(120% 90% at 85% 10%, #2B7A4F 0%, #1A5A39 45%, #124A2E 100%);
  --radius: 18px;
  --page: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1513; --surface: #17201C; --ink: #E7EEE9; --muted: #9AA7A1; --line: #26322C;
    --money-in: #77C39A; --ochre: #E2B565; --ochre-bg: #3A2E17;
    --premium: linear-gradient(120deg, #C5F26B 0%, #63D9A0 55%, #2BB5AA 100%);
    --screen: #12151A; --screen-ink: #E7EEE9;
    --hero: radial-gradient(120% 90% at 85% 10%, #22603F 0%, #144A2F 45%, #0C2A1B 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
/* Clip, not hidden, on both: some iPhones still pan sideways with it on the body alone, and hidden on
   both would make the body a scroller of its own. Browsers without clip keep the body's hidden. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; overflow-x: clip;
  font: 400 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* Pictures carry their width and height, so the page keeps their room before they load. */
img { max-width: 100%; height: auto; display: block; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--page); }

/* ---------- Header: the app's green, in both themes ---------- */
.hero, .band { background: var(--hero); color: #FFFFFF; }
.hero { position: relative; overflow: hidden; }
/* Top and bottom only, so .wrap's side padding stays. */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; position: relative; z-index: 5; }
.top nav { display: flex; gap: 26px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.top nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #FFFFFF; text-decoration: none; opacity: 0.88; }
.top nav a:hover { opacity: 1; text-decoration: underline; }
/* Phones only (below): Join, once the hero's form is out of sight, and the menu that holds the four links. */
.top-actions { display: none; align-items: center; gap: 6px; }
.join {
  display: none; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--lime);
  color: var(--lime-ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #FFFFFF; cursor: pointer; }
.menu svg { width: 24px; height: 24px; }
.join:focus-visible, .menu:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

/* The book about as tall as the name, its middle level with the middle of the letters ("l" top to the
   baseline), not with the name's box, which runs down to the j. --h is the name's height. */
.lockup { --h: 36px; display: flex; flex: none; align-items: flex-start; gap: calc(var(--h) * 0.3); text-decoration: none; position: relative; }
/* The logo draws shorter than a finger, so its tap area reaches past it without moving it. */
.lockup::after { content: ""; position: absolute; inset: -8px -7px; }
.lockup .mark { width: calc(var(--h) * 1.1); height: auto; }
.lockup .word { height: var(--h); width: auto; margin-top: calc(var(--h) * 0.06); }

/* ---------- Hero ---------- */
/* On a wide screen the green fills the window, so the phones run off its bottom edge and nothing of
   the page shows under them until you scroll. */
@media (min-width: 981px) {
  .hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero > .wrap { width: 100%; }
  .hero > .hero-grid { flex: 1; }
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: 24px; padding-top: 12px; }
/* Or at a phone's largest text the email box's own width (the input's width: 100% below) widens the
   column and pushes the words off the edge. */
.hero-grid > * { min-width: 0; max-width: 100%; }
.copy { position: relative; z-index: 3; padding-bottom: 96px; }
.headline { margin: 0 0 24px; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(46px, 6.3vw, 86px); }
.headline span { display: block; white-space: nowrap; }
.accent { color: var(--lime); }
.lead { font-size: 20px; color: var(--on-green); margin: 0 0 30px; max-width: 46ch; }
/* The app's own Save button: lime, rounded corners, not a pill. */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 14px;
  background: var(--lime); color: var(--lime-ink); font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 2px 0 rgba(18, 53, 31, 0.25); transition: scale 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: var(--lime-deep); }
.btn:active { scale: 0.97; }
.btn svg { width: 20px; height: 20px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--on-green); font-size: 15px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; opacity: 0.85; }
.trust svg { width: 18px; height: 18px; }

/* Real phones, cut off by the band's bottom edge, with the retired book lying faint behind them. Under
   about 1220 wide the stage and its phones shrink with the window, so the waitlist beside them keeps room. */
.stage { position: relative; height: 640px; width: min(560px, 46vw); max-width: 100%; justify-self: end; align-self: end; }
.stage .pixel { position: absolute; left: 50%; bottom: -130px; --w: min(250px, 20.5vw); transform: translateX(-62%) rotate(-6deg); }
.stage .iphone { position: absolute; left: 50%; bottom: -90px; --w: min(290px, 23.8vw); transform: translateX(-4%); z-index: 2; }
.ghost-book {
  position: absolute; left: 4%; top: 40px; width: 340px; height: 450px; border-radius: 6px 20px 20px 6px; rotate: -9deg;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 16px, transparent 16px),
    linear-gradient(90deg, transparent 0 54px, rgba(255, 140, 120, 0.25) 54px 56px, transparent 56px),
    repeating-linear-gradient(to bottom, transparent 0 29px, rgba(255, 255, 255, 0.09) 29px 30px),
    rgba(255, 255, 255, 0.035);
  animation: retire 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.float {
  position: absolute; z-index: 3; display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--surface); color: var(--ink); border-radius: 16px; font-size: 14px; line-height: 1.3; text-align: left;
  box-shadow: 0 18px 40px -16px rgba(5, 25, 15, 0.45);
}
.float b { display: block; font-size: 15px; }
.float .meta { color: var(--muted); }
.float .amt { margin-left: 10px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.float .amt.in { color: var(--money-in); }
.float .tile { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #E7F3EC; color: #1E7A4A; }
.float .tile.late { background: var(--ochre-bg); color: var(--ochre); font-weight: 700; font-size: 13px; border-radius: 50%; }
.float .late-note { color: var(--ochre); font-weight: 600; }
.stage .float.one { right: 0; top: 150px; }
.stage .float.two { left: 30px; top: 420px; }

/* ---------- Phones ---------- */
.iphone {
  --w: 290px; position: relative; width: var(--w); aspect-ratio: 393 / 852;
  border-radius: calc(var(--w) * 0.19); padding: calc(var(--w) * 0.034); background: #0B0C0D;
  box-shadow: 0 0 0 calc(var(--w) * 0.01) #3A3D41, 0 0 0 calc(var(--w) * 0.02) #A9AEB4, 0 0 0 calc(var(--w) * 0.024) #6E737A,
    0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}
.iphone::before, .iphone::after, .pixel::before { content: ""; position: absolute; width: calc(var(--w) * 0.014); background: #8E949B; border-radius: 3px; }
.iphone::before { left: calc(var(--w) * -0.036); top: 18%; height: 5%; box-shadow: 0 calc(var(--w) * 0.11) 0 #8E949B, 0 calc(var(--w) * 0.22) 0 #8E949B; }
.iphone::after { right: calc(var(--w) * -0.036); top: 27%; height: 11%; }
.iphone .screen { border-radius: calc(var(--w) * 0.158); }
.iphone .status { height: calc(var(--w) * 0.135); padding: calc(var(--w) * 0.025) calc(var(--w) * 0.08) 0 calc(var(--w) * 0.1); }
.iphone .status svg { height: calc(var(--w) * 0.034); }
.iphone .island { position: absolute; z-index: 2; top: calc(var(--w) * 0.03); left: 50%; transform: translateX(-50%); width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.088); background: #000; border-radius: 999px; }
.pixel {
  --w: 270px; position: relative; width: var(--w); aspect-ratio: 412 / 915;
  border-radius: calc(var(--w) * 0.14); padding: calc(var(--w) * 0.032); background: #0B0C0D;
  box-shadow: 0 0 0 calc(var(--w) * 0.014) #C9CDD2, 0 0 0 calc(var(--w) * 0.019) #8F949A,
    0 40px 80px -30px rgba(0, 0, 0, 0.55), 0 20px 40px -20px rgba(0, 0, 0, 0.35);
}
.pixel::before { right: calc(var(--w) * -0.033); top: 20%; height: 8%; box-shadow: 0 calc(var(--w) * 0.2) 0 0 #8E949B; }
.pixel .screen { border-radius: calc(var(--w) * 0.11); }
.pixel .status { height: calc(var(--w) * 0.11); padding: calc(var(--w) * 0.012) calc(var(--w) * 0.08) 0; }
.pixel .status svg { height: calc(var(--w) * 0.04); }
.pixel .punch { position: absolute; z-index: 2; top: calc(var(--w) * 0.035); left: 50%; transform: translateX(-50%); width: calc(var(--w) * 0.045); aspect-ratio: 1; background: #000; border-radius: 50%; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; background: var(--screen); }
.screen picture { display: block; flex: 1; min-height: 0; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.status { flex: none; display: flex; align-items: center; justify-content: space-between; font: 700 calc(var(--w) * 0.05)/1 "Manrope", sans-serif; color: var(--screen-ink); }
.status svg { width: auto; }
.status.green { background: linear-gradient(90deg, #1E633F, #1B5F3B 50%, #25663C); color: #FFFFFF; }

/* ---------- Sections ---------- */
section { padding: 104px 0 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Or a pair of phones wider than its column pushes the words past the screen's edge. */
.row > * { min-width: 0; }
.row.flip .text { order: 2; }
.row .shot { display: flex; justify-content: center; position: relative; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
h1, h2, h3 { text-wrap: balance; }
.row p { color: var(--muted); margin: 0 0 14px; max-width: 44ch; font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; max-width: 52ch; }
.ticks li { position: relative; padding-left: 32px; margin: 10px 0; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--lime-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Two phones side by side, the second a step lower, so neither screen hides the other. */
.pair { display: flex; gap: 22px; align-items: flex-start; justify-content: center; width: 100%; }
.pair .iphone { --w: min(232px, 21.5vw); }
.pair .pixel { --w: min(222px, 20.5vw); margin-top: calc(var(--w) * 0.25); }
.paper { width: min(340px, 90%); border-radius: 6px; background: #FFFFFF; rotate: 3deg; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.35), 0 10px 20px -10px rgba(0, 0, 0, 0.2); }
.paper img { border-radius: 6px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; color: var(--ink); }
.card h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.alerts { background: var(--premium); color: #0E2A1C; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
/* Or a bank text's long figures, or the email address, widen the column past a zoomed-in phone's edge. */
.alerts > *, .plans > *, .faq-grid > * { min-width: 0; }
.alerts .eyebrow { color: #0E2A1C; opacity: 0.7; }
.alerts p { margin: 0 0 12px; font-size: 18px; max-width: 42ch; }
.bubbles { display: grid; gap: 12px; }
.bubble { background: rgba(255, 255, 255, 0.85); border-radius: 18px; padding: 14px 16px; font-size: 14px; line-height: 1.4; color: #18222B; overflow-wrap: anywhere; }
.bubble .from { font-weight: 700; font-size: 13px; color: #5B6572; margin-bottom: 4px; }
.bubble.entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFFFFF; }
.bubble.entry .meta { color: #5B6572; }
.bubble.entry .amt { color: #1E7A4A; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bubbles .arrow { justify-self: center; width: 22px; height: 22px; color: #0E2A1C; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.plan { border-radius: var(--radius); padding: 32px; background: var(--surface); }
.plan h3 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.plan .sub { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 6px 0; }
.plan.premium { background: var(--premium); color: #0E2A1C; }
.plan.premium .sub { color: #0E2A1C; opacity: 0.75; }

.closing { margin-top: 104px; }
.closing .inner { border-radius: 28px; background: var(--hero); color: #FFFFFF; padding: 72px 40px; text-align: center; }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--on-green); margin: 0 auto 28px; max-width: 46ch; font-size: 18px; }

footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---------- Support and the legal pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px var(--page) 24px; }
.page h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.page .lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: none; }
.page h2 { font-size: 24px; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink); overflow-wrap: break-word; }
.page code { font-size: 15px; }
.write { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.write p { margin: 0; }
.write .addr { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.write .note { color: var(--muted); font-size: 15px; }
details { background: var(--surface); border-radius: var(--radius); margin: 10px 0; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
/* A plus that turns half way round as its upright folds away, leaving a minus. questions.js marks a
   question "shutting" while it slides shut, so the minus turns back as it goes. */
summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 7px; color: var(--muted);
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: rotate 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), background-size 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
details[open]:not(.shutting) summary::after { rotate: 180deg; background-size: 14px 2px, 2px 0; }
details.moving { overflow: hidden; }
details .answer { padding: 0 22px 18px; color: var(--muted); }
details .answer p { margin: 0 0 10px; color: var(--muted); }
details .answer p:last-child { margin: 0; }

/* ---------- The waitlist in the hero ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { max-width: 520px; }
.waitlist [hidden] { display: none; }
.waitlist-row { display: flex; gap: 10px; padding: 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); }
.waitlist input {
  flex: 1; width: 100%; min-width: 0; min-height: 56px; border: 0; border-radius: 14px; padding: 0 18px; font: 600 17px/1 "Manrope", sans-serif;
  background: #FFFFFF; color: #18222B;
}
.waitlist input::placeholder { color: #8A939D; }
.waitlist input:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
.waitlist .btn:disabled { opacity: 0.6; }
.waitlist-note { margin: 10px 4px 0; color: var(--on-green); opacity: 0.8; font-size: 14px; }
.waitlist-error { margin: 10px 4px 0; color: #FFD9CF; font-weight: 700; font-size: 15px; }
.waitlist-done { margin: 0; padding: 18px 20px; border-radius: 16px; background: rgba(197, 242, 107, 0.16); color: #FFFFFF; font-weight: 700; }

/* ---------- The cashbook, the comparison, more ways, Premium, prices, questions ---------- */
/* The four everyday features in one panel, so they read as one system. */
.core { padding-top: 88px; }
.core-head h2 { margin: 0 0 18px; max-width: 24ch; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.steps a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px;
  background: var(--surface); font-weight: 700; font-size: 15px; text-decoration: none;
}
.steps .num { padding: 2px 8px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: 13px; font-weight: 800; }
/* A container, so the pair of phones inside sizes to the panel rather than the window. */
.system { background: var(--surface); border-radius: 28px; padding: 8px 56px; container-type: inline-size; }
.feature { padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3, .alerts h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.compare { padding-top: 72px; }
.compare h2 { margin-bottom: 20px; }
.vs { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 17px; }
.vs th { text-align: left; padding: 14px 20px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vs th + th { background: var(--lime); color: var(--lime-ink); }
.vs td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.vs td:first-child { color: var(--muted); }
.vs td + td { font-weight: 700; }
.vs-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; max-width: 62ch; }
.made-for { margin: 32px 0 0; }
.more h2 { margin: 0; }
.more .grid { margin-top: 24px; }
.card .ticks { margin-top: 14px; font-size: 16px; }
.card p a { color: var(--ink); font-weight: 700; }
.card.personal .iphone { --w: 200px; }
.premium-features .alerts { margin-top: 16px; }
.eyebrow .num { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); letter-spacing: 0.02em; }
.tag { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px; background: var(--premium); color: #0E2A1C; letter-spacing: 0.04em; }
/* Kept in from the column's edges, since the turned pages reach past their own boxes. Each page is a
   button: tapping one brings it to the front (the script at the end of index.html). */
.fan { position: relative; width: min(480px, 92%); aspect-ratio: 480 / 520; }
.fan .doc {
  position: absolute; width: 62%; padding: 0; border: 0; border-radius: 6px; background: #FFFFFF; cursor: pointer;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.4), 0 8px 18px -10px rgba(0, 0, 0, 0.2);
  transition: translate 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fan .doc img { border-radius: 6px; }
.fan .doc.front { cursor: default; }
@media (hover: hover) { .fan .doc:not(.front):hover { translate: 0 -8px; } }
.fan .doc:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 4px; }
.fan .quote { left: 0; top: 7.7%; rotate: -8deg; }
.fan .invoice { left: 22%; top: 0; rotate: 2deg; z-index: 1; }
.fan .receipt { right: 0; top: 28.8%; width: 44%; rotate: 8deg; z-index: 2; }
/* The proof of income page whole, beside its words. */
.loan { margin-top: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: var(--surface); border-radius: 28px; padding: 44px 48px; }
.loan h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 12px; }
.loan p { color: var(--muted); font-size: 18px; margin: 0; max-width: 48ch; }
.loan .eyebrow { color: var(--muted); }
.paper.proof { width: min(330px, 100%); justify-self: center; rotate: -2deg; }
.fine { color: var(--muted); font-size: 15px; margin-top: 18px; }
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.note-card {
  width: 300px; border-radius: 20px; padding: 14px 16px; background: var(--bg); display: grid; gap: 2px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35);
}
.note-card .note-app { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.note-card .note-app img { width: 16px; height: 16px; }
.note-card b { font-size: 15px; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 16px; }
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.pricing-head h2 { margin: 0; }
.period { position: relative; display: inline-flex; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: var(--surface); gap: 4px; }
.period button {
  position: relative; z-index: 1; font: 700 15px/1 "Manrope", sans-serif; border: 0; border-radius: 999px; padding: 0 18px; min-height: 44px;
  background: transparent; color: var(--muted); cursor: pointer; transition: color 0.3s ease;
}
.period button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); }
/* With the script, one lime pill slides under the pick; it places the pill by --pill-x, --pill-y and its
   size, so it still lands on the pick when zoomed-in text stacks the two. It turns the slide on with
   "live" after the first placing, so the page does not open with it. */
.js .period button[aria-pressed="true"] { background: transparent; }
.js .period::before {
  content: ""; position: absolute; top: 0; left: 0; width: var(--pill-w, 0); height: var(--pill-h, 0);
  translate: var(--pill-x, 0) var(--pill-y, 0); border-radius: 999px; background: var(--lime);
}
.js .period.live::before { transition: translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.price { margin: 4px 0 6px; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-weight: 600; opacity: 0.75; }
.price-note { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-more { color: var(--muted); font-size: 17px; overflow-wrap: anywhere; }
.faq details { margin: 0 0 10px; }
@media (max-width: 980px) {
  .waitlist { margin: 0 auto; }
  .waitlist-row { flex-direction: column; }
  .waitlist .btn { justify-content: center; }
  .core { padding-top: 72px; }
  .system { padding: 8px 36px; }
}
@media (max-width: 420px) {
  .period button { padding: 0 14px; }
}

/* ---------- Motion: once on load, and each section as it scrolls in ---------- */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
/* The phones rise out of the hero's bottom edge, solid all the way: a fade let the book and the
   phone behind show through them. */
@keyframes phone-in { from { translate: 0 110%; } }
@keyframes pop { 0% { opacity: 0; scale: 0.7; } 70% { opacity: 1; scale: 1.04; } 100% { opacity: 1; scale: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes retire { from { translate: 150px 30px; rotate: 0deg; } }
.a-rise { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0s); }
.a-phone { animation: phone-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: var(--d, 0.3s); }
.a-pop { animation: pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, bob 5s ease-in-out infinite; animation-delay: var(--d, 1s), calc(var(--d, 1s) + 0.6s); }
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Going from page to page: the old one fades out and the new one rises in. Browsers without
   cross-page view transitions just load the page, and a page opened as a file never animates. */
@view-transition { navigation: auto; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; translate: 0 16px; } }
::view-transition-old(root) { animation: page-out 0.18s ease-in both; }
::view-transition-new(root) { animation: page-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  @view-transition { navigation: none; }
}

/* ---------- Smaller screens: one phone in the hero; on a tablet the sections keep their two columns ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .copy { padding-bottom: 20px; }
  .lead { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  /* 32 to 38 on a phone and about 67 on a tablet. The height cap keeps a phone on its side from filling
     with it, and each line may wrap, so large text never runs off the edge. */
  .headline { font-size: clamp(32px, min(1px + 8.6vw, 11vh), 72px); }
  .headline span { white-space: normal; }
  .stage { width: 100%; height: 470px; justify-self: center; }
  .stage .pixel { display: none; }
  .stage .iphone { --w: 250px; transform: translateX(-50%); bottom: -170px; }
  .ghost-book { left: 50%; margin-left: -230px; width: 260px; height: 360px; }
  .stage .float.one { right: 0; top: 60px; }
  .stage .float.two { left: 0; top: 290px; }
  .row { gap: 40px; }
  .pair { gap: 16px; }
  .alerts { padding: 40px; }
  section { padding-top: 72px; }
}
/* ---------- Phones: everything in one column ---------- */
@media (max-width: 720px) {
  .row, .alerts, .loan, .grid, .plans, .faq-grid { grid-template-columns: 1fr; }
  .row.flip .text { order: 0; }
  .alerts { padding: 32px 24px; border-radius: 22px; }
  .loan { padding: 32px 24px; }
  .card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .note-card { width: 100%; }
  .faq-grid { gap: 20px; }
  .shot > .iphone { --w: min(290px, 66vw); }
  .shot > .pixel { --w: min(270px, 62vw); }
  .pair { gap: 12px; }
  .pair .iphone { --w: min(232px, 43vw); }
  .pair .pixel { --w: min(222px, 41vw); }
  .system { padding: 4px 16px; border-radius: 22px; }
  .system .row { gap: 24px; }
  .feature { padding: 32px 0; }
  /* In the panel the pair overlaps a little, so each phone stays as large as before. */
  .system .pair { gap: 0; }
  .system .pair .iphone { --w: min(232px, 54cqi); }
  .system .pair .pixel { --w: min(222px, 50cqi); margin-left: -8cqi; z-index: 1; }
  .card.personal .iphone { --w: min(180px, 50vw); justify-self: center; }
}
/* ---------- Phones: type at the sizes big product sites use there; desktop keeps its own ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* No last word left alone on a narrow line. */
  p, li { text-wrap: pretty; }
  h2 { font-size: clamp(24px, 6.6vw, 28px); }
  .lead, .page .lead { font-size: 17px; }
  .row p, .alerts p, .loan p, .closing p, .faq-more { font-size: 16px; }
  .feature h3, .alerts h3 { font-size: clamp(22px, 6vw, 26px); }
  .vs { font-size: 15px; }
  .vs th, .vs td { padding: 12px 14px; }
  .btn { font-size: 17px; }
  /* 16 and up, or an iPhone zooms the page when the field is tapped. */
  .waitlist input { font-size: 16px; }
  .card { padding: 22px; }
  .card h3 { font-size: 18px; }
  .loan h3 { font-size: 22px; }
  .plan { padding: 24px; }
  .plan h3 { font-size: 22px; }
  .price b { font-size: clamp(26px, 9vw, 34px); }
  .chips li { font-size: 15px; padding: 8px 14px; }
  .page h1 { font-size: 30px; }
  .page h2 { font-size: 22px; }
  .write .addr { font-size: 17px; }
  section { padding-top: 64px; }
  .core { padding-top: 56px; }
  .compare { padding-top: 48px; }
  .closing { margin-top: 72px; }
  .loan { margin-top: 40px; }
  footer { margin-top: 56px; }
  /* The home page's bar stays at the top, green from the start so it reads with or without the script,
     which adds its shadow once the page scrolls. Four links and the logo don't fit side by side under
     about 520, so they go in its menu. The other pages keep their plain header with Home. */
  .hero .top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: 12px; padding-bottom: 12px;
    background: var(--green); transition: box-shadow 0.25s ease;
  }
  .hero .top.solid { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.5); }
  .hero { padding-top: 68px; }
  .top-actions { display: flex; }
  .top.show-join .join { display: inline-flex; }
  /* With no script the menu can't open, so the bar offers Join instead. */
  html:not(.js) .menu { display: none; }
  html:not(.js) .join { display: inline-flex; }
  .hero .top nav {
    display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; padding: 6px;
    border-radius: 16px; background: var(--surface); box-shadow: 0 18px 40px -16px rgba(5, 25, 15, 0.45);
  }
  .hero .top.open nav { display: flex; }
  .hero .top nav a { justify-content: flex-start; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--ink); opacity: 1; }
  .hero .top nav a:hover { background: var(--bg); text-decoration: none; }
  /* Anything jumped to lands below the bar, not under it. */
  main[id], section[id], article[id], #contact { scroll-margin-top: 84px; }
}
@media (max-width: 340px) {
  .join .long { display: none; }
}
@media (max-width: 420px) {
  .lockup { --h: 28px; }
  .stage .iphone { --w: 230px; }
  .float { font-size: 13px; padding: 10px 12px 10px 10px; }
  .float .tile { width: 32px; height: 32px; }
  .float .amt { margin-left: 4px; }
  .closing .inner { padding: 48px 22px; }
}
/* A phone zoomed to 200%: the bar keeps just the book mark, and the alert's amount drops under its words,
   rather than past the edge. */
@media (max-width: 300px) {
  .lockup .word { display: none; }
  .bubble.entry { flex-wrap: wrap; }
}
