/* RFG Social public site: shared tokens, layout and components.
   Page specific styles live next to this file (home.css, profile.css, ...). */

:root {
  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;
  --r-sm: 2px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;
  --white: #ffffff;
  --gray: #f5f5f7;
  --gray-2: #e8e8ed;
  --line: #e5e5ea;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --yellow: #ffdb29;
  --yellow-hover: #ffe45c;
  --dark: #131209;
  --success: #1e7a5c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.06), 0 40px 80px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; padding-right: var(--scrollbar-width, 0px); }
html.is-locked .site-header { padding-right: calc(var(--s-200) + var(--scrollbar-width, 0px)); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* The footer always sits at the bottom, even on short pages. */
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-lg); }
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Text styles */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.035em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.body-7 { font-size: 18px; line-height: 28px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
@media (max-width: 767px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 24px; line-height: 32px; }
  .body-7 { font-size: 16px; line-height: 24px; }
}
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.grad-text { background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Layout */
.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--s-300); }
.section { padding: var(--s-900) 0; position: relative; }
.section--gray { background: var(--gray); }
@media (max-width: 767px) { .section { padding: var(--s-800) 0; } }
.section-head { max-width: 680px; display: flex; flex-direction: column; gap: var(--s-200); margin: 0 auto var(--s-600); text-align: center; align-items: center; }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }
.skip-link { position: absolute; left: var(--s-200); top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s-75) var(--s-100); border-radius: var(--r-lg); transition: transform 300ms var(--ease); }
.skip-link:focus { transform: translateY(80px); }
.tile { width: 40px; height: 40px; border-radius: var(--r-xl); display: grid; place-items: center; background: var(--gray); color: var(--ink); flex: none; }
.tile--lg { width: 48px; height: 48px; border-radius: var(--r-2xl); }
.tile--lg .i { width: 24px; height: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--ink-2); }
.eyebrow .i { color: var(--ink); }
.anchor { color: inherit; text-decoration: none; }
.anchor:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--yellow); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.tags li { padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--gray); color: var(--ink-2); }
.checks { display: flex; flex-direction: column; gap: var(--s-100); }
.checks li { display: flex; gap: var(--s-100); align-items: center; }
.checks .tile { width: 32px; height: 32px; border-radius: var(--r-lg); }
.checks .tile .i { width: 16px; height: 16px; }
.card { background: var(--white); border-radius: var(--r-3xl); padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-75); box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75); padding: var(--s-75) var(--s-100); border-radius: var(--r-full); border: 0; cursor: pointer; white-space: nowrap; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--get { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 24px rgba(255, 219, 41, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.btn--get:hover { background: var(--yellow-hover); box-shadow: 0 12px 32px rgba(255, 219, 41, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.btn--get .btn__arrow { width: 28px; height: 28px; border-radius: var(--r-full); background: var(--ink); color: var(--yellow); display: grid; place-items: center; transition: transform 300ms var(--ease); }
.btn--get:hover .btn__arrow { transform: translateX(2px); }
.btn--get .btn__arrow .i { width: 16px; height: 16px; }
.btn--big { padding: var(--s-100) var(--s-100) var(--s-100) var(--s-300); }
.btn--nav { padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); }
.btn--nav .btn__arrow { width: 24px; height: 24px; }
.link { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--ink); padding: var(--s-100) var(--s-75); }
.link .i { transition: transform 300ms var(--ease); }
.link:hover .i { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.site-nav { pointer-events: auto; display: flex; align-items: center; gap: var(--s-300); padding: var(--s-75); border-radius: var(--r-full); background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow-md); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.brand { display: flex; align-items: center; gap: var(--s-75); padding-right: var(--s-75); }
.brand img { width: 32px; height: 32px; border-radius: var(--r-full); }
.site-nav__links { display: flex; gap: var(--s-25); }
.site-nav__links a { padding: var(--s-75) var(--s-100); border-radius: var(--r-full); color: var(--ink-2); transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.site-nav__links a:hover { color: var(--ink); background: var(--gray); }
.site-nav__links a[aria-current='true'] { color: var(--ink); background: var(--gray-2); }
.site-nav__actions { display: flex; align-items: center; gap: var(--s-75); }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-75) var(--s-100); border-radius: var(--r-full); border: 0; background: var(--gray); cursor: pointer; transition: background-color 300ms var(--ease); }
.lang__btn > span, .lang__code { text-transform: uppercase; }
.lang__code { display: inline-flex; align-items: center; gap: var(--s-75); }
.lang__btn:hover { background: var(--gray-2); }
.lang__btn .lang__caret { transition: transform 300ms var(--ease); }
.lang.is-open .lang__caret { transform: rotate(180deg); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--white); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: var(--s-75); display: flex; flex-direction: column; gap: var(--s-25); opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: top right; pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-200); padding: var(--s-75) var(--s-100); border-radius: var(--r-xl); transition: background-color 300ms var(--ease); }
.lang__menu a:hover { background: var(--gray); }
.lang__menu .lang__code { color: var(--ink-3); }
.lang__menu .lang__check { opacity: 0; }
.lang__menu a[aria-current='true'] .lang__check { opacity: 1; }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: var(--r-full); background: var(--gray); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: var(--r-sm); background: var(--ink); transition: transform 500ms var(--ease); }
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 23px; }
.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: var(--s-900) var(--s-300) var(--s-400); display: flex; flex-direction: column; gap: var(--s-75); opacity: 0; pointer-events: none; transition: opacity 500ms var(--ease); overflow-y: auto; }
.is-menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu__link { padding: var(--s-100) 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.is-menu-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu__langs { display: flex; gap: var(--s-75); margin-top: var(--s-200); flex-wrap: wrap; }
.mobile-menu__langs a { padding: var(--s-75) var(--s-200); border-radius: var(--r-full); background: var(--gray); }
.mobile-menu__langs a[aria-current='true'] { background: var(--ink); color: #fff; }
.mobile-menu .btn { margin-top: var(--s-300); align-self: flex-start; opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease) 360ms, transform 500ms var(--ease) 360ms; }
.is-menu-open .mobile-menu .btn { opacity: 1; transform: none; }
@media (max-width: 1023px) {
  .site-nav__links, .site-nav__actions .btn--nav, .site-nav__actions .lang { display: none; }
  .menu-btn { display: block; }
  .site-nav { width: 100%; justify-content: space-between; }
}

/* Phones and stages */
.phone { width: 264px; flex: none; background: #0b0b0f; border-radius: var(--r-3xl); padding: var(--s-75); box-shadow: var(--shadow-lg); position: relative; }
.phone img { width: 100%; aspect-ratio: 576 / 1280; object-fit: cover; border-radius: var(--r-2xl); background: #1d2140; }
.phone--sm { width: 232px; }
.phone--lg { width: 288px; }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.fan .phone { transform-origin: 50% 100%; }
.fan .phone:first-child { transform: rotate(-9deg); margin-right: calc(-1 * var(--s-900)); }
.fan .phone:last-child { transform: rotate(7deg); z-index: 1; }
.fan--trio .phone:nth-child(2) { transform: translateY(calc(-1 * var(--s-300))); z-index: 2; margin-right: calc(-1 * var(--s-900)); }
.fan--trio .phone:first-child { transform: rotate(-12deg); }
.fan--trio .phone:last-child { transform: rotate(12deg); z-index: 1; }
.stage { position: relative; background: var(--gray); border-radius: var(--r-3xl); padding: var(--s-700) var(--s-400) 0; min-height: 600px; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; isolation: isolate; }
.stage > .phone, .stage > .fan { margin-bottom: calc(-1 * var(--s-800)); }
.stage__halo { position: absolute; width: 480px; height: 480px; border-radius: var(--r-full); background: var(--white); left: 50%; top: var(--s-600); margin-left: -240px; z-index: -1; }
.stage--wide { min-height: 640px; }
.stage--wide .stage__halo { width: 620px; height: 620px; margin-left: -310px; }
.mascot { position: absolute; z-index: 3; pointer-events: none; width: 240px; right: calc(-1 * var(--s-200)); bottom: calc(-1 * var(--s-500)); }
@media (max-width: 539px) {
  .phone { width: 196px; }
  .phone--sm { width: 172px; }
  .phone--lg { width: 220px; }
  .fan .phone:first-child { margin-right: calc(-1 * var(--s-800)); }
  .fan--trio .phone:last-child { display: none; }
  .fan--trio .phone:nth-child(2) { margin-right: 0; }
  .stage { min-height: 500px; padding: var(--s-500) var(--s-200) 0; }
  .stage__halo { width: 320px; height: 320px; margin-left: -160px; }
  .stage--wide { min-height: 480px; }
  .mascot { width: 190px; right: calc(-1 * var(--s-100)); bottom: calc(-1 * var(--s-400)); }
  .mascot--hide-sm { display: none; }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-800); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: flex; flex-direction: column; gap: var(--s-300); max-width: 500px; }
.feature__copy .btn { align-self: flex-start; margin-top: var(--s-75); }
@media (max-width: 959px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); gap: var(--s-500); }
  .feature--flip .feature__copy { order: 0; }
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-100); }
.faq details { background: var(--white); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); transition: box-shadow 300ms var(--ease); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s-200) var(--s-300); display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); }
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { width: 32px; height: 32px; border-radius: var(--r-full); background: var(--gray); display: grid; place-items: center; flex: none; transition: transform 500ms var(--ease), background-color 300ms var(--ease); }
.faq details[open] .faq__plus { transform: rotate(45deg); background: var(--yellow); }
.faq__answer { padding: 0 var(--s-300) var(--s-300); color: var(--ink-2); }

