/*
  Ahorrao sales page. Plain CSS, no build step.
  The colours come from the logo: its deep green, its gold coin, and cream.
*/

@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #04221c;
  --bg-2: #062c24;
  --panel: #0a3a2f;
  --panel-2: #0e4a3c;
  --line: rgb(245 240 228 / 0.12);
  --ink: #f5f0e4;
  --ink-2: #b9c9c0;
  --gold: #eab04b;
  --gold-2: #ffd98a;
  --gold-deep: #b97f1c;
  --on-gold: #2a1c02;
  --mint: #6fe3b6;

  /* The phone shows the app as it is: light. */
  --app-bg: #f5f3ee;
  --app-surface: #ffffff;
  --app-ink: #17201c;
  --app-ink-2: #5b6862;
  --app-brand: #0e6b4f;
  --app-in: #0b7a52;
  --app-out: #c0392b;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--gold);
  color: var(--on-gold);
}

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
h1 {
  font-size: clamp(46px, 7.2vw, 96px);
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}
h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 140ms var(--ease-out),
    background 140ms,
    box-shadow 200ms;
}
.btn:active {
  transform: scale(0.97);
}
.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 14px 34px -12px rgb(234 176 75 / 0.7);
}
.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover {
    background: var(--gold-2);
    box-shadow: 0 18px 40px -12px rgb(234 176 75 / 0.9);
  }
  .btn-ghost:hover {
    background: rgb(245 240 228 / 0.08);
  }
}

/* ---------- Top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px max(24px, (100% - 1180px) / 2);
  background: rgb(4 34 28 / 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-logo img {
  height: 34px;
  width: auto;
}
.top-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 600;
}
.top-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 140ms;
}
@media (hover: hover) and (pointer: fine) {
  .top-links a:hover {
    color: var(--ink);
  }
}

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

.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
}
/* Two soft lights behind the phone: the gold of the coin, the green of the mark. */
.hero-glow {
  position: absolute;
  inset: -20% -10% 0 30%;
  background:
    radial-gradient(closest-side at 62% 46%, rgb(234 176 75 / 0.22), transparent 70%),
    radial-gradient(closest-side at 40% 60%, rgb(20 150 112 / 0.38), transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(245 240 228 / 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
}
.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgb(111 227 182 / 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 10px rgb(111 227 182 / 0);
  }
}
.lead {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(19px, 1.7vw, 23px);
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: '';
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--mint);
  border-bottom: 2.5px solid var(--mint);
  transform: translateY(-2px) rotate(-45deg);
}

/* ---------- The 3D phone ---------- */

.stage {
  position: relative;
  height: 640px;
  display: grid;
  place-items: center;
  perspective: 1500px;
}
.phone {
  --rx: 8deg;
  --ry: -20deg;
  position: relative;
  width: 300px;
  height: 610px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(2deg);
  animation: phone-in 1200ms var(--ease-out) both;
  will-change: transform;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(24deg) rotateY(-50deg) rotateZ(6deg);
  }
}
/* The thickness of the phone: slices stacked behind the screen (added by site.js). */
.phone .edge {
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: #0b1512;
}
.phone .edge-back {
  background: #1b2a25;
  box-shadow: 0 60px 90px -20px rgb(0 0 0 / 0.75);
}
.phone-screen {
  position: absolute;
  inset: 0;
  padding: 22px 16px 16px;
  border: 9px solid #0b1512;
  border-radius: 46px;
  background: var(--app-bg);
  color: var(--app-ink);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
}
/* A streak of light across the glass. */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.28) 0%, transparent 28%);
  pointer-events: none;
}
.app-top small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-ink-2);
}
.app-top b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-hero {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(140deg, #0b3b2d, #11775a);
  color: #fff;
}
.app-hero span {
  font-size: 11px;
  opacity: 0.8;
}
.app-hero strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.app-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
}
.app-hero-row b {
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.app-pockets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.app-pockets > div {
  padding: 9px;
  border-radius: 12px;
  background: var(--app-surface);
}
.app-pockets span {
  display: block;
  font-size: 10px;
  color: var(--app-ink-2);
}
.app-pockets b {
  font-size: 13px;
}
.app-label {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-ink-2);
}
.app-list {
  display: grid;
  gap: 6px;
}
.app-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--app-surface);
  animation: row-in 600ms var(--ease-out) both;
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
}
.app-list span {
  flex: 1;
  min-width: 0;
}
.app-list b {
  display: block;
  font-size: 12.5px;
}
.app-list small {
  font-size: 10.5px;
  color: var(--app-ink-2);
}
.app-list em {
  font-style: normal;
  font-weight: 800;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.app-fab {
  position: absolute;
  right: 16px;
  bottom: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--app-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 20px -6px rgb(14 107 79 / 0.6);
}

/* A small arrow in a tinted square: up-right for money out, down-left for money in. */
.dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  position: relative;
}
.dot::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.dot-out {
  background: rgb(192 57 43 / 0.13);
  color: var(--app-out);
}
.dot-in {
  background: rgb(11 122 82 / 0.14);
  color: var(--app-in);
}
.dot-in::after {
  transform: rotate(180deg);
}
.in {
  color: var(--app-in);
}
.out {
  color: var(--app-out);
}

.bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgb(14 107 79 / 0.14);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: var(--app-brand);
  transform-origin: left;
}

/* Notes floating in front of the phone. They sit closer to the viewer, so
   they shift more than the phone when it turns. */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--app-ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 18px 36px -12px rgb(0 0 0 / 0.55);
  animation: bob 6s ease-in-out infinite;
}
.chip span {
  font-weight: 600;
  color: var(--app-ink-2);
}
.chip-a {
  top: -22px;
  left: -120px;
  transform: translateZ(80px);
}
.chip-b {
  top: 300px;
  right: -150px;
  transform: translateZ(110px);
  animation-delay: -2s;
}
.chip-c {
  bottom: 60px;
  left: -130px;
  transform: translateZ(60px);
  background: var(--gold);
  color: var(--on-gold);
  animation-delay: -4s;
}
.chip-c b {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--on-gold);
  color: var(--gold-2);
}
@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}

/* ---------- 3D coins (their thickness is added by site.js) ---------- */

.coin {
  --size: 76px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: spin 6s linear infinite;
  font-size: 0;
}
.coin i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-deep);
}
.coin .face {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 34% 28%, #fff0c4, var(--gold) 52%, #c98a1e);
  box-shadow: inset 0 0 0 calc(var(--size) * 0.07) rgb(185 127 28 / 0.55);
  color: #8a5a0c;
  font-style: normal;
  font-weight: 900;
  font-size: calc(var(--size) * 0.36);
  letter-spacing: -0.04em;
}
@keyframes spin {
  from {
    transform: rotateX(14deg) rotateY(0);
  }
  to {
    transform: rotateX(14deg) rotateY(360deg);
  }
}
.coin-float {
  position: absolute;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 22px 22px rgb(0 0 0 / 0.45));
}
.coin-1 {
  top: 34px;
  right: 6%;
}
.coin-2 {
  bottom: 40px;
  right: 14%;
  animation-delay: -1.6s;
}
.coin-2 .coin {
  --size: 52px;
  animation-duration: 8s;
  animation-direction: reverse;
}
.coin-3 {
  top: 44%;
  left: 0;
  animation-delay: -3s;
}
.coin-3 .coin {
  --size: 40px;
  animation-duration: 5s;
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 36s linear infinite;
}
.ticker span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 14px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker span::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- The problem, lit word by word as you scroll ---------- */

