/* ==========================================================================
   RooMatcha landing page
   Mobile-first. Breakpoints: 720px (tablet), 1200px (desktop).
   ========================================================================== */

/* --- Fonts (self-hosted Nunito variable, 200-1000) ----------------------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --roo-green: #5ca918;
  --roo-green-dark: #4f9214;
  --roo-navy: #142f63;
  --roo-blue: #3a507c;
  --roo-blue-input: #2e57a5;
  --roo-pink: #e91b65;
  --roo-pink-light: #f26293;
  --roo-white: #ffffff;
  --roo-light: #fafafa;
  --roo-select-fill: #cfd5e1;
  --roo-gray-inactive: #8e919c;
  --roo-text-inactive: #484e5f;

  --wash-green: rgba(92, 169, 24, 0.12);
  --wash-green-strong: rgba(92, 169, 24, 0.14);
  --wash-blue: rgba(58, 80, 124, 0.12);
  --wash-pink: rgba(233, 27, 101, 0.1);

  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 20px;
  --section-y: 64px;
  --wrap-max: 520px;
  --reveal-shift: 20px;
}

@media (min-width: 720px) {
  :root { --gutter: 40px; --section-y: 80px; --wrap-max: 640px; }
}

@media (min-width: 1200px) {
  :root {
    --gutter: clamp(48px, 6.94vw, 100px);
    --section-y: 108px;
    --wrap-max: 1240px;
    --reveal-shift: 28px;
  }
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--roo-white);
  background-image: url("../img/bg-light.webp"), linear-gradient(165deg, #fff 0%, #fafaff 30%, #f4f1fa 58%, #edf4ef 100%);
  background-repeat: repeat-y, no-repeat;
  background-size: 100% auto, 100% 100%;
  background-position: center top, center top;
  font-family: var(--font-sans);
  color: var(--roo-navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: var(--roo-blue-input); text-decoration: none; }
a:hover { color: var(--roo-green); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--roo-blue-input); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }

/* Line breaks that only exist in the desktop layout */
.br-d { display: none; }
@media (min-width: 1200px) { .br-d { display: inline; } }

/* --- Typography ---------------------------------------------------------- */
.h1, .h2 {
  font-weight: 900;
  text-transform: uppercase;
  color: var(--roo-navy);
  text-wrap: balance;
}
.h1 { font-size: 34px; line-height: 1.08; letter-spacing: 0.2px; }
.h2 { font-size: 28px; line-height: 1.12; letter-spacing: 0.2px; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--roo-navy); }
.lead { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--roo-blue); text-wrap: pretty; }
.body-text { font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--roo-text-inactive); text-wrap: pretty; }

@media (min-width: 720px) {
  .h1 { font-size: 44px; }
  .h2 { font-size: 34px; }
}
@media (min-width: 1200px) {
  .h1 { font-size: clamp(48px, 4.17vw, 60px); line-height: 1.05; letter-spacing: 0.4px; text-wrap: initial; }
  .h2 { font-size: 40px; line-height: 1.1; letter-spacing: 0.3px; text-wrap: initial; }
  .h3 { font-size: 24px; }
  .lead { font-size: 22px; }
  .body-text { font-size: 19px; }
}

.text-green { color: var(--roo-green); }

/* --- Layout primitives --------------------------------------------------- */
.section { position: relative; padding: var(--section-y) var(--gutter); }
.section--veil { background: rgba(255, 255, 255, 0.34); }
.section--dark {
  background-color: var(--roo-navy);
  background-image: url("../img/bg-dark.webp");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
}
.section--clip { overflow: hidden; }
.wrap { position: relative; max-width: var(--wrap-max); margin: 0 auto; }

.section-head {
  --head-mb: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: var(--head-mb);
}
.section-head--center { align-items: center; text-align: center; }
@media (min-width: 1200px) {
  .section-head { --head-mb: 56px; gap: 18px; max-width: 640px; }
  .section-head--center { max-width: 720px; margin-left: auto; margin-right: auto; }
}

