/* ---------------------------------------------------------
   Tokens — verde da marca igual ao do app (app/src/theme/tokens.ts)
--------------------------------------------------------- */
:root {
  --paper: #FFFFFF;
  --tint: #F1F5F2;
  --ink: #17201A;
  --muted: #5A655E;
  --faint: #8C968F;
  --line: #DCE3DE;

  --green: #0F6B34;
  --green-bright: #14AE52;
  --green-deep: #0E3A22;
  --mint: #DCEFE2;
  --logo: #21D193;
  --pending: #E9A400;
  --strava: #FC4C02;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------
   Botões
--------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--font-body);
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0B5529; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

/* ---------------------------------------------------------
   Header — navegação à esquerda, marca no centro, ação à direita
--------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: background .2s, box-shadow .2s;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a, .mobile-nav a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--ink); }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font: 800 22px/1 var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.logo-img { width: 34px; height: auto; }
.logo-img-header { width: 42px; }
.header-end { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 6px auto; border-radius: 2px; }
.mobile-nav { display: none; }

/* ---------------------------------------------------------
   Celular (mockup) — tudo dentro em `em`, escala com --s
--------------------------------------------------------- */
.phone {
  --s: 1;
  width: calc(290px * var(--s));
  aspect-ratio: 9 / 19.2;
  padding: calc(9px * var(--s));
  border-radius: calc(46px * var(--s));
  background: #101412;
  box-shadow: 0 40px 80px -30px rgba(8, 30, 18, .45), inset 0 0 0 1.5px #2C332F;
  font-size: calc(13px * var(--s));
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: calc(38px * var(--s));
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--ink);
  line-height: 1.35;
}
.phone-screen::before { /* ilha dinâmica */
  content: ''; position: absolute; top: .7em; left: 50%;
  width: 7.2em; height: 2.1em; border-radius: 2em;
  background: #101412; transform: translateX(-50%); z-index: 2;
}
.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05em 2em .5em;
  font-weight: 600; font-size: 1em;
}
.sb-icons { width: 1.9em; height: .9em; border: 1.5px solid var(--ink); border-radius: .3em; position: relative; }
.sb-icons::after { content: ''; position: absolute; inset: 1.5px 30% 1.5px 1.5px; background: var(--ink); border-radius: .15em; }
.scr { flex: 1; display: flex; flex-direction: column; gap: .75em; padding: .7em 1.15em; }
.scr small { font-size: .82em; color: var(--muted); }
.scr b { font-variant-numeric: tabular-nums; }
.scr-title { font: 700 1.45em/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: .2em; }
.scr-card { background: var(--tint); border-radius: 1.1em; padding: .85em 1em; display: flex; flex-direction: column; gap: .4em; }
.scr-row { display: flex; justify-content: space-between; align-items: center; }
.scr-row span { color: var(--muted); }
.ok { color: var(--green) !important; font-weight: 600; }

.av {
  flex: none;
  width: 2.5em; height: 2.5em; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 .85em/1 var(--font-body);
  color: hsl(var(--hue) 45% 28%);
  background: hsl(var(--hue) 55% 89%);
}
.scr-hello { display: flex; align-items: center; gap: .7em; }
.scr-hello div { display: flex; flex-direction: column; }
.scr-hello strong { font: 700 1.3em/1.1 var(--font-display); }

