/* The app's tokens, as they appear in ios/Finanzas/Design/Theme.swift. The
   site and the app should not drift: a visitor who downloads Rumbo after
   reading this page ought to recognise it. */

@font-face {
  font-family: "Bricolage Rumbo";
  src: url("fonts/BricolageGrotesqueRumbo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #050807;
  --surface: #0e1110;
  --card: #111514;
  --line: rgba(245, 247, 245, 0.10);
  --ink: #f5f7f5;
  --ink-muted: rgba(245, 247, 245, 0.62);
  --ink-faint: rgba(245, 247, 245, 0.38);
  --ahead: #2ee59d;
  --behind: #ff7a45;
  --assistant: #f1dfa8;
  --measure: 68ch;
  --gutter: 16px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #f2f4f2;
    --surface: #f4f5f3;
    --card: #ffffff;
    --line: rgba(11, 13, 12, 0.12);
    --ink: #0b0d0c;
    --ink-muted: rgba(11, 13, 12, 0.66);
    --ink-faint: rgba(11, 13, 12, 0.45);
    --ahead: #007a4d;
    --behind: #b53a0a;
    --assistant: #7a5a00;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* One number, one line, one colour: headings use the number face. */
h1, h2, h3 {
  font-family: "Bricolage Rumbo", "Geist", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 3rem; }
h3 { font-size: 1.15rem; margin-top: 2rem; }

p, li { color: var(--ink-muted); }
p { margin: 1rem 0; max-width: var(--measure); }

a { color: var(--ahead); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { color: var(--ink); font-weight: 600; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  flex-wrap: wrap;
}
.top img, .top picture { height: 30px; width: auto; display: block; }
.top picture img { height: 30px; }
.top nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.top nav a { color: var(--ink-muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 3rem 0 4rem; }
.hero .lede {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--ink-muted);
  max-width: 34ch;
  margin-top: 1.5rem;
}
.slogan {
  color: var(--ahead);
  font-family: "Bricolage Rumbo", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  text-transform: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
}
.card h3 { margin-top: 0; font-size: 1.05rem; color: var(--ink); }
.card p { margin-bottom: 0; font-size: 0.97rem; }

.banks {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none;
}
.banks li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink);
}

/* A plain note that carries weight — used for the honest caveats. */
.note {
  border-left: 2px solid var(--assistant);
  padding-left: 1.25rem;
  margin: 2rem 0;
}
.note p { margin: 0.5rem 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 2rem 0 4rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
footer a { color: var(--ink-muted); }
footer p { color: var(--ink-faint); }

/* Legal pages read as a document, not a landing page. */
.doc { padding: 2rem 0 1rem; max-width: var(--measure); }
.doc .updated { color: var(--ink-faint); font-size: 0.9rem; margin-top: 0.75rem; }
.doc h2 { font-size: 1.3rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.5rem 0; }
.doc table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem;
}
.doc th, .doc td {
  text-align: left; padding: 0.75rem 0.5rem 0.75rem 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-muted); }
