/* Pace home page. Plain CSS, no build step. Motion uses transform and
   opacity only, and prefers-reduced-motion turns it all off. Content is
   visible without JavaScript and without scroll-driven animation support. */

:root {
  color-scheme: light dark;
  --bg: #f6f5fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-line: rgba(30, 27, 75, 0.09);
  --text: #121220;
  --muted: #55556a;
  --line: #e3e1f0;
  --brand: #38339e;
  --brand-strong: #2c2885;
  --brand-soft: rgba(56, 51, 158, 0.1);
  --brand-glow-a: rgba(98, 88, 235, 0.42);
  --brand-glow-b: rgba(164, 120, 255, 0.34);
  --brand-glow-c: rgba(255, 150, 190, 0.22);
  --trail: #4b44c8;
  --grid-line: rgba(56, 51, 158, 0.07);
  --positive: #0a6e4a;
  --negative: #b3261e;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -12px rgba(30, 27, 90, 0.28), 0 4px 12px -4px rgba(30, 27, 90, 0.12);
  --phone-shadow: 0 50px 90px -30px rgba(30, 27, 90, 0.5), 0 24px 40px -24px rgba(30, 27, 90, 0.35);
  --badge-bg: #0b0b12;
  --badge-text: #ffffff;
  --panel-bg: #17153d;
  --panel-text: #f2f1ff;
  --panel-muted: #c3c0ea;
  --panel-tile: rgba(255, 255, 255, 0.06);
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-icon: #b7b2ff;
  --note-bg: #fff6d6;
  --note-text: #4a3b00;
  --focus: #4b44c8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090f;
    --bg-2: #0e0d18;
    --surface: #15141f;
    --surface-line: rgba(255, 255, 255, 0.08);
    --text: #f3f3f8;
    --muted: #a6a6b8;
    --line: #26253a;
    --brand: #a39eff;
    --brand-strong: #c2beff;
    --brand-soft: rgba(163, 158, 255, 0.14);
    --brand-glow-a: rgba(88, 76, 230, 0.5);
    --brand-glow-b: rgba(150, 100, 255, 0.3);
    --brand-glow-c: rgba(255, 110, 170, 0.14);
    --trail: #b5b0ff;
    --grid-line: rgba(255, 255, 255, 0.05);
    --positive: #4fd19c;
    --negative: #ff8a80;
    --card-bg: rgba(28, 27, 42, 0.78);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 44px -12px rgba(0, 0, 0, 0.7);
    --phone-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 0 80px -20px rgba(98, 88, 235, 0.45);
    --badge-bg: #ffffff;
    --badge-text: #0b0b12;
    --panel-bg: #13122a;
    --panel-tile: rgba(255, 255, 255, 0.05);
    --note-bg: #3a3000;
    --note-text: #ffe9a3;
    --focus: #b5b0ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .ghost-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.skip:focus { top: 12px; box-shadow: var(--card-shadow); }

/* Text the owner still has to supply. Nothing marked like this may be
   published. `docs/agent/PUBLIC_PAGES.md` has the check. */
.fill {
  background: var(--note-bg);
  color: var(--note-text);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }

.topbar-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}
.topbar-links a:hover { color: var(--text); background: var(--brand-soft); }

@media (max-width: 520px) {
  .topbar-links .wide { display: none; }
}

