/*
  Órbita — landing page
  Conceito: um céu noturno (abertura e chamada final) em volta das seções claras ou escuras, que seguem o tema
  do aparelho como o próprio app. Cores e fonte do texto são as do app; a fonte de títulos dá personalidade.
*/
:root {
  color-scheme: light;
  /* cores do app (tema claro) */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --line: #dfe2e8;
  --fg: #14171c;
  --muted: #5d6675;
  --accent: #2563eb;
  --accent-fg: #ffffff;
  --accent-soft: #e4ecfd;
  /* céu noturno (igual nos dois temas) e a lua âmbar do ícone */
  --night: #0a0d14;
  --night-2: #111a2e;
  --night-fg: #e9ecf1;
  --night-muted: #9aa4b4;
  --moon: #f6b34a;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 18px 50px rgb(16 24 40 / 0.10);

  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --radius: 18px;
  --wrap: 1180px;
}

/* Tema escuro: segue o aparelho, a menos que a página tenha um tema escolhido (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0c0e12;
    --surface: #14171d;
    --surface-2: #1e222a;
    --line: #2a2f39;
    --fg: #e9ecf1;
    --muted: #9aa3b1;
    --accent: #6aa5ff;
    --accent-fg: #0c0e12;
    --accent-soft: #172640;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 50px rgb(0 0 0 / 0.35);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0e12;
  --surface: #14171d;
  --surface-2: #1e222a;
  --line: #2a2f39;
  --fg: #e9ecf1;
  --muted: #9aa3b1;
  --accent: #6aa5ff;
  --accent-fg: #0c0e12;
  --accent-soft: #172640;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 50px rgb(0 0 0 / 0.35);
}

/* Cores de destaque (as mesmas de Ajustes no app), escolhidas na seção do celular. */
:root[data-accent='esmeralda'] { --accent: #0b8a7a; --accent-soft: #dcf3ef; }
:root[data-accent='floresta'] { --accent: #2a8a43; --accent-soft: #e0f2e4; }
:root[data-accent='ambar'] { --accent: #c2570a; --accent-soft: #fcebd9; }
:root[data-accent='coral'] { --accent: #d63a5e; --accent-soft: #fce4ea; }
:root[data-accent='grafite'] { --accent: #30363f; --accent-soft: #e6e8ec; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light'])[data-accent='esmeralda'] { --accent: #35c9b3; --accent-soft: #10302b; }
  :root:not([data-theme='light'])[data-accent='floresta'] { --accent: #5bcb78; --accent-soft: #15301c; }
  :root:not([data-theme='light'])[data-accent='ambar'] { --accent: #f59f4c; --accent-soft: #36230f; }
  :root:not([data-theme='light'])[data-accent='coral'] { --accent: #ff7f9a; --accent-soft: #3a1821; }
  :root:not([data-theme='light'])[data-accent='grafite'] { --accent: #d3d8e0; --accent-soft: #2a2e37; }
}
:root[data-theme='dark'][data-accent='esmeralda'] { --accent: #35c9b3; --accent-soft: #10302b; }
:root[data-theme='dark'][data-accent='floresta'] { --accent: #5bcb78; --accent-soft: #15301c; }
:root[data-theme='dark'][data-accent='ambar'] { --accent: #f59f4c; --accent-soft: #36230f; }
:root[data-theme='dark'][data-accent='coral'] { --accent: #ff7f9a; --accent-soft: #3a1821; }
:root[data-theme='dark'][data-accent='grafite'] { --accent: #d3d8e0; --accent-soft: #2a2e37; }

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img,
video {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
svg .fill {
  fill: currentColor;
  stroke: none;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
}
.skip:focus {
  top: 12px;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn--lg {
  height: 54px;
  padding: 0 26px;
  font-size: 1.02rem;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--primary:hover {
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn--ghost {
  color: var(--fg);
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--night {
  color: var(--night-fg);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
}
.btn--night:hover {
  background: rgb(255 255 255 / 0.14);
}

/* ---------- topo ---------- */
/* No celular com entalhe, a faixa acima do cabeçalho fixo fica pintada com o fundo da página. */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 41;
  background: var(--bg);
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}
.brand--small {
  font-size: 1.05rem;
}
.brand--small img {
  border-radius: 6px;
}
.topnav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  margin-left: 12px;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.topnav a:hover {
  color: var(--fg);
}
.topbar__cta {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

/* ---------- abertura (céu noturno) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 0%, rgb(37 99 235 / 0.35), transparent 70%),
    radial-gradient(50% 45% at 92% 100%, rgb(124 58 237 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night) 60%);
  color: var(--night-fg);
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 96px);
}
.hero__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--night {
  color: var(--night-muted);
  padding: 8px 14px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
}
.moon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 12px var(--moon);
}
.hero h1 {
  font-size: var(--step-3);
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #93bbff 10%, #6aa5ff 45%, var(--moon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 58ch;
  font-size: var(--step-1);
  color: var(--night-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.hero .btn--primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 14px 40px rgb(37 99 235 / 0.45);
}

/* filme do produto */
.film {
  margin: clamp(28px, 5vw, 56px) 0 0;
  width: 100%;
  max-width: 1040px;
  scroll-margin-top: 90px;
}
.film__frame {
  position: relative;
  border-radius: 20px;
  padding: 34px 10px 10px;
  background: linear-gradient(180deg, #1b2130, #121620);
  border: 1px solid rgb(255 255 255 / 0.10);
  box-shadow: 0 40px 120px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.film__dots {
  position: absolute;
  top: 12px;
  left: 16px;
  display: flex;
  gap: 7px;
}
.film__dots i,
.window__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.film__dots i:nth-child(2),
.window__bar i:nth-child(2) {
  background: #febc2e;
}
.film__dots i:nth-child(3),
.window__bar i:nth-child(3) {
  background: #28c840;
}
.film__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--night);
}
.film__play {
  position: absolute;
  left: 50%;
  top: calc(50% + 12px);
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgb(37 99 235 / 0.92);
  box-shadow: 0 0 0 10px rgb(37 99 235 / 0.22), 0 20px 50px rgb(0 0 0 / 0.5);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.film__play svg {
  width: 38px;
  height: 38px;
  margin-left: 5px;
}
.film__play:hover {
  transform: scale(1.06);
}
.film.is-playing .film__play {
  opacity: 0;
  pointer-events: none;
}
.film figcaption {
  margin-top: 14px;
  font-size: var(--step--1);
  color: var(--night-muted);
}

/* ---------- seções ---------- */
.day,
.details,
.faq {
  padding-block: clamp(64px, 9vw, 120px);
}
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 760px;
}
.section-head h2,
.pocket h2 {
  font-size: var(--step-2);
  font-weight: 700;
}

/* tour pelos recursos */
.tour {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.tour__tabs {
  display: grid;
  gap: 4px;
}
.tour__tabs button {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  align-items: baseline;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tour__tabs button:hover {
  background: var(--surface-2);
}
.tour__tabs button[aria-selected='true'] {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.tour__tabs time {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tour__tabs button[aria-selected='true'] time {
  color: var(--accent);
}
.tour__tabs strong {
  font-size: 1.05rem;
  font-weight: 650;
}
.tour__tabs span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.tour__stage {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.window {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.window__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.window__bar i {
  width: 10px;
  height: 10px;
}
.window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: opacity 0.25s ease;
}
.window img.is-swapping {
  opacity: 0.25;
}
.tour__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tour__facts li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
}
.tour__facts strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
}

/* celular e computador */
.pocket {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.pocket__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pocket__phone {
  display: grid;
  place-items: center;
  position: relative;
}
.pocket__phone::before {
  content: '';
  position: absolute;
  width: 120%;
  aspect-ratio: 2.4;
  border: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.phone {
  position: relative;
  width: min(320px, 78vw);
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(145deg, #2a2f39, #0d0f13);
  box-shadow: 0 40px 90px rgb(16 24 40 / 0.35), inset 0 0 0 2px rgb(255 255 255 / 0.10);
}
.phone__video {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 38px;
  background: var(--night);
}
.phone__island {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 30%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050608;
}
.pocket__text {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.checks li {
  position: relative;
  padding-left: 36px;
  color: var(--muted);
  max-width: 60ch;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong {
  color: var(--fg);
}
.accents {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.accents p {
  font-size: 0.95rem;
  color: var(--muted);
}
.accents p strong {
  color: var(--fg);
  font-weight: 600;
}
.accents__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.accents__row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.accents__row i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
}
.accents__row button[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* detalhes */
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.specs > div {
  padding: 26px 26px 26px 0;
  border-bottom: 1px solid var(--line);
}
.specs > div:not(:nth-child(3n + 1)) {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.specs dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.specs dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* perguntas */
.faq {
  padding-top: 0;
}
.faq__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq__list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 16px;
  color: var(--muted);
  max-width: 62ch;
}

/* chamada final */
.final {
  background:
    radial-gradient(50% 70% at 50% 0%, rgb(37 99 235 / 0.35), transparent 70%),
    var(--night);
  color: var(--night-fg);
  padding-block: clamp(72px, 10vw, 130px);
}
.final__in {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.final__logo {
  border-radius: 22px;
  box-shadow: 0 20px 60px rgb(37 99 235 / 0.4);
  animation: float 6s ease-in-out infinite;
}
.final h2 {
  font-size: var(--step-2);
  font-weight: 800;
}
.final p {
  color: var(--night-muted);
  margin-bottom: 8px;
}
.final .btn--primary {
  background: #3b82f6;
  color: #fff;
}

.footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.footer__in p {
  margin-right: auto;
}
.footer a {
  color: var(--fg);
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- telas menores ---------- */
@media (max-width: 960px) {
  .topnav {
    display: none;
  }
  .tour {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour__tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    margin-inline: -4px;
  }
  .tour__tabs button {
    flex: none;
    grid-template-columns: auto;
    gap: 2px;
    padding: 10px 14px;
    border-color: var(--line);
  }
  .tour__tabs time {
    grid-row: auto;
    font-size: 0.75rem;
  }
  .tour__tabs span {
    display: none;
  }
  .pocket__in,
  .faq__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .specs > div:nth-child(2n) {
    padding-left: 22px;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .topbar__cta .btn--ghost {
    display: none;
  }
  .topbar__cta .btn {
    height: 40px;
    padding: 0 14px;
  }
  .brand {
    font-size: 1.2rem;
  }
  .tour__facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs > div,
  .specs > div:nth-child(2n) {
    padding: 20px 0;
    border-left: 0;
  }
  .film__frame {
    padding: 26px 6px 6px;
    border-radius: 14px;
  }
  .film__dots {
    top: 9px;
    left: 12px;
  }
  .film__dots i {
    width: 8px;
    height: 8px;
  }
  .film__play {
    width: 70px;
    height: 70px;
    margin: -35px 0 0 -35px;
  }
}

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