/* ============================================================
   ThirdLife landing — themed with the mobile app's "Signal" palette.
   Money/trust green primary, amber "act now" accent, warm paper ground.
   Values mirror apps/mobile/src/theme/colors.ts so brand reads the same
   across the app and the site.
   Type: Red Hat Display (headings) + Manrope (body)
   ============================================================ */

:root {
  --ink: #1E2414;      /* mobile foreground — primary ink */
  --ink-2: #3A4230;    /* softer ink for secondary text on dark */
  --muted: #5F6B52;    /* mobile muted */
  --line: #E7E2D6;     /* mobile border — warm hairline */
  --line-2: #D3CDBE;   /* stronger divider */

  --ash: #96A088;      /* mobile subtle */

  --green: #237227;       /* mobile primaryColor — money / trust */
  --green-mint: #A9D9BC;  /* mint derived from the secondary green */
  --green-soft: #D7F4DA;  /* mobile primaryColorSoft */
  --yellow: #F5A524;      /* mobile accentColor — the "earning" signal */
  --yellow-soft: #FEEBC3; /* mobile accentColorSoft */
  --yellow-pale: #FEF3DA; /* paler accent wash */

  --bg: #FFFFFF;       /* mobile surface */
  --cream: #F6F4EE;    /* mobile background — warm paper */
  --cream-2: #FBFAF4;  /* lighter paper */
  --beige: #EFEBE1;    /* mobile surfaceAlt */

  --radius: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --shadow-sm: 0 6px 20px rgba(40, 40, 40, 0.06);
  --shadow-md: 0 20px 50px rgba(40, 40, 40, 0.10);
  --shadow-lg: 0 30px 70px rgba(40, 40, 40, 0.14);

  /* Montserrat for body, Poppins for emphasis (headings, CTAs). */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Logo preloader (shows for ~3s on first paint) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--cream);
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
/* The logo shape is masked from its PNG so we can colour it; a black fill
   rises from the bottom and drains back down in a continuous loop. */
.preloader__logo {
  position: relative;
  width: 52px;
  aspect-ratio: 1228 / 1724;
  background: rgba(30, 36, 20, 0.14);       /* faint "unfilled" outline */
  -webkit-mask: url(/static/images/thirdlife.png) no-repeat center / contain;
          mask: url(/static/images/thirdlife.png) no-repeat center / contain;
}
.preloader__logo::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  background: var(--green);                    /* black fill */
  transform: scaleY(0);
  transform-origin: bottom;
  animation: preloaderFill 1.9s ease-in-out infinite;
}
@keyframes preloaderFill {
  0%   { transform: scaleY(0); }
  45%  { transform: scaleY(1); }
  55%  { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo::after { transform: scaleY(1); }
}

.container { width: min(1200px, 92%); margin-inline: auto; }
.container--wide { width: min(1260px, 94%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { transform: translateY(-2px); }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--green); background: var(--green-soft);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 20px;
}

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 0.95rem; transition: color .18s; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--green); }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-btn--light { background: #fff; color: var(--ink); }
.store-btn--outline { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.store-btn--sm { padding: 10px 18px; }
.store-btn__logo { width: 24px; height: 24px; flex: none; object-fit: contain; }
/* The Apple glyph ships as a black PNG — flip it to white on the dark buttons.
   The full-colour Google Play logo is used as-is everywhere. */
.store-btn:not(.store-btn--light) .store-btn__logo--apple { filter: invert(1) brightness(2); }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn__text small { font-size: 0.68rem; opacity: .85; font-family: var(--font); }
.store-btn__text strong { font-family: var(--font-head); font-size: 1rem; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { width: 32px; display: block; }
/* Logo is a black wordmark — flip it white on the dark footer. */
.footer .brand__logo { filter: brightness(0) invert(1); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(24,18,62,.08);
}
.header__inner { display: flex; align-items: center; gap: 16px; height: 76px; }
/* Nav takes the remaining space and sits on the right, next to the language
   switcher — so the longer Polish labels never wrap the header. */
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 22px; margin-left: auto; }
.nav__link { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--ink-2); white-space: nowrap; transition: color .15s; }
.nav__link:hover { color: var(--green); }
.nav__cta { margin-left: 4px; padding: 12px 22px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 14px; padding: 3px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch__btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 500; font-size: 13px; letter-spacing: .02em;
  color: var(--muted); background: transparent;
  padding: 6px 12px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active { color: #fff; background: var(--ink); }

@media (max-width: 760px) {
  .lang-switch { margin-left: auto; margin-right: 10px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding: 120px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }

.trust { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); padding: 7px 16px 7px 8px; border-radius: 999px; font-weight: 500; font-size: 0.78rem; margin-bottom: 26px; }
.trust__avatars { display: flex; }
.trust__avatars img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-right: -10px; background: var(--beige); }

.hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.7rem, 5.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; max-width: 18ch; }
.hero__sub { font-size: 1.2rem; color: var(--ink-2); margin-bottom: 26px; }
.hero__points { list-style: none; display: grid; gap: 12px; margin-bottom: 32px; }
.hero__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink-2); }
.tick { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 600; }