/* Hero */

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: clamp(40px, 7vw, 96px) 16px clamp(56px, 8vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.glow-a {
  width: 70vmax; height: 70vmax;
  left: 30%; top: -35vmax;
  background: radial-gradient(closest-side, var(--brand-glow-a), transparent);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.glow-b {
  width: 60vmax; height: 60vmax;
  left: -25vmax; top: 10%;
  background: radial-gradient(closest-side, var(--brand-glow-b), transparent);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.glow-c {
  width: 46vmax; height: 46vmax;
  right: -18vmax; bottom: -20vmax;
  background: radial-gradient(closest-side, var(--brand-glow-c), transparent);
  animation: drift-c 19s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(-12vmax, 8vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(14vmax, -6vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-10vmax, -10vmax, 0) scale(1.18); } }

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

.trail {
  position: absolute;
  left: 38%;
  top: 6%;
  width: 62%;
  height: 84%;
  color: var(--trail);
}
.trail-reveal {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transform: scaleX(1);
  animation: trail-draw 2.4s var(--ease-out) 0.5s both;
}
@keyframes trail-draw { from { transform: scaleX(0); } }

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--surface-line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  animation: rise 0.9s var(--ease-out) both;
}
.eyebrow img { border-radius: 6px; }

h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
}
h1 .line {
  display: block;
  padding-bottom: 0.06em;
  animation: rise 1s var(--ease-out) both;
}
h1 .line-1 { animation-delay: 0.12s; }
h1 .line-2 { animation-delay: 0.26s; }
h1 .line-3 {
  animation-delay: 0.4s;
  background: linear-gradient(100deg, var(--brand) 10%, #8f6bff 55%, #d06ad8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  h1 .line-3 { background-image: linear-gradient(100deg, #b5b0ff 10%, #c9a6ff 55%, #ff9fd2 95%); }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 0.6em, 0); }
}

.lede {
  margin: 24px 0 0;
  max-width: 30em;
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.5;
  color: var(--muted);
  animation: rise 1s var(--ease-out) 0.55s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
  animation: rise 1s var(--ease-out) 0.68s both;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 56px;
  padding: 8px 22px 9px;
  border-radius: 14px;
  background: var(--badge-bg);
  color: var(--badge-text);
  line-height: 1.1;
  box-shadow: 0 12px 30px -12px rgba(20, 18, 70, 0.55);
}
.store-small { font-size: 0.76rem; opacity: 0.82; }
.store-big { font-size: 1.32rem; font-weight: 650; letter-spacing: -0.015em; }

.ghost-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}
.ghost-link::after {
  content: "↓";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s var(--ease-out);
}
.ghost-link:hover::after { transform: translateY(3px); }

.cta-note {
  margin: 14px 0 0;
  animation: rise 1s var(--ease-out) 0.75s both;
}

/* The stage holds the phone and the cards that float around it. */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1600px;
  min-height: 560px;
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}

.float {
  position: relative;
  transform-style: preserve-3d;
  animation: bob 7s ease-in-out 2.4s infinite;
}
@keyframes bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.165);
  background: linear-gradient(145deg, #3a3a44, #121217 40%, #2a2a33);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px #0b0b10,
    var(--phone-shadow);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.135);
  aspect-ratio: 1320 / 2868;
  background: #f2f2f7;
  transform: translateZ(0);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.island {
  position: absolute;
  top: 2.1%;
  left: 50%;
  width: 31%;
  height: 3.7%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.phone-hero {
  --pw: clamp(250px, 24vw, 310px);
  transform: rotateX(8deg) rotateY(-14deg) rotateZ(2deg);
  animation: phone-in 1.6s var(--ease-out) 0.25s both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translate3d(40px, 120px, -120px) rotateX(36deg) rotateY(-30deg) rotateZ(10deg);
  }
  35% { opacity: 1; }
}