.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* --- Components ---------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(92, 169, 24, 0.14);
  color: var(--roo-green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.section-head--center .eyebrow { align-self: center; }
.eyebrow--tilt { transform: rotate(-2deg); }
.eyebrow--on-dark { background: rgba(255, 255, 255, 0.14); color: var(--roo-white); }
@media (min-width: 1200px) {
  .eyebrow { gap: 8px; padding: 8px 16px; font-size: 14px; letter-spacing: 1.4px; }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}
.tag--green { background: var(--wash-green); color: var(--roo-green-dark); }
.tag--green-strong { background: var(--wash-green-strong); color: var(--roo-green-dark); }
.tag--blue { background: var(--wash-blue); color: var(--roo-blue); }
.tag--pink { background: var(--wash-pink); color: var(--roo-pink); }
.tag--navy-text { color: var(--roo-navy); }
@media (min-width: 1200px) {
  .tag { padding: 12px 22px; font-size: 16px; }
}

.card {
  background: var(--roo-white);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 24px;
  padding: 26px;
}
@media (min-width: 1200px) { .card { padding: 36px; } }

.icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip--green { background: var(--wash-green); color: var(--roo-green-dark); }
.icon-chip--blue { background: var(--wash-blue); color: var(--roo-blue); }
.icon-chip--pink { background: var(--wash-pink); color: var(--roo-pink); }
.icon-chip--sm { width: 46px; height: 46px; border-radius: 14px; }
.icon-chip--sm svg { width: 22px; height: 22px; }
.icon-chip--social { width: 44px; height: 44px; border-radius: 13px; background: var(--roo-light); color: var(--roo-navy); }
.icon-chip--social svg { width: 18px; height: 18px; }
.icon-chip--social:hover { color: var(--roo-green); }
@media (min-width: 1200px) {
  .icon-chip { width: 56px; height: 56px; border-radius: 18px; }
  .icon-chip svg { width: 26px; height: 26px; }
  .icon-chip--sm { width: 48px; height: 48px; }
  .icon-chip--social { width: 44px; height: 44px; border-radius: 13px; }
  .icon-chip--social svg { width: 18px; height: 18px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.btn--dark { background: var(--roo-navy); color: var(--roo-light); }
.btn--dark:hover { color: var(--roo-light); transform: translateY(-2px); }

.store-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
/* Store badges: official artwork, never animated or altered (Apple/Google brand rules).
   Clear space between badges must stay >= 1/4 of the badge height. */
.badge-link { display: inline-flex; padding: 10px; margin: -10px; }
.badge-link img { height: 46px; width: auto; }
@media (min-width: 1200px) {
  .store-badges { gap: 22px; margin-top: 8px; }
  .badge-link img { height: 52px; }
}

.logo { display: flex; align-items: center; gap: 9px; color: var(--roo-navy); font-weight: 900; font-size: 21px; letter-spacing: 0.3px; }
.logo:hover { color: var(--roo-navy); }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo__matcha { color: var(--roo-green); }
.logo--on-dark { color: var(--roo-white); }
.logo--on-dark:hover { color: var(--roo-white); }
@media (min-width: 1200px) {
  .logo { gap: 10px; font-size: 24px; }
  .logo img { width: 36px; height: 36px; border-radius: 10px; }
}

/* --- Reveal / motion ----------------------------------------------------- */
@keyframes reveal-in {
  from { opacity: 0; translate: 0 var(--reveal-shift); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}
@keyframes bob-small {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-5px) rotate(var(--r, 0deg)); }
}
@media (min-width: 1200px) {
  @keyframes bob {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
  }
  @keyframes bob-small {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-6px) rotate(var(--r, 0deg)); }
  }
}

.bob { animation: bob 6s ease-in-out infinite; }
.bob-small { animation: bob-small 5s ease-in-out infinite; }

