/* Rhythms landing page. Tokens mirror the app's design system (Shared/Theme, DesignSystem/Tokens). */

@font-face { font-family: Figtree; src: url("../assets/fonts/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url("../assets/fonts/Figtree-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url("../assets/fonts/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url("../assets/fonts/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url("../assets/fonts/Figtree-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;

  /* Palette.swift */
  --ink: #1a1a1a;
  --ink-secondary: #3f3f3b;
  --ink-tertiary: #55554f;
  --ink-muted: #5f5f5b;
  --ink-faint: #7c7c78;
  --ink-quiet: #9a9a96;
  --fill: #f2f2ef;
  --fill-inset: #f6f6f4;
  --fill-strong: #e2e2df;
  --track: #ecece9;
  --divider: #efefec;
  --canvas-light: #fcfcfb;
  --canvas-mid: #efede9;
  --canvas-deep: #e2ded6;

  /* AccentPalette (violet by default; main.js swaps these) */
  --accent: #7b3ff2;
  --accent-soft: #eae0fd;
  --accent-ink: #47258c;
  --accent-on: #fff;

  /* Metrics.swift, scaled up for the web */
  --gutter: clamp(20px, 4vw, 48px);
  --radius-hero: 28px;
  --radius-card: 24px;
  --radius-tile: 22px;
  --radius-option: 18px;
  --radius-small: 16px;
  --content: 1180px;

  /* Motion.swift, as curves */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snappy: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-press: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-card: 0 1px 1px rgba(0, 0, 0, 0.03), 0 10px 26px rgba(0, 0, 0, 0.05);
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-cta: 0 10px 22px rgba(0, 0, 0, 0.16);
}

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* No rubber-band past the ends: the fixed water and nav would slide off the page. */
  overscroll-behavior-y: none;
  background-color: var(--canvas-mid);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas-mid);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

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

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

/* ------------------------------------------------------------------ Water */

/* AppBackground: the warm paper canvas. A fixed layer rather than background-attachment: fixed,
   which mobile Safari repaints on every scroll. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  background: linear-gradient(135deg, var(--canvas-light) 0%, var(--canvas-mid) 52%, var(--canvas-deep) 100%);
  pointer-events: none;
}

/* Sized to the largest viewport so the mobile toolbar collapsing never resizes (and blanks) it. */
canvas.water {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  /* Its own stable GPU layer: mobile Safari otherwise drops it under memory pressure mid-scroll. */
  transform: translateZ(0);
  contain: strict;
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* Carousel neighbours and sliding reveals start outside the page; never let them widen it. */
main { overflow-x: hidden; overflow-x: clip; }

/* ------------------------------------------------------------------ Type */

.display {
  font-weight: 800;
  font-size: clamp(56px, 10.5vw, 156px);
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.title {
  font-weight: 800;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ------------------------------------------------------------------ Layout */

.container {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 9vh, 112px);
}

.section-head {
  display: grid;
  gap: 22px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-head .lead { max-width: 30ch; }

/* ------------------------------------------------------------------ Reveal (Motion.rise / .page) */

.reveal {
  opacity: 0;
  transform: translate3d(var(--from-x, 0), var(--from-y, 28px), 0);
  transition:
    opacity 0.9s var(--ease-smooth),
    transform 1.1s var(--ease-smooth);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.slide { --from-x: 48px; --from-y: 0; }
.reveal.slide-back { --from-x: -48px; --from-y: 0; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.2s ease; transform: none; }
}

/* ------------------------------------------------------------------ Surfaces */

.card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-card);
}

.card.raised {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-raised);
}

.badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size, 46px);
  height: var(--size, 46px);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color 0.6s ease, color 0.6s ease;
}
.badge svg { width: 46%; height: 46%; }
.badge.solid { background: var(--accent); color: var(--accent-on); }

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

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

.pressable {
  transition: transform 0.28s var(--ease-press), box-shadow 0.28s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.pressable:active { transform: scale(0.97); }

/* The App Store badge, drawn as the app's black capsule CTA. */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 30px 10px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
}
.store-button:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); transform: translateY(-1px); }
.store-button:active { transform: scale(0.97); }
.store-button svg { width: 28px; height: 28px; fill: currentColor; margin-top: -3px; }
.store-button span { display: grid; line-height: 1.05; text-align: left; }
.store-button small { font-size: 12px; font-weight: 600; opacity: 0.8; letter-spacing: 0.01em; }
.store-button strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  font-variant-numeric: tabular-nums;
}
.button.small { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.button.secondary { background: var(--fill); color: var(--ink); box-shadow: none; }

/* ------------------------------------------------------------------ Nav */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 24px, 1180px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.button) {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-tertiary);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:not(.button):hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }

@media (max-width: 720px) {
  .nav-links a:not(.button) { display: none; }
}

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

.hero {
  overflow-x: clip;
  padding-top: clamp(120px, 17vh, 170px);
  padding-bottom: clamp(40px, 6vh, 72px);
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.hero .lead {
  max-width: 26ch;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-secondary);
}

