:root {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --stone: #E7E4DC;
  --stone-2: #EFEDE6;
  --ink: #0B1F2A;
  --ink-2: #12293A;
  --ink-line: #1F3542;
  --slate: #6B7A86;
  --slate-2: #8A96A0;
  --evergreen: #0F5C4D;
  --evergreen-hover: #0C4B3F;
  --emerald: #1FA37A;
  --emerald-light: #3CC796;
  --brass: #C9A227;
  --brass-soft: #F3E9C6;
  --brass-text: #8A6D12;
  --loss: #D2543F;
  --c-realestate: #3E7CB1;
  --c-crypto: #7B61C9;
  --c-cash: #2A9D8F;
  --c-stocks: #D08C2F;
  --c-retirement: #C2577A;
  --radius: 18px;
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px; transition: background .15s, transform .1s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--evergreen); color: var(--paper); }
.btn-primary:hover { background: var(--evergreen-hover); }
.btn-ghost { border: 1px solid var(--stone); background: var(--surface); }
.btn-ghost:hover { border-color: var(--slate-2); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 242, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--stone); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; }
.nav-links { display: none; gap: 28px; font-size: 15px; color: var(--slate); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .signin { display: none; font-size: 15px; font-weight: 500; padding: 8px 12px; }
.nav-cta .signin:hover { color: var(--evergreen); }

/* hero */
.hero { padding: 40px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-text); font-size: 13px; font-weight: 600; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); display: inline-block; }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 9vw, 68px); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--evergreen); }
.lede { margin-top: 20px; font-size: clamp(17px, 2.4vw, 20px); color: var(--slate); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--emerald); }

/* phone mockup */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before { content: ""; position: absolute; inset: 8% -10% 0; background: radial-gradient(closest-side, rgba(31, 163, 122, .18), transparent 70%); z-index: 0; }
.phone { position: relative; z-index: 1; width: min(330px, 86vw); border-radius: 44px; padding: 12px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(11, 31, 42, .45), 0 0 0 1px rgba(11, 31, 42, .08); }
.screen { border-radius: 33px; background: var(--paper); overflow: hidden; padding: 18px 16px 14px; }
.scr-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate); }
.scr-top b { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); font-weight: 600; }
.scr-top b img { width: 20px; height: 20px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--stone-2); color: var(--ink); }
.scr-card { margin-top: 12px; background: var(--surface); border: 1px solid var(--stone); border-radius: 16px; padding: 14px; }
.scr-label { font-size: 11px; color: var(--slate); }
.scr-total { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.gain { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--emerald); background: #DDF2E9; padding: 3px 8px; border-radius: 999px; }
.scr-chart { margin-top: 10px; height: 92px; }
.ranges { display: flex; gap: 2px; margin-top: 8px; background: var(--stone-2); border-radius: 9px; padding: 3px; font-size: 10px; font-weight: 600; color: var(--slate); }
.ranges span { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; }
.ranges .on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.alloc { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 10px; gap: 2px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--stone); font-size: 12px; }
.row:first-of-type { border-top: 0; }
.ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.row .nm { flex: 1; min-width: 0; }
.row .nm b { display: block; font-weight: 600; font-size: 12.5px; }
.row .nm small { color: var(--slate); font-size: 10.5px; }
.row .val { text-align: right; }
.row .val b { display: block; font-weight: 600; }
.row .val small { color: var(--slate); font-size: 10.5px; }
.tabbar { display: flex; justify-content: space-around; align-items: center; margin: 12px -16px -14px; padding: 8px 10px 12px; border-top: 1px solid var(--stone); background: var(--surface); color: var(--slate-2); }
.tabbar .fab { width: 40px; height: 40px; border-radius: 13px; background: var(--evergreen); color: var(--paper); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 6px 14px rgba(11,31,42,.25); }
.tabbar .active { color: var(--evergreen); }

/* floating cards beside the phone */
.float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--stone); border-radius: 14px; padding: 10px 12px; box-shadow: 0 14px 30px -12px rgba(11,31,42,.25); font-size: 12px; display: none; }
.float b { display: block; font-size: 14px; }
.float small { color: var(--slate); }
.float-1 { left: -4%; top: 22%; }
.float-2 { right: -6%; bottom: 18%; }
.fx { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.fx span { padding: 2px 6px; border-radius: 6px; background: var(--stone-2); font-size: 11px; }

/* logos strip / currencies */
.strip { border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); background: var(--surface); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--slate); }
.strip .cur { font-weight: 600; color: var(--ink); letter-spacing: .04em; }

