/* Offrivals — landing page
 *
 * Tokens first, then base, then components in page order. No build step: this
 * file is served as is. The palette and type come from the Offrivals brand
 * manual: Carvão and Papel as the base, Rosa-líder as the only accent, one
 * family (Archivo) in two widths, 125 for display and 100 for text. The page
 * keeps the black-canvas, pill vocabulary of fora.so.
 *
 * Rosa-líder is a signal, not an interface colour: it marks the symbol, the
 * value in play and whoever receives it. There is no green and no gold, and
 * failure is never red: on the scoreboard, state is a shape (full disc kept,
 * empty ring slipped, dashed ring no proof) plus grey text with the amount.
 */

:root {
  --bg: #141316;          /* Carvão */
  --surface: #1c1b1e;
  --surface-2: #232225;
  --surface-3: #2a292c;
  --line: rgba(245, 244, 240, 0.1);
  --line-strong: rgba(245, 244, 240, 0.18);
  --ink: #f5f4f0;         /* Papel */
  --ink-80: rgba(245, 244, 240, 0.8);
  --ink-65: rgba(245, 244, 240, 0.65);
  --ink-45: rgba(245, 244, 240, 0.45);
  --ink-25: rgba(245, 244, 240, 0.25);
  --glass: rgba(245, 244, 240, 0.1);
  --glass-strong: rgba(245, 244, 240, 0.8);

  /* Brand accent. Symbol, the value in play, whoever receives it. */
  --accent: #ff3d7f;      /* Rosa-líder */
  --accent-text: #c2185b; /* Rosa-texto: the accent as text on Papel */
  --stone: #9c9a94;       /* Pedra: secondary text on Carvão */
  --amber: #e17100;       /* Âmbar-voto: only the pending vote */

  /* App mockup palette, mirrors the product itself (light, neutral). */
  --app-bg: #f5f4f0;      /* Papel */
  --app-card: #fff;
  --app-line: #dedcd6;    /* Linha */
  --app-ink: #141316;     /* Carvão */
  --app-muted: #6b6a66;   /* Grafite */

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Archivo width 125 for display, 100 for text. */
  --stretch-display: 125%;

  --container: 1080px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;

  /* Motion. Short and decisive: nothing here should make you wait. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --t-fast: 180ms;
  --t: 320ms;
  --t-reveal: 560ms;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-80);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}

h3 {
  font-size: clamp(22px, 2.3vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-65);
  max-width: 34em;
}

.dim {
  color: var(--ink-45);
}

/* ---------- Pills and buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px 0 12px;
  border-radius: var(--pill);
  background: var(--glass);
  color: var(--ink-80);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-45);
}

.pill--plain::before {
  display: none;
}

.pill--plain {
  padding-inline: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 60ms;
}

.btn--primary {
  background: var(--glass-strong);
  color: var(--bg);
}

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

.btn--ghost {
  background: var(--glass);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn--lg {
  height: 52px;
  padding: 0 32px;
  font-size: 15px;
}

.btn--sm {
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

/* The symbol: the O of Off split in two identical half-rings, face to face,
 * one a step ahead. Always Rosa-líder, never two colours, never aligned. */
.brand__mark {
  width: auto;
  height: 22px;
  fill: var(--accent);
  flex: none;
}

/* The wordmark is live text in Archivo 125: "off" regular, "rivals" black.
 * The break off | rivals comes from weight alone, so it survives one colour. */
.wordmark {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 850;
}

.brand .wordmark {
  font-size: 21px;
}

.nav__links {
  display: flex;
  gap: 8px;
}

.nav__links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--pill);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.nav__links a:hover {
  background: var(--glass);
}

.nav__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.nav__actions .nav__signin {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--pill);
  background: var(--glass);
  place-items: center;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform var(--t) var(--ease-out);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -5px;
}

.nav__toggle span::after {
  top: 5px;
}

.nav.is-open .nav__toggle span {
  background: transparent;
}