/* Store badges */
.badges { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--s-100); }
.badge-link { display: block; border-radius: var(--r-xl); transition: transform 300ms var(--ease), filter 300ms var(--ease); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08)); }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12)); }
.badge-link img { height: 52px; width: auto; }
@media (max-width: 539px) { .badges { grid-template-columns: 1fr 1fr; } .badge-link img { height: auto; width: 100%; } }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: var(--s-600) 0 var(--s-400); }
.site-footer__row { display: flex; justify-content: space-between; gap: var(--s-400); flex-wrap: wrap; }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--s-75); }
.site-footer__tagline { color: #c9c4b0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300); color: #c9c4b0; }
.site-footer__links a { transition: color 300ms var(--ease); }
.site-footer__links a:hover { color: var(--yellow); }
.site-footer__disclaimer { margin-top: var(--s-400); color: #a39f8e; max-width: 800px; }
.site-footer__copy { margin-top: var(--s-100); color: #a39f8e; }

/* Download dialog */
.store-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 32px); max-height: none; overflow: visible; }
.store-dialog::backdrop { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 400ms var(--ease), backdrop-filter 400ms var(--ease); }
.store-dialog.is-visible::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.store-dialog__panel { position: relative; width: 520px; max-width: 100%; background: var(--white); border-radius: var(--r-3xl); padding: var(--s-400); display: flex; flex-direction: column; gap: var(--s-300); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(0.97); transition: opacity 400ms var(--ease), transform 400ms var(--ease); overflow: hidden; }
.store-dialog.is-visible .store-dialog__panel { opacity: 1; transform: none; }
.store-dialog__head { display: flex; align-items: center; gap: var(--s-200); }
.store-dialog__head img { width: 56px; height: 56px; border-radius: var(--r-2xl); }
.store-dialog__group { display: flex; flex-direction: column; gap: var(--s-100); }
.store-dialog__label { color: var(--ink-3); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-full); border: 0; background: var(--gray); display: grid; place-items: center; cursor: pointer; transition: background-color 300ms var(--ease); margin-left: auto; align-self: flex-start; }
.icon-btn:hover { background: var(--gray-2); }