/* sections */
section.block { padding: 80px 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--evergreen); }
.section-head { max-width: 640px; }
.section-head h2 { margin-top: 12px; font-size: clamp(30px, 5.5vw, 44px); font-weight: 600; }
.section-head p { margin-top: 16px; color: var(--slate); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.features { margin-top: 48px; display: grid; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); padding: 26px; }
.feature .fi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--slate); font-size: 16px; }

/* how it works */
.steps { margin-top: 48px; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--stone); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 600; }
.step p { margin-top: 6px; color: var(--slate); font-size: 16px; }

/* dark band */
.dark { background: var(--ink); color: var(--paper); }
.dark .kicker { color: var(--emerald-light); }
.dark .section-head p { color: var(--slate-2); }
.split { display: grid; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; color: #E7E4DC; }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--emerald-light); }
.fx-card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 22px; padding: 22px; }
.fx-card .fx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--ink-line); font-size: 15px; }
.fx-card .fx-row:first-of-type { border-top: 0; padding-top: 0; }
.fx-card .fx-row span:first-child { display: flex; align-items: center; gap: 10px; color: #E7E4DC; }
.fx-card .flag { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 7px; border-radius: 7px; background: var(--ink-line); color: var(--paper); }
.fx-card .muted { color: var(--slate-2); font-size: 13px; }
.fx-total { margin-top: 14px; padding: 16px; border-radius: 14px; background: rgba(31,163,122,.12); display: flex; justify-content: space-between; align-items: baseline; }
.fx-total b { font-size: 24px; font-weight: 600; color: var(--paper); }
.fx-total span { color: var(--emerald-light); font-size: 13px; font-weight: 600; }
.seg { display: inline-flex; background: var(--ink-line); padding: 3px; border-radius: 10px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.seg span { padding: 6px 12px; border-radius: 8px; color: var(--slate-2); }
.seg .on { background: var(--paper); color: var(--ink); }

/* privacy */
.trust { margin-top: 48px; display: grid; gap: 16px; }
.trust div { padding: 24px; border-radius: var(--radius); background: var(--stone-2); }
.trust h3 { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.trust h3 svg { color: var(--evergreen); }
.trust p { margin-top: 8px; color: var(--slate); font-size: 15.5px; }

/* import */
.import-card { margin-top: 0; background: var(--surface); border: 1px solid var(--stone); border-radius: 22px; padding: 22px; }
.import-ok { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: #DDF2E9; }
.import-ok .ok { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--emerald); display: grid; place-items: center; flex-shrink: 0; }
.import-ok b { display: block; font-size: 15px; }
.import-ok small { color: var(--slate); font-size: 13px; }
.map { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; }
.map div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.map .from { color: var(--slate); }
.map .to { padding: 7px 10px; border: 1px solid var(--stone); border-radius: 10px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.map .to i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* faq */
.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-top: 1px solid var(--stone); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--stone); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--slate); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--slate); font-size: 16px; max-width: 640px; }

/* final cta */
.cta-band { padding: 0 0 80px; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; background: var(--evergreen); color: var(--paper); padding: 48px 28px; text-align: center; }
.cta-box h2 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 600; }
.cta-box p { margin: 14px auto 0; max-width: 520px; color: #CFE6DE; font-size: 18px; }
.cta-box .hero-cta { justify-content: center; }
.cta-box .dot { position: absolute; right: 28px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--brass); }
.cta-box svg.line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; opacity: .25; }