.hero__visual { position: relative; display: grid; place-items: center; overflow: visible; }
.hero__phone { width: min(440px, 100%); filter: drop-shadow(0 30px 60px rgba(40,40,40,.18)); }

/* Zoom callout: an enlarged view of the phone's chart, floated to the lower right. */
.hero__chart {
  position: absolute; bottom: 40%; right: 23%; z-index: 3; margin: 0;
  width: min(196px, 44%); padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: floatX 4s ease-in-out infinite;
}
@keyframes floatX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(20px); } }
.hero__chart img { width: 100%; display: block; border-radius: 12px; }
.hero-card {
  position: absolute; bottom: 8%; left: -4%; width: 216px;
  background: #fff; border-radius: 16px; padding: 13px; box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
.hero-card__head a { font-size: 0.78rem; color: var(--green); font-weight: 500; }
.txn { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.txn__logo { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 600; font-size: 0.8rem; color: #fff; font-family: var(--font-head); }
.txn__logo--dark { background: var(--ink); }
.txn__logo--green { background: var(--green); }
.txn__meta { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.txn__meta strong { font-size: 0.9rem; }
.txn__meta small { font-size: 0.74rem; color: var(--muted); }
.txn__amt { font-family: var(--font-head); font-weight: 600; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); padding: 80px 0; }
.stats__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 56px; }
.stats__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; color: #fff; max-width: 14ch; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; color: var(--ink); }
.stat__label { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.15rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; color: var(--ink); }
.section__title--left { text-align: left; }
.section__lead { color: var(--muted); font-size: 1.1rem; }
.section__lead--left { text-align: left; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: var(--beige); aspect-ratio: 1 / 0.92; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.32rem; font-weight: 500; margin-bottom: 10px; padding: 0 6px; }
.feature-card p { color: var(--muted); font-size: 0.96rem; padding: 0 6px 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #f2f2f2; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 20px 30px; box-shadow: var(--shadow-sm); }
.step__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 22px; padding: 22px 22px 0; }
.step__media img { width: 78%; object-fit: contain; align-self: end; filter: drop-shadow(0 16px 30px rgba(40,40,40,.18)); }
.step__media--green { background: var(--green-mint); }
step__media--grey { background: var(--beige); }
.step__media--yellow { background: var(--ash); }
.step__media--mint { background: var(--green-soft); }
.step__tag { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 0.8rem; color: var(--green); background: var(--green-soft); padding: 5px 14px; border-radius: 999px; margin: 0 6px 12px; }
.step h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; padding: 0 6px; }
.step p { color: var(--muted); margin-bottom: 18px; padding: 0 6px; }
.step .link-arrow { margin: 0 6px; }

/* ---------- Payment hub (flow diagram) ---------- */
.flow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 56px; }

/* Source tile cluster */
.flow__sources { display: flex; align-items: center; gap: 14px; }
.flow__stack { display: flex; flex-direction: column; gap: 14px; }
.flow__stack--mid { margin-top: -34px; }
.tile {
  width: 72px; height: 72px; flex: none; border-radius: 18px;
  background: var(--cream-2); border: 1px solid var(--line);
  display: grid; place-items: center; gap: 6px; color: var(--ink);
}
.tile--label { grid-template-rows: 1fr auto; padding: 11px 0; }
.tile__icon { width: 24px; height: 24px; }
.tile__img { width: 54px; height: 32px; object-fit: contain; border-radius: 7px; }
.tile__label { font-size: 0.72rem; font-weight: 500; color: var(--muted); }

