/* MoMarket Landing — mirrors Android app theme exactly */
/* @import "fonts.css" is intentionally omitted — fonts.css is loaded via <link> in layout for preload pairing */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Light theme (MoMarket LightColorScheme) */
  --mo-primary:        #2B6CEE;
  --mo-primary-text:   #2B6CEE;
  --mo-secondary:      #E7EEFF;
  --mo-tertiary:       #1A46A6;

  --mo-bg:             #F6F6F8;
  --mo-surface:        #FDFDFB;
  --mo-surface-raised: #FFFFFF;

  --mo-text:           #1A1A2E;
  --mo-text-heading:   #1E293B;
  --mo-text-secondary: #64748B;
  --mo-text-muted:     #94A3B8;

  --mo-border:         #CBD5E1;
  --mo-line:           #E2E8F0;
  --mo-margin:         #FECACA;

  --mo-error:          #EF4444;
  --mo-success:        #22C55E;

  --mo-font-hand:      'Gochi Hand', cursive;
  --mo-font-body:      'Open Sans', sans-serif;
  --mo-font-ui:        'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
  /* Dark theme (MoMarket DarkColorScheme) */
  --mo-primary:        #5A9BF5;
  --mo-primary-text:   #93BBFD;
  --mo-secondary:      #1E3A6E;

  --mo-bg:             #101622;
  --mo-surface:        #161E30;
  --mo-surface-raised: #15202E;

  --mo-text:           #E8EAF0;
  --mo-text-heading:   #E2E8F0;
  --mo-text-secondary: #8899BB;
  --mo-text-muted:     #64748B;

  --mo-border:         #2A3A5C;
  --mo-line:           #172033;
  --mo-margin:         #F87171;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

@keyframes neonMove {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

body {
  font-family: var(--mo-font-body);
  background: linear-gradient(135deg, var(--mo-bg), var(--mo-tertiary), var(--mo-bg));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--mo-text);
  line-height: 1.6;
  transition: color 0.25s ease;
  overflow-x: hidden;
}

[data-theme="light"] {
  --mo-tertiary: #1A46A6;
}

[data-theme="dark"] {
  --mo-bg: #0A0F1A;
}

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

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hand { font-family: var(--mo-font-hand); }
.ui   { font-family: var(--mo-font-ui); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 12px; left: 16px; right: 16px; z-index: 100;
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, top 0.25s ease;
}
.navbar.scrolled {
  top: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 20px;
}
.navbar__brand {
  font-family: var(--mo-font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--mo-primary);
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 9px;
  cursor: pointer;
  flex-shrink: 0;
}
.navbar__brand img { border-radius: 8px; }

/* Nav links */
.navbar__links {
  display: flex; list-style: none; gap: 4px;
  margin: 0; padding: 0;
}
.navbar__link {
  font-family: var(--mo-font-ui);
  font-size: 0.88rem; font-weight: 500;
  color: var(--mo-text-secondary);
  padding: 7px 14px; border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.navbar__link::after {
  content: '';
  position: absolute; bottom: 3px; left: 50%; right: 50%;
  height: 2px; border-radius: 2px;
  background: var(--mo-primary);
  transition: left 0.22s ease, right 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}
.navbar__link:hover {
  color: var(--mo-text);
  background: var(--mo-secondary);
}
.navbar__link.active {
  color: var(--mo-primary);
  background: var(--mo-secondary);
}
.navbar__link.active::after {
  left: 18%; right: 18%;
  opacity: 1;
}

.navbar__actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle — track + knob + label */
.theme-toggle {
  display: flex; align-items: center; gap: 7px;
  background: var(--mo-secondary);
  border: 1.5px solid var(--mo-border);
  cursor: pointer; padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--mo-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mo-primary) 15%, transparent);
}
.theme-toggle:focus-visible { outline: 2px solid var(--mo-primary); outline-offset: 2px; }