.nav.is-open .nav__toggle span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav.is-open .nav__toggle span::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav__inner {
    grid-template-columns: 1fr auto;
  }

  .nav__links {
    display: none;
  }

  .nav__actions .nav__signin {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }

  .nav.is-open {
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .nav.is-open .nav__links a {
    font-size: 18px;
    padding: 12px 8px;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section__head .pill {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 8px;
}

.section__head h2 .soft {
  color: var(--ink-45);
  display: block;
}

.section__head .lede {
  padding-bottom: 6px;
}

@media (max-width: 760px) {
  .section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Layered landscapes ----------
 * Like fora.so: the horizon is built from separate PNG ridges with real alpha,
 * stacked at the bottom of the section over a dusk-sky gradient. Each ridge
 * carries a depth (0 = infinitely far, 1 = foreground) and moves by
 * `--py * depth` as the section crosses the viewport. `--py` is one registered
 * custom property animated on the container by a scroll-driven animation, so
 * the whole effect stays on the compositor; where `animation-timeline` does
 * not exist, main.js writes the same `--py` from a rAF loop, gated to the
 * containers that are actually on screen.
 */

@property --py {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.layers {
  --py: 0px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
  z-index: 0;
}

/* The sky: black at the top, blue-grey towards the horizon, a rose band right
 * where the far ridge will cut it. */
.layers::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 60% at 50% 100%, rgba(211, 151, 148, 0.34) 0%, rgba(96, 70, 78, 0.4) 28%, rgba(40, 44, 52, 0.7) 58%, rgba(0, 0, 0, 0) 100%);
}

.layer {
  position: absolute;
  left: 50%;
  /* Overhang at least the full parallax travel (72px), so the ridge never
   * lifts off the bottom edge of its box when it is pulled up on exit. */
  bottom: min(-6%, -80px);
  /* The ridges are one wide scene the box shows the middle of, not an image
   * fitted to the box. `max-width: none` opts out of the global img reset:
   * with it clamped, a 390px-wide phone got a 100px-tall ridge, the -80px
   * overhang ate 80 of those, and the whole landscape vanished on mobile. */
  max-width: none;
  width: max(100%, 900px);
  height: auto;
  /* Before the PNG arrives the img has no height and, anchored at bottom:-6%,
   * sits entirely outside the clipped box, so loading="lazy" never fires.
   * The fallback ratio gives it a box; the intrinsic ratio wins once loaded. */
  aspect-ratio: auto 4 / 1;
  --depth: 0.5;
  transform: translate(-50%, calc(var(--py) * var(--depth)));
  will-change: transform;
}

.layer[data-depth="0.25"] { --depth: 0.25; }
.layer[data-depth="0.35"] { --depth: 0.35; }
.layer[data-depth="0.55"] { --depth: 0.55; }
.layer[data-depth="0.6"]  { --depth: 0.6; }
.layer[data-depth="1"]    { --depth: 1; }

/* Fade the top of the scene into the page so the sky never shows an edge. */
.layers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(20, 19, 22, 0.75) 18%, rgba(20, 19, 22, 0) 45%);
}

/* A block of layers drawn in front of the content (the hero's nearest ridge
 * passes over the phone). No sky and no top fade: those belong to the block
 * behind the content, which shares the same box and the same --py. */
.layers--front {
  z-index: 2;
}

.layers--front::before {
  display: none;
}

/* The front ridge is cut by the section's bottom edge; melt its foot into
 * the page so the cut never reads as a line. */
.layers--front::after {
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(20, 19, 22, 0) 0%, var(--bg) 100%);
}