footer { border-top: 1px solid var(--stone); background: var(--surface); padding: 48px 0 28px; font-size: 15px; color: var(--slate); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 10px; }
footer h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer address { font-style: normal; line-height: 1.7; }
footer a { overflow-wrap: anywhere; }
footer a:hover { color: var(--evergreen); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--stone); font-size: 13px; }
@media (min-width: 560px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.2fr 0.8fr 1.1fr 1.1fr 1.3fr; }
  .foot-brand { grid-column: auto; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (min-width: 640px) {
  .features, .trust { grid-template-columns: repeat(2, 1fr); }
  .float { display: block; }
  .cta-box { padding: 64px 40px; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .nav-links { display: flex; }
  .nav-cta .signin { display: inline-block; }
  .hero { padding: 64px 0 96px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  section.block { padding: 112px 0; }
  .float-1 { left: -2%; }
  .float-2 { right: -2%; }
}
.alloc i { display: block; height: 100%; }
.foot-brand .logo { color: var(--ink); }

/* ---------- comparison pages ---------- */
.compare { padding: 28px 0 72px; }
.compare section { margin-top: 56px; }
.compare h2 { font-size: clamp(24px, 4.2vw, 32px); font-weight: 600; margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--slate); }
.crumbs a:hover { color: var(--evergreen); }
.crumbs span[aria-current] { color: var(--ink); }
.compare-hero { margin-top: 28px; max-width: 760px; }
.compare-hero h1 { margin-top: 12px; font-size: clamp(36px, 7vw, 56px); font-weight: 600; }
.compare-hero .lede { margin-top: 16px; }
.updated { margin-top: 14px; font-size: 14px; color: var(--slate); }
.answer { background: var(--surface); border: 1px solid var(--stone); border-left: 4px solid var(--evergreen); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px; max-width: 860px; }
.compare .answer { margin-top: 36px; }
.answer h2 { font-size: 20px; margin-bottom: 10px; }
.answer p { font-size: 18px; color: var(--ink); }
.answer .btn { margin-top: 20px; }
.table-wrap { border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.vs-table th, .vs-table td { text-align: left; padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--stone); }
.vs-table thead th { border-top: 0; background: var(--stone-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.vs-table thead th.us { color: var(--evergreen); }
.vs-table tbody th { font-weight: 600; width: 24%; }
.vs-table td { color: var(--slate); width: 38%; }
.vs-table td.us { color: var(--ink); background: rgba(15, 92, 77, .04); }
.two { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--stone); border-radius: var(--radius); padding: 24px; }
.panel-us { border-color: rgba(15, 92, 77, .35); box-shadow: 0 0 0 3px rgba(15, 92, 77, .06); }
.panel h3 { font-size: 20px; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel h3 small { font-size: 13px; font-weight: 600; color: var(--brass-text); background: var(--brass-soft); padding: 3px 9px; border-radius: 999px; }
.pc-label { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.pc { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.pc li { display: flex; gap: 10px; font-size: 16px; }
.pc svg { flex-shrink: 0; margin-top: 3px; }
.pc.plus svg { color: var(--emerald); }
.pc.minus svg { color: var(--loss); }
.panel > .pc:first-of-type { margin-top: 14px; }
.prose { max-width: 760px; font-size: 17px; color: var(--slate); }
.more-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.more-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--stone); border-radius: 14px; background: var(--surface); font-weight: 600; }
.more-links a:hover { border-color: var(--evergreen); color: var(--evergreen); }
.disclaimer { margin-top: 48px; max-width: 760px; font-size: 13.5px; color: var(--slate); }
.disclaimer a { text-decoration: underline; }
.hub { margin-top: 36px; display: grid; gap: 16px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .15s; }
.hub-card:hover { border-color: var(--evergreen); transform: translateY(-2px); }
.hub-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hub-top b { font-size: 19px; }
.hub-top small { font-size: 13px; color: var(--slate); }
.hub-body { color: var(--slate); font-size: 15.5px; }
.hub-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--evergreen); font-size: 15px; }
@media (max-width: 639px) {
  /* stack the table into cards on phones */
  .vs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: 100%; }
  .vs-table tr { border-top: 1px solid var(--stone); padding: 14px 16px; }
  .vs-table tr:first-child { border-top: 0; }
  .vs-table th, .vs-table td { border: 0; padding: 0; }
  .vs-table tbody th { margin-bottom: 8px; width: 100%; }
  .vs-table td { padding: 8px 10px; border-radius: 10px; font-size: 15px; }
  .vs-table td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 2px; }
  .vs-table td.us { margin-top: 6px; }
  .vs-table td.us::before { color: var(--evergreen); }
}
@media (min-width: 760px) {
  .two { grid-template-columns: 1fr 1fr; }
  .hub { grid-template-columns: repeat(2, 1fr); }
  .more-links { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .hub { grid-template-columns: repeat(3, 1fr); }
  .more-links { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- language switcher ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--slate); padding: 8px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.lang-btn:hover { color: var(--ink); background: var(--stone-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: var(--surface); border: 1px solid var(--stone); border-radius: 12px; padding: 6px; box-shadow: 0 14px 30px -12px rgba(11,31,42,.25); display: none; flex-direction: column; z-index: 30; }
.lang.open .lang-menu { display: flex; }
.lang-menu a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.lang-menu a:hover { background: var(--stone-2); }
.lang-menu a[aria-current="true"] { color: var(--evergreen); font-weight: 600; }

/* ---------- feature demos ----------
   Base styles = the finished, static state (shown to reduced-motion users).
   Keyframes animate into that state. Animations only run while the card is
   on screen (.feature.live, toggled in main.js). */
.feature { display: flex; flex-direction: column; }
.demo { position: relative; height: 176px; margin-bottom: 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--stone); overflow: hidden; font-size: 12px; color: var(--ink); }
.demo * { animation-play-state: paused !important; }
.feature.live .demo * { animation-play-state: running !important; }
.demo em { font-style: normal; }

/* 1. assets */
.d-assets { height: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 7px; padding: 12px; align-content: center; }
.d-chip { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 8px 5px 5px; border-radius: 10px; background: var(--surface); border: 1px solid var(--stone); font-size: 11.5px; font-weight: 600; animation: dPop 7s calc(var(--i) * .16s) infinite both; }
.d-chip .ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.d-chip em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-chip.new { border: 1px dashed var(--brass); background: var(--brass-soft); color: var(--brass-text); }
@keyframes dPop { 0% { opacity: 0; transform: translateY(8px) scale(.94); } 6% { opacity: 1; transform: none; } 76% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateY(-4px); } }

/* 2. currencies */
.d-fx { height: 100%; display: flex; align-items: center; padding: 12px; }
.d-src { width: 42%; display: flex; flex-direction: column; gap: 8px; }
.d-pill { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--stone); font-size: 11px; font-weight: 700; white-space: nowrap; animation: dGlow 3s calc(var(--i) * 1s) infinite both; }
.d-pill b { font-size: 9px; letter-spacing: .04em; padding: 2px 4px; border-radius: 5px; background: var(--stone-2); color: var(--slate); }
@keyframes dGlow { 0%, 100% { border-color: var(--stone); box-shadow: 0 0 0 0 rgba(31,163,122,0); } 12% { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(31,163,122,.18); } 30% { border-color: var(--stone); box-shadow: 0 0 0 0 rgba(31,163,122,0); } }
.d-flow { flex: 1; align-self: stretch; min-width: 0; }
.d-flow path { fill: none; stroke: var(--emerald); stroke-width: 1.6; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; animation: dDash 1s linear infinite; }
@keyframes dDash { to { stroke-dashoffset: -16; } }
.d-total { width: 38%; min-width: 0; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.d-total small { display: block; font-size: 10px; color: var(--slate-2); }
.d-tick { height: 20px; overflow: hidden; margin-top: 2px; }
.d-tick > div { display: flex; flex-direction: column; animation: dTick3 7.5s infinite both; }
.d-tick span { height: 20px; line-height: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@keyframes dTick3 { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-20px); } 66%, 94% { transform: translateY(-40px); } 100% { transform: translateY(-60px); } }