.say {
  padding: clamp(80px, 12vw, 170px) 0;
}
.say-text {
  max-width: 1000px;
  font-size: clamp(30px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.say-text span {
  opacity: 0.16;
  transition: opacity 240ms;
}
.say-text span.on {
  opacity: 1;
}

/* ---------- Section heads ---------- */

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head p:not(.kicker) {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 20px;
}
.kicker {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
}

/* ---------- Live demo ---------- */

.demo {
  padding-bottom: clamp(80px, 10vw, 140px);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pad,
.card,
.offer {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  box-shadow: inset 0 0 0 1px var(--line);
}
.pad {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(22px, 3vw, 36px);
}
.pad-amount span,
.pad-cats legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
}
.pad-amount div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 18px;
  background: rgb(0 0 0 / 0.25);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow 160ms;
}
.pad-amount div:focus-within {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.pad-amount b {
  font-size: 30px;
  color: var(--gold);
}
.pad-amount input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  outline: none;
}
.pad-amount input::placeholder {
  color: rgb(245 240 228 / 0.25);
}
.pad-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.pad-cats legend {
  width: 100%;
}
.pad-cats input {
  position: absolute;
  opacity: 0;
}
.pad-cats label span {
  display: block;
  padding: 10px 18px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition:
    background 140ms,
    color 140ms,
    transform 140ms var(--ease-out);
}
.pad-cats label span:active {
  transform: scale(0.95);
}
.pad-cats input:checked + span {
  background: var(--ink);
  color: var(--bg);
  box-shadow: none;
}
.pad-cats input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.ledger {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--app-bg);
  color: var(--app-ink);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7);
}
.ledger-total {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(140deg, #0b3b2d, #11775a);
  color: #fff;
}
.ledger-total span {
  font-size: 15px;
  opacity: 0.8;
}
.ledger-total strong {
  display: block;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ledger-total small {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-2);
}
.ledger-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.ledger-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--app-surface);
}
.ledger-list li.new {
  animation: row-in 600ms var(--ease-out) both;
}
.ledger-list .dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.ledger-list .dot::after {
  inset: 13px;
}
.ledger-list span {
  flex: 1;
  min-width: 0;
}
.ledger-list b {
  display: block;
  font-size: 17px;
}
.ledger-list small {
  font-size: 14px;
  color: var(--app-ink-2);
}
.ledger-list em {
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.features {
  padding-bottom: clamp(80px, 10vw, 140px);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px;
  min-height: 300px;
  overflow: hidden;
}
.card p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 17px;
}
.card > :last-child {
  margin-top: auto;
}
.card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 36px;
}
.card-wide .card-text {
  flex: 1;
}
.card-wide h3 {
  font-size: clamp(26px, 2.6vw, 34px);
}
.card-wide .bars,
.card-wide .sheet {
  flex: 1.15;
  margin: 0;
}
.card-full {
  grid-column: 1 / -1;
  min-height: 0;
}
/* Cards lean towards the pointer and a light follows it (see site.js). */
.tilt {
  transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 300ms var(--ease-out);
}
.tilt::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(234 176 75 / 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.tilt.lit::before {
  opacity: 1;
}

.bars {
  display: grid;
  gap: 14px;
}
.bars li {
  display: grid;
  grid-template-columns: 96px 1fr 64px;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
}
.bars b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bars .bar,
.goal .bar {
  height: 12px;
  margin: 0;
  background: rgb(245 240 228 / 0.1);
}
.bars .bar i {
  background: var(--mint);
}
.goal .bar i {
  background: var(--gold);
}
/* Bars grow when their card comes into view. */
.js [data-r] .bar i {
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-out) 250ms;
}
.js [data-r].in .bar i {
  transform: scaleX(1);
}
.js .bars li:nth-child(2) .bar i {
  transition-delay: 350ms;
}
.js .bars li:nth-child(3) .bar i {
  transition-delay: 450ms;
}
.js .bars li:nth-child(4) .bar i {
  transition-delay: 550ms;
}

.goal div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}
.goal span {
  color: var(--ink-2);
}

.offline {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mint);
}
.offline i {
  width: 7px;
  border-radius: 3px;
  background: rgb(245 240 228 / 0.18);
}
.offline i:nth-child(1) {
  height: 10px;
}
.offline i:nth-child(2) {
  height: 17px;
}
.offline i:nth-child(3) {
  height: 24px;
}
.offline span {
  margin-left: 10px;
}