/* The screen cycles Home, Add transaction, Plan. */
.screen { display: block; position: absolute; inset: 0; }
.screen-1 { position: relative; }
.screen-2 { animation: screen-2 15s ease-in-out 3.4s infinite both; }
.screen-3 { animation: screen-3 15s ease-in-out 3.4s infinite both; }
.screen img { position: absolute; inset: 0; }
.screen-1 img { position: relative; }
.screen-2, .screen-3 { opacity: 0; }
@keyframes screen-2 {
  0%, 28% { opacity: 0; transform: scale(1.04); }
  33%, 61% { opacity: 1; transform: scale(1); }
  66%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes screen-3 {
  0%, 61% { opacity: 0; transform: scale(1.04); }
  66%, 94% { opacity: 1; transform: scale(1); }
  99%, 100% { opacity: 0; transform: scale(1); }
}

/* Floating cards */

.float-card {
  position: absolute;
  transform-style: preserve-3d;
}
.card-pos-tx { left: -46%; top: 50%; transform: translateZ(70px); }
.card-pos-budget { right: -40%; top: 12%; transform: translateZ(110px); }
.card-pos-lock { right: -22%; bottom: 9%; transform: translateZ(140px); }

.card {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  color: var(--text);
  text-align: left;
}

.card-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.card-tx {
  width: 276px;
  padding: 14px 14px 8px;
  animation: card-in-left 1s var(--ease-out) 1.25s both;
}
@keyframes card-in-left {
  from { opacity: 0; transform: translate3d(-40px, 16px, 0) scale(0.94); }
}

.tx {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--surface-line);
  animation: row-in 0.8s var(--ease-out) both;
}
.tx-1 { border-top: 0; animation-delay: 1.55s; }
.tx-2 { animation-delay: 1.8s; }
.tx-3 { animation-delay: 2.05s; }
@keyframes row-in {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); }
}

.tx-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.tx-icon svg { width: 17px; height: 17px; }
.tx-food { background: rgba(255, 149, 0, 0.16); color: #c26a00; }
.tx-car { background: rgba(0, 122, 255, 0.14); color: #0a63cc; }
.tx-home { background: rgba(88, 86, 214, 0.15); color: #4b44c8; }
@media (prefers-color-scheme: dark) {
  .tx-food { color: #ffb347; }
  .tx-car { color: #6fb2ff; }
  .tx-home { color: #b5b0ff; }
}

.tx-text { min-width: 0; line-height: 1.2; }
.tx-text b {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-amt { font-size: 0.84rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.card-budget {
  width: 220px;
  padding: 16px 16px 14px;
  animation: card-in-right 1s var(--ease-out) 1.7s both;
}
@keyframes card-in-right {
  from { opacity: 0; transform: translate3d(40px, -12px, 0) scale(0.94); }
}

.budget-figure {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #8f6bff);
  transform-origin: 0 50%;
  transform: scaleX(0.918);
  animation: bar-fill 1.6s cubic-bezier(0.3, 0.7, 0.2, 1) 2.1s both;
}
@keyframes bar-fill { from { transform: scaleX(0); } }

.card-foot {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.card-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  animation: pop-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 2.6s both;
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
}
.lock-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .lock-icon { background: #615ce6; }
}
.lock-icon svg { width: 15px; height: 15px; }

/* Pauses the endless loops while the hero is off screen. home.js sets it. */
.hero.is-offscreen .glow,
.hero.is-offscreen .float,
.hero.is-offscreen .screen { animation-play-state: paused; }

/* Hero layout on narrow screens */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .stage { min-height: 0; margin-top: 28px; }
  .trail { left: -10%; width: 120%; top: 52%; height: 46%; }
  .phone-hero { transform: rotateX(6deg) rotateY(-8deg) rotateZ(1deg); }
}

@media (max-width: 720px) {
  .phone-hero { --pw: min(62vw, 270px); }
  .card-pos-tx { left: -24%; top: 56%; }
  .card-pos-budget { right: -20%; top: 9%; }
  .card-pos-lock { right: -12%; bottom: 4%; }
  .card-tx { width: 214px; padding: 11px 11px 5px; }
  .tx { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 5px 0; }
  .tx-icon { width: 26px; height: 26px; }
  .tx-3 { display: none; }
  .card-budget { width: 172px; padding: 12px; }
  .budget-figure { font-size: 1.45rem; }
  .card-lock { font-size: 0.76rem; padding: 7px 12px 7px 7px; }
  .lock-icon { width: 24px; height: 24px; }
}

@media (max-width: 400px) {
  .card-pos-tx { left: -14%; }
  .card-pos-budget { right: -12%; }
  .card-pos-lock { right: -6%; }
  .card-tx { width: 190px; }
  .card-budget { width: 150px; }
}

/* Features */

.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) 16px 0;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 6vw, 80px) 0;
}
.feature:nth-child(even) .feature-media { order: 2; }

.feature-media {
  display: grid;
  place-items: center;
  perspective: 1400px;
  position: relative;
}
.feature-media::before {
  content: "";
  position: absolute;
  width: min(120%, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-glow-a), transparent);
  opacity: 0.45;
  z-index: -1;
}
.feature-media .phone { --pw: clamp(220px, 26vw, 300px); }

.kicker {
  margin: 0 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.feature h2, .privacy h2, .plans h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.feature-copy > p:not(.kicker) {
  margin: 18px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 28em;
}

.points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 30em;
}
.points li {
  position: relative;
  padding-left: 30px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 5.5px var(--brand-soft), inset 0 0 0 9px var(--brand);
}

@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; text-align: left; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media .phone { --pw: min(64vw, 270px); }
}

/* Privacy */

.privacy {
  padding: clamp(48px, 8vw, 120px) 16px;
}
.privacy-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(120, 100, 255, 0.4), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(208, 106, 216, 0.22), transparent 70%),
    var(--panel-bg);
  color: var(--panel-text);
  overflow: hidden;
}
.privacy .kicker { color: var(--panel-icon); }
.privacy-lede {
  margin: 16px 0 0;
  font-size: 1.15rem;
  color: var(--panel-muted);
}