/* ícone sol/lua */
.theme-toggle__sun,
.theme-toggle__moon {
  color: var(--mo-primary); flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.theme-toggle__moon { display: none; }
.theme-toggle__sun  { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun  { display: none; }

/* label */
.theme-toggle__label {
  font-family: var(--mo-font-ui);
  font-size: 0.78rem; font-weight: 600;
  color: var(--mo-text-secondary);
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}
.theme-toggle:hover .theme-toggle__label { color: var(--mo-text); }

/* switch pill */
.theme-toggle__track {
  position: relative;
  width: 36px; height: 20px;
  background: var(--mo-border);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
[data-theme="dark"] .theme-toggle__track { background: var(--mo-primary); }
.theme-toggle__knob {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%; background: #fff;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
[data-theme="dark"] .theme-toggle__knob { transform: translateX(16px); }

/* Hamburger (mobile) */
.navbar__hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: background 0.18s ease;
}
.navbar__hamburger:hover { background: var(--mo-secondary); }
.navbar__hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--mo-text-secondary); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mo-font-ui); font-weight: 600;
  border-radius: 12px; border: none;
  cursor: pointer; transition: all 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, #5BB8FF 0%, #2B6CEE 55%, #1A3FA6 100%);
  color: #fff;
  padding: 14px 28px; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(43, 108, 238, 0.35);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(43,108,238,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent; color: var(--mo-primary);
  border: 1.5px solid var(--mo-primary);
  padding: 12px 24px; font-size: 0.95rem;
}
.btn-outline:hover { background: var(--mo-secondary); }

/* Botão secundário com seta — hero CTA */
.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(90, 155, 245, 0.4);
  border-radius: 12px;
  color: var(--mo-text); font-family: var(--mo-font-ui);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  padding: 13px 18px; text-decoration: none; white-space: nowrap;
  transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-arrow:hover { color: var(--mo-primary); border-color: var(--mo-primary); background: rgba(90,155,245,0.06); gap: 14px; }
.btn-arrow__icon { display: inline-flex; align-items: center; }

.btn-ghost {
  background: transparent; color: var(--mo-text-secondary);
  padding: 8px 16px; font-size: 0.9rem;
}
.btn-ghost:hover { color: var(--mo-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: flex-start;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background-image: url("/images/hero-light.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

[data-theme="dark"] .hero {
  background-image: url("/images/hero-dark.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero__inner {
  display: flex; align-items: center;
  gap: 64px;
  position: relative; z-index: 1;
}
.hero__copy { flex: 1; }
.hero__eyebrow {
  font-family: var(--mo-font-ui);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--mo-primary); margin-bottom: 16px;
}
.hero__title {
  font-family: var(--mo-font-hand);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.15;
  color: var(--mo-text-heading);
  margin-bottom: 20px;
}
.hero__title span { color: var(--mo-primary); }
.hero__subtitle {
  font-size: 1.1rem; line-height: 1.7;
  color: var(--mo-text-secondary);
  max-width: 480px; margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badge {
  margin-top: 32px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mo-font-ui); font-size: 0.8rem;
  color: var(--mo-text-muted);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mo-success);
}

.hero__screens {
  flex: 0 0 auto;
  position: relative;
  width: 320px;
  max-width: 100%;
}

/* ── Phone carousel ─────────────────────────────────────── */
.phone-carousel {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 706px;
  overflow: visible;
}
/* Garante que botões físicos do LiquidFrame não sejam clipados */
.phone-carousel .simulator-container,
.phone-carousel .phone-frame { overflow: visible; }
/* Fundo durante crossfade — evita branco do viewport aparecer */
.phone-carousel .phone-frame { --screen-bg: #101622; }
[data-theme="light"] .phone-carousel .phone-frame { --screen-bg: #F6F6F8; }
/* Desativa scroll interno do phone-screen para não capturar o wheel da página */
.phone-carousel .phone-screen,
.howto__lf-wrap .phone-screen { overflow: hidden; touch-action: none; pointer-events: none; }
.phone-carousel .phone-screen img,
.howto__lf-wrap .phone-screen img { pointer-events: none; }

/* Dark Android shell */
.phone-carousel__shell {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1f 40%, #111115 100%);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.10),
    inset -2px -2px 0 rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06),
    0 48px 96px rgba(0,0,0,0.55),
    0 20px 40px rgba(0,0,0,0.35);
}

/* Screen cutout */
.phone-carousel__screen {
  position: absolute;
  top: 2.2%;
  left: 3.5%;
  right: 3.5%;
  bottom: 2.2%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

/* Punch-hole camera — small single dot */
.phone-carousel__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #050507;
  border-radius: 50%;
  z-index: 10;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Side buttons */
.phone-carousel__btn {
  position: absolute;
  background: linear-gradient(90deg, #222226, #2e2e34);
  border-radius: 3px;
}
.phone-carousel__btn--vol-up {
  left: -4px; top: 22%; width: 4px; height: 8%;
  box-shadow: -1px 0 0 rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone-carousel__btn--vol-down {
  left: -4px; top: 32%; width: 4px; height: 12%;
  box-shadow: -1px 0 0 rgba(255,255,255,0.08);
}
.phone-carousel__btn--power {
  right: -4px; top: 25%; width: 4px; height: 10%;
  box-shadow: 1px 0 0 rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Screen glass sheen */
.phone-carousel__screen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.06) 0%,
    transparent 50%,
    rgba(0,0,0,0.04) 100%
  );
  pointer-events: none;
  z-index: 20;
  border-radius: inherit;
}

/* Slides inside the screen */
.phone-carousel__slides {
  position: absolute; inset: 0;
}
.phone-carousel__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}
.phone-carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.phone-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* ── Floating caption card ───────────────────────────────── */
.phone-carousel__card {
  position: absolute;
  bottom: 0;
  left: -196px;
  width: 176px;
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 30;
}
/* Connecting line from card to phone edge */
.phone-carousel__card::after {
  display: none;
}

.phone-carousel__card-icon {
  width: 28px; height: 28px;
  background: var(--mo-secondary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  transition: background 0.25s ease;
}
.phone-carousel__card-icon svg {
  width: 15px; height: 15px;
  color: var(--mo-primary);
}

.phone-carousel__card-text {
  font-family: var(--mo-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mo-text-heading);
  line-height: 1.35;
  /* slide in/out animation */
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.phone-carousel__card-text.leaving {
  opacity: 0;
  transform: translateY(6px);
}
.phone-carousel__card-text.entering {
  opacity: 0;
  transform: translateY(-6px);
}
.phone-carousel__card-sub {
  font-family: var(--mo-font-ui);
  font-size: 0.68rem;
  color: var(--mo-text-muted);
  margin-top: 2px;
  transition: opacity 0.35s ease;
}

/* Legacy — kept for other pages */
.phone-frame {
  border-radius: 36px;
  overflow: hidden;
  border: 3px solid var(--mo-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  background: var(--mo-surface);
  transition: border-color 0.25s ease;
}
.phone-frame img { display: block; width: 100%; }
.phone-frame--main { width: 220px; }
.phone-frame--secondary {
  width: 180px;
  margin-bottom: 30px;
  opacity: 0.85;
}

/* ── Section shared ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section--alt { background: var(--mo-surface); transition: background 0.25s ease; }
.section__label {
  font-family: var(--mo-font-ui);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--mo-primary); margin-bottom: 12px;
}
.section__title {
  font-family: var(--mo-font-hand);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--mo-text-heading);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section__subtitle {
  font-size: 1rem; color: var(--mo-text-secondary);
  max-width: 560px; line-height: 1.7;
}
.section__header { margin-bottom: 52px; }
.section__header--center { text-align: center; }
.section__header--center .section__subtitle { margin: 0 auto; }

/* ── Features ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--mo-surface-raised);
  border: 1px solid var(--mo-border);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--mo-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43,108,238,0.12);
}
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--mo-secondary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease;
}
[data-theme="dark"] .feature-card__icon { background: var(--mo-secondary); }
.feature-card__icon svg { width: 24px; height: 24px; color: var(--mo-primary); }
.feature-card__title {
  font-family: var(--mo-font-hand);
  font-size: 1.2rem;
  color: var(--mo-text-heading);
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 0.9rem; color: var(--mo-text-secondary); line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────── */
.howto__layout {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.howto__steps-col {
  flex: 1;
  min-width: 280px;
}
.howto__phone-col {
  flex: 0 0 auto;
}
.howto__lf-wrap {
  position: relative;
  width: 260px;
  height: 563px;
  overflow: visible;
}
.howto__lf-wrap .simulator-container,
.howto__lf-wrap .phone-frame { overflow: visible; }
.howto__lf-wrap .phone-frame { --screen-bg: #101622; }
[data-theme="light"] .howto__lf-wrap .phone-frame { --screen-bg: #F6F6F8; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 28px; align-items: flex-start;
  position: relative; padding-bottom: 40px;
  cursor: pointer;
  border-radius: 16px;
  padding-left: 16px; padding-right: 16px; padding-top: 12px;
  margin-left: -16px; margin-right: -16px;
  border-left: 3px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.step:last-child { padding-bottom: 12px; }
.step__line-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step__number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--mo-secondary);
  color: var(--mo-primary-text);
  font-family: var(--mo-font-hand);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.step__connector {
  width: 2px; flex: 1; min-height: 32px;
  background: repeating-linear-gradient(
    to bottom,
    var(--mo-primary) 0, var(--mo-primary) 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.25; margin-top: 4px;
  transition: opacity 200ms ease;
}
.step:last-child .step__connector { display: none; }
.step__content { padding-top: 8px; }
.step__title {
  font-family: var(--mo-font-hand);
  font-size: 1.2rem; color: var(--mo-text-heading);
  margin-bottom: 6px;
  transition: color 200ms ease;
}
.step__desc { font-size: 0.92rem; color: var(--mo-text-secondary); line-height: 1.6; }

/* step hover (pointer devices only) */
@media (hover: hover) {
  .step:hover:not(.step--active) {
    background: color-mix(in srgb, var(--mo-primary) 5%, transparent);
    border-left-color: color-mix(in srgb, var(--mo-primary) 40%, transparent);
  }
  .step:hover:not(.step--active) .step__number {
    transform: scale(1.08);
    background: color-mix(in srgb, var(--mo-primary) 20%, var(--mo-secondary));
  }
}

/* step active */
.step--active {
  background: color-mix(in srgb, var(--mo-primary) 8%, transparent);
  border-left-color: var(--mo-primary);
}
.step--active .step__number {
  background: var(--mo-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mo-primary) 25%, transparent);
}
.step--active .step__connector { opacity: 0.6; }
.step--active .step__title { color: var(--mo-primary-text); }

/* howto phone image fade */
#howto-phone-img {
  transition: opacity 250ms ease;
}
#howto-phone-img.fading {
  opacity: 0;
}

/* ── Download section ────────────────────────────────────── */
.download {
  background: var(--mo-primary);
  padding: 80px 0;
  position: relative; overflow: hidden;
}
.download::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(2.5rem - 1px),
    rgba(255,255,255,0.06) calc(2.5rem - 1px),
    rgba(255,255,255,0.06) 2.5rem
  );
  pointer-events: none;
}
.download__inner {
  text-align: center; position: relative; z-index: 1;
}
.download__title {
  font-family: var(--mo-font-hand);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; margin-bottom: 16px;
}
.download__subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}
.download__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 24px; border-radius: 14px;
  font-family: var(--mo-font-ui); font-weight: 600;
  font-size: 0.95rem; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  -webkit-appearance: none; appearance: none;
}
.btn-store:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-store__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.btn-store__label { font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.btn-store__name  { font-size: 1rem; font-weight: 700; }

/* ── LGPD banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--mo-surface);
  border-top: 1px solid var(--mo-border);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__text {
  font-size: 0.85rem; color: var(--mo-text-secondary); flex: 1; max-width: 680px;
}
.cookie-banner__text a { color: var(--mo-primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--mo-surface);
  border-top: 1px solid var(--mo-border);
  padding: 40px 0 24px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px; margin-bottom: 32px;
}
.footer__brand__name {
  font-family: var(--mo-font-hand);
  font-size: 1.6rem; font-weight: 700; color: var(--mo-primary);
  margin-bottom: 8px;
}
.footer__brand__tagline { font-size: 0.85rem; color: var(--mo-text-muted); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  font-size: 0.88rem; color: var(--mo-text-secondary);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--mo-primary); }
.footer__links-title {
  font-family: var(--mo-font-ui); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mo-text-muted); margin-bottom: 4px;
}
.footer__bottom {
  border-top: 1px dashed var(--mo-border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer__copy {
  font-size: 0.8rem; color: var(--mo-text-muted);
}
.footer__copy a {
  color: var(--mo-primary); opacity: 0.75;
  transition: opacity 0.15s;
}
.footer__copy a:hover { opacity: 1; }

/* ── Privacy / Terms page ────────────────────────────────── */
.legal-page {
  padding: 100px 0 80px;
}
.legal-page h1 {
  font-family: var(--mo-font-hand);
  font-size: 2.4rem; color: var(--mo-text-heading);
  margin-bottom: 8px;
}
.legal-page .updated {
  font-size: 0.82rem; color: var(--mo-text-muted); margin-bottom: 40px;
}
.legal-page h2 {
  font-family: var(--mo-font-hand);
  font-size: 1.4rem; color: var(--mo-text-heading);
  margin: 32px 0 10px;
}
.legal-page p, .legal-page li {
  font-size: 0.95rem; color: var(--mo-text-secondary);
  line-height: 1.8; margin-bottom: 8px;
}
.legal-page ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page a { color: var(--mo-primary); text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */

/* ── Small desktop / large tablet (≤ 1024px) ────────────── */
/* Hero collapses to single column; "Como funciona" collapses */
@media (max-width: 1024px) {
  /* Hero */
  .hero__inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__cta { justify-content: center; }
  .hero__badge { justify-content: center; }
  .hero::after { left: 24px; }

  /* Phone carousel — card vai abaixo do phone no mobile */
  .hero__screens { overflow: visible; }
  .phone-carousel { height: auto; overflow: visible; }
  .phone-carousel__card {
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 16px auto 0;
    left: auto;
  }

  /* "Como funciona" layout */
  .howto__layout { flex-direction: column; gap: 40px; align-items: center; }
  .howto__steps-col { min-width: 0; width: 100%; }
  .howto__phone-col { width: auto; }
  .howto__lf-wrap { width: 220px; height: 476px; }
  .howto__lf-wrap .simulator-container { transform: scale(0.587) !important; margin-bottom: -335px !important; }

  /* Features: 2 columns on mid sizes */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Legacy phone frames */
  .phone-frame--main { width: 180px; }
  .phone-frame--secondary { width: 148px; }
}

/* ── Tablet / mobile navbar (≤ 900px) ───────────────────── */
@media (max-width: 900px) {
  .navbar { top: 8px; left: 12px; right: 12px; border-radius: 14px; }
  .navbar__links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: var(--mo-surface);
    border: 1px solid var(--mo-border);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .navbar__links.open { display: flex; opacity: 1; transform: translateY(0); }
  .navbar__link { padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; }
  .navbar__hamburger { display: flex; }
  .theme-toggle__label { display: none; }
}

/* ── Mobile (≤ 600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  /* Hero */
  .hero { padding-top: 80px; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero__subtitle { font-size: 1rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Phone carousel */
  .hero__screens { width: 100%; overflow: visible; }
  .phone-carousel { width: 100%; max-width: 280px; margin: 0 auto; height: auto; overflow: visible; }
  .phone-carousel__shell { width: 100%; }

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Sections */
  .section { padding: 56px 0; }
  .section__header { margin-bottom: 36px; }

  /* Legacy frames */
  .phone-frame--main { width: 150px; }
  .phone-frame--secondary { display: none; }

  /* Footer */
  .footer__inner { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 4px; }

  /* Cookie banner */
  .cookie-banner { flex-direction: column; }
}

/* ── Extra-small mobile (≤ 400px) ───────────────────────── */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .navbar__inner { padding: 0 14px; }
  .navbar__brand { font-size: 1.2rem; gap: 7px; }
  .hero__title { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  .hero { padding-top: 72px; }
  .btn-primary { padding: 12px 20px; font-size: 0.95rem; }
  .btn-outline  { padding: 10px 18px; font-size: 0.9rem; }
  .feature-card { padding: 20px; }
  .download { padding: 56px 0; }
  .download__title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .step { gap: 16px; padding-left: 10px; padding-right: 10px; margin-left: -10px; margin-right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* BETA_TEMP: remover todo o bloco abaixo até fim do arquivo quando app for público */
/* ── Beta Tester Modal ───────────────────────────────────── */
.beta-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.beta-modal-backdrop:not([hidden]) { opacity: 1; }
.beta-modal-backdrop[hidden] { display: none; }

@media (min-width: 520px) {
  .beta-modal-backdrop { align-items: center; padding: 24px; }
}

.beta-modal {
  position: relative;
  background: var(--mo-surface);
  border: 1px solid var(--mo-border);
  border-radius: 24px 24px 0 0;
  padding: 32px 24px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.18), 0 0 0 1px var(--mo-border);
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 92dvh;
  overflow-y: auto;
}
.beta-modal-backdrop:not([hidden]) .beta-modal { transform: translateY(0); }

@media (min-width: 520px) {
  .beta-modal {
    border-radius: 20px;
    padding: 36px 32px 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 0 0 1px var(--mo-border);
    max-height: 90dvh;
  }
}

/* Close button */
.beta-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mo-secondary);
  border: 1px solid var(--mo-border);
  border-radius: 50%;
  color: var(--mo-text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.beta-modal__close:hover { background: var(--mo-border); color: var(--mo-text); }
.beta-modal__close:focus-visible {
  outline: 2px solid var(--mo-primary); outline-offset: 2px;
}

/* Badge */
.beta-modal__badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mo-font-ui);
  font-size: 0.78rem; font-weight: 600;
  color: var(--mo-primary);
  background: var(--mo-secondary);
  border: 1px solid var(--mo-primary);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.beta-modal__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mo-primary);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Icon */
.beta-modal__icon {
  width: 56px; height: 56px;
  background: var(--mo-secondary);
  border: 1px solid var(--mo-border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

/* Title */
.beta-modal__title {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  color: var(--mo-text-heading);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Description */
.beta-modal__desc {
  font-family: var(--mo-font-body);
  font-size: 0.95rem;
  color: var(--mo-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Perks list */
.beta-modal__perks {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 28px;
}
.beta-modal__perk {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mo-font-ui);
  font-size: 0.88rem; font-weight: 500;
  color: var(--mo-text);
}
.beta-modal__perk svg { color: var(--mo-primary); flex-shrink: 0; }

/* Form */
.beta-modal__form { display: flex; flex-direction: column; gap: 14px; }

/* Honeypot: fora do fluxo visual, invisível para humanos */
.beta-modal__hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.beta-modal__field { display: flex; flex-direction: column; gap: 6px; }

.beta-modal__label {
  font-family: var(--mo-font-ui);
  font-size: 0.83rem; font-weight: 600;
  color: var(--mo-text-secondary);
  letter-spacing: 0.01em;
}

.beta-modal__input {
  font-family: var(--mo-font-body);
  font-size: 1rem;
  color: var(--mo-text);
  background: var(--mo-bg);
  border: 1.5px solid var(--mo-border);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 48px;
}
.beta-modal__input::placeholder { color: var(--mo-text-muted); }
.beta-modal__input:focus {
  border-color: var(--mo-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 238, 0.14);
}
.beta-modal__input:invalid:not(:placeholder-shown) {
  border-color: var(--mo-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Submit */
.beta-modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  min-height: 52px;
  font-size: 1rem;
  gap: 10px;
}

/* Field error */
.beta-modal__input--error {
  border-color: var(--mo-error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.beta-modal__field-error {
  font-family: var(--mo-font-ui);
  font-size: 0.78rem;
  color: var(--mo-error);
  margin-top: 4px;
}

/* Success state */
.beta-modal__success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 8px 0 4px; gap: 16px;
}
.beta-modal__success-icon {
  color: var(--mo-success);
  width: 64px; height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.beta-modal__success .beta-modal__title { margin-bottom: 0; }
.beta-modal__success .beta-modal__desc  { margin-bottom: 0; }
.beta-modal__success .beta-modal__submit { margin-top: 8px; width: 100%; justify-content: center; }

/* Privacy note */
.beta-modal__privacy {
  font-family: var(--mo-font-body);
  font-size: 0.78rem;
  color: var(--mo-text-muted);
  text-align: center;
  line-height: 1.5;
}