/* Native scroll-driven reveal (uses `translate`, so it composes with the
   rotate() transforms used on cards). Others: js/main.js adds .reveal-io. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in 0.01s linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 50%;
  }
}
.reveal-io .reveal { opacity: 0; translate: 0 var(--reveal-shift); transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
.reveal-io .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .bob, .bob-small { animation: none !important; }
  .reveal-io .reveal { opacity: 1; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--gutter);
  background: var(--roo-white);
  border-bottom: 1.5px solid var(--roo-select-fill);
}
.nav__start { display: flex; align-items: center; gap: 44px; }
.nav__links { display: none; }
.nav__end { display: flex; align-items: center; gap: 18px; }
.nav__cta { display: none; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 999px;
  background: var(--roo-white);
}
.lang a, .lang span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.lang a { color: var(--roo-blue); }
.lang a:hover { color: var(--roo-green); }
.lang [aria-current] { background: var(--roo-navy); color: var(--roo-white); }

@media (min-width: 1200px) {
  .nav { position: relative; height: 92px; }
  .nav__links { display: flex; align-items: center; gap: 32px; }
  .nav__links a { color: var(--roo-navy); font-size: 15px; font-weight: 700; }
  .nav__links a:hover { color: var(--roo-green); }
  .nav__cta { display: inline-flex; }
  .lang { gap: 4px; padding: 4px; }
  .lang a, .lang span { height: 36px; padding: 0 14px; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero__inner { display: flex; flex-direction: column; gap: 20px; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero__copy .lead { margin-top: 4px; }
.hero__accent { position: relative; display: inline-block; }
.hero__accent svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 12px; overflow: visible; }
.hero__deco-green { top: -120px; right: -140px; width: 380px; height: 380px; background: var(--roo-green); opacity: 0.1; filter: blur(6px); }
.hero__deco-pink { display: none; }

.hero__stage { position: relative; width: 100%; max-width: 480px; height: 420px; margin: 16px auto 0; }
.hero__phone { position: absolute; top: 0; right: 6px; z-index: 1; }
.hero__phone img {
  width: 188px;
  filter: drop-shadow(0 20px 26px rgba(20, 47, 99, 0.16));
  transform: rotate(6deg);
  --r: 6deg;
}
.hero__tags {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--roo-white);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 47, 99, 0.14);
  transform: rotate(-4deg);
  --r: -4deg;
}
.hero__tags .tag { align-self: flex-start; padding: 7px 12px; font-size: 13px; }
.hero__tags .tag:nth-child(1) { transform: rotate(-2deg); }
.hero__tags .tag:nth-child(2) { transform: rotate(1deg); }
.hero__tags .tag:nth-child(3) { transform: rotate(-1deg); }
.hero__mascots {
  position: absolute;
  left: -14px;
  bottom: -10px;
  z-index: 2;
  width: 270px;
  height: 270px;
  transform: rotate(-3deg);
  --r: -3deg;
}
.hero__mascots img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 1200px) {
  .hero { padding-top: 100px; padding-bottom: 120px; }
  .hero__inner { flex-direction: row; align-items: center; gap: 56px; }
  .hero__copy { flex: 1 1 0; gap: 24px; max-width: 620px; }
  .hero__copy .lead { max-width: 520px; margin-top: 8px; }
  .hero__accent svg { bottom: -14px; height: 16px; }
  .hero__deco-green { top: -160px; right: -120px; width: 680px; height: 680px; }
  .hero__deco-pink { display: block; bottom: 40px; left: -100px; width: 260px; height: 260px; background: var(--roo-pink-light); opacity: 0.08; }

  .hero__stage { flex: 0 0 520px; width: 520px; max-width: none; height: 540px; margin: 0; }
  .hero__phone { top: 6px; right: 24px; }
  .hero__phone img { width: 228px; filter: drop-shadow(0 24px 30px rgba(20, 47, 99, 0.16)); }
  .hero__tags { top: 0; width: 200px; gap: 10px; padding: 16px 20px; border-radius: 20px; box-shadow: 0 20px 44px rgba(20, 47, 99, 0.14); }
  .hero__tags .tag { padding: 8px 14px; }
  .hero__mascots { left: -10px; bottom: -20px; width: 400px; height: 400px; }
}

/* ==========================================================================
   2. Problem
   ========================================================================== */
.problem__inner { display: flex; flex-direction: column; gap: 40px; }
.problem__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.problem__cards { display: flex; flex-direction: column; padding: 0 6px; }

.listing {
  position: relative;
  z-index: 1;
  width: 88%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--roo-light);
  border-style: dashed;
  transform: rotate(-3deg);
}
.listing__label { font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--roo-gray-inactive); }
.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.listing__cell {
  padding: 10px 12px;
  background: var(--roo-white);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 14px;
  font-size: 19px;
  font-weight: 900;
  color: var(--roo-blue);
}
.listing__cell--price { font-size: 16px; line-height: 1.35; }
.listing__cell small { display: block; font-size: 13px; font-weight: 700; color: var(--roo-gray-inactive); }