.rents {
  display: grid;
  gap: 8px;
}
.rents li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.22);
  font-size: 15px;
  font-weight: 600;
}
.tag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.tag-warn {
  background: rgb(234 176 75 / 0.18);
  color: var(--gold-2);
}
.tag-ok {
  background: rgb(111 227 182 / 0.16);
  color: var(--mint);
}

.sync {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mint);
}
.sync i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgb(111 227 182 / 0.25);
  border-top-color: var(--mint);
  animation: turn 1.4s linear infinite;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

.sheet {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4px;
}
.sheet i {
  height: 18px;
  border-radius: 4px;
  background: rgb(245 240 228 / 0.1);
}
.sheet i:nth-child(-n + 3) {
  background: rgb(111 227 182 / 0.35);
}

/* ---------- Steps ---------- */

.steps {
  padding-bottom: clamp(80px, 10vw, 140px);
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps-list li {
  padding-top: 26px;
  border-top: 2px solid var(--line);
}
.steps-list b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 24px;
  font-weight: 900;
}
.steps-list p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ---------- Safety: the one light section ---------- */

.safe {
  padding: clamp(72px, 9vw, 130px) 0;
  background: var(--ink);
  color: var(--bg);
}
.safe-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.safe .kicker {
  color: #0e6b4f;
}
.safe-text {
  position: sticky;
  top: 110px;
}
.safe-text > p:not(.kicker) {
  margin-top: 20px;
  font-size: 20px;
  color: #33453e;
}
.link {
  display: inline-block;
  margin-top: 24px;
  font-weight: 800;
  color: #0e6b4f;
  text-underline-offset: 4px;
}
.safe-list li {
  padding: 26px 0;
  border-top: 2px solid rgb(4 34 28 / 0.12);
}
.safe-list li:last-child {
  border-bottom: 2px solid rgb(4 34 28 / 0.12);
}
.safe-list h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}
.safe-list p {
  margin-top: 6px;
  color: #33453e;
}

/* ---------- Price ---------- */

.price {
  padding: clamp(80px, 10vw, 140px) 0;
}
.offer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(26px, 4vw, 52px);
  background: linear-gradient(150deg, var(--panel-2), var(--bg-2) 70%);
  box-shadow:
    inset 0 0 0 1.5px rgb(234 176 75 / 0.45),
    0 50px 100px -40px rgb(234 176 75 / 0.35);
}
.offer-price p {
  font-weight: 800;
  color: var(--gold);
}
.offer-price strong {
  display: flex;
  align-items: flex-start;
  font-size: clamp(110px, 13vw, 170px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.offer-price small {
  margin: 0.12em 0.1em 0 0;
  font-size: 0.32em;
  letter-spacing: 0;
  color: var(--gold);
}
.offer-price .offer-compare {
  margin-top: 10px;
  max-width: 18ch;
  color: var(--ink-2);
  font-weight: 600;
}
.offer-list {
  display: grid;
  gap: 12px;
  font-weight: 600;
}
.offer-list li {
  display: flex;
  gap: 12px;
}
.offer-list li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 9px;
  margin-top: 7px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}
.offer-cta {
  width: 290px;
  text-align: center;
}
.offer-cta p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
}

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

.faq {
  padding-bottom: clamp(80px, 10vw, 140px);
}
.faq-list {
  max-width: 860px;
}
details {
  border-top: 1px solid var(--line);
}
details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
details p {
  max-width: 62ch;
  padding-bottom: 26px;
  color: var(--ink-2);
}
.plus {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.plus::before,
.plus::after {
  content: '';
  position: absolute;
  left: 0;
  top: 7.5px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-out);
}
.plus::after {
  transform: rotate(90deg);
}
details[open] .plus::after {
  transform: rotate(180deg);
}

/* ---------- Last call ---------- */