@keyframes parallax-py {
  from { --py: 72px; }
  to   { --py: -72px; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .layers {
      animation: parallax-py linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer {
    transform: translate(-50%, 0);
  }
}

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

.hero {
  position: relative;
  padding: 160px 0 0;
  overflow: clip;
}

.hero .layers {
  top: 34%;
}

.hero .layers::before {
  background:
    radial-gradient(120% 70% at 50% 100%, rgba(211, 151, 148, 0.4) 0%, rgba(96, 70, 78, 0.45) 26%, rgba(40, 44, 52, 0.75) 56%, rgba(0, 0, 0, 0) 100%);
}

/* The sky's glow peaks at the bottom of the box, which is also the bottom of
 * the section: melt it into the page there as well as at the top. */
.hero .layers:not(.layers--front)::after {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(20, 19, 22, 0.75) 18%, rgba(20, 19, 22, 0) 45%, rgba(20, 19, 22, 0) 82%, var(--bg) 100%);
}

/* The hero is tall, so its ridges are drawn bigger than the viewport. */
.hero .layer {
  width: max(100%, 1100px);
}

.hero__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__copy h1 {
  max-width: 14ch;
}

/* Portuguese runs longer; keep the headline on two lines. */
html[lang="pt-BR"] .hero__copy h1 {
  max-width: 18ch;
}

.hero__copy .lede {
  text-align: center;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__cta small {
  font-size: 13px;
  color: var(--ink-45);
}

/* The group chat: the most seen surface of the product. */
.chat {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 96px);
  height: 640px;
  display: grid;
  place-items: end center;
}

.phone {
  position: relative;
  width: 300px;
  height: 640px;
  border-radius: 44px;
  background: #0d0d0d;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--app-bg);
}

.phone__screen img {
  width: 100%;
  height: auto;
}

.phone--tall {
  height: 720px;
}

.bubble {
  position: absolute;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.bubble__who {
  display: block;
  font-size: 12px;
  color: var(--ink-45);
  margin-bottom: 4px;
}

.bubble--me {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.bubble--me .bubble__who {
  color: var(--app-muted);
}

.bubble__card {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.bubble__card img {
  width: 100%;
  height: auto;
}

.bubble__card small {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--app-muted);
  background: var(--app-bg);
}

.bubble--1 {
  left: calc(50% - 470px);
  top: 40px;
  width: 260px;
}

.bubble--2 {
  right: calc(50% - 440px);
  top: 170px;
}

.bubble--3 {
  right: calc(50% - 480px);
  top: 250px;
}

.bubble--4 {
  left: calc(50% - 420px);
  top: 330px;
}

.bubble__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatars {
  display: inline-flex;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--bg);
  background: #d9d9d9;
  border: 2px solid var(--surface-2);
  margin-left: -6px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar--a { background: #e8d8c3; }
.avatar--b { background: #c9d6e2; }
.avatar--c { background: #d6c9e2; }

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(20, 19, 22, 0), var(--bg) 90%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .bubble--1 { left: var(--gutter); }
  .bubble--2 { right: var(--gutter); }
  .bubble--3 { right: var(--gutter); top: 270px; }
  .bubble--4 { left: var(--gutter); }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 120px;
  }

  .chat {
    height: auto;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .phone {
    order: 5;
    width: min(300px, 82vw);
    height: auto;
    aspect-ratio: 300 / 600;
    margin-top: 16px;
  }

  .bubble {
    position: static;
    max-width: 320px;
    width: 100%;
  }

  .bubble--me {
    align-self: flex-end;
    max-width: 320px;
  }
}

/* ---------- Intro: words that light up as you read ---------- */

.intro {
  padding-block: clamp(72px, 9vw, 120px) clamp(24px, 4vw, 48px);
}

.intro__text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.intro__text p {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
}

/* Each word carries --i (its position 0..1 across the whole block); the block
 * carries --p (how far the reader has scrolled through it). The word lights up
 * once --p passes --i, over a short ramp, starting from --w0. This is one
 * custom property write per frame on the block, and no layout. The same
 * mechanism runs on the two-tone section titles, whose second line starts
 * soft and ends white. */
[data-highlight] {
  --w0: 0.18;
}

.section__head h2[data-highlight] {
  --w0: 0.45;
}

[data-highlight] .w {
  opacity: clamp(var(--w0), (var(--p, 0) - var(--i)) * 6 + var(--w0), 1);
  transition: opacity 80ms linear;
}

@media (prefers-reduced-motion: reduce) {
  [data-highlight] .w {
    opacity: 1;
    transition: none;
  }
}

/* ---------- Features (tabs + big card) ---------- */

.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  height: 44px;
  border-radius: var(--pill);
  font-size: 15px;
  color: var(--ink-65);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: var(--glass);
  color: var(--ink);
}

@media (max-width: 720px) {
  .tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    padding: 0 18px;
  }
}

.showcase {
  position: relative;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 560px;
  display: grid;
}

.showcase .layers {
  grid-area: 1 / 1;
}

.showcase .layer {
  width: max(100%, 1300px);
}

.panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.985);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), visibility 0s linear var(--t);
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), visibility 0s;
}

.showcase__nav {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.showcase__caption {
  text-align: center;
  color: var(--ink-65);
  font-size: 15px;
}

.round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.round:hover {
  background: rgba(255, 255, 255, 0.16);
}

.round:active {
  transform: scale(0.94);
}

/* ---------- App mockups (built in HTML, in the product's own look) ---------- */

.app {
  width: min(100%, 420px);
  background: var(--app-bg);
  color: var(--app-ink);
  border-radius: 18px;
  padding: 20px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.15),
    0 30px 60px -20px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  line-height: 1.4;
}