.missing {
  position: relative;
  z-index: 2;
  width: 90%;
  align-self: flex-end;
  margin-top: -18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid var(--roo-green);
  box-shadow: 0 20px 40px rgba(20, 47, 99, 0.14);
  transform: rotate(2deg);
}
.missing__label { font-size: 13px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--roo-green-dark); }
.missing__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.missing__tags .tag { padding: 9px 16px; font-size: 14px; }

@media (min-width: 1200px) {
  .problem__inner { flex-direction: row; align-items: center; gap: 72px; }
  .problem__copy { flex: 1 1 0; gap: 20px; }
  .problem__copy .lead, .problem__copy .body-text { max-width: 540px; }
  .problem__cards { flex: 0 0 480px; padding: 0; }
  .listing { width: 350px; margin-left: 10px; gap: 16px; transform: rotate(-4deg); }
  .listing__grid { gap: 10px; }
  .listing__cell { padding: 12px 14px; font-size: 22px; }
  .listing__cell--price { font-size: 18px; }
  .missing { width: 370px; margin-top: -22px; gap: 14px; box-shadow: 0 24px 48px rgba(20, 47, 99, 0.14); transform: rotate(3deg); }
  .missing__tags { gap: 10px; }
  .missing__tags .tag { padding: 12px 22px; font-size: 15px; }
}

/* ==========================================================================
   3. Three ways
   ========================================================================== */
.ways__list { display: flex; flex-direction: column; gap: 18px; padding: 0 4px; }
.way { display: flex; align-items: flex-start; gap: 16px; }
.way:nth-child(1) { transform: rotate(-1.5deg); box-shadow: 0 14px 30px rgba(20, 47, 99, 0.1); }
.way:nth-child(2) { transform: rotate(1deg); box-shadow: 0 18px 38px rgba(20, 47, 99, 0.14); }
.way:nth-child(3) { transform: rotate(-1deg); box-shadow: 0 14px 30px rgba(20, 47, 99, 0.1); }
.way__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.way__title { font-size: 19px; font-weight: 900; letter-spacing: 0.3px; text-transform: uppercase; }

@media (min-width: 1200px) {
  .ways { padding-top: 96px; padding-bottom: 96px; }
  .ways .section-head { --head-mb: 48px; }
  .ways__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 10px 20px 0; }
  .way { flex-direction: column; gap: 16px; }
  .way__text { gap: 16px; }
  .way__title { font-size: 22px; }
  .way:nth-child(1) { transform: rotate(-2deg); box-shadow: 0 18px 38px rgba(20, 47, 99, 0.1); }
  .way:nth-child(2) { transform: translateY(-14px); box-shadow: 0 22px 46px rgba(20, 47, 99, 0.16); }
  .way:nth-child(3) { transform: rotate(2deg); box-shadow: 0 18px 38px rgba(20, 47, 99, 0.1); }
}

/* ==========================================================================
   4. Walkthrough
   ========================================================================== */
.steps__list { display: flex; flex-direction: column; gap: 64px; }
.step { display: flex; flex-direction: column; gap: 28px; }
.step__text { display: flex; flex-direction: column; gap: 12px; }
.step__num { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -1px; color: var(--roo-green); }
.step__title { font-size: 24px; }

.step__media { position: relative; display: flex; justify-content: center; }
.step__bg {
  position: absolute;
  top: var(--bg-top);
  left: 50%;
  width: var(--bg-size);
  height: var(--bg-size);
  margin-left: calc(var(--bg-size) / -2);
  border-radius: 50%;
  background: var(--bg-color);
  opacity: var(--bg-opacity);
  pointer-events: none;
}
.step__phone {
  position: relative;
  z-index: 2;
  width: 260px;
  max-width: 78%;
  filter: drop-shadow(0 24px 32px rgba(20, 47, 99, 0.2));
  transform: rotate(var(--tilt, 2deg));
}
.step__mochi { position: absolute; bottom: 6px; left: 0; z-index: 3; width: 84px; transform: rotate(-6deg); --r: -6deg; }

.step--1 { --bg-top: 40px; --bg-size: 320px; --bg-color: var(--roo-green); --bg-opacity: 0.1; --tilt: 2deg; }
.step--2 { --bg-top: 60px; --bg-size: 300px; --bg-color: var(--roo-pink-light); --bg-opacity: 0.09; --tilt: -2deg; }
.step--3 { --bg-top: 40px; --bg-size: 300px; --bg-color: var(--roo-blue); --bg-opacity: 0.08; --tilt: 2deg; }
.step--4 { --bg-top: 30px; --bg-size: 340px; --bg-color: var(--roo-green); --bg-opacity: 0.12; --tilt: -2deg; }
.step--5 { --bg-top: 60px; --bg-size: 300px; --bg-color: var(--roo-pink-light); --bg-opacity: 0.09; --tilt: 2deg; }

