/* The client's offer page. Phone first; above 960px wide it becomes the
   two-column desktop layout. Nothing is loaded from any other site: the two
   fonts are served from /c/fonts/ (SIL Open Font License, copies beside them). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/c/fonts/plus-jakarta-sans.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/c/fonts/jetbrains-mono.woff2) format("woff2"); }

:root {
  --blue: #1e64d6; --blue7: #154aa3; --blue5: #4a85e0; --b300: #7aaae9; --b100: #dbe7f8; --b50: #eef3fb; --sky: #b7d0f4;
  --ink: #0b1220; --ink7: #2a3650; --ink6: #4a5673; --ink5: #6b7693; --ink4: #8c95ad; --ink3: #b7bdcc;
  --line2: #d6dae4; --line: #e6e9f0; --soft: #eef2f9; --tint: #f4f7fd;
  --good: #0f7a4a; --good-wash: #f1faf5; --good-line: #bfe3cf; --good-tag: #d7efe2;
  --warn: #8a5300; --warn-wash: #fff4dd; --bad: #b3261e; --bad-wash: #fdecea;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.45 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--b300); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.c { text-align: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { background: var(--blue7); color: #fff; }
.top-in { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.logo .ef { width: 26px; height: 26px; border-radius: 3px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.logo em { font-style: normal; color: var(--sky); }
.logo img { display: block; height: 26px; width: auto; }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--b100); white-space: nowrap; }
.secure .long { display: none; }

/* Blue hero: business, hello, and on phones the funding amount */
.hero { background: var(--blue7); color: #fff; }
.hero-in { padding-top: 16px; padding-bottom: 24px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.hero h1 { margin-top: 8px; font-size: 32px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.hero .hello { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--b100); }
.hero-amt { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hero-amt .lab { font-size: 14px; font-weight: 600; color: var(--b100); }
.hero-amt .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-amt .big { margin-top: 4px; font-size: 50px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.hero-amt .steps { display: flex; gap: 8px; padding-bottom: 2px; }
.hero-amt input[type=range] { margin-top: 12px; }
.stepw { flex: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 20px; font-weight: 700; line-height: 1; }
.stepw:active { background: rgba(255, 255, 255, 0.25); }
.stepw:disabled { opacity: 0.35; }
.ends { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink5); }
.hero .ends { color: var(--sky); }

/* Slider */
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--blue) var(--fill, 100%), var(--line2) var(--fill, 100%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--blue), 0 3px 10px rgba(30, 100, 214, 0.35); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 4px solid #fff; }
.hero input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(to right, #fff var(--fill, 100%), rgba(255, 255, 255, 0.25) var(--fill, 100%)); }
.hero input[type=range]::-webkit-slider-thumb { background: #fff; border: 4px solid var(--blue7); box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0, 0, 0, 0.3); }
.hero input[type=range]::-moz-range-track { background: rgba(255, 255, 255, 0.25); }
.hero input[type=range]::-moz-range-progress { background: #fff; }
.hero input[type=range]::-moz-range-thumb { background: #fff; border: 4px solid var(--blue7); }
.hero :focus-visible { outline-color: #fff; }

/* Page body */
.body { max-width: 1160px; margin: 0 auto; padding: 0 16px calc(40px + env(safe-area-inset-bottom)); }
.sec { padding: 24px 0; border-bottom: 1px solid var(--line); }
.h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.head-l { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.hint { font-size: 13.5px; line-height: 1.45; color: var(--ink6); }
.sec > .hint { margin-top: 6px; }
.banner { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-size: 14px; font-weight: 600; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--blue7); }

/* Amount (desktop card) */
.amt-row { margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.amt-big { min-width: 210px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--blue); }
.amt-fixed { margin-top: 10px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--blue); }
.stepb { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--b50); color: var(--blue7); font-size: 22px; font-weight: 700; line-height: 1; }
.stepb:disabled { opacity: 0.4; }

/* Term */
.pills { display: flex; padding: 3px; background: var(--soft); border-radius: 99px; }
.pill { height: 32px; padding: 0 12px; border: 0; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: transparent; color: var(--ink6); }
.pill.on { background: #fff; color: var(--blue7); box-shadow: 0 1px 3px rgba(11, 18, 32, 0.14); }
.track-box { margin-top: 26px; }
.track { position: relative; height: 44px; }
.track .rail, .track .fill { position: absolute; left: 22px; top: 20px; height: 4px; border-radius: 2px; }
.track .rail { right: 22px; background: var(--line); }
.track .fill { background: var(--blue); transition: width 0.2s; }
.track .nodes { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.node { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.node i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--ink3); transition: all 0.15s; }
.node.done i { background: var(--blue); border-color: var(--blue); }
.node.on i { width: 26px; height: 26px; background: var(--blue); border: 5px solid #fff; box-shadow: 0 0 0 2px var(--blue), 0 3px 10px rgba(30, 100, 214, 0.35); }
.labs { display: flex; justify-content: space-between; margin-top: 6px; }
.tlab { width: 64px; margin: 0 -10px; padding: 0; border: 0; background: none; text-align: center; color: var(--ink5); }
.tlab.on { color: var(--blue); }
.tlab b { display: block; font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.tlab span { display: block; font-size: 11.5px; font-weight: 600; }
.tlab small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; color: var(--ink5); }
.tnote { margin-top: 18px; padding: 12px 14px; background: var(--tint); border-radius: 8px; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.tnote span:first-child { color: var(--ink6); }
.tnote span:last-child { font-family: var(--mono); font-weight: 600; color: var(--blue7); white-space: nowrap; }

/* Daily / weekly, and packages */
.opts { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { min-height: 64px; padding: 11px 14px; text-align: left; border-radius: 10px; border: 1px solid var(--line2); background: #fff; margin: 1px; }
.opt.on { border: 2px solid var(--blue); background: var(--b50); margin: 0; }
.opt b { display: block; font-size: 15px; }
.opt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink6); }
.pkgs { margin-top: 12px; display: grid; gap: 10px; }
.pkg { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 14px; text-align: left; border-radius: 12px; border: 1px solid var(--line2); background: #fff; margin: 1px; }
.pkg.on { border: 2px solid var(--blue); background: var(--b50); margin: 0; }
.pkg .pl { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink5); }
.pkg.on .pl { color: var(--blue7); }
.pkg .pa { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.pkg .pp { font-size: 16px; font-weight: 700; text-align: right; }
.pkg .ps { font-size: 13px; color: var(--ink6); }
.pkg .ps.r { text-align: right; }

/* The calculation (phones) */
.calc { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.calc-top, .sum-top { padding: 20px 18px 18px; background: var(--tint); }
.calc-top .lab, .sum-top .lab { font-size: 14px; font-weight: 600; color: var(--ink6); }
.pay-row { margin-top: 4px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.pay-row .pay { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--blue7); }
.pay-row .per { font-size: 15px; font-weight: 600; color: var(--ink5); }
.cnt { margin-top: 4px; font-size: 13px; color: var(--ink6); }
.bar { margin-top: 16px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--b300); }
.bar > div { height: 100%; width: 100%; background: var(--blue); transition: width 0.2s; }
.legend { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink6); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.legend i.k2 { background: var(--b300); }
.rows { padding: 4px 18px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--ink6); }
.rows dd { font-weight: 700; text-align: right; }

/* Documents and statements */
.badge { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink6); white-space: nowrap; }
.badge.req { background: var(--warn-wash); color: var(--warn); }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft); }
.doc:first-of-type { margin-top: 8px; }
.doc-text { flex: 1; min-width: 0; }
.doc-text b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.st { display: block; font-size: 13px; color: var(--ink5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st.need { color: var(--warn); }
.st.ok { color: var(--good); font-weight: 600; }
.st.err { color: var(--bad); white-space: normal; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--ink3); color: #fff; }
.tick.on { border: 0; background: var(--good); }
.tick.busy { border: 3px solid var(--b100); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
.filebtn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--b50); color: var(--blue7); font-weight: 700; font-size: 14px; cursor: pointer; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filebtn:focus-within { outline: 3px solid var(--b300); outline-offset: 2px; }
.filebtn.busy { opacity: 0.6; pointer-events: none; }
.tiles { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 16px; border-radius: 12px; border: 1.5px dashed var(--ink3); background: #fbfcfe; transition: border-color 0.15s, background 0.15s; }
.tile.busy, .tile.over { border: 1.5px solid var(--blue); background: var(--b50); }
.tile.on { border: 1px solid var(--good-line); background: var(--good-wash); }
.tile .nm { font-size: 15px; font-weight: 700; }
.tile .st { flex: 1; font-size: 12.5px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.tile .filebtn { align-self: flex-start; min-height: 36px; background: var(--blue); color: #fff; font-size: 13.5px; }
.tag { align-self: flex-start; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--soft); color: var(--ink6); }
.tag.need { background: var(--warn-wash); color: var(--warn); }
.tag.ok { background: var(--good-tag); color: var(--good); }
.dropsm { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; padding: 8px 12px; border: 1.5px dashed var(--b300); border-radius: 12px; background: #f8fbff; color: var(--blue7); font-size: 14.5px; font-weight: 700; text-align: center; cursor: pointer; }
.drop { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 20px 16px; border: 1.5px dashed var(--b300); border-radius: 14px; background: #f8fbff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop.over { border-style: solid; border-color: var(--blue); background: var(--b50); }
.drop .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--b100); display: grid; place-items: center; }
.drop b { display: block; font-size: 15px; color: var(--blue7); }
.drop .sub { display: block; font-size: 13px; color: var(--ink6); }
.dropsm input, .drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropsm:focus-within, .drop:focus-within { outline: 3px solid var(--b300); outline-offset: 2px; }
.dropsm.busy, .drop.busy { opacity: 0.6; pointer-events: none; }
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 4px 12px 4px 6px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; }
.chip .tick { width: 22px; height: 22px; }
.chip.err { border-color: #f3c2bd; color: var(--bad); }
.chip span { overflow-wrap: anywhere; }

/* Accept */
.accept { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lbl { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.lbl i { font-style: normal; font-weight: 400; color: var(--ink5); }
.fld { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; font-size: 16px; }
.fld:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--b100); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink7); cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.bp { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(30, 100, 214, 0.28); text-decoration: none; }
.bp:active { background: var(--blue7); }
.bp:disabled { background: #c3cad6; box-shadow: none; }
.bs { width: 100%; min-height: 56px; padding: 8px 14px; border: 0; border-radius: 99px; background: var(--b50); color: var(--blue7); font-size: 14.5px; font-weight: 700; }
.bs small { display: block; font-size: 12px; font-weight: 500; color: var(--ink6); }
.bo { width: 100%; min-height: 50px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 99px; background: #fff; color: var(--ink7); font-size: 14.5px; font-weight: 700; }
.bs:disabled, .bo:disabled { opacity: 0.6; }
.actions .hint { font-size: 13px; }
.err-box { padding: 10px 12px; border-radius: 10px; background: var(--bad-wash); color: var(--bad); font-size: 14.5px; font-weight: 600; }
.fine { font-size: 12px; line-height: 1.5; color: var(--ink5); }

/* After acceptance */
.conf { display: inline-block; margin-top: 16px; padding: 8px 16px; border: 1px dashed rgba(255, 255, 255, 0.45); border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.conf span { display: block; font-size: 12px; color: var(--sky); }
.conf b { font-size: 20px; letter-spacing: 0.06em; }
.next { margin: 12px 0 0; padding-left: 20px; }
.next li { margin: 6px 0; }

/* Whole-page states */
.state { padding: 56px 8px; text-align: center; }
.state h1 { font-size: 24px; letter-spacing: -0.01em; }
.state p { margin-top: 8px; color: var(--ink6); }
.state .bp { max-width: 240px; margin: 16px auto 0; }
.spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 4px solid var(--b100); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Desktop: blue band, settings card on the left, pinned summary and accept on the right */
@media (min-width: 960px) {
  body { background: var(--tint); }
  .wrap, .body { padding-left: 32px; padding-right: 32px; }
  .top-in { height: 68px; }
  .logo { font-size: 19px; gap: 10px; }
  .logo .ef { width: 28px; height: 28px; font-size: 13px; }
  .secure { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px; font-size: 13px; }
  .secure .long { display: inline; }
  .hero-in { padding-top: 30px; padding-bottom: 150px; }
  .eyebrow { font-size: 12px; }
  .hero h1 { margin-top: 10px; font-size: 44px; line-height: 1.05; }
  .hero .hello { margin-top: 10px; font-size: 17px; }
  .body { display: flex; gap: 28px; align-items: flex-start; margin-top: -112px; padding-bottom: 72px; }
  .panel { flex: 1; min-width: 0; padding: 8px 36px 32px; background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 18px 40px rgba(11, 18, 32, 0.08); }
  .panel > .sec:last-child { border-bottom: 0; padding-bottom: 4px; }
  .side { flex: none; width: 400px; position: sticky; top: 24px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 18px 40px rgba(11, 18, 32, 0.12); }
  .h2 { font-size: 18px; }
  .sec { padding: 26px 0; }
  .track-box { margin: 30px 20px 0; }
  .tlab { width: 84px; margin: 0 -20px; }
  .tlab b { font-size: 22px; }
  .tlab span { font-size: 12px; }
  .opts { margin-top: 14px; gap: 12px; }
  .opt b { font-size: 16px; }
  .opt span { font-size: 13px; }
  .sum-top { padding: 24px 26px 22px; background: var(--ink); color: #fff; }
  .sum-top .lab { color: var(--ink3); }
  .sum-top .pay-row .pay { font-size: 50px; letter-spacing: -0.04em; color: #fff; }
  .sum-top .pay-row .per { color: var(--ink4); }
  .sum-top .bar { margin-top: 18px; background: var(--ink6); }
  .sum-top .bar > div { background: var(--blue5); }
  .sum-top .legend { color: var(--ink3); }
  .side .rows { padding: 6px 26px; }
  .side .rows > div { padding: 11px 0; }
  .side .accept { padding: 18px 26px 26px; border-top: 1px solid var(--line); gap: 10px; }
  .side .accept .h2 { font-size: 16px; }
  .side .lbl { font-size: 13px; gap: 4px; }
  .side .fld { height: 46px; font-size: 15px; }
  .side .agree { font-size: 13px; gap: 10px; }
  .side .agree input { width: 18px; height: 18px; }
  .side .bp { min-height: 54px; }
  .side .bs { min-height: 50px; font-size: 14px; }
  .side .bs small { font-size: 11.5px; }
  .side .fine { font-size: 11.5px; }
  .body.single { display: block; max-width: 760px; }
  .body.single .panel { padding: 8px 36px 28px; }
  .panel .calc { margin-top: 26px; }
  .banner, .note { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner, .tick.busy { animation-duration: 2.5s; }
  .track .fill, .bar > div, .node i { transition: none; }
}
