/* ============================================
   Trail9 — Landing Page
   ============================================ */

/* --------- Fonts --------- */
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fonts/Outfit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------- Tokens --------- */
:root {
  /* Brand */
  --c-ink: #090711;             /* deepest */
  --c-night: #14102a;           /* base bg */
  --c-night-2: #1a1438;
  --c-night-3: #221c34;
  --c-violet: #7843ff;          /* brand purple — only on light surfaces */
  --c-violet-soft: #a78bff;     /* lighter purple — for text on dark */
  --c-violet-softer: #c4b1ff;
  --c-pink: #c8017d;            /* brand pink — only on light surfaces */
  --c-pink-soft: #f472b6;       /* lighter pink — for text on dark */
  --c-pink-softer: #f9a8d4;
  --c-text: #f5f2ff;
  --c-text-muted: rgba(245, 242, 255, 0.7);
  --c-text-dim: rgba(245, 242, 255, 0.5);
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-2: rgba(255, 255, 255, 0.14);
  --c-card: rgba(255, 255, 255, 0.04);
  --c-card-2: rgba(255, 255, 255, 0.06);

  /* Type */
  --font-sans: 'Outfit', system-ui, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* --------- Page background — radial gradient stack matching reference --------- */
.page {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(120, 67, 255, 0.35) 0%, transparent 55%),
    radial-gradient(80% 60% at 90% 35%, rgba(200, 1, 125, 0.18) 0%, transparent 60%),
    radial-gradient(80% 60% at 10% 65%, rgba(120, 67, 255, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #1a1438 0%, #14102a 50%, #0e0a1f 100%);
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(20, 16, 42, 0.55);
  border-bottom: 1px solid var(--c-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  height: 28px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--c-text-muted);
  font-weight: 400;
}
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--c-text); }
.nav__cta {
  background: var(--c-violet);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px -8px rgba(120, 67, 255, 0.6);
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(120, 67, 255, 0.7); }
.nav__menu-btn { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 96px 0 120px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-pink-soft);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-pink-soft);
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--c-violet-soft); }

/* --- Word rotator --- */
.word-rotator {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  color: var(--c-pink-soft);
}
.word-rotator__sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.word-rotator__stage {
  display: inline-grid;
  grid-template-areas: "stack";
  vertical-align: bottom;
  overflow: hidden;
  /* match line-height so words don't peek */
  line-height: 1.04;
}
.word-rotator__word {
  grid-area: stack;
  opacity: 0;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.6,.05,.3,1), opacity .35s ease;
  white-space: nowrap;
  will-change: transform, opacity;
}
.word-rotator__word.is-active {
  opacity: 1;
  transform: translateY(0);
}
.word-rotator__word.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .word-rotator__word { transition: opacity .2s ease; transform: none; }
  .word-rotator__word.is-leaving { transform: none; }
}
.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  background: #0a0613;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform .2s, background .2s, border-color .2s;
}
.btn-store:hover {
  transform: translateY(-2px);
  background: #14102a;
  border-color: rgba(255, 255, 255, 0.24);
}
/* Both store buttons share the same visual weight — no primary/ghost split */
.btn-store--primary,
.btn-store--ghost { /* aliases kept for compat */ }
.btn-store__icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-store__sub { font-size: 10px; opacity: .8; letter-spacing: 0.04em; line-height: 1; display: block; }
.btn-store__main { font-size: 15px; font-weight: 600; line-height: 1.1; display: block; margin-top: 2px; }
.btn-store__labels { display: flex; flex-direction: column; align-items: flex-start; }

/* --- Hero trust strip --- */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--c-line);
}
.trust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust__icon {
  flex: 0 0 auto;
  color: var(--c-violet-soft);
}
.trust__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.trust__title {
  font-size: 14px;
  font-weight: 500;
  color: #F5F2FF;
  letter-spacing: -0.005em;
}
.trust__sub {
  font-size: 12px;
  color: rgba(232, 228, 245, 0.6);
}

/* --- Hero phone mockup --- */
.hero__phones {
  position: relative;
  height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 255, 0.4) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(8px);
}
.hero__glow--pink {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.28) 0%, transparent 65%);
  top: 25%;
  left: 65%;
}