@media (min-width: 1200px) {
  .steps .section-head { --head-mb: 40px; }
  .steps__list { gap: 40px; }
  .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; padding: 20px 0; }
  .step__text { gap: 18px; max-width: 460px; justify-self: end; grid-column: 1; grid-row: 1; }
  .step__media { display: block; justify-self: start; grid-column: 2; grid-row: 1; padding: 20px 40px; }
  .step--flip .step__text { justify-self: start; grid-column: 2; }
  .step--flip .step__media { justify-self: end; grid-column: 1; }
  .step__num { font-size: 72px; }
  .step__title { font-size: 34px; }
  .step__phone { width: 330px; max-width: none; filter: drop-shadow(0 30px 40px rgba(20, 47, 99, 0.2)); }
  .step__bg { left: auto; right: auto; margin-left: 0; }
  .step--1 .step__bg { top: 30px; left: 0; width: 420px; height: 420px; }
  .step--2 .step__bg { top: auto; bottom: 20px; right: 0; width: 400px; height: 400px; }
  .step--3 .step__bg { top: 40px; left: 10px; width: 400px; height: 400px; }
  .step--4 .step__bg { top: 20px; right: 0; width: 440px; height: 440px; }
  .step--5 .step__bg { top: auto; bottom: 30px; left: 0; width: 400px; height: 400px; }
  .step__mochi { bottom: 10px; left: -40px; width: 110px; }
}

/* ==========================================================================
   5. Compatibility
   ========================================================================== */
.compat__inner { display: flex; flex-direction: column; gap: 32px; }
.compat__copy { display: flex; flex-direction: column; gap: 16px; }
.compat__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; }
.compat__tags .tag:nth-child(1) { font-size: 20px; padding: 13px 22px; transform: rotate(-3deg); }
.compat__tags .tag:nth-child(2) { font-size: 17px; padding: 11px 20px; transform: rotate(2deg); }
.compat__tags .tag:nth-child(3) { font-size: 18px; padding: 12px 21px; transform: rotate(-1deg); }
.compat__tags .tag:nth-child(4) { font-size: 16px; padding: 11px 19px; transform: rotate(3deg); }
.compat__tags .tag:nth-child(5) { font-size: 20px; padding: 13px 22px; transform: rotate(-2deg); }
.compat__tags .tag:nth-child(6) { font-size: 17px; padding: 11px 20px; transform: rotate(1deg); }
.compat__tags .tag:nth-child(7) { font-size: 18px; padding: 12px 21px; transform: rotate(-1deg); }

.mochi-says {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 10px;
  background: var(--roo-white);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 24px;
}
.mochi-says img { flex-shrink: 0; width: 52px; height: 52px; object-fit: contain; }
.mochi-says p { font-size: 16px; font-style: italic; }

@media (min-width: 1200px) {
  .compat__inner {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    grid-template-areas: "copy tags" "says tags";
    align-items: center;
    gap: 0 72px;
  }
  .compat__copy { grid-area: copy; gap: 20px; }
  .compat__tags { grid-area: tags; align-content: center; gap: 16px 14px; padding: 20px 0; }
  .mochi-says { grid-area: says; align-self: start; justify-self: start; margin-top: 30px; padding: 10px 22px 10px 10px; gap: 14px; border-radius: 999px; }
  .mochi-says img { width: 54px; height: 54px; }
  .mochi-says p { font-size: 17px; }
  .compat__tags .tag:nth-child(1) { font-size: 24px; padding: 16px 30px; }
  .compat__tags .tag:nth-child(2) { font-size: 20px; padding: 14px 26px; }
  .compat__tags .tag:nth-child(3) { font-size: 22px; padding: 15px 28px; }
  .compat__tags .tag:nth-child(4) { font-size: 19px; padding: 14px 26px; }
  .compat__tags .tag:nth-child(5) { font-size: 24px; padding: 16px 30px; }
  .compat__tags .tag:nth-child(6) { font-size: 20px; padding: 14px 26px; }
  .compat__tags .tag:nth-child(7) { font-size: 21px; padding: 14px 28px; }
}

