/* spindleloans.com — one stylesheet. Sections in page order; devices first because every
   section uses them. Motion lives at the end, behind @supports and prefers-reduced-motion,
   so the page is complete without it (see ~/.claude/web-craft.md). */

:root {
  --navy: #001b53; --navy-2: #0b2a6b; --green: #1ac369; --green-ink: #0b7a3e; --green-soft: #e2f6ea;
  --ink: #0f1b3d; --muted: #52607a; --faint: #8a95ab; --line: #e2e7ef; --canvas: #f5f7fb; --white: #fff;
  --radius: 18px; --wrap: 1200px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* "expo out": fast start, long settle */
  --ease-apple: cubic-bezier(.32, .72, 0, 1);   /* the Dynamic Island's curve */
  --shadow-lg: 0 40px 80px -24px rgba(0, 27, 83, .35), 0 16px 32px -16px rgba(0, 0, 0, .25);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-green { background: var(--green); color: var(--navy); box-shadow: 0 8px 20px -10px rgba(26, 195, 105, .9); }
.btn-green:hover { background: #17ad5d; }
.btn-line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }

/* ================================================================================================
   Devices. One phone and one laptop, built from layers so they read as objects, not boxes.
   Every size inside a phone is in em, and 1em = 1/30 of the phone's width (--dw), so one
   variable scales the whole thing, buttons and island included.
   ================================================================================================ */
.device { --dw: 300px; position: relative; width: var(--dw); font-size: calc(var(--dw) / 30); flex: none; }
.d-frame {   /* the titanium band */
  position: relative; border-radius: 5.4em; padding: .34em;
  background: linear-gradient(140deg, #f2f4f7 0%, #a7adb6 14%, #e9ecf0 30%, #7f8690 48%, #d9dde3 66%, #8d939c 84%, #eef0f3 100%);
  box-shadow: 0 0 0 .06em rgba(0, 0, 0, .45), inset 0 0 0 .06em rgba(255, 255, 255, .7), inset 0 0 .3em rgba(0, 0, 0, .35), var(--shadow-lg);
}
.d-bezel { border-radius: 5.06em; padding: .95em; background: #050608;
  box-shadow: inset 0 0 0 .12em #1a1d22, inset 0 0 .5em rgba(255, 255, 255, .06); }
.d-screen { position: relative; border-radius: 4.15em; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; isolation: isolate; }
.d-status { position: absolute; inset: 0 0 auto; height: 5.2em; display: flex; align-items: center; justify-content: space-between;
  padding: .5em 2.1em 0 2.9em; font-size: 1em; font-weight: 600; color: #0b0b0c; background: #fff; z-index: 3; }
.d-time { font-size: 1.45em; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.d-icons { display: flex; gap: .3em; align-items: center; }
.d-icons svg { height: .95em; width: auto; fill: currentColor; }
/* The home bar sits on its own strip under the screenshot, never over the app's last line. */
.d-view { position: absolute; inset: 5.2em 0 2.1em; }
.d-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.d-home { position: absolute; left: 50%; bottom: .75em; width: 11em; height: .45em; margin-left: -5.5em; border-radius: 1em; background: rgba(0, 0, 0, .82); z-index: 4; }
/* Dynamic Island: a pill that can grow into a live activity (see .island-live). */
.d-island { position: absolute; top: 1.05em; left: 50%; width: 9.4em; height: 2.75em; transform: translateX(-50%); z-index: 5;
  border-radius: 2em; background: #000; color: #fff; overflow: hidden;
  transition: width .55s var(--ease-apple), height .55s var(--ease-apple), border-radius .55s var(--ease-apple); }
.d-island::after { /* the front camera, a lens with a glint */
  content: ''; position: absolute; right: .95em; top: 50%; width: 1.05em; height: 1.05em; margin-top: -.525em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a78 0 12%, #10162a 30%, #050608 70%); transition: opacity .2s; }
.island-live { display: flex; align-items: center; gap: .7em; padding: 0 1.3em 0 1em; height: 100%; opacity: 0; transition: opacity .2s;
  white-space: nowrap; font-size: .92em; }
.island-live b { display: block; font-weight: 600; }
.island-live small { display: block; color: #9aa3b5; font-size: .82em; }
.island-live > span:not(.amt) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.island-live .amt { margin-left: auto; font-weight: 700; color: var(--green); font-size: 1.15em; font-variant-numeric: tabular-nums; }
.island-live i { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--navy); }
.island-live i svg { width: 1.3em; height: 1.3em; }
.d-island.open { width: 25.4em; height: 5.4em; border-radius: 2.7em; }
.d-island.open::after { opacity: 0; }
.d-island.open .island-live { opacity: 1; transition: opacity .3s .25s; }
.d-btn { position: absolute; left: -.3em; width: .34em; border-radius: .2em 0 0 .2em;
  background: linear-gradient(90deg, #6b727c, #d5d9df 45%, #8d939c); box-shadow: inset 0 0 0 .04em rgba(0, 0, 0, .35); }
.d-action { top: 17%; height: 2.6em; } .d-vol-up { top: 25%; height: 5em; } .d-vol-down { top: 33%; height: 5em; }
.d-power { left: auto; right: -.3em; top: 26%; height: 7.6em; border-radius: 0 .2em .2em 0; background: linear-gradient(90deg, #8d939c, #d5d9df 55%, #6b727c); }
/* Glass: a soft diagonal sheen that follows the pointer (--gx). */
.d-glare { position: absolute; inset: .34em; border-radius: 5.06em; pointer-events: none; z-index: 6; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent calc(var(--gx, 30%) - 18%), rgba(255, 255, 255, .16) var(--gx, 30%), transparent calc(var(--gx, 30%) + 16%)); }
.device::after { /* contact shadow on the "table" */
  content: ''; position: absolute; left: 12%; right: 12%; bottom: -3.2em; height: 2.4em; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 20, 60, .28), transparent); filter: blur(.4em); z-index: -1; }

/* Laptop: lid (bezel, camera, screen) hinged on a base with a finger notch. */
.laptop { width: min(940px, 100%); margin-inline: auto; perspective: 2400px; font-size: calc(min(940px, 100vw - 40px) / 90); }
.lt-lid { position: relative; margin: 0 6%; padding: 1.3em 1.3em 1.6em; border-radius: 1.6em 1.6em .5em .5em; background: #0a0b0d;
  box-shadow: 0 0 0 .14em #2b2f36, inset 0 0 0 .1em #000, 0 0 0 .3em #9aa0a8; transform-origin: 50% 100%; }
.lt-lid::before { /* camera */ content: ''; position: absolute; top: .45em; left: 50%; width: .5em; height: .5em; margin-left: -.25em; border-radius: 50%; background: #1d2433; }
.lt-screen { position: relative; aspect-ratio: 1366 / 900; overflow: hidden; border-radius: .3em; background: #fff; }
.lt-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.lt-screen img:not(.on) { opacity: 0; transform: scale(1.015); }
.lt-base { position: relative; height: 1.6em; border-radius: 0 0 2.4em 2.4em / 0 0 1.6em 1.6em;
  background: linear-gradient(180deg, #e7eaee 0%, #c3c8cf 45%, #9aa0a8 100%); box-shadow: 0 1.6em 3em -1.4em rgba(0, 27, 83, .45), inset 0 .1em 0 #fff; }
.lt-base::before { /* finger notch */ content: ''; position: absolute; top: 0; left: 50%; width: 14%; height: .55em; margin-left: -7%;
  border-radius: 0 0 .8em .8em; background: linear-gradient(180deg, #a9afb7, #cfd3d9); }

/* ---------- Header: sits on the hero, gains glass once the hero scrolls away ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); }
.top { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.top.scrolled { background: rgba(255, 255, 255, .8); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 27, 83, .08); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; transition: min-height .3s var(--ease-out); }
.top.scrolled .wrap { min-height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease-out); }
.top.scrolled .brand img { height: 38px; }
.links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s; }
.links a:hover, .links a.on { color: var(--navy); }
.links .pill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--green-soft); opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .2s; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 120px; overflow: clip; }
.hero::before { content: ''; position: absolute; z-index: 0; width: 520px; height: 520px; border-radius: 50%; background: var(--green); left: -300px; bottom: -330px; }
.hero::after { content: ''; position: absolute; z-index: 0; width: 320px; height: 320px; border-radius: 50%; background: var(--navy); right: 30%; top: -230px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.5vw, 60px); font-weight: 700; letter-spacing: -.025em; }
.hero h1 .w { display: inline-block; }
.hero .lead { margin-top: 24px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.offer { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; padding: 10px 16px; border-radius: 14px; background: var(--green-soft);
  color: var(--green-ink); font-weight: 600; font-size: 15px; }
.offer svg { width: 18px; height: 18px; flex: none; }
.stage { position: relative; height: 640px; perspective: 1600px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.stage .device { position: absolute; }
.stage .back { --dw: 260px; right: 2%; top: 70px; transform: translateZ(-90px) rotate(6deg); }
.stage .front { --dw: 290px; left: 10%; top: 10px; transform: translateZ(50px) rotate(-3deg); }
.stage .chip { position: absolute; left: -2%; bottom: 70px; transform: translateZ(120px); display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); font-size: 14px; }
.stage .chip b { display: block; color: var(--navy); font-size: 15px; }
.stage .chip span { color: var(--muted); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex: none; }

/* ---------- Problem band ---------- */
.band { position: relative; background: var(--navy); color: #fff; padding: 72px 0; overflow: hidden; }
.band::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 56px solid rgba(26, 195, 105, .2); right: -110px; top: -150px; }
.band h2 { color: #fff; max-width: 20em; position: relative; z-index: 1; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; position: relative; z-index: 1; }
.three div { border-top: 3px solid var(--green); padding-top: 18px; color: #c9d3ea; }
.three b { display: block; color: #fff; font-size: 19px; margin-bottom: 8px; }

/* ---------- The lending day: a sticky phone whose screen follows the story ---------- */
.block { padding: 110px 0; }
.block.alt { background: var(--canvas); }
.head { max-width: 46em; margin-bottom: 56px; }
.head .lead { margin-top: 16px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; }
.steps { position: relative; padding-left: 56px; }
.rail { position: absolute; left: 18px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.rail i { position: absolute; inset: 0; border-radius: 3px; background: var(--green); transform-origin: 50% 0;
  transform: scaleY(var(--fill, 0)); transition: transform .5s var(--ease-out); }
.step { position: relative; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 0; }
.step .n { position: absolute; left: -56px; top: calc(50% - 20px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: #fff; color: var(--faint); box-shadow: inset 0 0 0 3px var(--line); transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.step:first-child .n { top: 0; }
.step.on .n { background: var(--green); color: var(--navy); box-shadow: 0 0 0 6px var(--green-soft); transform: scale(1.08); }
.step .when { color: var(--green-ink); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 6px; font-size: clamp(24px, 2.4vw, 30px); }
.step .lead { margin-top: 12px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks b { color: var(--navy); }
.step .inline { display: none; }
.pin { position: sticky; top: calc(50vh - 330px); height: 660px; display: grid; place-items: center; align-self: start; }
.pin .device { --dw: 300px; }
.pin .d-view img { opacity: 0; transform: translateY(5%) scale(1.02); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.pin .d-view img.on { opacity: 1; transform: none; }
.pin .d-view img.was { opacity: 0; transform: translateY(-3%) scale(.97); }

/* ---------- The office: laptop with screens to switch ---------- */
.office .head { margin-inline: auto; text-align: center; }
.tabs-row { text-align: center; }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 44px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { position: relative; z-index: 1; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600;
  font-size: 15px; color: var(--muted); cursor: pointer; transition: color .25s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--navy); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px rgba(0, 27, 83, .3); padding: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label { font-weight: 600; color: var(--navy); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.field output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--green) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--green); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px var(--green), 0 4px 10px rgba(0, 27, 83, .25); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--green), 0 4px 10px rgba(0, 27, 83, .25); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { flex: 1; position: relative; display: flex; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { flex: 1; display: grid; place-items: center; min-height: 42px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; text-align: center; }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 27, 83, .18); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #cdd5e3; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.result::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 30px solid rgba(26, 195, 105, .25); }
.result .label { color: #b9c4dc; font-size: 15px; }
.result .big { font-size: clamp(38px, 4vw, 52px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 4px; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; position: relative; z-index: 1; }
.totals div { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; }
.totals small { display: block; color: #b9c4dc; font-size: 13px; }
.totals b { font-size: 19px; font-variant-numeric: tabular-nums; }
.schedule { margin-top: 8px; width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.schedule th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.schedule td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.schedule .r { text-align: right; }
.schedule tr.more td { color: var(--muted); text-align: center; }
.schedule tbody tr { animation: none; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Countries ---------- */
.countries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.picker { margin-top: 28px; max-width: 420px; }
.picker label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: 15px; }
.facts { margin: 24px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.form-preview { --dw: 320px; margin-inline: auto; }
.mock { position: absolute; inset: 0; background: #f6f7f9; padding: 1.4em 1.6em; overflow: hidden; font-size: 1.15em; }
.mock h4 { margin: .2em 0 .9em; font-size: 1.4em; color: #0f172a; }
.mock .card { background: #fff; border-radius: .8em; box-shadow: 0 0 0 .08em #e5e7eb; padding: 1.1em; display: grid; gap: .9em; }
.mock .f { display: grid; gap: .35em; }
.mock .f span { font-weight: 600; font-size: .9em; color: #111827; }
.mock .f i { font-style: normal; display: flex; align-items: center; gap: .4em; min-height: 2.6em; padding: 0 .8em; border-radius: .55em; box-shadow: 0 0 0 .08em #d1d5db; color: #9ca3af; font-size: .95em; background: #fff; }
.mock .f i em { font-style: normal; color: #374151; font-weight: 600; }
.mock .photos { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.mock .photos span { display: grid; place-items: center; height: 4.6em; border-radius: .6em; border: .1em dashed #cbd5e1; background: #f8fafc; color: #64748b; font-size: .85em; }
.mock .btnm { margin-top: .3em; min-height: 2.8em; border-radius: .6em; background: #0f766e; color: #fff; display: grid; place-items: center; font-weight: 600; }
.swap { transition: opacity .2s; }
.swap.out { opacity: 0; }

/* ---------- Demo video ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.steps-list { margin: 24px 0 0; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; }
.video { position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); aspect-ratio: 9 / 16; }
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Prices ---------- */
.prices { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pricing-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.pricing-head .head { margin-bottom: 0; }
.where { color: var(--muted); font-size: 15px; }
.where b { color: var(--navy); }
.where button { font: inherit; color: var(--green-ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.plans { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.plans th, .plans td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.plans thead th { background: var(--canvas); font-size: 14px; color: var(--muted); font-weight: 600; }
.plans tr:last-child td { border-bottom: 0; }
.plans td small { display: block; color: var(--muted); font-size: 14px; }
.plans .r { text-align: right; font-variant-numeric: tabular-nums; }
.price { font-weight: 700; color: var(--navy); font-size: 20px; font-variant-numeric: tabular-nums; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.extras div { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 18px; }
.extras b { display: block; color: var(--navy); }
.extras .price { font-size: 18px; margin: 4px 0 6px; }
.extras span { color: var(--muted); font-size: 14px; }
.founding { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; }
.founding::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--green); right: -80px; bottom: -90px; }
.founding h3 { color: #fff; position: relative; z-index: 1; margin-top: 12px; }
.founding .big { position: relative; z-index: 1; font-size: 48px; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; }
.founding .big small { font-size: 17px; font-weight: 500; color: #b9c4dc; }
.founding ul { position: relative; z-index: 1; margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #d6deef; }
.founding ul li { padding-left: 22px; position: relative; }
.founding ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 3px; border-radius: 3px; background: var(--green); }
.founding .small { position: relative; z-index: 1; margin-top: 16px; color: #b9c4dc; font-size: 14px; }
.founding .btn { position: relative; z-index: 1; margin-top: 22px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(26, 195, 105, .18); color: #8be9b4; font-size: 13px; font-weight: 600; position: relative; z-index: 1; }

/* ---------- Start, questions, contact, footer ---------- */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: st; }
.start div { counter-increment: st; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 26px; }
.start div::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green);
  color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.start b { display: block; color: var(--navy); font-size: 19px; }
.start span { display: block; margin-top: 6px; color: var(--muted); }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start; }
details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0;
  font-weight: 600; color: var(--navy); font-size: 18px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001b53' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); }
details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
details[open]::details-content { block-size: auto; }
.contact { position: relative; overflow: hidden; background: var(--green); color: var(--navy); padding: 80px 0; }
.contact::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--navy); left: -230px; top: -210px; }
.contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.contact p { margin-top: 12px; font-size: 19px; }
.phone-big { display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact .btn { margin-top: 14px; }
footer { padding: 40px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer .brand img { height: 34px; }
footer a { color: var(--navy); }
footer .fnav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
footer .fnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-weight: 500; }
footer .fnav a:hover { background: var(--canvas); }
footer .made { width: 100%; font-size: 14px; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 10px; }
.signin:hover { background: var(--canvas); }
.links + .signin { margin-left: 8px; }
.lastnote { color: #b9c4dc; font-size: 14px; margin-top: 4px; position: relative; z-index: 1; }
/* Prices, countries and country pages */
h2.pt { font-size: 20px; margin: 26px 0 12px; } h2.pt:first-child { margin-top: 0; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.cgroup h2 { font-size: 18px; margin-bottom: 10px; }
.cgroup ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cgroup a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.cgroup a:hover { color: var(--green-ink); }
.cpage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cpage h1 { font-size: clamp(32px, 3.8vw, 48px); }
.cpage .lead { margin-top: 16px; }
.crumbs { color: var(--muted); font-size: 15px; margin-bottom: 8px; } .crumbs a { color: var(--green-ink); }
.note2 { margin-top: 20px; color: var(--muted); }
.more-c { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.more-c a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); text-decoration: none; font-weight: 500; }

/* Laptop as a button (opens the screen full size on phones); the dialog itself. */
.laptop-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: default; font: inherit; color: inherit; }
.zoom-hint, .swipe { display: none; }
.zoom { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0b0d; }
.zoom::backdrop { background: rgba(0, 10, 30, .7); }
.zoom-scroll { height: 100%; overflow: auto; overscroll-behavior: contain; display: grid; place-items: center; }
.zoom-scroll img { height: min(100dvh, 900px); width: auto; max-width: none; }
.zoom-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: #fff; color: var(--navy); font: inherit; font-weight: 600; }

/* ---------- Phone width ---------- */
@media (max-width: 960px) {
  body { font-size: 16px; }
  .links { display: none; }
  .signin { margin-left: auto; }
  .hero { padding: 16px 0 90px; }
  .hero .wrap, .story, .calc, .countries, .demo, .prices, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 540px; overflow-x: clip; }
  .stage .front { --dw: 236px; left: 2%; }
  .stage .back { --dw: 200px; right: 2px; top: 64px; }
  /* Phones: the navy shape stays in the corner above the headline, never across it. */
  .hero::after { right: -170px; top: -230px; width: 260px; height: 260px; }
  .signin, .top .btn { white-space: nowrap; }
  .top .brand img { height: 34px; }
  .signin { padding: 0 8px; font-size: 15px; } .top .btn-green { width: auto; padding: 0 14px; } .top .wrap { gap: 6px; }
  .cpage { grid-template-columns: minmax(0, 1fr); }
  .stage .chip { left: 0; bottom: 18px; }
  .three, .start, .faq, .extras { grid-template-columns: minmax(0, 1fr); }
  .block { padding: 80px 0; }
  .pin { display: none; }
  .steps { padding-left: 0; }
  .rail, .step .n { display: none; }
  /* The lending day becomes a row of cards you swipe through, phone first. */
  .steps { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -20px; padding: 6px 20px 24px; scroll-padding: 0 20px; }
  .steps::-webkit-scrollbar { display: none; }
  .step, .step:first-child { flex: 0 0 84%; min-height: 0; padding: 22px 20px 24px; scroll-snap-align: center; justify-content: flex-start;
    background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 18px 36px -24px rgba(0, 27, 83, .35); }
  .step .inline { display: block; order: -1; margin: 4px auto 26px; --dw: 200px; }
  .step .inline::after { display: none; }
  .step h3 { font-size: 22px; }
  .step .lead { font-size: 16px; }
  .ticks { gap: 6px; margin-top: 14px; font-size: 15px; }
  .swipe { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
  .swipe .dots { display: flex; gap: 6px; }
  .swipe .dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .3s var(--ease-out), background-color .3s; }
  .swipe .dots i.on { width: 22px; background: var(--green); }
  .count { font-variant-numeric: tabular-nums; min-width: 3em; }
  /* The calculator's answer stays in view while the sliders move. */
  .calc { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .calc > div:last-child { display: contents; }
  .result { order: -1; position: sticky; top: 70px; z-index: 5; padding: 16px 20px; box-shadow: 0 18px 30px -18px rgba(0, 27, 83, .6); }
  .result::after { display: none; }
  .result .big { font-size: 34px; }
  .totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
  .totals b { font-size: 15px; } .totals small { font-size: 12px; }
  .panel { padding: 20px; }
  .schedule { font-size: 13px; } .schedule th, .schedule td { padding: 8px 4px; }
  /* Laptop: full width, and a tap opens the screen full size. */
  .office .laptop { width: calc(100vw - 16px); margin-left: calc(50% - 50vw + 8px); font-size: calc((100vw - 16px) / 90); }
  .laptop-btn { cursor: zoom-in; }
  .zoom-hint { display: block; margin-top: 18px; color: var(--green-ink); font-weight: 600; font-size: 15px; text-align: center; }
  .top.scrolled { background: rgba(255, 255, 255, .95); }
  /* Sections off screen are not laid out or painted until they come near (big win on slow phones). */
  .band, .office, #countries, #demo, #prices, #questions, .contact { content-visibility: auto; contain-intrinsic-size: auto 900px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .demo .video { max-width: 340px; margin-inline: auto; }
  .plans thead { display: none; }
  .plans td { display: block; border-bottom: 0; padding: 3px 20px; }
  .plans tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .plans tr:last-child { border-bottom: 0; }
  .plans td.r { text-align: left; }
  .plans td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-weight: 400; font-size: 15px; }
}

/* ================================================================================================
   Motion. Everything below is extra: without it the page is complete and still.
   ================================================================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Words of the headline rise into place once, staggered. */
  .js .hero h1 .w { opacity: 0; transform: translateY(.45em); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); }
  .js .hero .lead, .js .hero .actions, .js .hero .offer { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) .45s forwards; }
  .js .stage .device, .js .stage .chip { opacity: 0; animation: arrive 1.2s var(--ease-out) forwards; }
  .js .stage .front { animation-delay: .2s; } .js .stage .back { animation-delay: .35s; } .js .stage .chip { animation-delay: .9s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes arrive { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
  /* A gentle drift for touch screens, where there is no pointer to follow. */
  @media (hover: none) { .stage-inner { animation: drift 9s ease-in-out infinite alternate; } }
  /* Flat on purpose: phones rasterise 3D-rotated layers at low resolution and the screens go soft. */
  @keyframes drift { from { translate: 0 -6px; } to { translate: 0 6px; } }

  @supports (animation-timeline: view()) {
    /* Reading progress, tied to the scroll position itself. */
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }
    /* Section headings settle in as they enter. */
    .head, .band h2, .three > div, .start > div, .extras > div { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes settle { from { opacity: 0; transform: translateY(28px); } }
    /* The laptop opens as it scrolls into view: the lid is hinged at its bottom edge. */
    .lt-lid { animation: open linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes open { from { transform: rotateX(-82deg); filter: brightness(.55); } to { transform: rotateX(0); filter: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Country pages: local detail for the markets we sell in */
.local { display: grid; gap: 18px; margin-top: 26px; }
.local h2 { font-size: 18px; margin: 0 0 6px; }
.local p { margin: 0; color: var(--muted); }
/* Under the hero phones, for visitors outside Zambia */
.stage-note { margin: 14px auto 0; max-width: 34ch; text-align: center; font-size: 13px; color: var(--muted); }
/* The footer's last line: a bigger tap area for its link */
footer .made a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