/* Realistic iPhone-style frame with Dynamic Island + side buttons */
.phone {
  position: relative;
  width: 280px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2438 0%, #0a0613 50%, #1a1428 100%);
  padding: 10px;
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 0 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
  /* prep for 3D children */
  transform-style: preserve-3d;
}
/* Side buttons (volume + power) */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  background: #1a1525;
  border-radius: 2px;
  pointer-events: none;
}
.phone::before {
  /* power on the right */
  right: -2px;
  top: 130px;
  width: 3px;
  height: 70px;
  box-shadow: inset -1px 0 1px rgba(0,0,0,0.6);
}
.phone::after {
  /* volume rocker on the left */
  left: -2px;
  top: 110px;
  width: 3px;
  height: 50px;
  box-shadow: inset 1px 0 1px rgba(0,0,0,0.6),
    0 70px 0 #1a1525, 0 70px 0 0 #1a1525;
}
.phone__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #14102a;
  aspect-ratio: 9 / 19.5;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Dynamic Island */
.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.04);
}
.phone__island::after {
  /* tiny camera dot */
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2438 0%, #000 70%);
}

/* 3D-rotated stage — like the iZ Pay reference */
.hero__phones {
  perspective: 1800px;
  perspective-origin: 50% 40%;
}
.phone--main {
  z-index: 3;
  transform: rotateX(8deg) rotateY(-18deg) rotateZ(-2deg) translateY(var(--py, 0px));
  transition: transform .6s ease;
}
.phone--back {
  position: absolute;
  width: 240px;
  z-index: 1;
  opacity: 0.92;
  transform: rotateX(6deg) rotateY(-22deg) rotateZ(4deg) translate3d(58%, calc(-8% + var(--py, 0px)), -120px);
  filter: blur(0.3px);
}

/* ============================================
   SECTIONS — shared
   ============================================ */
.section { padding: 120px 0; position: relative; }
.section--alt { background: rgba(0, 0, 0, 0.18); }
.section__head { text-align: center; margin-bottom: 72px; }
.section__head--left { text-align: left; max-width: 720px; margin-bottom: 64px; }
.section__title {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-text);
  text-wrap: balance;
}
.section__lede {
  font-size: 16px;
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.6;
}
.section__head--left .section__lede { margin-left: 0; margin-right: 0; }

/* ============================================
   COMO FUNCIONA
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .25s, border-color .25s, background .25s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 255, 0.3);
  background: var(--c-card-2);
}
.step__num {
  font-size: 12px;
  color: var(--c-violet-soft);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.step__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(167, 139, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-violet-soft);
}
.step__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 10px;
}
.step__desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.55;
}
.step--accent { background: rgba(244, 114, 182, 0.06); border-color: rgba(244, 114, 182, 0.32); }
.step--accent .step__num { color: var(--c-pink-soft); }
.step--accent .step__icon { background: rgba(244, 114, 182, 0.16); color: var(--c-pink-soft); }

/* ============================================
   DIFERENCIAIS
   ============================================ */
.features {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.feature {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(167, 139, 255, 0.28); }
.feature__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(167, 139, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-violet-soft);
  margin-bottom: 18px;
}
.feature__title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--c-text);
}
.feature__desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.55;
}
.feature--big {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(167, 139, 255, 0.12) 0%, rgba(167, 139, 255, 0.04) 100%);
  border-color: rgba(167, 139, 255, 0.28);
  padding: 32px;
  justify-content: space-between;
}
.feature--big .feature__title {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.feature--big .feature__desc { font-size: 15px; }
.feature__badge {
  display: inline-block;
  background: rgba(244, 114, 182, 0.18);
  color: var(--c-pink-soft);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}
.feature__phone {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  position: relative;
  background: #14102a;
}
.feature__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.feature--pink { background: rgba(244, 114, 182, 0.06); border-color: rgba(244, 114, 182, 0.28); }
.feature--pink .feature__icon { background: rgba(244, 114, 182, 0.16); color: var(--c-pink-soft); }

/* ============================================
   MODALIDADES
   ============================================ */
/* horizontal scroller */
.modes-scroller {
  position: relative;
  /* bleed track to the viewport edges so cards can scroll under page padding */
  margin-inline: calc(50% - 50vw);
}
.modes-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  padding: 8px max(24px, calc((100vw - 1200px) / 2)) 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.modes-track::-webkit-scrollbar { display: none; }
.modes-track > .mode { scroll-snap-align: start; }

.modes-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-inline: max(24px, calc((100vw - 1200px) / 2));
}
.modes-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-card);
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}
.modes-btn:hover { background: rgba(167,139,255,0.10); border-color: rgba(167,139,255,0.35); }
.modes-btn:active { transform: scale(0.96); }
.modes-btn[disabled] { opacity: 0.35; cursor: default; }
.modes-btn[disabled]:hover { background: var(--c-card); border-color: var(--c-line); }