/* ==========================================================================
   6. Safety
   ========================================================================== */
.safety__deco { top: -100px; left: -100px; width: 300px; height: 300px; background: var(--roo-green); opacity: 0.1; }
.safety__inner { display: flex; flex-direction: column; gap: 28px; }
.safety__copy { display: flex; flex-direction: column; gap: 16px; }
.safety .h2 { color: var(--roo-white); }
.safety .lead { color: var(--roo-select-fill); }
.safety__items { display: flex; flex-direction: column; gap: 12px; }
.safety__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
}
.safety__item h3 { font-size: 18px; color: var(--roo-white); }
.icon-chip--on-dark-pink { background: rgba(242, 98, 147, 0.2); color: var(--roo-pink-light); }
.icon-chip--on-dark-green { background: rgba(92, 169, 24, 0.18); color: var(--roo-green); }

@media (min-width: 1200px) {
  .safety { padding-top: 88px; padding-bottom: 88px; }
  .safety__deco { left: -80px; width: 400px; height: 400px; }
  .safety__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 72px; }
  .safety__copy { flex: 1 1 0; gap: 20px; max-width: 620px; }
  .safety__items { flex: 0 0 400px; gap: 16px; }
  .safety__item { gap: 18px; padding: 18px 22px; }
  .safety__item h3 { font-size: 19px; }
}

/* ==========================================================================
   7. FAQ
   ========================================================================== */
.faq__wrap { max-width: var(--wrap-max); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--roo-white);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 20px;
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--roo-navy);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--roo-green-dark); }
.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--wash-green);
  color: var(--roo-green-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}
.faq__icon::before { content: "+"; }
.faq__item[open] .faq__icon::before { content: "\2212"; }
.faq__a { padding: 0 22px 20px; margin-top: -4px; }

@media (min-width: 1200px) {
  .faq__wrap { max-width: 820px; }
  .faq .section-head { --head-mb: 44px; max-width: 100%; }
  .faq__list { gap: 14px; }
  .faq__item { border-radius: 24px; }
  .faq__q { gap: 20px; padding: 26px 32px; font-size: 21px; line-height: normal; }
  .faq__icon { width: 36px; height: 36px; border-radius: 12px; font-size: 22px; }
  .faq__a { padding: 0 32px 26px; margin-top: -6px; }
}

/* ==========================================================================
   8. Final CTA
   ========================================================================== */
.cta { padding-bottom: 72px; }
.cta__deco-green { bottom: -120px; right: -120px; width: 300px; height: 300px; background: var(--roo-green); opacity: 0.14; }
.cta__deco-pink { display: none; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta__mascots { width: 230px; height: 170px; transform: rotate(-2deg); --r: -2deg; }
.cta__mascots img { width: 100%; height: 100%; object-fit: contain; }
.cta .logo img { width: 30px; height: 30px; }
.cta .h2 { color: var(--roo-white); font-size: 30px; }
.cta .lead { color: var(--roo-select-fill); }
.cta .store-badges { justify-content: center; }

@media (min-width: 720px) {
  .cta .h2 { font-size: 38px; }
}
@media (min-width: 1200px) {
  .cta { padding-top: 96px; padding-bottom: 104px; }
  .cta__deco-green { bottom: -140px; right: -100px; width: 420px; height: 420px; }
  .cta__deco-pink { display: block; top: -120px; left: -80px; width: 320px; height: 320px; background: var(--roo-pink-light); opacity: 0.08; }
  .cta__inner { gap: 26px; }
  .cta__mascots { width: 300px; height: 222px; }
  .cta .logo img { width: 34px; height: 34px; }
  .cta .h2 { font-size: 48px; max-width: 760px; }
  .cta .store-badges { gap: 28px; margin-top: 6px; }
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer { padding: 44px var(--gutter) 28px; background: var(--roo-white); }
.footer__top { display: flex; flex-direction: column; gap: 32px; padding-bottom: 28px; border-bottom: 1.5px solid var(--roo-select-fill); }
.footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .logo { font-size: 20px; }
.footer .logo img { width: 30px; height: 30px; }
.footer__social { display: flex; gap: 10px; }
.footer__nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h2 { font-size: 15px; font-weight: 800; color: var(--roo-navy); }
.footer__col a { font-size: 15px; font-weight: 600; }
.footer__copy { padding-top: 20px; }
.footer__copy p { font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--roo-text-inactive); }

@media (min-width: 1200px) {
  .footer { padding-top: 56px; padding-bottom: 36px; }
  .footer__top { flex-direction: row; justify-content: space-between; gap: 60px; padding-bottom: 40px; }
  .footer__brand { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; max-width: 280px; }
  .footer .logo { font-size: 22px; }
  .footer .logo img { width: 32px; height: 32px; }
  .footer__social { gap: 12px; }
  .footer__nav { display: flex; gap: 80px; }
  .footer__col { gap: 14px; }
  .footer__col h2, .footer__col a { font-size: 14px; }
  .footer__copy { padding-top: 24px; }
}

/* ==========================================================================
   Legal pages (/terms, /privacy-policy) - generated by scripts/build-legal.mjs
   ========================================================================== */
.legal { padding: 28px var(--gutter) 72px; }
.legal__article {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 20px 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 24px;
}
.legal__title {
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--roo-navy);
}
.legal__meta { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--roo-gray-inactive); }

