@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (from the app's Material 3 Expressive tokens) */
  --primary: #006c50;
  --primary-strong: #00543e;
  --primary-on: #f4fbf8;
  --mint: #8df2ce;
  --mint-soft: #dcf5ea;
  --ocean: #1e6586;
  --ocean-soft: #d6ecf8;
  --amber: #885200;
  --amber-soft: #fbe6cf;
  --expense: #b3261e;
  --income: #006c50;

  /* Neutrals tinted toward the brand teal */
  --bg: #f5f9f7;
  --surface: #fbfdfc;
  --surface-2: #edf3f0;
  --ink: #13201b;
  --ink-2: #3e4a45;
  --ink-3: #66736d;
  --line: #d3ddd8;

  /* Deep band */
  --deep: #0c3a2e;
  --deep-2: #124a3b;
  --deep-ink: #e4f4ec;
  --deep-ink-2: #a9cfbf;

  /* Type */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --text-h2: clamp(2rem, 1.45rem + 2.3vw, 3.15rem);
  --text-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  --text-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Space (4pt scale) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-phone: 0 40px 80px -32px rgb(12 58 46 / 0.45), 0 12px 24px -12px rgb(12 58 46 / 0.25);
  --shadow-soft: 0 1px 2px rgb(19 32 27 / 0.06), 0 8px 24px -12px rgb(19 32 27 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5fdcae;
    --primary-strong: #8df2ce;
    --primary-on: #002116;
    --mint: #1f6b57;
    --mint-soft: #16332b;
    --ocean: #8ccbec;
    --ocean-soft: #16303d;
    --amber: #f2b872;
    --amber-soft: #3a2a14;
    --expense: #ffb4ab;
    --income: #5fdcae;

    --bg: #0e1513;
    --surface: #141d1a;
    --surface-2: #1a2522;
    --ink: #e2ece7;
    --ink-2: #b4c3bc;
    --ink-3: #8c9c95;
    --line: #2a3733;

    --deep: #0a2a22;
    --deep-2: #103a2f;
    --deep-ink: #e2f3eb;
    --deep-ink-2: #9cc4b3;

    --shadow-phone:
      0 0 0 1px rgb(226 236 231 / 0.12), 0 40px 80px -32px rgb(0 0 0 / 0.7),
      0 12px 24px -12px rgb(0 0 0 / 0.5);
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: var(--space-sm) var(--space-md);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 150ms var(--ease-out),
    background-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-on);
  box-shadow: 0 10px 24px -10px rgb(0 108 80 / 0.55);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    box-shadow: none;
  }
}

.btn-quiet {
  color: var(--ink);
  padding-inline: var(--space-sm);
}

.btn-quiet:hover {
  color: var(--primary);
}

.btn-quiet .icon {
  transition: transform 200ms var(--ease-out);
}

.btn-quiet:hover .icon {
  transform: translateY(2px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-inline-end: auto;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand small {
  font-weight: 600;
  color: var(--ink-3);
}

.site-nav ul {
  display: flex;
  gap: var(--space-lg);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: var(--space-xs);
}

.site-nav a:hover {
  color: var(--primary);
}

.site-header .btn {
  min-height: 44px;
  padding-inline: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }
}

/* The language button joins the header: on a narrow screen the brand keeps only its mark. */
@media (max-width: 480px) {
  .site-header .wrap {
    gap: var(--space-sm);
  }

  .site-header .brand span {
    display: none;
  }

  .site-header .btn {
    text-align: center;
    line-height: 1.25;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) var(--section);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset-block: auto -35%;
  inset-inline: 35% -20%;
  height: 80%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--mint) 55%, transparent),
    transparent
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero-copy {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--primary);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-xs);
}

.soon {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.soon .icon {
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  justify-self: center;
  width: min(320px, 82vw);
}

.phone {
  position: relative;
  aspect-ratio: 9 / 18.6;
  border-radius: 48px;
  padding: 10px;
  background: #121a17;
  box-shadow: var(--shadow-phone);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(180deg, #eef7f3 0%, #f8faf9 38%);
  color: #191c1e;
  font-size: 11px;
  line-height: 1.3;
  padding: 34px 14px 0;
}

.screen::before {
  content: '';
  position: absolute;
  top: 10px;
  inset-inline: 0;
  width: 84px;
  height: 22px;
  margin-inline: auto;
  border-radius: 999px;
  background: #121a17;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-brand b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #006c50;
}

.app-brand img {
  width: 26px;
  height: 26px;
}

.app-tagline {
  margin-top: 4px;
  color: #404944;
  font-size: 9.5px;
}

.app-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.app-quick span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: #0b5a44;
}

.app-quick span + span {
  background: #1e5877;
}

.app-quick .icon {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.app-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  font-weight: 800;
  font-size: 12px;
}

.app-month .icon {
  width: 13px;
  height: 13px;
}

.app-month span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-month span .icon {
  color: #006c50;
}

.app-chips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.app-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d7dcd9;
  background: #fff;
  font-weight: 700;
  font-size: 9.5px;
}

