/* Landing pública do PediPocket. Só modo claro. Fontes self-hosted (RGPD). */
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/plus-jakarta-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #fff8ef;
  --paper: #fffdf9;
  --ink: #17303f;
  --ink-soft: #4a5a64;
  --blue: #155e78;
  --blue-dark: #12384a;
  --teal: #1d6b62;
  --sky: #e2f2fa;
  --sky-2: #c9e7f5;
  --mint: #dcf3ea;
  --peach: #ffe6d8;
  --butter: #fff1c9;
  --lilac: #ece6fb;
  --coral: #e98a6d;
  --gold: #f4b740;
  --line: rgba(23, 48, 63, 0.09);
  --shadow: 0 2px 4px rgba(23, 48, 63, 0.04), 0 24px 50px -24px rgba(23, 48, 63, 0.28);
  --clay: 0 6px 0 rgba(23, 48, 63, 0.06), 0 22px 40px -20px rgba(23, 48, 63, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.9);
  --radius: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: 16px;
  --tour-ms: 5200ms;
  --display: Nunito, "Plus Jakarta Sans", system-ui, sans-serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; touch-action: manipulation; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 30px; height: 30px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px 14px; border-radius: 999px;
  font: 800 0.8125rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal); background: var(--mint);
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, 0.14); }
.lead { color: var(--ink-soft); font-size: 1.125rem; max-width: 38rem; margin-top: 16px; }
.section-head { max-width: 1180px; margin: 0 auto 44px; padding: 0 var(--gutter); }
.section-head.center { text-align: center; }
.section-head.center h2, .section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 { max-width: 22ch; }
section { scroll-margin-top: 90px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--blue); color: #fff; font: 800 1rem/1 var(--display); letter-spacing: 0.01em;
  box-shadow: 0 5px 0 var(--blue-dark), 0 16px 30px -14px rgba(21, 94, 120, 0.7);
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--blue-dark), 0 20px 34px -14px rgba(21, 94, 120, 0.7); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--blue-dark); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; box-shadow: 0 3px 0 var(--blue-dark); }
.btn-soft { background: #fff; color: var(--blue); box-shadow: 0 5px 0 var(--sky-2), 0 16px 30px -16px rgba(23, 48, 63, 0.3); }
.btn-soft:hover { box-shadow: 0 7px 0 var(--sky-2), 0 20px 34px -16px rgba(23, 48, 63, 0.3); }
.btn-soft:active { box-shadow: 0 1px 0 var(--sky-2); }
.btn-light { background: #fff; color: var(--blue-dark); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2); }
.btn-light:hover { box-shadow: 0 7px 0 rgba(0, 0, 0, 0.2); }

/* Navegação */
.nav-wrap { position: fixed; inset: 12px var(--gutter) auto; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto; width: 100%; max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 253, 249, 0.92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px -18px rgba(23, 48, 63, 0.35);
}
.nav-logo, .logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
/* Logo oficial: símbolo e texto em imagens com fundo transparente. Usar só sobre fundos claros. */
.logo-symbol { height: 40px; width: auto; }
.logo-wordmark { height: 22px; width: auto; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--blue); }

/* Moldura de iPhone 15 Pro com ecrãs reais. As capturas trazem as áreas seguras do iPhone vazias
   (59 pt em cima, 34 pt em baixo), por isso a Dynamic Island, a hora e o indicador não tapam a app.
   Medidas em proporção da largura: ecrã 393 x 852 pt, cantos de 55 pt, aro de 3,5 %. */
.device {
  position: relative; container-type: inline-size; border-radius: 16.5% / 7.92%; background: #0b0e11;
  box-shadow: 0 0 0 1.5px #a7b1b8, 0 0 0 3px #66717a, 0 40px 70px -30px rgba(18, 35, 45, 0.55), 0 14px 28px -14px rgba(18, 35, 45, 0.35);
}
.screen { position: relative; display: block; margin: 3.5cqw; border-radius: 13cqw; overflow: hidden; background: #f6f2ea; isolation: isolate; }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 393 / 852; }
.screen::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6.925%; z-index: 2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 393 59'%3E%3Ctext x='64' y='37' text-anchor='middle' font-family='-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif' font-size='17' font-weight='600' fill='%230b0e11'%3E9:41%3C/text%3E%3Crect x='133.5' y='11' width='126' height='37' rx='18.5' fill='%23000'/%3E%3Cg fill='%230b0e11'%3E%3Crect x='290' y='29' width='3' height='5' rx='1'/%3E%3Crect x='295' y='26.5' width='3' height='7.5' rx='1'/%3E%3Crect x='300' y='24' width='3' height='10' rx='1'/%3E%3Crect x='305' y='21.5' width='3' height='12.5' rx='1'/%3E%3Ccircle cx='321.5' cy='32.2' r='1.7'/%3E%3C/g%3E%3Cg fill='none' stroke='%230b0e11' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M316.3 28.6a7.4 7.4 0 0 1 10.4 0'/%3E%3Cpath d='M313 25.2a12 12 0 0 1 17 0'/%3E%3C/g%3E%3Crect x='336.5' y='22.5' width='25' height='12' rx='3.8' fill='none' stroke='%230b0e11' stroke-opacity='.4'/%3E%3Crect x='338.5' y='24.5' width='21' height='8' rx='2.2' fill='%230b0e11'/%3E%3Cpath d='M363 26.5v4a2.1 2.1 0 0 0 0-4z' fill='%230b0e11' fill-opacity='.4'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; }
.screen::after { content: ""; position: absolute; left: 50%; bottom: 0.94%; width: 34.1%; height: 0.59%; z-index: 2; transform: translateX(-50%); border-radius: 99px; background: #0b0e11; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 0; background: linear-gradient(180deg, #d6eef9 0%, #eaf6fb 46%, var(--bg) 100%); }
.blob { position: absolute; border-radius: 50%; opacity: 0.75; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; right: -120px; top: 80px; background: radial-gradient(circle at 35% 35%, #fff1c9, #ffe2cf 60%, transparent 70%); }
.blob-2 { width: 300px; height: 300px; left: -140px; bottom: 40px; background: radial-gradient(circle at 50% 50%, #dcf3ea, transparent 68%); }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 36px; justify-items: center; }
.hero-copy { display: grid; justify-items: center; text-align: center; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; margin-bottom: 12px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 0.875rem; color: var(--ink-soft);
}
.pill-tag img { width: 28px; height: 28px; border-radius: 50%; background: var(--sky); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.05; max-width: 22ch; }
.hl { color: var(--blue); position: relative; }
.hl::after { content: ""; position: absolute; left: -1%; right: -1%; bottom: 0.05em; height: 0.3em; z-index: -1; background: var(--butter); border-radius: 999px; transform: rotate(-1deg); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.hero-art {
  position: relative; z-index: 1; width: 100%; height: 88vw; margin-top: 8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%); mask-image: linear-gradient(to bottom, transparent 0, #000 7%);
}
.hero-art > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* O vídeo é a mesma ilustração a mexer; só aparece quando já está a tocar. */
.hero-video { opacity: 0; transition: opacity 0.8s var(--ease); }
.hero-video.is-playing { opacity: 1; }

.hero-visual { position: relative; height: 440px; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-visual .device { position: absolute; top: 0; }
.device-front { left: 50%; width: 214px; margin-left: -107px; z-index: 3; }
.hero-visual .device-back { width: 140px; top: 70px; z-index: 1; opacity: 0.9; }
.device-left { left: 20px; transform: rotate(-8deg); }
.device-right { right: 20px; transform: rotate(8deg); }
.float-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; max-width: 250px;
  padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: var(--clay); font-size: 0.75rem; line-height: 1.3; max-width: 190px;
  animation: bob 6s ease-in-out infinite;
}
.fc-1 { left: 0; top: 330px; }
.fc-2 { right: 0; top: 30px; animation-delay: -2s; }
.fc-1, .fc-2 { display: none; }
.phones-sec { padding: clamp(56px, 8vw, 100px) var(--gutter) clamp(24px, 4vw, 48px); }
.fan { max-width: 1180px; margin: 0 auto; display: grid; justify-items: center; gap: 28px; }
.fc-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.d-bottle { background: var(--blue); }
.d-sleep { background: #6a55b5; }
.src-badge { flex: 0 0 auto; font: 800 0.6875rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; background: var(--mint); color: var(--teal); padding: 5px 8px; border-radius: 999px; }

/* Prova rápida */
.proof { padding: 8px var(--gutter) 24px; }
.proof-list { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proof-list li { background: #fff; border-radius: 26px; padding: 20px 18px; box-shadow: var(--clay); }
.proof-list b { display: block; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.proof-list li:nth-child(2) b { color: var(--teal); }
.proof-list li:nth-child(3) b { color: #b8573a; }
.proof-list li:nth-child(4) b { color: #6a55b5; }
.proof-list span { display: block; margin-top: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }

/* Benefícios */
.benefit, .calm { padding: clamp(72px, 10vw, 130px) 0; }
.benefit-alt { background: linear-gradient(180deg, var(--bg), #f2f9fc 50%, var(--bg)); }
.benefit-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 48px; align-items: center; }
.benefit-copy h2 { max-width: 18ch; }
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--mint); color: var(--teal); stroke-width: 2.6; }
.ticks-light li { color: #fff; }
.ticks-light .ic { background: rgba(255, 255, 255, 0.16); color: #fff; }

.media-photo { position: relative; padding: 90px 70px 60px 0; }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.device-overlay { position: absolute; right: 0; bottom: 0; width: 170px; transform: rotate(4deg); }

.media-duo { position: relative; height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
.media-duo .device { position: absolute; width: 212px; }
.device-a { left: 0; top: 30px; transform: rotate(-4deg); z-index: 2; }
.device-b { right: 0; top: 0; transform: rotate(4deg); }

.media-answer { display: grid; justify-items: center; }
.answer-card { position: relative; width: min(420px, 100%); padding: 16px 16px 14px; border-radius: 34px; background: #f6f2ea; box-shadow: var(--clay); transform: rotate(-1.5deg); }
.answer-card img { border-radius: 22px; width: 100%; }
.answer-card figcaption { margin-top: 12px; text-align: center; font: 800 0.9375rem var(--display); color: var(--ink-soft); }
.orgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.orgs li { background: #fff; border-radius: 20px; padding: 14px 16px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(23, 48, 63, 0.35); }
.orgs b { display: block; font: 800 1.15rem var(--display); color: var(--blue-dark); }
.orgs span { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-soft); }
.orgs em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--teal); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: var(--sky); font-size: 0.9375rem; }
.note .ic { margin-top: 3px; color: var(--blue); }

.device-single { width: 240px; margin: 0 auto; transform: rotate(-3deg); }
.calm-grid { display: grid; gap: 12px; margin-top: 26px; }
.calm-grid li { border-radius: 24px; padding: 20px; box-shadow: var(--clay); }
.calm-grid li:nth-child(1) { background: var(--sky); }
.calm-grid li:nth-child(2) { background: var(--mint); }
.calm-grid li:nth-child(3) { background: var(--peach); }
.calm-grid li:nth-child(4) { background: var(--butter); }
.calm-grid .ic { color: var(--blue-dark); margin-bottom: 10px; }
.calm-grid p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-soft); }

/* Widgets: capturas do iPhone, que já trazem a hora e a Dynamic Island. */
.device.is-native .screen::before, .device.is-native .screen::after { display: none; }
.device.is-native .screen img { aspect-ratio: 786 / 1709; }
.widgets { padding: clamp(72px, 10vw, 130px) 0; background: linear-gradient(180deg, var(--bg), var(--mint) 45%, var(--bg)); }
/* Em ecrãs estreitos os três telemóveis passam de lado, um de cada vez. */
.widget-row { display: flex; gap: 20px; overflow-x: auto; padding: 8px var(--gutter) 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.widget-row::-webkit-scrollbar { display: none; }
.widget-row li { flex: 0 0 72%; max-width: 280px; scroll-snap-align: center; text-align: center; }
.widget-row .device { margin-bottom: 20px; }
.widget-row p { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-soft); }
.widgets-note { margin-top: 20px; padding: 0 var(--gutter); text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--teal); }

/* Visita à app */
.tour { padding: clamp(72px, 10vw, 130px) 0; background: linear-gradient(180deg, var(--bg), var(--lilac) 40%, var(--bg)); }
.tour-wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 28px; }
.tour-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs [role="tab"] {
  position: relative; overflow: hidden; flex: 0 0 auto; scroll-snap-align: start; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 700; color: var(--ink-soft);
  box-shadow: 0 3px 0 rgba(23, 48, 63, 0.07); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--spring);
}
.tour-tabs [role="tab"]:hover { transform: translateY(-2px); }
.tour-tabs [role="tab"][aria-selected="true"] { background: var(--blue); color: #fff; }
.tour-tabs .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, 0.7); transform: scaleX(0); transform-origin: left; }
.tour-tabs [role="tab"].is-timing .bar { animation: fill var(--tour-ms) linear forwards; }
.tour-stage { display: grid; gap: 24px; justify-items: center; }
.device-tour { width: 260px; }
.device-tour .screen img { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: scale(0.98); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.device-tour .screen img:first-child { position: relative; }
.device-tour img.is-on { opacity: 1; transform: none; }
.tour-panel { max-width: 30rem; text-align: center; }
.tour-count { font: 800 0.8125rem var(--display); color: #b8573a; text-transform: uppercase; letter-spacing: 0.06em; }
.tour-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 10px; }
.tour-text { color: var(--ink-soft); font-size: 1.0625rem; }

/* Caminho */
.path-sec { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 8vw, 96px); }
.path-wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; align-items: start; }
.map {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto; border-radius: 40px; overflow: hidden; min-height: 600px; box-shadow: var(--shadow);
  background:
    radial-gradient(120% 60% at 0% 100%, #cdebd9 0 40%, transparent 41%),
    radial-gradient(120% 50% at 100% 70%, #d9f0e2 0 40%, transparent 41%),
    radial-gradient(90% 40% at 20% 35%, #e3f4ea 0 45%, transparent 46%),
    linear-gradient(180deg, #e6f5fc 0%, #f1f9ef 40%, #e8f6ec 100%);
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-road { fill: none; stroke: #fff6df; stroke-width: 34; stroke-linecap: round; }
.map-road-edge { fill: none; stroke: #f3dcae; stroke-width: 42; stroke-linecap: round; }
.map-dash { fill: none; stroke: #f4c86a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.map-done { fill: none; stroke: var(--coral); stroke-width: 6; stroke-linecap: round; opacity: 0.85; }
.map-stops { position: absolute; inset: 0; }
.stop { position: absolute; width: 84px; margin-left: -42px; margin-top: -42px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; }
.stop-orb {
  position: relative; width: 74px; height: 74px; border-radius: 50%; padding: 5px;
  background: linear-gradient(160deg, #fff 0%, #ffe9b8 100%); box-shadow: 0 6px 0 #e7c27a, 0 16px 24px -10px rgba(23, 48, 63, 0.35);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.stop-orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.stop-orb::after { content: ""; position: absolute; top: 8px; left: 14px; width: 18px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); transform: rotate(-25deg); }
.stop-name { font: 800 0.8125rem/1 var(--display); background: #fff; padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 0 var(--line); white-space: nowrap; }
.stop:hover .stop-orb { transform: translateY(-4px) scale(1.04); }
.stop.is-done .stop-orb { background: linear-gradient(160deg, #fff 0%, #ffd2c2 100%); box-shadow: 0 6px 0 #e3a28c, 0 16px 24px -10px rgba(23, 48, 63, 0.35); }
.stop.is-done .stop-orb::before {
  content: "★"; position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; z-index: 1;
  background: var(--gold); color: #fff; font-size: 15px; line-height: 26px; text-align: center; box-shadow: 0 2px 0 #c98f1a;
}
.stop.is-on .stop-orb { transform: scale(1.14); background: linear-gradient(160deg, #fff 0%, #bfe6f7 100%); box-shadow: 0 6px 0 #8cc4dc, 0 0 0 8px rgba(255, 255, 255, 0.7), 0 20px 30px -10px rgba(21, 94, 120, 0.45); }
.stop.is-on .stop-name { background: var(--blue); color: #fff; }
.map-teddy {
  position: absolute; width: 56px; height: 56px; margin-left: -28px; margin-top: -100px; z-index: 3; border-radius: 50%; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 4px #fff, 0 12px 20px -8px rgba(23, 48, 63, 0.4); transition: left 0.7s var(--ease), top 0.7s var(--ease);
}
.map-teddy.hop { animation: hop 0.7s var(--ease); }
.map-noscript { position: absolute; inset: auto 20px 20px; text-align: center; }
.stop-card { background: var(--paper); border-radius: 26px; padding: 22px 22px 20px; box-shadow: var(--shadow); }
.stop-kicker { font: 800 0.6875rem var(--display); color: #b8573a; text-transform: uppercase; letter-spacing: 0.06em; }
.stop-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2px 0 12px; }
.stop-group { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; padding: 8px 10px; border-radius: 16px; margin-top: 6px; animation: slidein 0.35s var(--ease) both; }
.stop-group:nth-child(2) { animation-delay: 0.04s; }
.stop-group:nth-child(3) { animation-delay: 0.08s; }
.stop-group h4 { margin: 0 4px 0 0; font: 800 0.6875rem var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.stop-group h4 img { width: 18px; height: 18px; border-radius: 6px; }
.stop-group ul { display: contents; }
.stop-group li { background: rgba(255, 255, 255, 0.85); padding: 3px 9px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.g-visit { background: var(--sky); }
.g-vacc { background: var(--mint); }
.g-topics { background: var(--butter); }
.stop-empty { color: var(--ink-soft); font-size: 0.9375rem; }
.path-note { max-width: 760px; margin: 28px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }

/* Parceiros */
.partners { padding: 20px var(--gutter) clamp(64px, 8vw, 100px); }
.partners-box {
  max-width: 1180px; margin: 0 auto; padding: 36px 24px; border-radius: 40px; color: #fff; display: grid; gap: 28px; align-items: center;
  background: radial-gradient(120% 120% at 100% 0%, #1d6b62 0%, transparent 55%), var(--blue-dark); box-shadow: var(--shadow);
}
.partners-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 22ch; }
.partners-for { margin: 12px 0 20px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.partners-box .btn { justify-self: start; }

/* Perguntas */
.faq { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 120px); }
.faq-list { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 22px; padding: 0 20px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(23, 48, 63, 0.3); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.0625rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--sky); color: var(--blue); font: 800 1.2rem/30px var(--display); text-align: center; transition: transform 0.3s var(--spring);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--peach); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* Lista de espera */
.signup { padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.signup-box { max-width: 760px; margin: 0 auto; text-align: center; padding: 44px 20px; border-radius: 44px; background: linear-gradient(160deg, #fff 0%, var(--butter) 100%); box-shadow: var(--shadow); }
.signup-teddy { width: 100px; height: 100px; margin: 0 auto 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7); animation: bob 5s ease-in-out infinite; }
.signup-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.signup-box > p { color: var(--ink-soft); margin: 14px auto 0; max-width: 30rem; }
.signup-form { margin: 26px auto 0; max-width: 560px; text-align: left; }
.audience { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.audience legend { font: 800 0.9375rem var(--display); margin-bottom: 10px; padding: 0; }
.audience label { position: relative; cursor: pointer; }
.audience input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.audience span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 0.9375rem; box-shadow: inset 0 0 0 2px rgba(23, 48, 63, 0.12); transition: background-color 0.2s, color 0.2s; }
.audience input:checked + span { background: var(--blue); color: #fff; box-shadow: none; }
.audience input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.field-label { display: block; font: 800 0.9375rem var(--display); margin-bottom: 8px; }
.signup-row { display: grid; gap: 10px; }
.signup-row input { min-height: 56px; width: 100%; padding: 0 22px; border-radius: 999px; border: 2px solid rgba(23, 48, 63, 0.16); background: #fff; color: var(--ink); font: 500 1.0625rem var(--text); }
.signup-row input:focus { outline: 3px solid rgba(21, 94, 120, 0.3); border-color: var(--blue); }
.signup-row .btn { min-height: 56px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 0.9375rem; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.6em; margin-top: 14px; font-weight: 700; color: var(--teal); }
.form-msg.is-error { color: #7a5414; }
.spots { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); font-weight: 700; color: var(--teal); }
.spots[hidden] { display: none; }

/* Rodapé */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 36px var(--gutter) 48px; font-size: 0.9375rem; color: var(--ink-soft); }
.footer-warn { max-width: 1180px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 20px; background: var(--sky); color: var(--ink); }
.footer-warn a { font-weight: 700; }
.footer-row { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-row .logo-symbol { height: 34px; }
.btn { white-space: nowrap; }
@media (max-width: 379px) {
  .nav .logo-symbol { height: 34px; }
  .nav .logo-wordmark { height: 18px; }
  .nav .btn-small { padding: 0 14px; }
}
.footer-row .logo-wordmark { height: 19px; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a { color: var(--ink); }

/* Movimento. Tudo parte de .js: sem JavaScript a página fica parada e inteira. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Listas entram em cascata. */
.js .reveal li { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); }
.js .reveal.is-in li { opacity: 1; transform: none; }
.js .reveal.is-in li:nth-child(2) { transition-delay: 0.08s; }
.js .reveal.is-in li:nth-child(3) { transition-delay: 0.16s; }
.js .reveal.is-in li:nth-child(4) { transition-delay: 0.24s; }

/* Hero: o texto sobe em cascata e o sublinhado desenha-se. */
.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.js .hl::after { transform-origin: left; animation: draw 0.7s var(--ease) 0.7s both; }
.blob { animation: drift 14s ease-in-out infinite alternate; }
.blob-2 { animation-duration: 18s; animation-direction: alternate-reverse; }

/* Leque: os telemóveis de trás saem de trás do da frente quando a secção entra no ecrã. */
.hero-visual .device { transition: transform 1.1s var(--spring), opacity 0.6s var(--ease); }
.js .fan:not(.is-in) .device-front { transform: translateY(40px) scale(0.94); opacity: 0; }
.js .fan:not(.is-in) .device-left { transform: translateX(70%) scale(0.9); opacity: 0; }
.js .fan:not(.is-in) .device-right { transform: translateX(-70%) scale(0.9); opacity: 0; }
.fan.is-in .device-back { transition-delay: 0.18s; }
.js .fan:not(.is-in) .float-chip { opacity: 0; scale: 0.8; }
.float-chip { transition: opacity 0.5s var(--ease) 0.7s, scale 0.6s var(--spring) 0.7s; }

/* Faixa das fontes, sempre a passar devagar. */
.ticker { width: 100%; margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track li { display: flex; align-items: center; white-space: nowrap; font: 800 1rem/1 var(--display); color: var(--teal); }
.ticker-track li::after { content: ""; width: 7px; height: 7px; margin: 0 22px; border-radius: 50%; background: var(--gold); }

/* Parallax suave (site.js escreve --shift) e inclinação do telemóvel da visita com o rato. */
[data-parallax] { translate: 0 var(--shift, 0px); }
.tour-stage { perspective: 1200px; }
.device-tour { transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)); transition: transform 0.5s var(--ease); }
.device-tour .screen img { transform: translateX(10%) scale(0.98); }
.device-tour .screen img.is-on { transform: none; }

/* Barra de leitura no cimo. */
.scroll-bar { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(var(--read, 0)); transform-origin: left; }

/* Página de privacidade */
.doc { max-width: 720px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; }
.doc h2 { font-size: 1.35rem; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-soft); margin-top: 12px; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes rise { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes slidein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hop { 0% { translate: 0 0; } 35% { translate: 0 -24px; } 70% { translate: 0 2px; } 100% { translate: 0 0; } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes draw { from { transform: rotate(-1deg) scaleX(0); } to { transform: rotate(-1deg) scaleX(1); } }
@keyframes drift { to { translate: 24px -30px; scale: 1.08; } }
@keyframes ticker { to { translate: -50% 0; } }

/* Em ecrãs estreitos o cartão da paragem fica fixo em baixo, para se ver enquanto se desce o mapa. */
@media (max-width: 959px) {
  .stop-card {
    position: sticky; bottom: 10px; z-index: 6; padding: 11px 13px 12px; border-radius: 20px;
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px;
    background: rgba(255, 253, 249, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px -12px rgba(23, 48, 63, 0.3), 0 8px 24px -14px rgba(23, 48, 63, 0.3);
  }
  .stop-title { grid-column: 1; grid-row: 1; margin: 0; font-size: 1.1rem; }
  .stop-kicker { grid-column: 2; grid-row: 1; }
  .stop-body { grid-column: 1 / -1; grid-row: 2; }
  .stop-group { padding: 5px 9px; margin-top: 4px; gap: 1px 6px; }
  .stop-group h4 { font-size: 0.625rem; margin-right: 2px; }
  .stop-group h4 img { width: 15px; height: 15px; border-radius: 5px; }
  .stop-group li { background: none; padding: 0; font-size: 0.75rem; line-height: 1.35; }
  .stop-group li:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--ink-soft); }
  .js .stop-card { transform: translateY(calc(100% + 24px)); transition: transform 0.45s var(--ease); }
  .js .stop-card.is-docked { transform: none; }
}

@media (min-width: 640px) {
  .proof-list { grid-template-columns: repeat(4, 1fr); }
  .signup-row { grid-template-columns: 1fr auto; }
  .calm-grid { grid-template-columns: repeat(2, 1fr); }
  .orgs { grid-template-columns: repeat(4, 1fr); }
  .hero-visual { height: 560px; }
  .device-front { width: 252px; margin-left: -126px; }
  .hero-visual .device-back { width: 206px; top: 46px; opacity: 0.96; }
  .device-left { left: 0; }
  .device-right { right: 0; }
  .float-chip { font-size: 0.8125rem; max-width: 250px; padding: 10px 14px; }
}

@media (min-width: 1200px) {
  .fc-1, .fc-2 { display: flex; }
  .fc-1 { left: -292px; top: 56%; }
  .fc-2 { right: -292px; top: 24%; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero-art { height: auto; aspect-ratio: 1600 / 905; margin-top: 0; }
  .media-photo { padding-top: 40px; }
  .nav-links { display: flex; }
  .hero { padding: 96px 0 0; }
  .hero-visual { height: 600px; }
  .device-front { width: 270px; margin-left: -135px; }
  .hero-visual .device-back { width: 220px; }
  .benefit-inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .benefit-inner.reverse .benefit-media { order: 2; }
  .orgs { grid-template-columns: repeat(2, 1fr); }
  .device-overlay { width: 200px; right: -10px; bottom: -10px; }
  .widget-row { max-width: 1000px; margin: 0 auto; overflow: visible; justify-content: center; gap: 48px; }
  .widget-row li { flex: 0 1 260px; }
  .widget-row li:nth-child(2) { margin-top: 40px; }
  .tour-wrap { grid-template-columns: 240px 1fr; align-items: center; gap: 48px; }
  .tour-tabs { flex-direction: column; overflow: visible; padding: 0; }
  .tour-tabs [role="tab"] { min-height: 56px; text-align: left; padding: 0 22px; border-radius: 20px; }
  .tour-stage { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 48px; }
  .tour-panel { text-align: left; }
  .device-tour { width: 290px; }
  .path-wrap { grid-template-columns: 460px 1fr; gap: 40px; }
  .stop-card { position: sticky; top: 110px; padding: 28px 26px 26px; }
  .device-single { width: 270px; }
  .partners-box { grid-template-columns: 1fr auto; padding: 48px 56px; }
  .partners-box .btn { justify-self: end; }
  .signup-box { padding: 60px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .reveal li { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  [data-parallax] { translate: none; }
}