.legal__toc {
  margin: 28px 0 8px;
  padding: 20px 22px;
  background: var(--roo-light);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 18px;
}
.legal__toc-title { margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--roo-green-dark); }
.legal__toc ol { margin: 0; padding-left: 24px; list-style: decimal; }
.legal__toc li { margin: 0 0 7px; padding-left: 4px; font-size: 15px; font-weight: 700; line-height: 1.4; break-inside: avoid; }
.legal__toc li::marker { color: var(--roo-green-dark); font-weight: 800; }
.legal__toc a { color: var(--roo-navy); }
.legal__toc a:hover { color: var(--roo-green-dark); }

.legal__body { margin-top: 12px; }
.legal__body h2 {
  margin: 36px 0 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--roo-navy);
  scroll-margin-top: 88px;
}
.legal__body h3 { margin: 26px 0 10px; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--roo-navy); scroll-margin-top: 88px; }
.legal__body p { margin: 0 0 14px; font-size: 17px; font-weight: 500; line-height: 1.7; color: var(--roo-text-inactive); }
.legal__body strong { font-weight: 800; color: var(--roo-navy); }
.legal__body em { font-style: italic; }
.legal__body a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal__body li { margin: 0 0 7px; padding-left: 4px; font-size: 17px; font-weight: 500; line-height: 1.65; color: var(--roo-text-inactive); }
.legal__body li::marker { color: var(--roo-green-dark); }
.legal__body hr { margin: 28px 0 0; border: 0; border-top: 1.5px solid var(--roo-select-fill); }

.table-wrap { margin: 18px 0 24px; overflow-x: auto; background: var(--roo-white); border: 1.5px solid var(--roo-select-fill); border-radius: 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.table th { padding: 12px 16px; text-align: left; font-weight: 800; color: var(--roo-navy); background: var(--roo-light); }
.table td { padding: 12px 16px; vertical-align: top; color: var(--roo-text-inactive); font-weight: 500; border-top: 1.5px solid var(--roo-select-fill); }
.table tbody tr:first-child td { border-top: 0; }
.table thead + tbody tr:first-child td { border-top: 1.5px solid var(--roo-select-fill); }
.table td:first-child { font-weight: 800; color: var(--roo-navy); }
.table--kv td:first-child { width: 28%; }

/* Phones: tables become stacked cards instead of scrolling sideways */
@media (max-width: 719px) {
  .table, .table tbody, .table tr, .table td { display: block; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { padding: 14px 16px; border-top: 1.5px solid var(--roo-select-fill); }
  .table tr:first-child { border-top: 0; }
  .table td, .table thead + tbody tr:first-child td { padding: 3px 0; border-top: 0; }
  .table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--roo-gray-inactive);
  }
  .table td:first-child::before { display: none; }
  .table--kv td:first-child { width: auto; }
}

@media (min-width: 720px) {
  .legal { padding-top: 48px; padding-bottom: 96px; }
  .legal__article { padding: 48px 56px 56px; }
  .legal__toc ol { columns: 2; column-gap: 36px; }
  .legal__body h2 { margin-top: 44px; font-size: 26px; }
  .legal__body h3 { font-size: 20px; }
  .legal__body p, .legal__body li { font-size: 18px; }
  .table { font-size: 16px; }
}