.today {
  background: var(--green); color: #fff;
  border-radius: 1.2em; padding: 1em 1.1em;
  display: flex; flex-direction: column; gap: .2em;
}
.today small { color: rgba(255, 255, 255, .78); }
.today strong { font: 700 1.55em/1.1 var(--font-display); letter-spacing: -0.02em; }
.today span { font-size: .92em; opacity: .9; }
.today-btn {
  align-self: flex-start; margin-top: .6em;
  background: #fff; color: var(--green);
  font-weight: 600; font-size: .92em;
  padding: .55em 1em; border-radius: 2em;
}
.streak { display: grid; grid-template-columns: repeat(8, 1fr); gap: .3em; }
.streak i { height: 1.5em; border-radius: .5em; background: var(--green-bright); }
.streak i.miss { background: #F2B8AA; }
.streak i.now { background: transparent; border: 1.5px dashed var(--green-bright); }
.tabbar { display: flex; justify-content: space-around; padding: .9em 1.5em 1.6em; border-top: 1px solid var(--line); }
.tabbar i { width: 1.5em; height: 1.5em; border-radius: .45em; background: #D5DDD8; }
.tabbar i.on { background: var(--green); }

.meter { height: .55em; background: var(--tint); border-radius: 1em; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--green-bright); border-radius: inherit; }
.scr-count { color: var(--muted); }
.scr-count b { font: 800 1.8em/1 var(--font-display); color: var(--green); margin-right: .1em; }
.mini-list li { display: flex; align-items: center; gap: .7em; padding: .55em 0; border-bottom: 1px solid var(--line); }
.mini-list li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.mini-list em { font-style: normal; font-size: .8em; font-weight: 600; padding: .3em .7em; border-radius: 1em; }
.mini-list em.done { background: rgba(20, 174, 82, .14); color: var(--green); }
.mini-list em.wait { background: rgba(233, 164, 0, .16); color: #8A5F00; }

.map {
  height: 12em; margin: .3em 1.15em 0; border-radius: 1.1em;
  background:
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 2.2em 2.2em,
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 2.2em 2.2em,
    #E8EEE9;
  padding: 1em;
}
.map svg { width: 100%; height: 100%; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.stats3 div { display: flex; flex-direction: column; }
.stats3 b { font: 700 1.2em/1.2 var(--font-display); }
.rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: .25em; }
.rpe i { height: .8em; border-radius: .25em; background: var(--line); }
.rpe i:nth-child(-n+6) { background: rgba(233, 164, 0, .45); }
.rpe i.on { background: var(--pending); }
.proj .big { font: 800 2.6em/1 var(--font-display); color: var(--green); }

/* ---------------------------------------------------------
   Faixa (rota de corrida) — o elemento da marca
--------------------------------------------------------- */
.ribbon { position: absolute; pointer-events: none; }
.ribbon path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ribbon-path.is-drawing { animation: draw 1.8s var(--ease) .2s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------
   1. Hero
--------------------------------------------------------- */
.hero { background: var(--paper); padding-top: 64px; overflow: hidden; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .98;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-sub { font-size: 19px; color: var(--muted); max-width: 42ch; margin: 22px 0 32px; }

.hero-stage { position: relative; height: 560px; margin-top: 44px; }
.ribbon-hero { inset: 0; width: 100%; height: 100%; }
.ribbon-hero path { stroke: var(--green-bright); stroke-width: 72px; }

.phone-hero { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 3; }

.photo { position: absolute; z-index: 2; }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(8, 30, 18, .5);
}
.photo-l { width: 240px; height: 300px; left: calc(50% - 470px); top: 110px; transform: rotate(-4deg); }
.photo-r { width: 240px; height: 300px; left: calc(50% + 230px); top: 60px; transform: rotate(4deg); }
.photo-edge { width: 170px; height: 230px; top: 170px; }
.photo-edge-l { left: calc(50% - 720px); transform: rotate(3deg); }
.photo-edge-r { left: calc(50% + 550px); transform: rotate(-3deg); }

.pin {
  position: absolute; left: -36px; bottom: 26px;
  display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600;
  padding: 9px 14px 9px 10px; border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(8, 30, 18, .35);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green-bright); box-shadow: inset 0 0 0 5px #fff, 0 0 0 1.5px var(--green-bright); }

/* ---------------------------------------------------------
   2. Posicionamento
--------------------------------------------------------- */
.statement { padding: 120px 0 72px; text-align: center; }
.statement h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 17ch; margin: 0 auto; text-wrap: balance; }
.statement p { font-size: 19px; color: var(--muted); margin-top: 18px; }

/* ---------------------------------------------------------
   3. Destaques — painéis grandes com celular cortado
--------------------------------------------------------- */
.features { padding-bottom: 120px; }
.features-list { display: grid; gap: 28px; max-width: 1440px; }
.feature {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text visual";
  min-height: 500px;
  padding: 0 96px;
}
.feature-text { grid-area: text; position: relative; z-index: 2; align-self: center; padding: 64px 0; }
.feature-text h3 { font-size: clamp(30px, 3.3vw, 44px); max-width: 13ch; text-wrap: balance; }
.feature-text p { font-size: 18px; max-width: 34ch; margin-top: 18px; opacity: .82; }
.feature-visual { grid-area: visual; position: relative; z-index: 1; }
.phone-crop { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); }

.ribbon-panel { inset: 0; width: 100%; height: 100%; z-index: 0; }
.ribbon-panel path { stroke-width: 64px; }

.feature-green { background: var(--green-deep); color: #fff; }
.feature-green .ribbon-panel path { stroke: var(--green); }
.feature-mint { background: var(--mint); grid-template-areas: "visual text"; }
.feature-mint .ribbon-panel path { stroke: #fff; }
.feature-ink { background: var(--ink); color: #fff; }
.feature-ink .ribbon-panel path { stroke: #26332B; }

/* pedaços de interface flutuando sobre o celular */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  width: 270px;
  background: #fff; color: var(--ink);
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 15px; line-height: 1.35;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45);
}
.float .av { font-size: 13px; }
.float strong { display: block; }
.float-alert { left: -40px; bottom: 36px; }
.float-strava { right: -30px; bottom: 90px; }
.float-badge { left: -40px; bottom: 80px; }
.strava-tag { flex: none; background: var(--strava); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; }
.badge {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pending); color: #fff;
  font: 800 16px/1 var(--font-display);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5);
}

/* ---------------------------------------------------------
   4. Faixa escura com três cards transbordando
--------------------------------------------------------- */
.band-top { background: var(--ink); color: #fff; padding: 100px 0 210px; text-align: center; }
.band-top h2 { font-size: clamp(30px, 3.8vw, 48px); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.band-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -150px; position: relative; }
.bcard {
  background: var(--tint);
  border-radius: 28px;
  height: 420px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bcard-cap {
  font: 600 22px/1.25 var(--font-display);
  letter-spacing: -0.015em;
  text-align: center;
  padding: 36px 32px 28px;
  text-wrap: balance;
}
.bcard-shot { flex: 1; margin: 0 28px; background: #fff; border-radius: 22px 22px 0 0; padding: 20px; box-shadow: 0 -10px 40px -24px rgba(8, 30, 18, .3); }
.bcard-mid .bcard-shot { margin: 0; border-radius: 0; padding: 0; box-shadow: none; position: relative; }
.bcard-mid .bcard-cap { padding: 26px 32px 32px; }
.bcard-shot { min-height: 0; }
.shot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.shot-week div {
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.shot-week b { color: var(--faint); font-weight: 600; font-size: 13px; }
.shot-week em { font-style: normal; color: var(--muted); font-size: 14px; }
.tg { font-weight: 600; padding-left: 10px; border-left: 3px solid; line-height: 1.2; }
.tg.g { border-color: var(--green-bright); }
.tg.r { border-color: #D9534F; }
.tg.y { border-color: var(--pending); }
.tg.b { border-color: #3B7DDD; }

.rpe-chip {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: #fff; border-radius: 16px; padding: 12px 14px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5);
}
.rpe-chip .rpe { margin-top: 8px; }
.rpe-chip .rpe i { height: 9px; }

.post { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.post div { display: flex; flex-direction: column; }
.post small { color: var(--muted); font-size: 13px; }
.post .av { font-size: 13px; }
.post-map { height: 120px; margin: 14px 0 12px; border-radius: 14px; padding: 12px; font-size: 13px; }
.kudos { font-size: 13px; color: var(--muted); }
.kudos::before { content: '👏 '; }

/* ---------------------------------------------------------
   5. Perguntas
--------------------------------------------------------- */
.faq { padding: 130px 0 40px; }
.faq-inner { max-width: 780px; }
.faq h2 { font-size: clamp(30px, 3.6vw, 44px); text-align: center; margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  font: 600 19px/1.35 var(--font-display);
  padding: 22px 44px 22px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 44px 24px 0; }

/* ---------------------------------------------------------
   6. Final + rodapé
--------------------------------------------------------- */
.final { padding-top: 110px; text-align: center; overflow: hidden; }
.final-copy { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; }
.final p { font-size: 19px; color: var(--muted); margin: 16px 0 32px; max-width: 40ch; }
.final-stage { position: relative; height: 400px; margin-top: 48px; }
.final-rings { position: absolute; left: 50%; top: 0; width: 800px; height: 500px; transform: translateX(-50%); }
.final-rings circle { fill: none; stroke: var(--line); stroke-width: 1.5; }
.phone-tilt { position: absolute; left: 50%; top: 30px; transform: translateX(-50%) rotate(-12deg); --s: 1.05; }

.store { display: flex; gap: .9em; align-items: center; margin-top: .4em; }
.store-icon { width: 5em; height: 5em; border-radius: 1.2em; flex: none; object-fit: cover; }
.store > div { display: flex; flex-direction: column; align-items: flex-start; }
.store strong { font: 700 1.4em/1.1 var(--font-display); }
.store-get { margin-top: .5em; background: #2F7BF6; color: #fff; font-size: .85em; padding: .35em 1.2em; border-radius: 2em; }
.store-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; padding: .8em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.store-meta div { display: flex; flex-direction: column; }
.store-meta b { font-size: .85em; }

/* Rodapé — fundo preto. Entra com o topo reto e os cantos de cima vão arredondando
   conforme a página chega ao fim: --round vai de 0 a 1 em script.js (sem JS fica
   arredondado). A transição suaviza cada passo da rolagem. */
.site-footer {
  --round: 1;
  position: relative; z-index: 2;
  margin-top: -90px;
  background: #000;
  color: #fff;
  border-radius: calc(var(--round) * 72px) calc(var(--round) * 72px) 0 0;
  transition: border-radius .45s var(--ease);
}
.footer-panel {
  padding: 200px 0 120px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.site-footer .logo { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, .72); margin-top: 14px; }
.footer-brand .footer-copy { font-size: 14px; color: rgba(255, 255, 255, .5); margin-top: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 16px; margin-bottom: 6px; }
.footer-col a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------
   Responsivo
--------------------------------------------------------- */
@media (max-width: 1100px) {
  .photo-edge { display: none; }
  .photo-l { left: calc(50% - 400px); width: 210px; height: 270px; }
  .photo-r { left: calc(50% + 190px); width: 210px; height: 270px; }
}

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .main-nav { display: none; }
  .logo { grid-column: 1; grid-row: 1; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: none; gap: 24px;
    padding: 4px 28px 18px;
  }
  .mobile-nav.is-open { display: flex; }

  .feature, .feature-mint {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "visual";
    padding: 0 32px;
    min-height: 0;
  }
  .feature-text { padding: 48px 0 8px; }
  .feature-visual { height: 440px; }
  .phone-crop { top: 24px; }
  .float-alert, .float-badge { left: 0; bottom: 40px; }
  .float-strava { right: 0; bottom: 50px; }

  .band-cards { grid-template-columns: 1fr; max-width: 460px; }
  .bcard { height: 380px; }
  .footer-panel { grid-template-columns: 1fr 1fr; padding: 170px 0 96px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-end .btn { display: none; }
  .mobile-nav { padding: 4px 16px 18px; }
  .hero { padding-top: 40px; }
  .hero-sub, .statement p, .final p { font-size: 17px; }
  .hero-stage { height: 470px; margin-top: 40px; }
  .phone-hero { --s: .82; }
  .photo-l, .photo-r { width: 130px; height: 170px; }
  .photo-l { left: -24px; top: 150px; }
  .photo-r { left: auto; right: -24px; top: 70px; }
  .pin { left: auto; right: 34px; bottom: -14px; font-size: 12px; }
  .ribbon-hero path { stroke-width: 48px; }
  .statement { padding: 88px 0 48px; }
  .feature { padding: 0 20px; border-radius: 26px; }
  .feature-visual { height: 400px; }
  .phone-crop { --s: .86; }
  .float { width: 230px; font-size: 14px; padding: 12px 14px; }
  .ribbon-panel path { stroke-width: 44px; }
  .band-top { padding: 80px 0 190px; }
  .faq { padding-top: 96px; }
  .final { padding-top: 80px; }
  .final-stage { height: 340px; }
  .phone-tilt { --s: .85; }
  .footer-panel { padding: 150px 0 80px; }
  .site-footer { border-radius: calc(var(--round) * 40px) calc(var(--round) * 40px) 0 0; }
}

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

/* Print real do app dentro da moldura */
.phone-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