.hero-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 10px;
}

.free-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-muted);
}
.free-note .icon { color: var(--accent); fill: currentColor; stroke: none; font-size: 15px; transition: color 0.6s ease; }

/* ------------------------------------------------------------------ Carousel (WelcomeCarousel, scaled up) */

.carousel {
  --card-w: clamp(220px, 23vw, 330px);
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  justify-items: center;
  gap: 26px;
  outline: none;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: calc(var(--card-w) * 2.037);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-stage.is-dragging { cursor: grabbing; }

.carousel-card {
  --dim: 0;
  --lift: 1;
  position: absolute;
  top: 0;
  left: calc(50% - var(--card-w) / 2);
  width: var(--card-w);
  height: calc(var(--card-w) * 2.037);
  margin: 0;
  border-radius: calc(var(--card-w) * 0.16);
  overflow: hidden;
  background: var(--canvas-light);
  box-shadow: 0 calc(var(--card-w) * 0.075) calc(var(--card-w) * 0.19) rgba(0, 0, 0, calc(0.16 * var(--lift)));
  will-change: transform, opacity;
}

.carousel:not(.is-ready) .carousel-card:not(:first-child) { opacity: 0; }

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, var(--dim));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: width 0.42s var(--ease-snappy), background-color 0.3s ease;
}
.carousel-dots button.is-active { width: 18px; background: var(--ink); }
.carousel-dots button::before { content: ""; display: block; margin: -10px -4px; height: 26px; }

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: clamp(56px, 8vh, 88px);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
}
.feature.span-7 { grid-column: span 7; }
.feature.span-5 { grid-column: span 5; }
.feature.span-4 { grid-column: span 4; }

@media (max-width: 1000px) {
  .feature.span-7, .feature.span-5 { grid-column: span 12; }
  .feature.span-4 { grid-column: span 6; }
  .feature.span-4:last-child { grid-column: span 12; }
}
@media (max-width: 680px) {
  .feature.span-4, .feature.span-4:last-child { grid-column: span 12; }
}

.feature-head {
  display: grid;
  gap: 8px;
}
.feature h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.feature p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 34ch;
}
.feature-visual { margin-top: auto; }

/* Block apps: the paused home screen from onboarding */
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 10px;
  padding: 22px 18px;
  border-radius: var(--radius-tile);
  background: var(--fill-inset);
}
.app {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-quiet);
}
.app i {
  display: grid;
  place-items: center;
  width: clamp(44px, 4.6vw, 56px);
  aspect-ratio: 1;
  border-radius: 28%;
  background: #d9d9d5;
  color: var(--ink-faint);
  font-size: 17px;
  opacity: 0.7;
}
.app.allowed { color: var(--ink); }
.app.allowed i { background: #fff; color: var(--ink); opacity: 1; font-size: 22px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); }
.app.mine i { background: var(--accent); color: var(--accent-on); transition: background-color 0.6s ease; }
@media (max-width: 520px) {
  .app-grid { grid-template-columns: repeat(4, 1fr); }
  .app:nth-child(n + 9) { display: none; }
}

/* Weekly goal */
.goal {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-tile);
  background: var(--fill-inset);
}
.goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-muted);
}
.goal-top strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.goal-top b { font-size: 15px; font-weight: 800; color: var(--ink); }
.bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width 1.4s var(--ease-smooth) 0.3s, background-color 0.6s ease;
}
.is-in .bar span { width: var(--value); }
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 84px;
  margin-top: 4px;
}
.week span {
  display: grid;
  gap: 8px;
  justify-items: center;
  height: 100%;
  align-content: end;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-quiet);
}
.week span::before {
  content: "";
  width: 100%;
  max-width: 26px;
  height: 0;
  border-radius: 8px;
  background: var(--chart, #dadad6);
  transition: height 1.1s var(--ease-smooth);
  transition-delay: calc(0.4s + var(--d, 0) * 60ms);
}
.is-in .week span::before { height: calc(var(--h) * 0.62px); }
.week span.done { --chart: var(--accent); color: var(--ink); }

/* Create rhythms: the timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 10px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 63px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: rgba(0, 0, 0, 0.12);
}
.slot {
  display: grid;
  grid-template-columns: 52px 24px 1fr;
  align-items: center;
}
.slot time { display: grid; line-height: 1.1; font-size: 15px; font-weight: 800; }
.slot time small { font-size: 11px; font-weight: 700; color: var(--ink-secondary); }
.slot .node {
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  transition: border-color 0.6s ease;
}
.slot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-tile);
  background: var(--fill-inset);
}
.slot-card strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.slot-card small { font-size: 13px; color: var(--ink-muted); }

/* Triggers */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-option);
  background: var(--fill-inset);
}
.tile strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.tile small { font-size: 13px; line-height: 1.3; color: var(--ink-muted); }

/* Activities */
.path {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  background: var(--fill-inset);
  font-size: 15px;
  font-weight: 700;
}
.chip .badge { --size: 30px; }