.footer--slim { padding: 32px var(--gutter) 36px; }
.footer__slim { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1.5px solid var(--roo-select-fill); }
.footer__slim-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer__slim-links a { font-size: 14px; font-weight: 600; }
.footer__slim p { font-size: 13px; font-weight: 600; color: var(--roo-text-inactive); }
@media (min-width: 720px) {
  .footer__slim { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   Account deletion page (/delete-account)
   ========================================================================== */
[hidden] { display: none !important; }

/* UI language: JS sets html[data-ui]. Without JS both languages stay visible. */
html[data-ui="pl"] [data-lang="en"],
html[data-ui="en"] [data-lang="pl"] { display: none; }

.lang button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--roo-blue);
}
.lang button:hover { color: var(--roo-green); }
.lang button[aria-pressed="true"] { background: var(--roo-navy); color: var(--roo-white); }

.btn--danger { background: var(--roo-pink); color: var(--roo-white); }
.btn--danger:hover { color: var(--roo-white); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { transform: none; }

.da-intro { margin-top: 18px; }
.da-app {
  margin: 28px 0 8px;
  padding: 24px 20px;
  background: var(--roo-light);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 18px;
}
.da-app h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; line-height: 1.2; color: var(--roo-navy); }
.da-app h2:focus { outline: none; }
.da-app p { margin: 0 0 16px; font-size: 17px; font-weight: 500; line-height: 1.65; color: var(--roo-text-inactive); }
.da-app p:last-child { margin-bottom: 0; }
.da-field { margin-bottom: 14px; }
.da-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--roo-navy); }
.da-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--roo-navy);
  background: var(--roo-white);
  border: 1.5px solid var(--roo-select-fill);
  border-radius: 14px;
}
.da-field input:focus-visible { outline: 3px solid var(--roo-blue-input); outline-offset: 2px; border-color: var(--roo-blue-input); }

.da-msg { padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.da-app .da-msg { font-size: 16px; }
.da-msg--error { background: var(--wash-pink); border: 1.5px solid var(--roo-pink-light); color: #8f0f3f; }
.da-msg--ok { background: var(--wash-green); border: 1.5px solid var(--roo-green); color: var(--roo-navy); }
.da-msg a { text-decoration: underline; }

.da-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.da-actions .btn { width: 100%; }
.da-cancel { align-self: center; padding: 8px 4px; font-size: 15px; font-weight: 800; color: var(--roo-blue); text-decoration: underline; text-underline-offset: 3px; }
.da-cancel:hover { color: var(--roo-green-dark); }

.legal__body ol { margin: 0 0 16px; padding-left: 22px; list-style: decimal; }
.legal__body ol li { margin: 0 0 8px; padding-left: 4px; font-size: 17px; font-weight: 500; line-height: 1.65; color: var(--roo-text-inactive); }
.legal__body ol li::marker { color: var(--roo-green-dark); font-weight: 800; }

@media (min-width: 720px) {
  .da-app { padding: 32px 36px; }
  .da-app h2 { font-size: 26px; }
  .da-actions { flex-direction: row; align-items: center; }
  .da-actions .btn { width: auto; }
  .da-cancel { align-self: auto; }
  .legal__body ol li { font-size: 18px; }
}
.da-app .da-msg--error { color: #8f0f3f; }
.da-app .da-msg--ok { color: var(--roo-navy); }

.footer__copy .footer__legal { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--roo-gray-inactive); }

/* Pre-launch: replaces the store badges until the app is published */
.store-soon { align-self: flex-start; margin-top: 4px; text-wrap: balance; }
.tag--on-dark { background: rgba(255, 255, 255, 0.14); color: var(--roo-white); }
.cta .store-soon { align-self: center; }

/* Support page (/support) */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0 8px; }
.legal__body .support-card { padding: 20px; background: var(--roo-light); border: 1.5px solid var(--roo-select-fill); border-radius: 16px; }
.legal__body .support-card h2 { margin: 0 0 8px; font-size: 18px; letter-spacing: 0.2px; }
.legal__body .support-card p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.legal__body .support-card p:last-child { margin-bottom: 0; }
@media (min-width: 720px) {
  .support-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .legal__body .support-card h2 { font-size: 19px; }
  .legal__body .support-card p { font-size: 17px; }
}