/* Bottom sheet: as tall as its content, up to 1000px; longer content scrolls inside. */
.sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 640px; max-height: none; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgba(0, 0, 0, 0); transition: background-color 300ms var(--ease); }
.sheet.is-visible::backdrop { background: rgba(0, 0, 0, 0.4); }
.sheet__panel { display: flex; flex-direction: column; max-height: min(1000px, calc(100dvh - 24px)); padding: var(--s-100) var(--s-300) calc(var(--s-300) + env(safe-area-inset-bottom)); border-radius: var(--r-3xl) var(--r-3xl) 0 0; background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(100%); transition: transform 300ms var(--ease); }
.sheet.is-visible .sheet__panel { transform: none; }
.sheet__grip { flex: none; width: 40px; height: 4px; margin: 0 auto var(--s-100); border-radius: 2px; background: var(--gray-2); }
.sheet__head { flex: none; display: flex; align-items: center; gap: var(--s-200); padding-bottom: var(--s-200); }
.sheet__head h2 { margin: 0; }
.sheet__grip, .sheet__head { touch-action: none; }
.sheet__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) { .sheet__panel, .sheet::backdrop { transition: none; } }
.store-row { display: flex; align-items: center; gap: var(--s-100); }
.store-row .badge-link { flex: 1; min-width: 0; }
.store-row .badge-link img { width: 100%; height: auto; }
.store-row--primary { padding: var(--s-200); border-radius: var(--r-3xl); background: var(--gray); }
.store-row--primary .badge-link { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.14)); }
.store-list { display: grid; grid-template-columns: 1fr; gap: var(--s-100); }
.store-list .store-row { justify-content: space-between; }
.store-list .badge-link { flex: none; }
.store-list .badge-link img { height: 56px; width: auto; }
.qr-mini { width: 56px; height: 56px; flex: none; border-radius: var(--r-xl); background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: zoom-in; border: 0; padding: var(--s-50); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.qr-mini:hover, .qr-mini:focus-visible { transform: scale(1.06); box-shadow: var(--shadow-md); }
.qr-mini svg { width: 100%; height: 100%; }
.store-row--primary .qr-mini { width: 72px; height: 72px; }
.qr-zoom { position: absolute; inset: 0; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-200); padding: var(--s-400); text-align: center; opacity: 0; transform: scale(0.96); pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease); z-index: 5; }
.qr-zoom.is-visible { opacity: 1; transform: none; }
.qr-zoom__code { width: min(320px, 70%); aspect-ratio: 1; padding: var(--s-200); border-radius: var(--r-3xl); box-shadow: var(--shadow-md); }
.qr-zoom__code svg { width: 100%; height: 100%; }
.qr-zoom__store { display: inline-flex; align-items: center; gap: var(--s-75); padding: var(--s-50) var(--s-100); border-radius: var(--r-full); background: var(--gray); }
@media (max-width: 539px) { .store-dialog__panel { padding: var(--s-300); } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stage.reveal .fan, .js .stage.reveal > .phone { transform: translateY(80px) scale(0.94); transition: transform 1200ms var(--ease); }
.js .stage.reveal.is-in .fan, .js .stage.reveal.is-in > .phone { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 200ms !important; animation: none !important; }
  .js .reveal, .js .stage.reveal .fan, .js .stage.reveal > .phone { transform: none; }
  .mobile-menu__link, .mobile-menu .btn, .store-dialog__panel { transform: none !important; }
}

/* Final download card, shared by the landing and profile pages. */
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); align-items: end; gap: var(--s-400); padding: var(--s-700) var(--s-700) 0; border-radius: var(--r-3xl); background: var(--gray); overflow: hidden; }
.final__copy { display: flex; flex-direction: column; gap: var(--s-300); align-items: flex-start; padding-bottom: var(--s-700); }
.final__icon { width: 64px; height: 64px; border-radius: var(--r-2xl); box-shadow: var(--shadow-md); }
.final__mascot { width: 400px; margin: 0 0 calc(-1 * var(--s-500)); justify-self: center; align-self: end; }
@media (max-width: 959px) {
  .final { grid-template-columns: minmax(0, 1fr); padding: var(--s-500) var(--s-300) 0; }
  .final__copy { padding-bottom: 0; }
  .final__mascot { width: 260px; margin: var(--s-300) auto calc(-1 * var(--s-300)); }
