/* VIVA na Cidade · site. Identidade do app: Sora, quase preto e quase branco, cor com função, a célula. */
:root {
  --ink: #0B0B0D;
  --ink-2: #151518;
  --surface: #17171A;
  --surface-2: #232327;
  --line: #26262B;
  --paper: #F5F5F7;
  --paper-2: #FFFFFF;
  --paper-line: #E2E2E7;
  --muted: #8E8E93;
  --muted-d: #6E6E76;
  --coral: #FF5A36;
  --mint: #34E0C0;
  --pink: #FF2E7E;
  --sun: #FFB020;
  --tint: #28666A;
  --on-tint: #FFFFFF;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.6 'Sora', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
canvas, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
p, dl, dd, ol { margin: 0; padding: 0; }
.tint { color: var(--tint); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -0.06em; }
.logo svg { width: 25px; height: auto; }
.l1 { fill: none; stroke: currentColor; stroke-width: 3; stroke-opacity: .4; stroke-linejoin: round; }
.l2 { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linejoin: round; }
.l3 { fill: currentColor; }
.logo svg, .get-mark, .w-note-ico { color: var(--tint); }

/* ------------------------------------------------ topo */
.top { position: fixed; z-index: 40; inset: 0 0 auto; height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 36px; color: var(--ink); transition: background .3s, color .3s; }
.top.dark { background: rgba(11, 11, 13, .86); color: var(--paper); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top-nav { display: flex; gap: 26px; font-size: 13px; font-weight: 600; margin-left: auto; opacity: .7; }
.top-nav a:hover { opacity: 1; }
.top-cta { font-size: 13px; font-weight: 700; height: 36px; padding: 0 16px; border-radius: 18px; display: inline-flex; align-items: center; background: var(--ink); color: var(--paper); }
.top.dark .top-cta { background: var(--paper); color: var(--ink); }

/* ------------------------------------------------ 1. hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #EFEFF2; color: var(--ink); }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(239, 239, 242, .97) 0%, rgba(239, 239, 242, .9) 30%, rgba(239, 239, 242, 0) 58%); }
.hero-copy { position: absolute; left: clamp(24px, 5vw, 80px); bottom: clamp(48px, 10vh, 110px); max-width: 600px; }
.hero h1 { font-size: clamp(64px, 9.2vw, 150px); letter-spacing: -0.065em; line-height: .88; }
.hero-lead { margin-top: 26px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #3A3A40; max-width: 470px; }
.pick { margin-top: 36px; }
.pick-label { font-size: 13px; font-weight: 600; color: var(--muted-d); margin-bottom: 12px; }
.pick-label span { color: var(--ink); font-weight: 700; margin-left: 6px; }
.pick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 34px; height: 38px; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: transform .25s var(--ease), opacity .2s; opacity: .9; }
.sw:hover { transform: translateY(-2px); opacity: 1; }
.sw[aria-checked='true'] { transform: scale(1.18); opacity: 1; }
.rec { position: absolute; right: clamp(20px, 4vw, 64px); top: 110px; width: 248px; background: var(--ink); color: var(--paper); border-radius: 28px; padding: 20px 22px 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }
.rec-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.rec-km { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.rec-km b { font-size: 60px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.rec-km span { color: var(--muted); font-size: 14px; font-weight: 600; }
.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rec-grid dt { font-size: 11px; color: var(--muted); }
.rec-grid dd { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rec-where { margin-top: 14px; font-size: 12px; color: var(--muted); }
.hero-coord { position: absolute; right: clamp(20px, 4vw, 64px); bottom: 28px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(17, 17, 20, .4); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ 2. o mapa, explicado */
.story { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; background: var(--ink); }
.story-map { position: sticky; top: 0; height: 100svh; padding: 84px 0 20px 20px; }
.story-map canvas { width: 100%; height: 100%; border-radius: 32px; background: #EFEFF2; }
.story-hud { position: absolute; left: 44px; top: 108px; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 10px 14px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 88px); transition: opacity .3s; }
.story-hud:empty { opacity: 0; }
.story-hud i { width: 11px; height: 12px; background: var(--tint); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.story-hud i.pink { background: var(--pink); }
.story-hud i.sun { background: var(--sun); }
.days { position: absolute; left: 44px; right: 24px; bottom: 44px; max-width: 420px; background: var(--paper-2); color: var(--ink); border-radius: 22px; padding: 16px 18px 14px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .5); }
.days-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--muted-d); }
.days-top b { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.days input { width: 100%; margin: 10px 0 6px; accent-color: var(--ink); }
.days-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.story-steps { padding: 0 clamp(24px, 4vw, 72px); }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .25; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step-n { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.step h2 { font-size: clamp(40px, 4.4vw, 68px); }
.step p:not(.step-n):not(.step-fact) { margin-top: 22px; font-size: 17px; color: rgba(245, 245, 247, .66); line-height: 1.6; }
.step-fact { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.step-fact b { color: var(--paper); font-weight: 700; }
.step-fact b.pink { color: var(--pink); }

/* ------------------------------------------------ 3. monte a sua corrida */
.build { background: var(--paper); color: var(--ink); padding: clamp(90px, 11vw, 150px) clamp(20px, 4vw, 64px); }
.build-head { max-width: 760px; }
.build h2 { font-size: clamp(42px, 5.6vw, 84px); }
.build-head p { margin-top: 22px; font-size: 18px; color: #4A4A52; max-width: 600px; }
.build-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-top: 56px; }
.build-map { position: relative; height: min(70vh, 640px); min-height: 440px; border-radius: 32px; overflow: hidden; background: #EFEFF2; cursor: crosshair; touch-action: manipulation; box-shadow: inset 0 0 0 1px var(--paper-line); }
.build-map canvas { width: 100%; height: 100%; }
.build-tip { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 18px; pointer-events: none; white-space: nowrap; transition: opacity .3s; }
.build-panel { background: var(--ink); color: var(--paper); border-radius: 32px; padding: 24px; display: flex; flex-direction: column; }
.sport { display: flex; gap: 6px; background: var(--surface); border-radius: 18px; padding: 4px; }
.sport button { flex: 1; height: 36px; border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.sport button.on { background: var(--paper); color: var(--ink); }
.bp-km { display: flex; align-items: baseline; gap: 8px; margin-top: 30px; }
.bp-km b { font-size: 76px; font-weight: 800; letter-spacing: -0.065em; line-height: .9; font-variant-numeric: tabular-nums; }
.bp-km span { font-size: 15px; font-weight: 600; color: var(--muted); }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bp-grid dt { font-size: 12px; color: var(--muted); }
.bp-grid dd { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bp-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 28px; }
.bp-actions button { flex: 1; height: 42px; border-radius: 16px; background: var(--surface); font-size: 13px; font-weight: 700; }
.bp-actions button:disabled, .bp-card:disabled { opacity: .35; cursor: default; }
.bp-card { margin-top: 8px; height: 52px; border-radius: 18px; background: var(--coral); color: #fff; font-weight: 800; font-size: 15px; transition: transform .2s var(--ease); }
.bp-card:not(:disabled):hover { transform: translateY(-2px); }
.postcard-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.postcard-wrap[hidden] { display: none; }
#postcard { width: 360px; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .45); animation: drop .7s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(24px) rotate(-2deg); } }
.post-side h3 { font-size: 40px; }
.post-side p { margin-top: 14px; color: #4A4A52; max-width: 380px; }
.post-dl { display: inline-flex; margin-top: 24px; height: 48px; padding: 0 22px; align-items: center; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; }

/* ------------------------------------------------ 4. relógios */
.watch { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(100px, 12vw, 170px) clamp(20px, 6vw, 110px); background: var(--ink); }
.watch-art { position: relative; display: flex; justify-content: center; padding: 40px 0 90px; }
.w-body { position: relative; width: 300px; height: 300px; border-radius: 50%; background: #1A1A1D; box-shadow: 0 0 0 10px #101012, 0 0 0 12px #2A2A2F, 0 60px 120px -40px rgba(0, 0, 0, .9); }
.w-body::before, .w-body::after { content: ''; position: absolute; left: 50%; width: 150px; margin-left: -75px; height: 140px; background: #121214; z-index: -1; }
.w-body::before { bottom: 100%; border-radius: 26px 26px 0 0; margin-bottom: -20px; }
.w-body::after { top: 100%; border-radius: 0 0 26px 26px; margin-top: -20px; }
.w-face { position: absolute; inset: 14px; border-radius: 50%; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.w-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.w-ring circle { fill: none; stroke: #1C1C20; stroke-width: 7; }
.w-ring .w-prog { stroke: var(--tint); stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 2.2s var(--ease); }
.w-k { font-size: 12px; font-weight: 700; color: var(--coral); }
.w-km { font-size: 68px; font-weight: 800; letter-spacing: -0.065em; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.w-u { font-size: 12px; color: var(--muted); }
.w-c { font-size: 13px; font-weight: 700; margin-top: 10px; }
.w-crown { position: absolute; right: -16px; top: 50%; width: 10px; height: 46px; margin-top: -23px; background: #2A2A2F; border-radius: 4px; }
.w-note { position: absolute; bottom: 0; left: 50%; width: min(360px, 100%); transform: translate(-50%, 16px); opacity: 0; display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 22px; padding: 14px 16px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.w-note.on { opacity: 1; transform: translate(-50%, 0); }
.w-note-ico { width: 30px; flex: none; }
.w-note b { display: block; font-size: 14px; }
.w-note span { font-size: 12px; color: var(--muted); }
.w-note i { font-style: normal; font-weight: 700; }
.watch h2 { font-size: clamp(42px, 5vw, 76px); }
.watch-copy > p { margin-top: 22px; font-size: 18px; color: rgba(245, 245, 247, .66); max-width: 460px; }
.providers { width: 100%; max-width: 480px; margin-top: 38px; border-collapse: collapse; font-size: 15px; }
.providers th { text-align: left; font-weight: 600; padding: 13px 0; border-top: 1px solid var(--line); }
.providers th small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.providers td { text-align: right; padding: 13px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.providers td.ok { color: var(--mint); }

/* ------------------------------------------------ 5. privacidade */
.privacy { background: var(--paper); color: var(--ink); padding: clamp(100px, 12vw, 160px) clamp(20px, 6vw, 110px) 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.privacy h2 { font-size: clamp(40px, 4.6vw, 70px); }
.rules { list-style: none; counter-reset: r; }
.rules li { counter-increment: r; position: relative; padding: 20px 0 20px 52px; border-top: 1px solid var(--paper-line); color: #4A4A52; font-size: 16px; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 21px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rules b { color: var(--ink); }

/* ------------------------------------------------ 6. perguntas */
.faq { background: var(--paper); color: var(--ink); padding: 80px clamp(20px, 6vw, 110px) clamp(100px, 12vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.faq h2 { font-size: clamp(40px, 4.6vw, 70px); }
.faq details { border-top: 1px solid var(--paper-line); }
.faq details:last-child { border-bottom: 1px solid var(--paper-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 12px; height: 13px; margin-top: -6px; background: var(--ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .2s, transform .3s var(--ease); }
.faq details[open] summary::after { background: var(--tint); transform: rotate(90deg); }
.faq details p { padding: 0 40px 24px 0; color: #4A4A52; }

/* ------------------------------------------------ 7. baixar */
.get { background: var(--tint); color: var(--on-tint); padding: clamp(110px, 14vw, 190px) clamp(20px, 6vw, 110px); transition: background .5s var(--ease), color .5s; }
.get-mark { width: 72px; color: var(--on-tint) !important; }
.get h2 { font-size: clamp(52px, 8vw, 128px); letter-spacing: -0.065em; line-height: .9; margin-top: 34px; }
.get-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.get-row { gap: 14px; }
.get-btn { display: inline-flex; align-items: center; gap: 14px; height: 70px; padding: 0 28px 0 22px; border-radius: 22px; background: var(--ink); color: var(--paper); cursor: default; }
.get-btn > span { display: flex; flex-direction: column; }
.get-ico { width: 28px; height: 28px; flex: none; }
.get-k { font-size: 12px; opacity: .65; }
.get-v { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.get-soon { font-size: 14px; font-weight: 600; opacity: .7; }

/* ------------------------------------------------ rodapé */
.foot { background: var(--ink); padding: 44px clamp(20px, 6vw, 110px) 34px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.foot nav a:hover { color: var(--paper); }
.foot-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ------------------------------------------------ telas menores */
@media (max-width: 1000px) {
  .top { padding: 0 18px; }
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .hero-fade { background: linear-gradient(0deg, rgba(239, 239, 242, .98) 0%, rgba(239, 239, 242, .94) 46%, rgba(239, 239, 242, 0) 72%); }
  .hero-copy { left: 20px; right: 20px; bottom: 34px; }
  .rec { top: 84px; right: 16px; width: 200px; padding: 14px 16px; border-radius: 22px; }
  .rec-km b { font-size: 42px; }
  .rec-grid dd { font-size: 14px; }
  .hero-coord { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-map { height: 58svh; padding: 76px 12px 10px; z-index: 2; background: var(--ink); }
  .story-hud { left: 26px; top: 90px; }
  .days { left: 24px; right: 24px; bottom: 22px; }
  .step { min-height: 64svh; padding: 22px 0 40px; justify-content: flex-start; }
  .step-n { margin-bottom: 12px; }
  .step h2 { font-size: 34px; }
  .step p:not(.step-n):not(.step-fact) { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .step-fact { margin-top: 16px; padding-top: 12px; }
  .build-grid { grid-template-columns: 1fr; }
  .build-map { height: 62vh; }
  .postcard-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .post-side p { margin-inline: auto; }
  .watch, .privacy, .faq { grid-template-columns: 1fr; }
  .watch-art { order: 2; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 58px; }
  .hero-lead { font-size: 15px; margin-top: 16px; }
  .pick { margin-top: 22px; }
  .sw { width: 28px; height: 31px; }
  .rec { width: 170px; }
  .rec-km b { font-size: 34px; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .rec-grid div:nth-child(2), .rec-where { display: none; }
  .bp-km b { font-size: 60px; }
  #postcard { width: 100%; max-width: 340px; }
  .w-body { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