/* 3. wealth over time */
.d-chart { height: 100%; position: relative; padding: 10px 10px 6px; }
.d-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.d-line { fill: none; stroke: var(--evergreen); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: dDraw 7s infinite both; }
@keyframes dDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 36% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.d-area { animation: dArea 7s infinite both; }
@keyframes dArea { 0%, 22% { opacity: 0; } 42%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.d-dot { fill: var(--evergreen); transform-box: fill-box; transform-origin: center; animation: dDot 7s infinite both; }
@keyframes dDot { 0%, 34% { opacity: 0; transform: scale(0); } 38% { opacity: 1; transform: scale(1.5); } 42%, 86% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(1); } }
.d-bar { transform-box: fill-box; transform-origin: bottom; animation: dBar 7s calc(var(--i) * .07s) infinite both; }
.d-bar.neg { transform-origin: top; }
@keyframes dBar { 0%, 40% { transform: scaleY(0); } 48% { transform: scaleY(1); } 86% { transform: scaleY(1); opacity: 1; } 94%, 100% { transform: scaleY(1); opacity: 0; } }
.d-badge { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: #DDF2E9; color: var(--emerald); font-size: 11px; font-weight: 700; animation: dBadge 7s infinite both; }
@keyframes dBadge { 0%, 36% { opacity: 0; transform: translateY(6px); } 42%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }

/* 4. update in seconds */
.d-upd { position: relative; height: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.d-acct { display: flex; align-items: center; gap: 8px; }
.d-acct .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(123,97,201,.14); color: var(--c-crypto); }
.d-acct b { display: block; font-size: 12.5px; }
.d-acct small { font-size: 10.5px; color: var(--slate); }
.d-input { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--evergreen); background: var(--surface); box-shadow: 0 0 0 3px rgba(15,92,77,.12); font-size: 18px; font-weight: 700; }
.d-input .cur { color: var(--slate); font-weight: 600; margin-right: 5px; }
.d-input i { font-style: normal; display: inline-block; overflow: hidden; max-width: 1em; vertical-align: bottom; animation: dType 7s calc(.4s + var(--i) * .2s) infinite both; }
@keyframes dType { 0% { max-width: 0; } 2% { max-width: 1em; } 78% { max-width: 1em; } 81%, 100% { max-width: 0; } }
.caret { width: 2px; height: 20px; margin-left: 2px; background: var(--evergreen); animation: dBlink 1s step-end infinite; }
@keyframes dBlink { 50% { opacity: 0; } }
.d-row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.d-delta { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: #DDF2E9; color: var(--emerald); font-size: 11px; font-weight: 700; white-space: nowrap; animation: dDelta 7s infinite both; }
@keyframes dDelta { 0%, 24% { opacity: 0; transform: translateY(4px); } 28%, 80% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: none; } }
.d-save { padding: 5px 12px; border-radius: 8px; background: var(--evergreen); color: var(--paper); font-size: 11px; font-weight: 700; white-space: nowrap; animation: dPress 7s infinite both; }
@keyframes dPress { 0%, 34% { transform: none; filter: none; } 37% { transform: scale(.92); filter: brightness(.85); } 41%, 100% { transform: none; filter: none; } }
.d-toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; white-space: nowrap; animation: dToast 7s infinite both; }
.d-toast svg { color: var(--emerald-light); }
@keyframes dToast { 0%, 40% { opacity: 0; transform: translate(-50%, 10px); } 45%, 78% { opacity: 1; transform: translate(-50%, 0); } 84%, 100% { opacity: 0; transform: translate(-50%, 6px); } }