.app__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.app__bar span {
  font-weight: 400;
  font-size: 12px;
  color: var(--app-muted);
}

.app__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.app__sub {
  color: var(--app-muted);
  margin-bottom: 14px;
}

.app__card {
  background: var(--app-card);
  border: 1px solid var(--app-line);
  border-radius: 10px;
  overflow: hidden;
}

.app__card + .app__card {
  margin-top: 10px;
}

.app__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--app-line);
}

.app__row:first-child {
  border-top: 0;
}

.app__row b {
  font-weight: 500;
}

.app__row .muted,
.app .muted {
  color: var(--app-muted);
}

.app__row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

/* Whoever receives gets the pill in Rosa-líder. Whoever pays is grey, with
 * the amount and no adjective. */
.app__row .num--gets {
  padding: 3px 9px;
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--app-ink);
  font-weight: 700;
}

.app__row .num--pays,
.app__row .num--none {
  color: var(--app-muted);
}

.app__row .num--none {
  font-weight: 400;
}

/* Scoreboard state, by shape: full disc kept the deal, empty ring slipped,
 * dashed ring sent no proof. Same size and weight for everyone. */
.st {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--app-ink);
  vertical-align: -1px;
  margin-right: 8px;
  flex: none;
}

.st--in {
  background: var(--app-ink);
}

.st--out {
  border-color: var(--app-muted);
}

.st--none {
  border-style: dashed;
  border-color: var(--app-muted);
}

/* The result of a closed cycle: the one place Rosa-líder enters the app. */
.app__card--result {
  background: var(--app-ink);
  border-color: var(--app-ink);
  color: var(--app-card);
}

.app__card--result .app__kicker {
  background: transparent;
  border-bottom: 0;
  color: var(--stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app__card--result .app__big {
  padding-top: 0;
}

.app__card--result .app__big em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 800;
  font-size: 1.35em;
  letter-spacing: -0.02em;
}

.app__card--result .muted,
.app__card--result .app__body.muted {
  color: var(--stone);
}

.app__kicker {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--app-muted);
  background: #faf9f6;
  border-bottom: 1px solid var(--app-line);
  display: flex;
  justify-content: space-between;
}

.app__big {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 4px 14px 0;
}

.app__body {
  padding: 12px 14px 14px;
}

.app__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--app-ink);
  color: var(--app-card);
  font-weight: 500;
  margin-top: 12px;
}

.app__btn--ghost {
  background: var(--app-card);
  color: var(--app-ink);
  border: 1px solid var(--app-line);
}

.app__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app__btns .app__btn {
  margin-top: 0;
}

.app__proof {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    linear-gradient(to right, transparent 0 62%, rgba(20, 19, 22, 0.06) 62% 100%),
    repeating-linear-gradient(to right, transparent 0 14px, rgba(0, 0, 0, 0.05) 14px 15px),
    linear-gradient(#f0efeb, #e8e7e2);
  border: 1px solid var(--app-line);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.app__proof::before {
  content: "";
  position: absolute;
  inset: auto 12px 12px;
  height: 46%;
  background:
    linear-gradient(to top, #141316 0 38%, transparent 38%) 0 100% / 12% 100% no-repeat,
    linear-gradient(to top, #141316 0 62%, transparent 62%) 16% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #141316 0 50%, transparent 50%) 32% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #141316 0 30%, transparent 30%) 48% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #141316 0 44%, transparent 44%) 64% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #9c9a94 0 22%, transparent 22%) 80% 100% / 12% 100% no-repeat,
    linear-gradient(to top, #9c9a94 0 26%, transparent 26%) 100% 100% / 12% 100% no-repeat;
}

.app__proof::after {
  content: "Daily average · 1h 12m";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  color: var(--app-ink);
  font-weight: 500;
}

.votes {
  display: flex;
  gap: 6px;
  align-items: center;
}

.vote {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--app-ink);
}

.vote--ok {
  outline: 2px solid var(--app-ink);
  outline-offset: 1px;
}

/* Pending is the one place amber lives: a vote still waiting for someone. */
.vote--wait {
  outline: 2px dashed var(--amber);
  outline-offset: 1px;
}

.app__pay {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-card);
  font-weight: 500;
}

.app__pay + .app__pay {
  margin-top: 8px;
}

.app__pay i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #32bcad;
}

.app__pay i.venmo { background: #008cff; }
.app__pay i.paypal { background: #003087; }

.app__pay small {
  margin-left: auto;
  color: var(--app-muted);
  font-weight: 400;
}

.app__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--app-line);
}

.app__check i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--app-line);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}