.mode {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.mode:hover { transform: translateY(-4px); border-color: rgba(167, 139, 255, 0.3); }
.mode__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(167, 139, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-violet-soft);
  margin-bottom: 22px;
}
.mode__name {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.mode__desc {
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}
.mode__meta {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--c-text-dim);
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.mode__meta span strong { color: var(--c-text); font-weight: 500; }

/* ============================================
   POSTCARDS / MAPAS
   ============================================ */
.postcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.postcards__copy h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-wrap: balance;
}
.postcards__copy h2 .accent { color: var(--c-pink-soft); }
.postcards__copy p {
  font-size: 16px;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.postcards__media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone--postcards {
  width: 78%;
  max-width: 320px;
}
.postcards__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(244, 114, 182, 0.22) 0%, transparent 60%);
  z-index: -1;
}

/* ============================================
   PILARES — O que você encontra no app
   ============================================ */
.pillars { display: flex; flex-direction: column; gap: 0; }

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 80px;
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--c-line);
}
.pillar:first-of-type { border-top: 0; padding-top: 16px; }
.pillar:last-of-type { padding-bottom: 16px; }

.pillar__head {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pillar__num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-violet-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.pillar__num::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-violet-soft);
}
.pillar__title {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--c-text);
  text-wrap: balance;
}
.pillar__manifesto {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 360px;
  text-wrap: pretty;
  margin-top: 4px;
}

.pillar__items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pillar-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--c-line);
}
.pillar-item:first-child { border-top: 0; padding-top: 4px; }
.pillar-item:last-child { padding-bottom: 4px; }
.pillar-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(167, 139, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-violet-soft);
  flex-shrink: 0;
  transition: background .25s, color .25s, transform .25s;
}
.pillar-item:hover .pillar-item__icon {
  background: rgba(244, 114, 182, 0.16);
  color: var(--c-pink-soft);
  transform: translateY(-2px);
}
.pillar-item__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text);
  margin: 4px 0 8px;
  letter-spacing: -0.005em;
}
.pillar-item__desc {
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
  max-width: 520px;
}
.pillar-item__tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-pink-soft);
  background: rgba(244, 114, 182, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
  font-weight: 500;
  position: relative;
  top: -2px;
}

@media (max-width: 880px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .pillar__head { position: static; }
  .pillar__title { font-size: clamp(34px, 8vw, 44px); }
  .pillar-item { grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; }
  .pillar-item__icon { width: 40px; height: 40px; }
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.testimonials-scroller {
  position: relative;
  /* bleed track to the viewport edges so cards can scroll under page padding */
  margin-inline: calc(50% - 50vw);
}
.testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 380px);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  padding: 8px max(24px, calc((100vw - 1200px) / 2)) 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonials-track > .testimonial { scroll-snap-align: start; }
.testimonials__error { color: var(--c-text-muted); text-align: center; padding: 32px 24px; }