.app-chips span:first-child {
  background: #006c50;
  border-color: #006c50;
  color: #fff;
}

.app-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.app-stat {
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.07);
}

.app-stat:first-child {
  background: #d5f5e7;
}

.app-stat small {
  display: block;
  color: #404944;
  font-size: 8.5px;
  font-weight: 600;
}

.app-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.app-stat .up {
  color: #006c50;
}

.app-stat .down {
  color: #b3261e;
}

.app-chart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.07);
}

.app-chart svg {
  width: 62px;
  height: 62px;
}

.app-chart b {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
}

.app-chart li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: #404944;
}

.app-chart li i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.app-recent {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.07);
}

.app-recent b {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
}

.app-recent p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-block: 5px;
  font-size: 9.5px;
  color: #404944;
}

.app-recent p + p {
  border-top: 1px solid #edf0ee;
}

.app-recent em {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.app-recent .up {
  color: #006c50;
}

.app-recent .down {
  color: #b3261e;
}

.app-nav {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 6px 18px;
  background: #ffffff;
  border-top: 1px solid #e6ebe8;
  font-size: 8px;
  font-weight: 600;
  color: #404944;
  text-align: center;
}

.app-nav span {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-nav .icon {
  width: 17px;
  height: 17px;
  padding: 2px 10px;
  box-sizing: content-box;
  border-radius: 999px;
}

.app-nav span:first-child {
  color: #006c50;
}

.app-nav span:first-child .icon {
  background: #d5f5e7;
}

.device-tag {
  position: absolute;
  inset-inline-start: -18%;
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 230px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--ink-2);
}

.device-tag strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-sm);
}

.device-tag .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  color: var(--primary);
  background: var(--mint-soft);
}

@media (max-width: 520px) {
  .device-tag {
    position: relative;
    inset-inline-start: auto;
    bottom: auto;
    max-width: none;
    margin-top: var(--space-lg);
  }
}

/* ---------- "Sin" band ---------- */

.without {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.without .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-lg) var(--space-2xl);
  padding-block: var(--space-2xl);
}

.without ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-xl);
}

.without li {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-3);
}

.without s {
  text-decoration-thickness: 0.09em;
  text-decoration-color: var(--primary);
}

.without p {
  grid-column: 1 / -1;
  max-width: 62ch;
  color: var(--ink-2);
}

.without p strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .without .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Features ---------- */

.section {
  padding-block: var(--section);
}

.section-head {
  display: grid;
  gap: var(--space-md);
  max-width: 760px;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head h2,
.band h2,
.closing h2 {
  font-size: var(--text-h2);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.section-head p:not(.eyebrow) {
  font-size: var(--text-lead);
  color: var(--ink-2);
  max-width: 56ch;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 144px);
}

.feature:nth-of-type(even) .feature-visual {
  order: -1;
}

.feature-copy {
  display: grid;
  gap: var(--space-md);
  max-width: 520px;
}

.feature-num {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  font-size: var(--text-h3);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.feature-copy > p {
  color: var(--ink-2);
}

.checks {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.checks li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm);
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checks .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--primary);
  background: var(--mint-soft);
  stroke-width: 3;
}

.feature-visual {
  position: relative;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature:nth-of-type(even) .feature-visual {
    order: 0;
  }
}

/* Shared UI fragment styles for feature visuals */

.panel {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel + .panel {
  margin-top: var(--space-md);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.panel-title small {
  font-weight: 600;
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.money {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.money.in {
  color: var(--income);
}

.money.out {
  color: var(--expense);
}

/* 01 — month summary */

.donut-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.donut-row svg {
  width: 120px;
  height: 120px;
}

.legend {
  display: grid;
  gap: var(--space-xs);
  font-size: var(--text-xs);
}

.legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: var(--space-xs);
  color: var(--ink-2);
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.legend b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bars-legend {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--ink-3);
  font-weight: 600;
}

.bars-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bars-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.bars text {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-3);
}

@media (max-width: 420px) {
  .donut-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .legend {
    width: 100%;
  }
}

/* 02 — movements */

.search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block: var(--space-md);
}

.filters span {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-2);
}