.app__check i.done {
  background: var(--app-ink);
  border-color: var(--app-ink);
  color: var(--app-card);
}

.app__check .muted {
  margin-left: auto;
  font-size: 12px;
}

/* Signature hash, the visible proof of a frozen rule. */
.hash {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--app-muted);
  word-break: break-all;
  line-height: 1.35;
}

/* ---------- Stack (sticky cards) ---------- */

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.9);
}

.card:nth-child(2) { top: 112px; }
.card:nth-child(3) { top: 128px; }
.card:nth-child(4) { top: 144px; }

.card__copy {
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card__copy .pill {
  align-self: flex-start;
}

.card__copy h3 {
  margin-top: 12px;
}

.card__copy .lede {
  font-size: 15px;
}

.card__note {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-65);
}

.card__note svg {
  width: 18px;
  height: 18px;
  color: var(--ink-45);
}

.card__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
  background: linear-gradient(var(--bg), #1f2228);
  overflow: clip;
}

/* The card visuals are narrow and tall: draw the ridge wider than the box so
 * it reads as a landscape and not as a strip. */
.card__visual .layer {
  width: max(160%, 800px);
}

.card__visual > .app,
.card__visual > .phone {
  position: relative;
  z-index: 1;
}

.card--flip .card__visual {
  order: -1;
}

@media (max-width: 860px) {
  .card {
    grid-template-columns: 1fr;
    min-height: 0;
    position: relative;
    top: auto !important;
  }

  .card--flip .card__visual {
    order: 0;
  }

  .card__visual {
    padding: 28px var(--gutter);
  }

  .card__note {
    padding-top: 20px;
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plan--lift {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-16px);
}

.plan__name {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-65);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan__price {
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.plan__price small {
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink-45);
  margin-left: 6px;
}

.plan__desc {
  color: var(--ink-65);
  font-size: 15px;
  min-height: 3em;
}

.plan ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.plan li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.plan li i {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--glass);
  display: grid;
  place-items: center;
}

.plan li i svg {
  width: 11px;
  height: 11px;
}

.plan--never li i {
  background: transparent;
  border: 1px solid var(--line-strong);
}

@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .plan--lift {
    transform: none;
  }
}

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

.faq {
  display: grid;
  grid-template-columns: 344px 1fr;
  gap: 48px;
  align-items: start;
}

.faq__groups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 96px;
}

.faq__groups .tab {
  height: 44px;
  text-align: center;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__list[hidden] {
  display: none;
}

.q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.q__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 28px 36px;
  text-align: left;
  font-size: 16px;
  color: var(--ink);
}

.q__btn .round {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  transition: transform var(--t) var(--ease-out), background-color var(--t-fast) var(--ease);
}

.q__btn .round svg {
  width: 14px;
  height: 14px;
}

.q[open] .q__btn .round,
.q.is-open .q__btn .round {
  transform: rotate(180deg);
}

.q__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease-out);
}

.q.is-open .q__body {
  grid-template-rows: 1fr;
}

.q__body > div {
  overflow: hidden;
}

.q__body p {
  padding: 0 36px 28px;
  color: var(--ink-65);
  font-size: 15px;
  max-width: 60ch;
}

@media (max-width: 860px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq__groups {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .faq__groups .tab {
    flex: 0 0 auto;
    padding: 0 18px;
  }

  .q__btn {
    padding: 22px;
  }

  .q__body p {
    padding: 0 22px 22px;
  }
}

/* ---------- Reading ---------- */

.section__head--row {
  align-items: center;
}

.section__head--row .btn {
  justify-self: end;
}

@media (max-width: 760px) {
  .section__head--row .btn {
    justify-self: start;
  }
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease-out);
}