.testimonial {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px;
}
.testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  color: var(--c-pink-soft);
}
.testimonial__quote {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.testimonial__person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(167, 139, 255, 0.2);
  color: var(--c-violet-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 13px;
}
.testimonial__name { font-size: 14px; color: var(--c-text); font-weight: 500; }
.testimonial__meta { font-size: 12px; color: var(--c-text-dim); margin-top: 2px; }

/* ============================================
   FAQ
   ============================================ */
.faq { max-width: 760px; margin: 0 auto; }

/* FAQ — controles (busca + categorias) */
.faq-controls {
  max-width: 760px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--c-text-muted);
  transition: border-color .2s;
}
.faq-search:focus-within { border-color: rgba(167, 139, 255, 0.45); }
.faq-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--c-text);
  font: inherit;
  font-size: 15px;
}
.faq-search input::placeholder { color: var(--c-text-dim); }
.faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-cat {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.faq-cat:hover { color: var(--c-text); border-color: rgba(167,139,255,0.35); }
.faq-cat.is-active {
  background: rgba(167,139,255,0.14);
  border-color: rgba(167,139,255,0.45);
  color: #F5F2FF;
}

.faq__empty, .faq__error {
  text-align: center;
  color: var(--c-text-dim);
  padding: 32px 16px;
  font-size: 14px;
}
.faq__more { text-align: center; margin-top: 28px; }
.faq__more-link {
  display: inline-block;
  color: var(--c-violet-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(167,139,255,0.4);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.faq__more-link:hover { color: #F5F2FF; border-color: #F5F2FF; }

/* FAQ — paginação */
.faq-pager {
  max-width: 760px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.faq-pager__info {
  font-size: 13px;
  color: var(--c-text-dim);
}
.faq-pager__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.faq-pager__btn,
.faq-pager__num {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: var(--c-card);
  color: var(--c-text-muted);
  font: inherit;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.faq-pager__btn:hover:not([disabled]),
.faq-pager__num:hover { color: var(--c-text); border-color: rgba(167,139,255,0.35); background: rgba(167,139,255,0.08); }
.faq-pager__btn:active:not([disabled]),
.faq-pager__num:active { transform: scale(0.96); }
.faq-pager__btn[disabled] { opacity: 0.35; cursor: default; }
.faq-pager__num.is-active {
  background: rgba(167,139,255,0.18);
  border-color: rgba(167,139,255,0.5);
  color: #F5F2FF;
  font-weight: 500;
}
.faq-pager__ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--c-text-dim);
  font-size: 14px;
}
.faq__item {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.faq__item.is-open {
  border-color: rgba(167, 139, 255, 0.36);
  background: rgba(167, 139, 255, 0.06);
}
.faq__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
}
.faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--c-violet-soft);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform .25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq__panel-inner {
  padding: 0 26px 22px;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* ============================================
   CTA FINAL
   ============================================ */
.cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(120, 67, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 20px;
  text-wrap: balance;
}
.cta h2 .accent { color: var(--c-pink-soft); }
.cta p {
  font-size: 17px;
  color: var(--c-text-muted);
  max-width: 480px;
  margin: 0 auto 40px;
}
.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__buttons .btn-store { padding: 16px 28px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 64px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.footer__brand { max-width: 260px; }
.footer__logo { height: 24px; opacity: 0.9; margin-bottom: 16px; }
.footer__tag {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-dim);
  margin: 0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 16px;
}
.footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-list a {
  font-size: 13px;
  color: var(--c-text-dim);
  transition: color .2s;
}
.footer__col-list a:hover { color: var(--c-text); }
.footer__col-list a[aria-current="page"] {
  color: var(--c-violet-soft);
}
.footer__base {
  grid-column: 1 / -1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 12px; color: var(--c-text-dim); }
.footer__copy--dim { opacity: 0.7; }
/* Legacy single-row footer (kept for any not-yet-migrated page) */
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--c-text-dim);
}
.footer__links a:hover { color: var(--c-text); }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .container { padding: 0 24px; }

  .nav__links { display: none; }
  .nav__cta { padding: 8px 16px; font-size: 13px; }

  .hero { padding: 64px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__phones { height: 540px; }
  .hero__trust { gap: 20px; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 48px; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature--big { grid-row: span 1; grid-column: span 2; }
  .modes-track { grid-auto-columns: 84vw; }
  .modes-controls { display: none; }
  .testimonials-track { grid-auto-columns: 84vw; }
  .testimonials-scroller .modes-controls { display: none; }

  .postcards { grid-template-columns: 1fr; gap: 48px; }
  .postcards__media { aspect-ratio: 1 / 1; }
  .phone--postcards { width: 60%; }

  .cta { padding: 80px 0; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 38px; }
  .hero__sub { font-size: 16px; }

  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature--big { grid-column: span 1; }

  .phone { width: 240px; }
  .phone--back { width: 200px; }

  .footer__links { flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   LEGAL PAGES (Termos / Privacidade)
   ============================================ */
.legal-hero {
  padding: 128px 0 40px;
  position: relative;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 32px;
}
.legal-breadcrumb a {
  color: var(--c-text-muted);
  transition: color .2s;
}
.legal-breadcrumb a:hover { color: var(--c-text); }
.legal-breadcrumb [aria-current="page"] {
  color: var(--c-text);
}
.legal-hero .eyebrow {
  margin-bottom: 20px;
}
.legal-hero__title {
  font-size: clamp(40px, 5.2vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 16px;
  text-wrap: balance;
}
.legal-hero__updated {
  font-size: 14px;
  color: var(--c-text-dim);
  margin-bottom: 32px;
}
.legal-hero__updated:empty { display: none; }
.legal-hero__tabs {
  display: inline-flex;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.legal-hero__tabs::-webkit-scrollbar { display: none; }
.legal-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.legal-tab:hover { color: var(--c-text); }
.legal-tab.is-active {
  background: var(--c-violet);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(120, 67, 255, 0.55);
}

/* --- Layout grid --- */
.legal-section { padding: 32px 0 120px; }
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

/* --- Sidebar TOC --- */
.legal-aside {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.legal-aside::-webkit-scrollbar { width: 4px; }
.legal-aside::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 4px; }
.legal-toc {
  font-size: 13px;
  border-left: 1px solid var(--c-line);
  padding-left: 20px;
}
.legal-toc__placeholder {
  color: var(--c-text-dim);
  font-size: 13px;
}
.legal-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc__item a {
  display: block;
  padding: 8px 0;
  color: var(--c-text-dim);
  line-height: 1.4;
  transition: color .2s, transform .2s;
  border-left: 2px solid transparent;
  margin-left: -22px;
  padding-left: 20px;
}
.legal-toc__item a:hover {
  color: var(--c-text-muted);
}
.legal-toc__item a.is-active {
  color: var(--c-text);
  border-left-color: var(--c-violet-soft);
  font-weight: 500;
}
.legal-toc__item--h3 a {
  padding-left: 36px;
  font-size: 12px;
  color: var(--c-text-dim);
}

/* --- Document --- */
.legal-doc {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-muted);
  font-weight: 300;
}
.legal-doc h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--c-text);
  margin: 64px 0 20px;
  scroll-margin-top: 96px;
  text-wrap: balance;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-text);
  margin: 36px 0 12px;
  scroll-margin-top: 96px;
}
.legal-doc p {
  margin: 0 0 18px;
  text-wrap: pretty;
}
.legal-doc strong {
  color: var(--c-text);
  font-weight: 500;
}
.legal-doc a {
  color: var(--c-violet-soft);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 255, 0.35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.legal-doc a:hover {
  color: var(--c-pink-soft);
  text-decoration-color: var(--c-pink-soft);
}
.legal-doc ul, .legal-doc ol {
  margin: 0 0 22px;
  padding-left: 22px;
}
.legal-doc li {
  margin-bottom: 8px;
}
.legal-doc li::marker {
  color: var(--c-violet-soft);
}
.legal-doc hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 56px 0 32px;
}
.legal-doc blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: rgba(120, 67, 255, 0.08);
  border-left: 3px solid var(--c-violet-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--c-text-muted);
  font-size: 15px;
}
.legal-doc blockquote p:last-child { margin-bottom: 0; }
.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--c-card-2);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--c-violet-softer);
}