.filters span:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-on);
}

.moves {
  display: grid;
}

.moves li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
}

.moves li + li {
  border-top: 1px solid var(--line);
}

.moves .badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bg-c);
  color: var(--fg-c);
}

.moves .badge .icon {
  width: 20px;
  height: 20px;
}

.moves b {
  display: block;
  font-size: var(--text-sm);
}

.moves small {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.moves .money {
  font-size: var(--text-sm);
  text-align: end;
}

.moves .money small {
  font-weight: 600;
}

/* 03 — family */

.split-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.field {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
}

.field small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-3);
}

.field .money {
  font-size: 1.125rem;
}

.shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-block: var(--space-md);
  font-size: var(--text-xs);
}

.shortcuts > small {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.shortcuts span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-2);
}

.shortcuts span.on {
  background: var(--mint-soft);
  border-color: transparent;
  color: var(--primary);
}

.verdict {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--ocean-soft);
  color: var(--ocean);
  font-size: var(--text-sm);
  font-weight: 700;
}

.ledger {
  display: grid;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.ledger div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.ledger dt {
  color: var(--ink-2);
}

.ledger div:last-child {
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--line);
  font-weight: 800;
}

.ledger div:last-child dt {
  color: var(--ink);
}

/* 04 — accounts */

.accounts {
  display: grid;
  gap: var(--space-sm);
}

.account {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.account .badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fbfdfc;
  background: var(--c);
}

.account .badge .icon {
  width: 22px;
  height: 22px;
}

.account b {
  display: block;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.account small {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.account .money {
  text-align: end;
}

.account.archived {
  box-shadow: none;
  background: transparent;
  border: 1px dashed var(--line);
}

.account.archived .badge {
  background: var(--surface-2);
  color: var(--ink-3);
}

.tag {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
}

/* 05 — debts */

.debt-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
}

.debt-tabs span {
  padding: 10px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
}

.debt-tabs .on {
  background: var(--mint-soft);
  color: var(--primary);
}

.debt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm) var(--space-md);
}

.debt-head b {
  display: block;
  font-size: var(--text-sm);
}

.due {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.due.late {
  background: color-mix(in srgb, var(--expense) 14%, transparent);
  color: var(--expense);
}

.money-block {
  display: grid;
  justify-items: end;
  text-align: end;
}

.money-block small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.money-block .money {
  font-size: 1.25rem;
}

.bar {
  height: 8px;
  margin-top: var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.bar i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.debt-foot {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

.btn-mini {
  display: inline-flex;
  margin-top: var(--space-md);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-on);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ---------- Also list ---------- */

.also {
  margin-top: clamp(80px, 11vw, 160px);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--line);
}

.also dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl) var(--space-2xl);
  margin-top: var(--space-xl);
}

.also h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.also dt {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
}

.also dt .icon {
  color: var(--primary);
}

.also dd {
  margin-top: var(--space-xs);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* ---------- Backup band ---------- */

.band {
  background: var(--deep);
  color: var(--deep-ink);
  padding-block: var(--section);
}

.band .eyebrow {
  color: var(--mint);
}

@media (prefers-color-scheme: dark) {
  .band .eyebrow {
    color: #8df2ce;
  }
}

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-lg) clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}

.band-head > div {
  display: grid;
  gap: var(--space-md);
}

.band-head p:not(.eyebrow) {
  color: var(--deep-ink-2);
  font-size: var(--text-lead);
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  counter-reset: step;
}

.flow li {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  padding-top: var(--space-xl);
  border-top: 1px solid rgb(228 244 236 / 0.22);
  counter-increment: step;
}

.flow li::before {
  content: counter(step, decimal-leading-zero);
  font-size: var(--text-sm);
  font-weight: 800;
  color: #8df2ce;
  font-variant-numeric: tabular-nums;
}

.flow h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.flow h3 .icon {
  width: 26px;
  height: 26px;
  color: #8df2ce;
}

.flow p {
  color: var(--deep-ink-2);
  font-size: var(--text-sm);
  max-width: 38ch;
}

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: clamp(48px, 7vw, 80px);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--deep-2);
}

.route-node {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);
  min-width: 88px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--deep-ink-2);
}