.post:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.post__art {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-stretch: var(--stretch-display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.post__art--a { background: radial-gradient(90% 90% at 30% 100%, #3b2f38 0, var(--bg) 70%); }
.post__art--b { background: radial-gradient(90% 90% at 70% 0%, #2a3038 0, var(--bg) 70%); }
.post__art--c { background: radial-gradient(90% 90% at 50% 100%, #3a332a 0, var(--bg) 70%); }

.post__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post__body h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 500;
  font-family: var(--font);
}

.post__meta {
  font-size: 13px;
  color: var(--ink-45);
}

@media (max-width: 860px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 9vw, 120px) 0 0;
}

.cta .layers {
  top: 30%;
}

.cta .layer {
  width: max(100%, 1100px);
}

/* On a phone every box is ~350px wide, so a ridge sized to its box would be a
 * 100px strip and the -80px overhang would hide most of it. Draw the scene at
 * about the pixel height it has on a desktop and let the narrow box show the
 * middle of it: the horizon reads as a landscape, and the parallax has
 * something to move. (Placed after the per-section widths above so it wins at
 * equal specificity.) */
@media (max-width: 860px) {
  .hero .layer,
  .cta .layer {
    width: 1300px;
  }

  .card__visual .layer {
    width: 900px;
  }
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 96px;
}

.cta__copy h2 {
  max-width: 12ch;
}

.cta__visual {
  position: relative;
  min-height: 560px;
}

.cta__visual .phone {
  position: absolute;
  left: 0;
  top: 0;
}

.cta__visual .bubble {
  position: absolute;
  left: 330px;
  top: 60px;
  max-width: 300px;
}

.cta__visual .bubble--b {
  top: 210px;
  left: 360px;
}

.cta__visual .bubble--c {
  top: 300px;
  left: 300px;
}

@media (max-width: 860px) {
  .cta__grid {
    grid-template-columns: 1fr;
  }

  .cta__copy {
    padding-bottom: 32px;
  }

  .cta__visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-bottom: 48px;
  }

  .cta__visual .phone {
    position: static;
    order: 5;
    width: min(300px, 82vw);
    height: auto;
    aspect-ratio: 300 / 600;
  }

  .cta__visual .bubble {
    position: static;
    width: 100%;
    max-width: 320px;
  }
}

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

.footer {
  position: relative;
  background: var(--bg);
  padding: 64px 0 40px;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer__col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-65);
  transition: color var(--t-fast) var(--ease);
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.footer__brand p {
  max-width: 28ch;
  font-size: 14px;
  color: var(--ink-45);
}

.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-45);
}

/* ---------- Language switcher (nav, mobile menu, footer) ---------- */

.lang {
  display: inline-flex;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-65);
}

.lang a {
  padding: 4px 8px;
  border-radius: 6px;
  color: inherit;
}

.lang a:hover {
  color: var(--ink);
}

.lang a[aria-current] {
  background: var(--glass);
  color: var(--ink);
}

.lang--nav {
  margin-right: 4px;
}

/* The menu copy only shows inside the open mobile menu. */
.lang--menu {
  display: none;
}

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

  .nav.is-open .nav__links .lang--menu {
    display: inline-flex;
    margin-top: 12px;
    padding: 0 8px;
  }

  .nav.is-open .nav__links .lang--menu a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal ----------
 * Elements marked data-reveal start slightly low and transparent and settle in
 * once they enter the viewport. One short move, no bounce, no waiting: the
 * page never holds content back from a reader who scrolls fast. Groups
 * stagger their children by 60ms.
 */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Sticky cards must not carry a transform after settling: it would create a
 * containing block and break the stack. `none` above handles it. */

/* The hero's own sequence, on load. */
.hero [data-reveal] {
  transition-duration: 720ms;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .round,
  .post,
  .panel,
  .q__body,
  .q__btn .round {
    transition: none;
  }
}

/* Once JS has not run (or failed), nothing may stay hidden. */
html.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Brand inside the mockups and the footer ---------- */

/* The app bar carries the same lockup, smaller. `.app__bar span` styles the
 * note on the right; these win on specificity. */
.app__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app__bar .app__logo,
.app__bar .app__logo .wordmark {
  font-size: 15px;
  color: var(--app-ink);
}

.app__logo .brand__mark {
  height: 15px;
}

/* "a product by Fourtastic": text only, Archivo 500 and 700, never a symbol. */
.endorse {
  font-weight: 500;
}

.endorse b {
  font-weight: 700;
  color: var(--ink-80);
}

/* `.footer__col a` makes links blocks; the lockup stays a row. */
.footer__brand .brand {
  display: inline-flex;
  padding: 0;
}