.tiles {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  padding: 22px;
  border-radius: 20px;
  background: var(--panel-tile);
  border: 1px solid var(--panel-line);
}
.tile svg { width: 28px; height: 28px; color: var(--panel-icon); }
.tile h3 { margin: 14px 0 6px; font-size: 1.08rem; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--panel-muted); font-size: 0.97rem; }

.privacy-more { margin: 32px 0 0; }
.privacy-more a { color: #fff; font-weight: 600; }

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

/* Free and Premium */

.plans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px clamp(48px, 7vw, 96px);
}
.plan-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.plan-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--surface-line);
}
.plan-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.plan-card p { margin: 10px 0 0; color: var(--muted); }
.plan-premium {
  background: linear-gradient(160deg, var(--brand-soft), transparent 70%), var(--surface);
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.plan-premium h3 { color: var(--brand); }
@media (max-width: 720px) { .plan-cards { grid-template-columns: 1fr; } }

/* Closing */

.closing {
  text-align: center;
  padding: clamp(48px, 8vw, 112px) 16px clamp(64px, 9vw, 128px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, var(--brand-glow-a), transparent 70%);
}
.closing-icon {
  border-radius: 24px;
  box-shadow: 0 24px 50px -18px rgba(56, 51, 158, 0.7);
}
.closing h2 {
  margin-top: 22px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
}
.closing p:not(.store-badge) { margin: 6px 0 26px; color: var(--muted); font-size: 1.15rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 32px 16px calc(40px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { max-width: 46em; }
.site-footer p { margin: 0 0 8px; }

/* Scroll-driven reveals, where the browser supports them. Without support,
   everything is simply visible. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature-media .phone {
      animation: tilt-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
    .feature:nth-child(even) .feature-media .phone { animation-name: tilt-in-mirror; }
    .feature-copy > *,
    .tile,
    .plan-card {
      animation: fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .hero-copy {
      animation: hero-out linear both;
      animation-timeline: view();
      animation-range: exit 10% exit 90%;
    }
  }
}

@keyframes tilt-in {
  from { opacity: 0.2; transform: translate3d(0, 90px, 0) rotateX(28deg) rotateY(18deg) rotateZ(-4deg) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes tilt-in-mirror {
  from { opacity: 0.2; transform: translate3d(0, 90px, 0) rotateX(28deg) rotateY(-18deg) rotateZ(4deg) scale(0.9); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 36px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-out {
  to { opacity: 0; transform: translate3d(0, -40px, 0); }
}

/* Reduced motion: every element sits in its final state. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .screen-2, .screen-3 { display: none; }
}