/* Tables (used in privacy doc) */
.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.legal-doc thead th {
  background: var(--c-card-2);
  color: var(--c-text);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.legal-doc tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  vertical-align: top;
}
.legal-doc tbody tr:last-child td { border-bottom: 0; }
.legal-doc tbody td:first-child { color: var(--c-text); font-weight: 400; }

/* Skeleton + error states */
.legal-doc__placeholder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-doc__skeleton {
  height: 14px;
  background: linear-gradient(90deg, var(--c-card) 0%, var(--c-card-2) 50%, var(--c-card) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: legal-shimmer 1.6s linear infinite;
}
.legal-doc__skeleton--short { width: 60%; }
@keyframes legal-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.legal-error {
  padding: 24px;
  border: 1px solid var(--c-line);
  background: var(--c-card);
  border-radius: var(--radius-md);
  color: var(--c-text-muted);
  font-size: 15px;
}
.legal-error a { color: var(--c-violet-soft); text-decoration: underline; }

/* Back to top */
.legal-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(120, 67, 255, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 60;
}
.legal-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.legal-top:hover { background: #8a5bff; }

/* --- Responsive --- */
@media (max-width: 880px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .legal-toc {
    border-left: 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
    padding: 12px 0;
  }
  .legal-toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .legal-toc__item--h3 { display: none; }
  .legal-toc__item a {
    padding: 6px 12px;
    margin-left: 0;
    border-left: 0;
    border-radius: var(--radius-pill);
    background: var(--c-card);
    font-size: 12px;
  }
  .legal-toc__item a.is-active {
    background: var(--c-violet);
    color: #fff;
    border-left: 0;
  }
  .legal-hero { padding-top: 96px; }
  .legal-doc h2 { font-size: 24px; margin-top: 48px; }
}

/* Print */
@media print {
  .nav, .footer, .legal-aside, .legal-hero__tabs, .legal-top, .legal-breadcrumb { display: none !important; }
  body, .page { background: #fff !important; color: #111 !important; }
  .legal-doc, .legal-doc p, .legal-doc li { color: #111 !important; }
  .legal-doc h2, .legal-doc h3, .legal-doc strong { color: #000 !important; }
  .legal-doc a { color: #444 !important; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-hero { padding-top: 0; }
  .legal-hero__title { color: #000 !important; }
}