/* ------------------------------------------------------------------ About */

.about-inner {
  display: grid;
  justify-items: center;
  gap: 30px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.about-inner .lead { max-width: 34ch; }

.verse {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin-top: 18px;
  padding: clamp(26px, 3vw, 38px) clamp(26px, 3.4vw, 44px);
  border-radius: var(--radius-hero);
  background: var(--accent-soft);
  color: var(--ink);
  text-align: left;
  transition: background-color 0.6s ease;
}
.verse blockquote {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.verse cite { font-style: normal; font-size: 14px; font-weight: 800; color: var(--accent-ink); transition: color 0.6s ease; }

/* ------------------------------------------------------------------ Creator */

.creator {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  max-width: 940px;
  margin-inline: auto;
  padding: clamp(28px, 4.4vw, 60px);
}
@media (max-width: 720px) {
  .creator { grid-template-columns: 1fr; justify-items: start; }
}

.avatar {
  display: grid;
  place-items: center;
  width: clamp(120px, 15vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-on);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 0 0 0 6px #fff, var(--shadow-raised);
  transition: background-color 0.6s ease;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.portrait {
  position: relative;
  width: clamp(200px, 24vw, 300px);
  margin: 0;
  transform: rotate(-2.5deg);
  transition: transform 0.6s var(--ease-snappy);
}
/* A soft accent halo behind the frame, like the water catching light. */
.portrait::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 46px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  opacity: 0.55;
  transform: rotate(5deg);
  transition: background 0.6s ease;
}
.portrait:hover { transform: rotate(0deg) scale(1.02); }
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: 40% 60%;
  /* Solid white frame, drawn on the photo so the halo behind can never tint it. */
  border: 10px solid #fff;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
}
@media (max-width: 720px) {
  .portrait { justify-self: center; margin-bottom: 8px; }
}

.creator-copy { display: grid; gap: 16px; }
.creator-copy h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.creator-copy p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 44ch;
}
.signature { display: grid; margin-top: 6px; font-size: 17px; color: var(--ink-secondary); line-height: 1.35; }
.signature strong { color: var(--ink); font-weight: 800; }

/* ------------------------------------------------------------------ Give */

.give-inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}
.give-inner .lead { max-width: 34ch; }

.give-card {
  width: min(100%, 560px);
  margin-top: clamp(28px, 5vh, 48px);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.give-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-muted);
}
.give-label .badge { --size: 34px; }

.amount {
  font-size: clamp(76px, 11vw, 132px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.amount.is-bumping { animation: bump 0.36s var(--ease-press); }
@keyframes bump { 40% { transform: scale(1.04); } }

.range {
  --fill: 50%;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--track) var(--fill));
}
.range::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--track) var(--fill));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -11px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s var(--ease-press);
}
.range::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft), 0 4px 14px rgba(0, 0, 0, 0.18); }

.range-scale {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: -12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-quiet);
}

.give-card .button { width: 100%; }
.give-card .button .icon { font-size: 18px; }

.give-note {
  min-height: 1.4em;
  margin-top: -8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}
.give-note.is-visible { color: var(--accent-ink); }

.monthly {
  width: min(100%, 880px);
  margin-top: clamp(40px, 7vh, 72px);
  display: grid;
  gap: 18px;
  justify-items: center;
}
.monthly > p { font-size: 16px; font-weight: 700; color: var(--ink); }

.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}
@media (max-width: 760px) {
  .tiers { grid-template-columns: 1fr 1fr; }
}

.tier {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 14px;
  border-radius: var(--radius-option);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  text-align: left;
  text-decoration: none;
}
.tier:hover { transform: translateY(-2px); }
.tier .badge { --size: 38px; }
.tier strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.tier small { font-size: 13px; font-weight: 600; color: var(--ink-muted); }

/* ------------------------------------------------------------------ Download */

.download {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding-bottom: clamp(60px, 10vh, 120px);
}

.download .app-icon {
  width: clamp(112px, 12vw, 148px);
  aspect-ratio: 1;
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.swatches {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
@media (hover: hover) {
  .swatches { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.swatches button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s var(--ease-press), box-shadow 0.3s ease;
}
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--swatch); }

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

.footer {
  padding: 28px 0 40px;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { text-decoration: none; color: var(--ink); font-weight: 700; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .footer .container { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; }
}

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

.legal {
  padding-top: clamp(120px, 18vh, 170px);
  padding-bottom: 120px;
}
.legal article {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 64px);
}
.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.legal .updated { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.legal .summary {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  font-size: 16px;
  line-height: 1.55;
}
.legal .summary strong { display: block; margin-bottom: 6px; color: var(--accent-ink); }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal h2 {
  margin-top: 44px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 800; }
.legal p, .legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }
.legal .caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
.legal table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--divider); color: var(--ink-secondary); line-height: 1.5; }
.legal th { color: var(--ink); font-weight: 800; }
.legal .table-wrap { overflow-x: auto; }