/* 5. bring your history */
.d-imp { height: 100%; display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 10px; padding: 12px; align-items: center; }
.d-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.d-drop { height: 78px; border: 1.5px dashed var(--stone); border-radius: 12px; display: grid; place-items: center; background: var(--surface); animation: dDropZone 7s infinite both; }
@keyframes dDropZone { 0%, 10% { border-color: var(--stone); background: var(--surface); } 14%, 24% { border-color: var(--emerald); background: #F1FAF6; } 32%, 100% { border-color: var(--stone); background: var(--surface); } }
.d-file { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--evergreen); animation: dFile 7s infinite both; }
@keyframes dFile { 0% { opacity: 0; transform: translateY(-34px) rotate(-10deg); } 12% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(6px); } }
.d-tk { height: 16px; overflow: hidden; font-size: 10.5px; font-weight: 600; color: var(--ink); text-align: center; }
.d-tk > div { display: flex; flex-direction: column; animation: dTick4 28s infinite both; }
.d-tk span { height: 16px; line-height: 16px; white-space: nowrap; }
@keyframes dTick4 { 0%, 24.9% { transform: translateY(0); } 25%, 49.9% { transform: translateY(-16px); } 50%, 74.9% { transform: translateY(-32px); } 75%, 99.9% { transform: translateY(-48px); } 100% { transform: translateY(-64px); } }
.d-detect { display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #DDF2E9; color: var(--evergreen); font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; animation: dPopIn 7s infinite both; }
.d-detect .d-tk { color: var(--evergreen); font-weight: 700; text-align: left; }
@keyframes dPopIn { 0%, 16% { opacity: 0; transform: scale(.9); } 20%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
.d-right { min-width: 0; }
.d-right ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.d-right li { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 9px; background: var(--surface); border: 1px solid var(--stone); font-size: 11px; font-weight: 600; animation: dRow 7s calc(1.6s + var(--i) * .35s) infinite both; }
.d-right li svg { color: var(--emerald); flex-shrink: 0; }
.d-right li em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes dRow { 0% { opacity: 0; transform: translateX(10px); } 5% { opacity: 1; transform: none; } 66% { opacity: 1; transform: none; } 72%, 100% { opacity: 0; transform: none; } }
.d-count { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-text); font-size: 10.5px; font-weight: 700; white-space: nowrap; animation: dCount 7s infinite both; }
@keyframes dCount { 0%, 44% { opacity: 0; transform: translateY(6px); } 50%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* 6. discreet by design */
.d-priv { position: relative; height: 100%; display: grid; place-items: center; padding: 12px; }
.d-card { width: min(240px, 84%); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--stone); background: var(--surface); color: var(--ink); animation: dTheme 8s infinite both; }
@keyframes dTheme { 0%, 64% { background: var(--surface); color: var(--ink); border-color: var(--stone); } 68%, 94% { background: var(--ink); color: var(--paper); border-color: var(--ink); } 98%, 100% { background: var(--surface); color: var(--ink); border-color: var(--stone); } }
.d-top { display: flex; align-items: center; justify-content: space-between; }
.d-top small { font-size: 10.5px; opacity: .65; }
.d-eye { position: relative; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--emerald); }
.d-eye > span, .d-val > span, .d-stack > em { grid-area: 1 / 1; }
.d-eye > span { display: grid; }
.d-val { display: grid; margin: 2px 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.d-sub { display: flex; justify-content: space-between; margin-top: 5px; padding-top: 5px; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); font-size: 11px; }
.d-sub > span:first-child { opacity: .65; }
.d-stack { display: grid; justify-items: end; font-weight: 600; }
.sw-a { animation: dShow 8s infinite both; }
.sw-b { opacity: 0; animation: dHide 8s infinite both; }
@keyframes dShow { 0%, 26% { opacity: 1; } 30%, 56% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes dHide { 0%, 26% { opacity: 0; } 30%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
.ripple { position: absolute; inset: 0; border-radius: 50%; background: var(--emerald); opacity: 0; transform: scale(0); animation: dRipple 8s infinite both; }
@keyframes dRipple { 0%, 24% { opacity: 0; transform: scale(0); } 25% { opacity: .35; transform: scale(.6); } 30% { opacity: 0; transform: scale(2.2); } 31%, 54% { opacity: 0; transform: scale(0); } 55% { opacity: .35; transform: scale(.6); } 60%, 100% { opacity: 0; transform: scale(2.2); } }
.d-theme { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stone); background: var(--surface); color: var(--brass-text); }
.d-theme > span { grid-area: 1 / 1; display: grid; }
.th-a { animation: dThA 8s infinite both; }
.th-b { opacity: 0; animation: dThB 8s infinite both; }
@keyframes dThA { 0%, 64% { opacity: 1; transform: none; } 68%, 94% { opacity: 0; transform: rotate(-90deg); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes dThB { 0%, 64% { opacity: 0; transform: rotate(90deg); } 68%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: rotate(90deg); } }

/* demos need ~280px: stay 1 column until 720px, 2 columns until 1080px */
@media (min-width: 640px) and (max-width: 719px) { .features { grid-template-columns: 1fr; } }
@media (min-width: 900px) and (max-width: 1079px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .demo *, .demo *::before, .demo *::after { animation: none !important; } }

/* ---------- migration demo (9s loop; same rules as feature demos) ---------- */
.import-card.mig { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; color: var(--ink); }
.mig * { animation-play-state: paused !important; }
.mig.live * { animation-play-state: running !important; }
.mig em { font-style: normal; }
.m-strip { display: flex; align-items: center; gap: 10px; }
.m-strip small { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.m-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.m-marquee > div { display: flex; gap: 8px; width: max-content; animation: mScroll 22s linear infinite; }
.m-marquee span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--stone); background: var(--paper); font-size: 12px; font-weight: 600; white-space: nowrap; }
@keyframes mScroll { to { transform: translateX(calc(-50% - 4px)); } }
.m-flow { display: flex; align-items: center; }
.m-file { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stone); color: var(--evergreen); animation: mFileIn 9s infinite both; }
@keyframes mFileIn { 0% { opacity: 0; transform: translateX(-12px); } 8% { opacity: 1; transform: none; } 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
.m-tk { height: 16px; overflow: hidden; font-size: 12px; font-weight: 600; color: var(--ink); }
.m-tk > div { display: flex; flex-direction: column; animation: dTick4 36s infinite both; }
.m-tk span { height: 16px; line-height: 16px; white-space: nowrap; }
.m-line { position: relative; flex: 1; min-width: 30px; height: 2px; margin: 0 10px; background-image: linear-gradient(90deg, var(--stone) 50%, transparent 0); background-size: 8px 2px; }
.m-packet { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; border-radius: 6px; background: var(--evergreen); color: var(--paper); opacity: 0; animation: mPacket 9s infinite both; }
@keyframes mPacket { 0%, 10% { left: 0%; opacity: 0; transform: scale(.6); } 12% { left: 0%; opacity: 1; transform: scale(1); } 22% { left: 100%; opacity: 1; transform: scale(1); } 25%, 100% { left: 100%; opacity: 0; transform: scale(.4); } }
.m-tile { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--stone); animation: mTile 9s infinite both; }
.m-tile img { width: 30px; height: 30px; }
@keyframes mTile { 0%, 21% { border-color: var(--stone); box-shadow: 0 0 0 0 rgba(31,163,122,0); } 24% { border-color: var(--emerald); box-shadow: 0 0 0 6px rgba(31,163,122,.22); } 32%, 100% { border-color: var(--stone); box-shadow: 0 0 0 0 rgba(31,163,122,0); } }
.m-detect { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #DDF2E9; color: var(--evergreen); font-size: 12px; font-weight: 700; animation: mDetect 9s infinite both; }
.m-detect .m-tk { color: var(--evergreen); font-weight: 700; }
@keyframes mDetect { 0%, 24% { opacity: 0; transform: scale(.9); } 28%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
.m-map { display: grid; gap: 7px; }
.m-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.35fr); align-items: center; gap: 8px; font-size: 12.5px; }
.m-from { padding: 6px 10px; border-radius: 9px; background: var(--paper); border: 1px solid var(--stone); color: var(--slate); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: mFrom 9s calc(var(--i) * .35s) infinite both; }
@keyframes mFrom { 0%, 30% { opacity: 0; transform: translateX(-8px); } 33%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.m-arrow { display: block; overflow: visible; }
.m-arrow path { fill: none; stroke: var(--slate-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: mArrow 9s calc(var(--i) * .35s) infinite both; }
@keyframes mArrow { 0%, 33% { stroke-dashoffset: 1; opacity: 1; } 37% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.m-to { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--stone); font-weight: 600; animation: mTo 9s calc(var(--i) * .35s) infinite both; }
.m-to i { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--c); }
.m-to em { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-to.new { border: 1px dashed var(--brass); background: var(--brass-soft); color: var(--brass-text); }
@keyframes mTo { 0%, 36% { opacity: 0; transform: scale(.92); } 40%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.m-progress { display: grid; gap: 8px; }
.m-bar { height: 6px; border-radius: 999px; background: var(--stone-2); overflow: hidden; }
.m-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--evergreen), var(--emerald)); transform-origin: left; animation: mBar 9s infinite both; }
@keyframes mBar { 0%, 50% { transform: scaleX(0); opacity: 1; } 64% { transform: scaleX(1); } 90% { transform: scaleX(1); opacity: 1; } 97%, 100% { transform: scaleX(1); opacity: 0; } }
.m-status { display: grid; min-height: 22px; }
.m-status > * { grid-area: 1 / 1; }
.m-importing { align-self: center; font-size: 12px; font-weight: 600; color: var(--slate); opacity: 0; animation: mImporting 9s infinite both; }
@keyframes mImporting { 0%, 49% { opacity: 0; } 52%, 62% { opacity: 1; } 65%, 100% { opacity: 0; } }
.m-result { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; animation: mResult 9s infinite both; }
@keyframes mResult { 0%, 64% { opacity: 0; transform: translateY(4px); } 68%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
.m-done { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--evergreen); }
.m-nodup { padding: 3px 9px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-text); font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .mig *, .mig *::before, .mig *::after { animation: none !important; } }