/* Connectors */
.flow__link { flex: none; width: 260px; height: 240px; }
.flow__link path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.flow__link--out { width: 220px; }

/* Central node */
.flow__hub { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.flow__node {
  width: 120px; height: 120px; border-radius: 30px; background: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.flow__badge {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center;
}
.flow__badge svg { width: 40px; height: 40px; }
.flow__node-label { font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; color: var(--ink); }

/* Result card + floating success */
.flow__result { position: relative; flex: none; width: 300px; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 16px; box-shadow: var(--shadow-md); }
.pay-card__screen { background: var(--green); border-radius: 16px; padding: 18px 18px 0; color: #fff; overflow: hidden; }
.pay-card__label { font-size: 0.82rem; opacity: .85; }
.pay-card__amount { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.02em; margin-top: 2px; }
.pay-card__chart { position: relative; height: 92px; margin-top: 8px; }
.pay-card__chart svg { width: 100%; height: 100%; display: block; }
.pay-card__grid { stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pay-card__line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pay-card__peak { position: absolute; left: 57%; top: 16%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.pay-card__tip { position: absolute; left: 64%; top: 8%; background: #fff; color: var(--ink); font-weight: 500; font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.pay-card__foot { padding: 16px 4px 4px; }
.pay-card__foot-label { font-size: 0.85rem; color: var(--muted); }
.pay-card__pay { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; margin: 2px 0 14px; }
.pay-card__btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; padding: 12px 20px; border-radius: 999px;
  transition: transform .18s, box-shadow .18s;
}
.pay-card__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.pay-success {
  position: absolute; top: -52px; right: -76px; width: 168px; background: #fff;
  border-radius: 18px; padding: 16px 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
}
.pay-success__check { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--green-soft); }
.pay-success__check svg { width: 22px; height: 22px; }
.pay-success strong { font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; line-height: 1.2; }
.pay-success__pill { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border-radius: 999px; padding: 6px 10px; font-size: 0.68rem; font-weight: 500; color: var(--ink-2); }
.pay-success__pill-icon { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 0.6rem; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: center; }
.benefits__list { display: grid; gap: 18px; }
.benefit { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: transform .2s, box-shadow .2s; }
.benefit:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.benefit__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: var(--ash); }
.benefit h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }
.benefits__visual { border-radius: var(--radius-xl); overflow: hidden; background: var(--ash); display: grid; place-items: end center; padding-top: 40px; }
.benefits__visual img { width: 50%; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.testimonial { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.testimonial__stars { color: var(--yellow); letter-spacing: 2px; }
.testimonial__headline { font-family: var(--font-head); font-size: 1.22rem; font-weight: 500; }
.testimonial__quote { color: var(--ink-2); font-size: 0.98rem; flex: 1; }
.testimonial__person { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.testimonial__person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--beige); }
.testimonial__person span { display: flex; flex-direction: column; line-height: 1.25; }
.testimonial__person strong { font-family: var(--font-head); font-size: 0.95rem; }
.testimonial__person small { color: var(--muted); font-size: 0.8rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card__thumb { overflow: hidden; background: var(--beige); }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; }
.blog-card__body h3 { font-family: var(--font-head); font-size: 1.28rem; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.blog-card__body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 100px; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__phones { position: relative; width: 100%; max-width: 640px; height: 560px; margin: 0 auto 40px; }
.cta__phone { position: absolute; top: 0; left: 50%; width: 232px; margin-left: -116px; background: #0e0e0e; border-radius: 44px; padding: 8px; box-shadow: var(--shadow-lg); }
.cta__phone img { display: block; width: 100%; border-radius: 36px; }
.cta__phone--center { z-index: 3; }
.cta__phone--left { z-index: 1; transform: translate(-58%, 40px) rotate(-12deg); transform-origin: bottom center; }
.cta__phone--right { z-index: 2; transform: translate(58%, 40px) rotate(12deg); transform-origin: bottom center; }
.cta__copy { max-width: 620px; }
.cta__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.cta__sub { color: var(--muted); max-width: 44ch; margin: 0 auto 28px; }
.cta__stores { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #b8b8b0; padding: 80px 0 34px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer__tag { margin: 20px 0 20px; font-size: 0.96rem; max-width: 260px; }
.footer__contact { display: block; padding: 4px 0; color: #d8d8d0; font-weight: 500; }
.footer__contact:hover { color: #fff; }
.footer__col h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 18px; }
.footer__col a { display: block; padding: 7px 0; font-size: 0.95rem; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__download .store-btn { display: flex; width: fit-content; align-items: center; gap: 14px; margin-top: 14px; padding: 13px 30px; border-radius: 999px; }
.footer__download .store-btn--light:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 54px; padding-top: 26px; border-top: 1px solid #3a3a3a; font-size: 0.88rem; color: #8f8f88; }
.footer__buy { font-family: var(--font-head); font-weight: 500; color: var(--yellow); letter-spacing: 0.04em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__title { max-width: none; }
  .hero__chart { position: static; right: auto; bottom: auto; margin: 22px auto 0; width: min(300px, 88%); }
  .feature-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: 1fr; gap: 36px; }
  .stats__title { max-width: 20ch; }
  .benefits { grid-template-columns: 1fr; gap: 40px; }
  .flow { flex-direction: column; gap: 30px; margin-top: 40px; }
  .flow__link { display: none; }
  .flow__stack--mid { margin-top: 0; }
  .flow__result { margin-top: 30px; }
  .pay-success { right: -12px; }
  .benefits__visual { max-width: 460px; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta__phones { height: 460px; }
  .cta__phone { width: 184px; margin-left: -92px; border-radius: 36px; }
  .cta__phone img { border-radius: 29px; }
  .cta__phone--left { transform: translate(-50%, 32px) rotate(-11deg); }
  .cta__phone--right { transform: translate(50%, 32px) rotate(11deg); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: 76px; right: 0; width: min(300px, 84vw); height: calc(100dvh - 76px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; padding: 26px 24px; box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform .3s ease; border-left: 1px solid var(--line);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 14px 0 0; width: 100%; text-align: center; }

  /* Hero — tighter clearance and type so it fits a phone cleanly */
  .hero { padding: 104px 0 60px; }
  .hero__visual { display: none; }
  .hero__inner { gap: 32px; }
  .hero__title { font-size: clamp(2.2rem, 8.5vw, 2.9rem); }
  .hero__sub { font-size: 1.08rem; }
  .hero__phone { width: min(340px, 84%); }
  /* Store buttons share the row evenly instead of wrapping ragged */
  .store-buttons { gap: 12px; }
  .store-btn { flex: 1 1 46%; justify-content: center; }

  /* Sections — pull the generous desktop rhythm in */
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .section__lead { font-size: 1.02rem; }

  .stats__grid { gap: 12px; }
  .stat { padding: 22px 12px; }
  .feature-grid, .testimonial-grid, .steps, .footer__inner { grid-template-columns: 1fr; }

  /* Benefits image no longer floats tiny in a tall box */
  .benefits { gap: 32px; }
  .benefits__visual { max-width: none; padding-top: 26px; }
  .benefits__visual img { width: 66%; }

  .cta { padding: 24px 0 72px; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card__thumb { aspect-ratio: 16 / 9; }

  .section { padding: 52px 0; }
  .section__head { margin-bottom: 32px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .store-btn { flex: 1 1 100%; }

  /* Stats stay 3-up but scale down so labels don't crush */
  .stats__grid { gap: 8px; }
  .stat { padding: 18px 8px; border-radius: 16px; }
  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: 0.76rem; margin-top: 4px; }

  /* CTA phone fan — shrink so it stops clipping at the edges */
  .cta__phones { height: 380px; max-width: 380px; }
  .cta__phone { width: 152px; margin-left: -76px; border-radius: 30px; padding: 6px; }
  .cta__phone img { border-radius: 25px; }
  .cta__phone--left { transform: translate(-46%, 26px) rotate(-10deg); }
  .cta__phone--right { transform: translate(46%, 26px) rotate(10deg); }

  /* Footer bottom stacks instead of squeezing */
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
