/* Adelanto. Structure after the best money-transfer product pages: a working calculator as the hero, one brand
   colour (the celeste of the flag) on white, heavy all-caps display, large rounded cards, pill buttons.
   Type: Archivo (Omnibus-Type, Buenos Aires); Chivo Mono only for transaction hashes. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/static/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/static/fonts/chivo-mono.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --paper-2: #f1f5f9;
  --card: #ffffff;
  --ink: #0e2a47;
  --ink-2: #344a61;
  --muted: #687b8f;
  --line: rgba(14, 42, 71, 0.12);
  --line-2: rgba(14, 42, 71, 0.24);
  --celeste: #74acdf;
  --celeste-2: #a9cdef;
  --celeste-ink: #1d5f9e;
  --celeste-wash: #e6f1fb;
  --sol: #ffc629;
  --sol-ink: #7a5600;
  --sol-wash: #fff4d1;
  --navy: #0b2440;
  --ok: #157347;
  --ok-wash: #def3e6;
  --warn: #a35f00;
  --warn-wash: #fdf0d5;
  --bad: #c0261c;
  --bad-wash: #fbe3e0;

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 16px;
  --r-lg: 32px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 2px 4px rgba(14, 42, 71, 0.04), 0 18px 48px -12px rgba(14, 42, 71, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--celeste-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
::selection { background: var(--celeste-2); color: var(--ink); }
:focus-visible { outline: 3px solid var(--celeste); outline-offset: 2px; border-radius: 6px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--sans); color: var(--ink); }
h1, h2, .display { font-weight: 900; font-stretch: 78%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; }
h1 { font-size: clamp(48px, 6.6vw, 92px); }
h2 { font-size: clamp(38px, 4.8vw, 68px); }
h3 { font-weight: 700; font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--celeste-ink); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); display: block; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.tx { font: 400 13px/1.4 var(--mono); color: var(--celeste-ink); word-break: break-all; }
code { font-family: var(--mono); font-size: 0.9em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Nav ---------- */
.nav { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.brand .mark { width: 28px; height: 28px; border-radius: 9px; background: var(--celeste); display: grid; place-items: center; color: var(--ink); font-weight: 900; font-size: 18px; line-height: 1; }
.brand .word { font-weight: 900; font-stretch: 80%; font-size: 26px; letter-spacing: -0.01em; line-height: 1; }
.nav .links { display: flex; gap: 6px; margin-right: auto; margin-left: 18px; }
.nav .links a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; transition: background 0.15s; }
.nav .links a:hover, .nav .links a[aria-current="page"] { background: var(--paper-2); }
.nav .lang { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); margin-left: auto; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 15.5px; }
@media (max-width: 860px) { .nav .links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--celeste); color: var(--ink);
  font: 700 16.5px/1 var(--sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.btn:hover { background: var(--celeste-2); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.sol { background: var(--celeste); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #173d63; color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--celeste-wash); }
.btn.block { display: flex; width: 100%; }
.btn { max-width: 100%; }
.btn > span { min-width: 0; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.btns .btn { padding: 0 12px; white-space: normal; line-height: 1.2; text-align: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Cards (app screens) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h3 { margin-bottom: 8px; }
.card-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.figure { font-weight: 900; font-stretch: 80%; font-size: clamp(44px, 5.4vw, 64px); line-height: 0.95; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.figure.sm { font-size: clamp(32px, 3.4vw, 42px); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row > span:first-child { color: var(--ink-2); }
.row .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.row.total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 2px; padding-top: 14px; }
.row.total .v { font-size: 20px; }
.save { color: var(--ok); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.pill.ok { background: var(--ok-wash); color: var(--ok); }
.pill.sol { background: var(--sol-wash); color: var(--sol-ink); }
.pill.celeste { background: var(--celeste-wash); color: var(--celeste-ink); }
.notice { border-radius: var(--r); padding: 14px 18px; background: var(--warn-wash); color: #5a3500; }
.notice.bad { background: var(--bad-wash); color: #5c1410; }
.notice + * { margin-top: 12px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 8px; color: var(--ink-2); }
input[type="text"], input:not([type]), input[inputmode], select {
  width: 100%; min-height: 58px; padding: 10px 16px; border-radius: var(--r); border: 2px solid var(--line-2);
  background: #fff; color: var(--ink); font: 700 22px/1 var(--sans); font-variant-numeric: tabular-nums; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: 0; border-color: var(--celeste-ink); box-shadow: 0 0 0 4px var(--celeste-wash); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 28px; color: var(--muted); }
.money input { padding-left: 40px; font-weight: 900; font-stretch: 85%; font-size: 34px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--celeste-ink); margin: 0; }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 999px; background: var(--paper-2); }
.terms label { margin: 0; }
.terms input { position: absolute; opacity: 0; pointer-events: none; }
.terms span { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-height: 46px; padding-top: 12px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink-2); transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.terms span small { font-weight: 500; font-size: 13px; }
.terms input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(14, 42, 71, 0.14); }
.terms input:focus-visible + span { outline: 3px solid var(--celeste); }
details.card > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; font-size: 26px; font-weight: 400; transition: transform 0.25s var(--ease); }
details.card[open] > summary::after { transform: rotate(45deg); }
#status:not(:empty) { padding: 12px 14px; margin: 12px 0; border-radius: var(--r); background: var(--paper-2); font-weight: 600; font-size: 15px; }
#status.ok { background: var(--ok-wash); color: var(--ok); }
#status.bad { background: var(--bad-wash); color: var(--bad); }

/* ---------- Health meter ---------- */
.meter { position: relative; margin: 22px 0 34px; }
.meter .track { height: 14px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, var(--ok-wash) 0 75%, var(--warn-wash) 75% 87.5%, var(--bad-wash) 87.5%); }
.meter .fill { height: 100%; width: 0; border-radius: 999px; background: var(--ok); transition: width 1.2s var(--ease); }
.meter.atencion .fill { background: var(--warn); }
.meter.riesgo .fill, .meter.liquidable .fill { background: var(--bad); }
.meter .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--ink); }
.meter .mark span { position: absolute; top: 24px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
.band-tranquilo { color: var(--ok); }
.band-atencion { color: var(--warn); }
.band-riesgo, .band-liquidable { color: var(--bad); }

/* ---------- Lists ---------- */
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.log li:first-child { padding-top: 0; }
.log li:last-child { border-bottom: 0; padding-bottom: 0; }
.addr-list { display: grid; }
.addr-list a { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.addr-list a:last-child { border-bottom: 0; }
.addr-list a:hover { color: var(--celeste-ink); }
.addr-list a span:last-child { font: 400 13px/1.6 var(--mono); color: var(--muted); }
.quote { font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 14px 0; }

/* ---------- App shell ---------- */
.app-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.app-head h1 { font-size: clamp(44px, 6vw, 80px); margin-top: 10px; }
.app-head .lede { margin: 16px 0 0; }
.app-main { padding-bottom: 96px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpis .card { margin: 0; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs .card { margin: 0; box-shadow: none; }
.vs .card:not(.them) { background: var(--celeste-wash); border-color: transparent; }
.vs .card.them { background: var(--paper-2); border-color: transparent; }
.vs .card.them .figure { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--bad); }

/* ---------- Footer ---------- */
.foot { background: var(--paper-2); color: var(--ink-2); padding-block: 64px 40px; font-size: 14.5px; margin-top: 24px; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 4px 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 10px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--celeste-ink); text-decoration: underline; }
.foot .credits { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ================= LANDING ================= */

/* Hero with the calculator */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 28px; }
.hero .sub-cta { margin-top: 16px; font-size: 15px; color: var(--muted); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

.calc { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); box-shadow: 0 2px 6px rgba(14, 42, 71, 0.05), 0 30px 70px -20px rgba(14, 42, 71, 0.28); border: 1px solid var(--line); }
.calc .c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.calc .c-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); padding: 6px 12px; border-radius: 999px; }
.calc .c-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb36a; box-shadow: 0 0 0 0 rgba(47, 179, 106, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 179, 106, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(47, 179, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 179, 106, 0); } }
.calc .field { border: 2px solid var(--line-2); border-radius: 20px; padding: 12px 18px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.calc .field:focus-within { border-color: var(--celeste-ink); box-shadow: 0 0 0 4px var(--celeste-wash); }
.calc .field label { margin: 0 0 2px; font-size: 14px; color: var(--muted); }
.calc .field .in { display: flex; align-items: center; gap: 12px; }
.calc .field input { border: 0; padding: 0; min-height: 0; box-shadow: none; font-weight: 900; font-stretch: 85%; font-size: clamp(36px, 4vw, 46px); letter-spacing: -0.01em; background: transparent; }
.calc .field input:focus { box-shadow: none; }
.calc .cur { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; padding: 8px 12px; border-radius: 999px; background: var(--paper-2); }
.calc .flag { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#74acdf 0 33%, #fff 33% 67%, #74acdf 67%); box-shadow: inset 0 0 0 1px rgba(14, 42, 71, 0.15); position: relative; }
.calc .flag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #f6b40e; }
.calc .flag.us { background: repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); }
.calc .flag.us::after { width: 9px; height: 9px; left: 0; top: 0; margin: 0; border-radius: 0; background: #3c3b6e; }
.calc .terms { margin: 14px 0 6px; }
.calc .lines { margin: 14px 0 0; }
.calc .ln { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; font-size: 15.5px; }
.calc .ln + .ln { border-top: 1px dashed var(--line); }
.calc .ln span:first-child { color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.calc .ln .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.calc .ln .ic svg { width: 16px; height: 16px; }
.calc .ln b { font-weight: 800; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.calc .ln b.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: translateY(-2px); color: var(--celeste-ink); } }
.calc .ln.bank b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.calc .save-box { margin: 12px 0 16px; padding: 14px 18px; border-radius: 20px; background: var(--celeste-wash); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc .save-box span { font-weight: 700; color: var(--celeste-ink); }
.calc .save-box b { font-weight: 900; font-stretch: 85%; font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc .note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 1.4em; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 8px 40px; }
.trust div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
.trust .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; }
.trust .ic svg { width: 20px; height: 20px; }
.trust b { font-weight: 800; font-size: 16px; }
.trust span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 18px; } }

/* Brand band */
.band { background: var(--celeste); padding-block: var(--section); text-align: center; }
.band h2 { max-width: 14ch; margin-inline: auto; }
.band .lede { margin: 18px auto 26px; color: #133556; }
.band .cta-row { justify-content: center; }
.band .btn.dark { box-shadow: 0 10px 24px -12px rgba(11, 36, 64, 0.6); }
.cmp { margin: 44px auto 0; max-width: 860px; background: #fff; border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); text-align: left; box-shadow: 0 30px 60px -30px rgba(11, 36, 64, 0.45); }
.cmp .cmp-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.cmp .cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp .opt { border-radius: 22px; padding: 22px; }
.cmp .opt.us { background: var(--celeste-wash); box-shadow: inset 0 0 0 2px var(--celeste); }
.cmp .opt.them { background: var(--paper-2); }
.cmp .opt .who { font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.cmp .opt .amt { font-weight: 900; font-stretch: 80%; font-size: clamp(40px, 5vw, 60px); line-height: 1; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.cmp .opt.them .amt { color: var(--muted); }
.cmp .opt p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.cmp .bar { height: 10px; border-radius: 999px; background: rgba(14, 42, 71, 0.08); margin-top: 16px; overflow: hidden; }
.cmp .bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 1.4s var(--ease); }
.cmp .opt.us .bar i { background: var(--celeste-ink); }
.cmp .opt.them .bar i { background: var(--muted); }
.cmp.in .opt.us .bar i { width: var(--w); }
.cmp.in .opt.them .bar i { width: 100%; }
@media (max-width: 640px) { .cmp .cmp-grid { grid-template-columns: 1fr; } }

/* Feature with illustration */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature h2 { margin-bottom: 20px; }
.feature .art { border-radius: var(--r-lg); background: var(--celeste-wash); padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; min-height: 380px; display: grid; place-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature .art { order: -1; min-height: 300px; } }
.icons3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(48px, 6vw, 72px); }
.icons3 .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 14px; }
.icons3 .ic svg { width: 22px; height: 22px; }
.icons3 b { display: block; font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.icons3 p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 760px) { .icons3 { grid-template-columns: 1fr; } }

/* The phone in the illustration: the real loan screen */
.mini-phone { width: min(300px, 80%); border-radius: 36px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -24px rgba(11, 36, 64, 0.55); transform: rotate(-4deg); transition: transform 0.8s var(--ease); }
.reveal.in .mini-phone { transform: rotate(-2deg); }
.mini-phone .scr { background: #fff; border-radius: 28px; padding: 22px 18px 20px; }
.mini-phone .t { font-size: 12px; font-weight: 700; color: var(--muted); }
.mini-phone .big { font-weight: 900; font-stretch: 80%; font-size: 38px; line-height: 1; margin: 6px 0 14px; }
.mini-phone .mtrack { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--ok-wash) 0 75%, var(--warn-wash) 75% 87.5%, var(--bad-wash) 87.5%); overflow: hidden; }
.mini-phone .mtrack i { display: block; height: 100%; border-radius: 999px; background: var(--ok); width: 0; animation: health 7s 0.8s var(--ease) infinite; }
@keyframes health { 0% { width: 55%; background: var(--ok); } 30% { width: 89%; background: var(--warn); } 45% { width: 89%; background: var(--warn); } 60% { width: 75%; background: var(--ok); } 100% { width: 55%; background: var(--ok); } }
.mini-phone .msg { margin-top: 16px; background: var(--celeste-wash); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; animation: msg 7s 0.8s infinite; opacity: 0; }
@keyframes msg { 0%, 38% { opacity: 0; transform: translateY(8px); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mini-phone .msg b { display: block; font-size: 12px; color: var(--celeste-ink); margin-bottom: 2px; }
.mini-phone .mrow { display: flex; justify-content: space-between; font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-phone .mrow b { font-weight: 800; }
.mini-phone .mbtn { margin-top: 14px; border-radius: 999px; background: var(--celeste); text-align: center; padding: 12px; font-weight: 800; font-size: 14px; }

/* Big rounded cards */
.bigcard { border-radius: var(--r-lg); padding: clamp(32px, 6vw, 80px); position: relative; overflow: hidden; }
.bigcard.navy { background: var(--navy); color: #fff; }
.bigcard.navy h2 { color: #fff; }
.bigcard.navy h2 em { color: var(--celeste); }
.bigcard.navy .lede { color: rgba(255, 255, 255, 0.78); }
.bigcard .bc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .bigcard .bc-grid { grid-template-columns: 1fr; } }
.rate-tiles { display: grid; gap: 12px; }
.rate-tiles div { background: rgba(255, 255, 255, 0.08); border-radius: 22px; padding: 20px 22px; }
.rate-tiles div.hi { background: var(--celeste); color: var(--ink); }
.rate-tiles b { display: block; font-weight: 900; font-stretch: 80%; font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.rate-tiles span { font-size: 14.5px; opacity: 0.85; }

.photo-card { min-height: 520px; display: flex; align-items: flex-end; color: #fff; }
.photo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.photo-card.in > img, .photo-card:hover > img { transform: scale(1); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 36, 64, 0.05) 30%, rgba(11, 36, 64, 0.85)); }
.photo-card .pc-body { position: relative; z-index: 1; max-width: 640px; }
.photo-card h2 { color: #fff; }
.photo-card .lede { color: rgba(255, 255, 255, 0.86); margin: 16px 0 26px; }
.photo-card .credit { position: absolute; z-index: 1; right: 18px; top: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }

/* Proof cards row */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.steps-row .st { background: var(--paper-2); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.25s var(--ease), background 0.25s; }
.steps-row .st:hover { transform: translateY(-4px); background: var(--celeste-wash); }
.steps-row .st .n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps-row .st b { font-weight: 800; font-size: 17px; line-height: 1.3; }
.steps-row .st .tx { margin-top: auto; }
@media (max-width: 900px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }
.proof-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.proof-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.proof-sum span { background: var(--paper-2); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; }
.proof-sum span b { font-weight: 900; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230e2a47' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.no-js .reveal { opacity: 1; transform: none; }
.hero-in > * { animation: rise 0.8s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: 0.06s; } .hero-in > :nth-child(3) { animation-delay: 0.12s; } .hero-in > :nth-child(4) { animation-delay: 0.18s; } .hero-in > :nth-child(5) { animation-delay: 0.24s; }
.calc { animation: rise 0.9s 0.15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .cmp .opt.us .bar i { width: var(--w); } .cmp .opt.them .bar i { width: 100%; }
  .mini-phone .msg { opacity: 1; }
  .mini-phone .mtrack i { width: 62%; }
}
@media (max-width: 600px) {
  .section { padding-block: 64px; }
  .bigcard { border-radius: 26px; }
  .wrap.cards { padding-inline: 12px; }
}
.hero .wrap.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; padding-block: 0 56px; }
@media (max-width: 760px) { .hero .wrap.trust { grid-template-columns: 1fr; gap: 18px; } }
.photo-card::after { background: linear-gradient(180deg, rgba(11, 36, 64, 0.15) 0%, rgba(11, 36, 64, 0.55) 40%, rgba(11, 36, 64, 0.92) 100%); }
.photo-card h2, .photo-card .lede { text-shadow: 0 1px 12px rgba(11, 36, 64, 0.35); }
.btn { white-space: nowrap; }
.btn.block { white-space: normal; line-height: 1.2; }
@media (max-width: 480px) { .nav .wrap { gap: 10px; } .nav .btn { padding: 0 14px; font-size: 14.5px; } .brand .word { font-size: 23px; } }

/* the agent: feed, live dot, rule quote */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 14px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; padding-top: 4px; }
.feed-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.feed p { margin: 6px 0; color: var(--ink-2); overflow-wrap: anywhere; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); padding: 6px 12px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.live.on i { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.15); }
.agent-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.rule-q { margin: 22px 0 26px; padding: 16px 18px; border-left: 3px solid var(--celeste); background: var(--celeste-wash); border-radius: 0 12px 12px 0; font-size: 17px; color: var(--ink); }
.rule-q span { display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .agent-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* mi historial */
.ladder { list-style: none; margin: 20px 0 0; padding: 0; }
.ladder li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ladder .lad-n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--paper-2); color: var(--muted); }
.ladder li.done .lad-n { background: var(--celeste-2); color: var(--ink); }
.ladder li.here .lad-n { background: var(--celeste); color: var(--ink); }
.ladder .lad-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ladder .lad-b span { font-size: 14.5px; color: var(--muted); }
.ladder li.here .lad-b b { color: var(--ink); }
.hist-row { display: flex; gap: 10px; }
.hist-row input { flex: 1; min-width: 0; font: 400 15px var(--mono); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); }

/* The agent's price check, drawn from its own once-a-minute readings */
.price-card { grid-column: 1 / -1; }
.price-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.price-now b { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.price-card .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.price-card .legend span::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.price-card .legend .k-pool::before { border-color: var(--celeste-ink); }
.price-card .legend .k-binance::before { border-color: var(--sol); }
.price-card .legend .k-dolarapi::before { border-top-style: dashed !important; border-top-width: 2px !important; border-color: var(--muted); }
.price-plot { position: relative; margin-top: 16px; padding-left: 64px; }
.price-plot .plot-area { position: relative; margin-left: 0; height: clamp(150px, 22vw, 210px); }
.price-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.price-plot path, .price-plot line { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.price-plot .grid { stroke: var(--line); stroke-width: 1; }
.price-plot .l-pool { stroke: var(--celeste-ink); stroke-width: 3; }
.price-plot svg { clip-path: inset(-10px 100% -10px -10px); transition: clip-path 1.8s var(--ease); }
.price-card.in .price-plot svg, .no-js .price-plot svg { clip-path: inset(-10px); }
.price-plot .dot-now { opacity: 0; transition: opacity 0.4s 1.6s; }
.price-card.in .dot-now, .no-js .dot-now { opacity: 1; }
.price-plot .l-binance { stroke: var(--sol); stroke-width: 2.5; }
.price-plot .l-dolarapi { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.price-plot .dot-now { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--celeste-ink); box-shadow: 0 0 0 2px #fff; }
.price-plot .dot-now::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--celeste-ink); opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.price-plot .y-ticks { position: absolute; left: -64px; top: 0; width: 58px; height: 100%; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-plot .y-ticks span { position: absolute; right: 0; transform: translateY(-50%); }
.price-plot .x-ticks { display: flex; justify-content: space-between; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .price-plot svg { transition: none; clip-path: none; } .price-plot .dot-now { opacity: 1; transition: none; } .price-plot .dot-now::after { animation: none; } }

/* What the agent told a wallet (notices and the weekly summary) */
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notices li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.notices li.weekly { background: var(--celeste-wash); border-color: transparent; }
.notices .n-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.notices .n-head span { white-space: nowrap; }
.notices p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Cash-out to a bank through Ripio */
.steps-sm { margin: 10px 0 16px; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.steps-sm li + li { margin-top: 4px; }

/* Rating the agent on ERC-8004 after a closed loan */
.rate .stars { display: flex; gap: 6px; }
.rate .stars button { font-size: 30px; line-height: 1; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); color: var(--line-2); cursor: pointer; transition: color 0.15s, background 0.15s; }
.rate .stars:hover button { color: var(--sol); background: var(--sol-wash); }
.rate .stars button:hover ~ button { color: var(--line-2); background: var(--paper); }
.rate .stars button:focus-visible { outline: 2px solid var(--celeste-ink); outline-offset: 2px; }
.stars-done { color: var(--sol); font-size: 22px; letter-spacing: 2px; }
.rep-line { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.rep-line .stars-done { font-size: 16px; letter-spacing: 1px; }