/* ---------- hero phone animation ----------
   Intro (once): line draws, allocation fills, rows slide in.
   Loop (10s): phone floats, + is tapped, Bitcoin card pops, total ticks up. */
.stage * { animation-play-state: paused !important; }
.stage.live * { animation-play-state: running !important; }
.stage .phone { animation: hFloat 6s ease-in-out infinite; }
@keyframes hFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stage .float-1 { animation: hBob 5s ease-in-out .8s infinite both; }
@keyframes hBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.stage .float-2 { animation: hPop 10s infinite both; }
@keyframes hPop { 0%, 24% { opacity: 0; transform: translateY(10px) scale(.92); } 28% { opacity: 1; transform: translateY(-2px) scale(1.03); } 31%, 86% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: translateY(6px); } }

.h-tick { height: 32px; overflow: hidden; }
.h-tick > div { display: flex; flex-direction: column; animation: hTick 10s infinite both; }
.h-tick span { height: 32px; line-height: 32px; }
@keyframes hTick { 0%, 32% { transform: translateY(0); } 37%, 88% { transform: translateY(-32px); } 93%, 100% { transform: translateY(-64px); } }
.h-gain { display: inline-grid; }
.h-gain > span { grid-area: 1 / 1; }
.h-ga { animation: hGa 10s infinite both; }
.h-gb { opacity: 0; animation: hGb 10s infinite both; }
@keyframes hGa { 0%, 32% { opacity: 1; } 36%, 88% { opacity: 0; } 93%, 100% { opacity: 1; } }
@keyframes hGb { 0%, 32% { opacity: 0; } 36%, 88% { opacity: 1; } 93%, 100% { opacity: 0; } }

