/* 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; }

body {
  font-family: var(--mo-font-body);
  background: var(--mo-bg);
  color: var(--mo-text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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: 8px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.theme-toggle:hover { background: var(--mo-secondary); }
.theme-toggle:focus-visible { outline: 2px solid var(--mo-primary); outline-offset: 2px; }

.theme-toggle__track {
  position: relative;
  width: 40px; height: 23px;
  background: var(--mo-secondary);
  border: 1.5px solid var(--mo-border);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
[data-theme="dark"] .theme-toggle__track {
  background: var(--mo-secondary);
  border-color: var(--mo-primary);
}
.theme-toggle__knob {
  position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--mo-primary);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
[data-theme="dark"] .theme-toggle__knob { transform: translateX(17px); }

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

/* 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: var(--mo-primary); color: #fff;
  padding: 14px 28px; font-size: 1rem;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.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); }

.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: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
/* Notebook horizontal rules background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent calc(2.5rem - 1px),
    var(--mo-line) calc(2.5rem - 1px),
    var(--mo-line) 2.5rem
  );
  opacity: 0.7;
  pointer-events: none;
}
/* Notebook margin line */
.hero::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 72px;
  width: 1.5px;
  background: var(--mo-margin);
  opacity: 0.5;
  pointer-events: none;
}
.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%;
}

/* 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__phone-shell {
  width: 260px;
}

.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;
}
.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 goes below phone, no longer floats left */
  .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__phone-shell { width: 240px; }

  /* 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%; }
  .phone-carousel { width: 100%; max-width: 280px; margin: 0 auto; }
  .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; }
}