.route-node .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 16px;
  background: rgb(228 244 236 / 0.08);
  color: var(--deep-ink);
}

.route-file {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  background: #8df2ce;
  color: #002116;
  font-size: var(--text-sm);
  font-weight: 800;
}

.route-arrow {
  color: rgb(228 244 236 / 0.4);
}

.route-arrow .icon {
  width: 28px;
  height: 28px;
}

.band-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.note {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgb(228 244 236 / 0.18);
  font-size: var(--text-sm);
  color: var(--deep-ink-2);
}

.note strong {
  color: var(--deep-ink);
}

.note .icon {
  width: 24px;
  height: 24px;
  color: #8df2ce;
}

.note.warn {
  background: #fbe6cf;
  border-color: transparent;
  color: #3d2600;
}

.note.warn strong {
  color: #2b1700;
}

.note.warn .icon {
  color: #885200;
}

@media (prefers-color-scheme: dark) {
  .note.warn {
    background: #3a2a14;
    color: #f3dcc0;
  }

  .note.warn strong {
    color: #ffe9d2;
  }

  .note.warn .icon {
    color: #f2b872;
  }
}

@media (max-width: 860px) {
  .band-head,
  .band-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 560px) {
  .route {
    flex-direction: column;
  }

  .route-arrow .icon {
    rotate: 90deg;
  }
}

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-md);
}

.platform {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.platform.now {
  background: var(--mint-soft);
  border-color: transparent;
}

.platform header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.platform header .icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.status {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  background: var(--surface-2);
  color: var(--ink-2);
}

.platform.now .status {
  background: var(--primary);
  color: var(--primary-on);
}

.platform h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.platform p {
  color: var(--ink-2);
  font-size: var(--text-sm);
}

.platform .btn {
  justify-self: start;
  margin-top: var(--space-sm);
}

.platform-note {
  margin-top: var(--space-lg);
  color: var(--ink-3);
  font-size: var(--text-sm);
  max-width: 70ch;
}

@media (max-width: 900px) {
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-2xl) clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 100px;
  margin-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--primary);
}

.faq summary .icon {
  color: var(--primary);
  transition: rotate 250ms var(--ease-out);
}

.faq details[open] summary .icon {
  rotate: 45deg;
}

.faq details p {
  padding-bottom: var(--space-lg);
  color: var(--ink-2);
  max-width: 62ch;
}

@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-layout .section-head {
    position: static;
  }
}

/* ---------- Closing ---------- */

.closing {
  padding-bottom: var(--section);
}

.closing-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xl) clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--mint-soft);
}

.closing-panel img {
  width: clamp(64px, 8vw, 96px);
  height: auto;
}

.closing p {
  margin-top: var(--space-md);
  color: var(--ink-2);
  font-size: var(--text-lead);
}

@media (max-width: 760px) {
  .closing-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing .btn {
    justify-self: start;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-2xl) calc(var(--space-2xl) + env(safe-area-inset-bottom));
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
}

.site-footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 700ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  .phone-stage {
    animation: rise 900ms var(--ease-out) 200ms both;
  }

  .device-tag {
    animation: rise 700ms var(--ease-out) 650ms both;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
  }
}

/* ---------- Other languages (L25) ---------- */

body {
  overflow-wrap: break-word;
}

/* Arrows and chevrons point along the reading direction. */
html[dir='rtl'] .flip {
  transform: scaleX(-1);
}

@media (max-width: 560px) {
  /* The route arrow turns to point down: no mirror on top of that. */
  html[dir='rtl'] .route-arrow .icon {
    transform: none;
  }
}

/*
       * Scripts the design was not drawn for. Arabic and Indic scripts join
       * letters or stack marks above and below the line, so letter spacing
       * breaks them and the tight Latin line heights of the headlines clip
       * them; CJK is never letter-spaced. Vietnamese stacks diacritics too.
       */
html[data-script] * {
  letter-spacing: normal !important;
}

html[data-script='complex'] :is(h1, h2, h3, h4) {
  line-height: 1.5 !important;
}

html[data-script='cjk'] :is(h1, h2, h3, h4) {
  line-height: 1.25 !important;
}

/* Chinese, Japanese and Korean break between any two characters: keep phrases together where the browser can. */
html[data-script='cjk'] body {
  line-break: strict;
  word-break: auto-phrase;
}

html:lang(vi) :is(h1, h2, h3, h4) {
  line-height: 1.2 !important;
}