.h-line { stroke-dasharray: 1; stroke-dashoffset: 0; animation: hDraw 1.6s cubic-bezier(.4,0,.2,1) .3s 1 both; }
@keyframes hDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.h-area { animation: hFade .9s ease-out 1.1s 1 both; }
@keyframes hFade { from { opacity: 0; } to { opacity: 1; } }
.stage .alloc i { transform-origin: left; animation: hGrow .6s cubic-bezier(.2,.8,.2,1) 1 both; }
.stage .alloc i:nth-child(1) { animation-delay: 1.2s; }
.stage .alloc i:nth-child(2) { animation-delay: 1.35s; }
.stage .alloc i:nth-child(3) { animation-delay: 1.5s; }
.stage .alloc i:nth-child(4) { animation-delay: 1.65s; }
.stage .alloc i:nth-child(5) { animation-delay: 1.8s; }
@keyframes hGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage .scr-card .row { animation: hRow .5s cubic-bezier(.2,.8,.2,1) 1 both; }
.stage .scr-card .row:nth-child(1) { animation-delay: 1.7s; }
.stage .scr-card .row:nth-child(2) { animation-delay: 1.85s; }
.stage .scr-card .row:nth-child(3) { animation-delay: 2s; }
@keyframes hRow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar .fab { position: relative; }
.h-ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--emerald); opacity: 0; animation: hRing 10s infinite both; pointer-events: none; }
@keyframes hRing { 0%, 18% { opacity: 0; transform: scale(1); } 20% { opacity: .9; transform: scale(1); } 27%, 100% { opacity: 0; transform: scale(1.8); } }
.stage .fab { animation: hTap 10s infinite both; }
@keyframes hTap { 0%, 18% { transform: none; } 20% { transform: scale(.9); } 23%, 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) { .stage *, .stage *::before, .stage *::after { animation: none !important; } }
/* phones: the floating cards are hidden, so explain the tick-up inside the screen */
.screen { position: relative; }
.h-toast { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(11,31,42,.4); opacity: 0; animation: hToast 10s infinite both; }
.h-toast svg { color: var(--emerald-light); }
.h-toast b { color: var(--emerald-light); }
@keyframes hToast { 0%, 26% { opacity: 0; transform: translate(-50%, 10px); } 30%, 62% { opacity: 1; transform: translate(-50%, 0); } 68%, 100% { opacity: 0; transform: translate(-50%, 6px); } }
@media (min-width: 640px) { .h-toast { display: none; } }