.last {
  padding: clamp(72px, 9vw, 130px) 0;
  background: linear-gradient(150deg, #0e6b4f, #06382d);
  overflow: hidden;
}
.last-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.last h2 {
  max-width: 16ch;
  margin-bottom: 34px;
}
.last p {
  margin-top: 16px;
  color: rgb(245 240 228 / 0.8);
}
.last-coin {
  perspective: 1200px;
  padding-right: clamp(0px, 6vw, 90px);
  filter: drop-shadow(0 50px 40px rgb(0 0 0 / 0.45));
}
.coin-big {
  --size: clamp(190px, 24vw, 300px);
  animation-duration: 9s;
}

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

.foot {
  padding: 56px 0 110px;
  background: #031a15;
  color: var(--ink-2);
  font-size: 16px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot img {
  height: 38px;
  width: auto;
  margin-bottom: 14px;
}
.foot ul {
  display: grid;
  gap: 10px;
  align-content: start;
}
.foot a {
  text-decoration: none;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
.foot-last {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

/* ---------- Phone-only buy bar ---------- */

.dock {
  display: none;
}

/* ---------- Things appear as you reach them ---------- */

.js [data-r] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-r].in {
  opacity: 1;
  transform: none;
}
/* The first screen does not wait for the script: it rises on its own. */
.js .hero [data-r] {
  opacity: 1;
  transform: none;
  transition: none;
  animation: rise 800ms var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
/* Cards that tilt keep their own transform once shown. */
.js .tilt[data-r].in {
  transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
}
.js .tilt[data-r].done {
  transition: transform 300ms var(--ease-out);
}

/* ---------- Legal pages ---------- */

.legal {
  width: min(760px, 100% - 48px);
  margin: 0 auto;
  padding: 56px 0 96px;
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}
.legal h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.legal p,
.legal li,
.legal td {
  color: var(--ink-2);
}
.legal p + p {
  margin-top: 12px;
}
.legal ul {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
}
.legal strong,
.legal th {
  color: var(--ink);
}
.legal a {
  color: var(--gold-2);
  text-underline-offset: 3px;
}
.legal table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-size: 16px;
}
.legal th,
.legal td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 980px) {
  .top-links {
    display: none;
  }
  .top .btn {
    margin-left: auto;
  }
  .hero-grid,
  .demo-grid,
  .safe-grid,
  .last-grid {
    grid-template-columns: 1fr;
  }
  .hero-text {
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-cta,
  .hero-facts {
    justify-content: center;
  }
  .stage {
    height: 600px;
    margin-top: 16px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .safe-text {
    position: static;
  }
  .offer {
    grid-template-columns: 1fr 1fr;
  }
  .offer-cta {
    grid-column: 1 / -1;
    width: 100%;
  }
  .last-coin {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .top {
    padding-inline: 20px;
  }
  .top-logo img {
    height: 30px;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-facts {
    flex-direction: column;
    align-items: center;
  }
  .stage {
    height: 560px;
    /* The phone is drawn at its real size and shrunk, so the app text stays sharp. */
    scale: 0.86;
    margin-block: -10px -30px;
  }
  .chip-a {
    left: -30px;
  }
  .chip-b {
    top: 322px;
    right: -40px;
  }
  .chip-c {
    bottom: 22px;
    left: -30px;
  }
  .coin-3 {
    display: none;
  }
  .coin-2 {
    bottom: -4px;
    right: 4%;
  }
  .bento,
  .steps-list,
  .offer,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .card {
    min-height: 0;
    padding: 24px;
  }
  .card-wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .bars li {
    grid-template-columns: 84px 1fr 58px;
    font-size: 15px;
  }
  .dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 40px -10px rgb(0 0 0 / 0.7);
    transform: translateY(140%);
    transition: transform 400ms var(--ease-out);
    touch-action: manipulation;
  }
  .dock span {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.75;
  }
  .dock.show {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-r] {
    opacity: 1;
    transform: none;
  }
  .js [data-r] .bar i {
    transform: none;
  }
  .say-text span {
    opacity: 1;
  }
}
