/* =========================================================================
   Macros — Site institucional
   Linguagem de design Apple: um unico azul interativo, tiles full-bleed,
   SF Pro do sistema, uma unica sombra (so nas telas), sem gradientes
   decorativos. Nomes de classe preservados; so a apresentacao mudou.
   ========================================================================= */

:root {
  /* Azul interativo unico */
  --primary:          #0066cc;
  --primary-hover:    #0055b0;
  --primary-focus:    #0071e3;
  --primary-on-dark:  #2997ff;

  /* Neutros */
  --ink:              #1d1d1f;
  --text-secondary:   #6e6e73;
  --ink-80:           #333333;
  --ink-48:           #7a7a7a;
  --canvas:           #ffffff;
  --bg:               #f5f5f7;   /* parchment */
  --pearl:            #fafafc;
  --tile-1:           #272729;
  --tile-2:           #2a2a2c;
  --black:            #000000;
  --hairline:         #e0e0e0;

  /* Aliases legados -> tudo aponta pro azul unico / neutros */
  --card-white:       #ffffff;
  --protein:          #0066cc;
  --carb:             #0066cc;
  --fat:              #0066cc;
  --water:            #0066cc;
  --calories:         #0066cc;
  --insight-accent:   #0066cc;
  --insight-text:     #2997ff;
  --insight:          #1d1d1f;
  --text-primary:     #1d1d1f;
  --icon-neutral:     #7a7a7a;
  --divider:          #e0e0e0;
  --ring-track:       #e0e0e0;

  --font: system-ui, -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, sans-serif;

  /* Unica sombra do sistema (so nas telas do app) */
  --shadow: 0 5px 30px 3px rgba(0,0,0,0.22);

  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: var(--ink);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Foco de teclado visivel e consistente */
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* Eyebrow: o unico rotulo em azul (deliberado) */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: -0.08px;
  color: var(--primary); margin-bottom: 12px;
}

/* -------------------------------------------------------------- Botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 9999px;
  font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: -0.2px;
  line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}
.btn:active { transform: scale(0.95); }
.btn svg { width: 18px; height: 18px; }
.btn-dark, .btn-light { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover, .btn-light:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: rgba(0,102,204,0.06); color: var(--primary); }
.badge-soon { font-size: 13px; color: var(--text-secondary); font-weight: 400; }

/* ----------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 48px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.4px; color: #f5f5f7; }
.brand .logo-mark { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; flex: 0 0 auto; }
.brand .logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 400; letter-spacing: -0.2px; color: rgba(255,255,255,0.72); transition: color .18s ease; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-cta { color: #fff !important; background: var(--primary); padding: 6px 14px !important; font-weight: 500 !important; }
.nav-cta:hover { background: var(--primary-hover); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* --------------------------------------------------------------- Tiles */
/* Full-bleed: a cor de fundo vai de ponta a ponta; a MUDANCA de cor divide. */
.tile { padding: 100px 0; }
.tile-white { background: var(--canvas); color: var(--ink); }
.tile-parchment { background: var(--bg); color: var(--ink); }
.tile-dark { background: var(--tile-1); color: #fff; }
.tile-dark.alt { background: var(--tile-2); }
.tile-black { background: var(--black); color: #fff; }
.tile-dark h1, .tile-dark h2, .tile-dark h3, .tile-black h1, .tile-black h2, .tile-black h3 { color: #fff; }
.tile-dark .eyebrow, .tile-black .eyebrow { color: var(--primary-on-dark); }
.tile-dark a:not(.btn), .tile-black a:not(.btn) { color: var(--primary-on-dark); }

.section-head { max-width: 60ch; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.section-head p { color: var(--text-secondary); font-size: 19px; }
.tile-dark .section-head p, .tile-black .section-head p { color: rgba(255,255,255,0.66); }

/* Hero */
.hero { padding: 84px 0 92px; background: var(--canvas); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.28px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--text-secondary); }
.hero .lede { font-size: 21px; line-height: 1.38; color: var(--text-secondary); max-width: 32ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-device { display: flex; justify-content: center; }
.blobs, .blob, .ring { display: none !important; }

/* Split (copy + tela) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .split-media { display: flex; justify-content: center; }
.split.reverse .split-media { order: -1; }
.split-copy h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.split-copy p { font-size: 19px; line-height: 1.45; color: var(--text-secondary); max-width: 42ch; }
.tile-dark .split-copy p { color: rgba(255,255,255,0.7); }

/* Tela do app: unico lugar com sombra */
.device { width: 300px; margin: 0 auto; border-radius: 44px; background: #1d1d1f; padding: 8px; box-shadow: var(--shadow); }
.device img { width: 100%; height: auto; border-radius: 36px; display: block; }

/* Recursos (grade de 6 cards brancos hairline) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; padding: 28px; transition: border-color .2s ease; }
.feature:hover { border-color: #cfcfd2; }
.feature .ic { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; color: var(--primary); background: none; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.45; color: var(--text-secondary); }
/* Neutraliza os fundos coloridos dos icones -> icone azul, sem fundo */
.ic, .ic.p, .ic.c, .ic.f, .ic.w, .ic.i, .ic.h { background: none; color: var(--primary); }

/* Galeria (parede preta, scroll horizontal) */
.gallery-band { background: var(--black); color: #fff; padding: 100px 0; overflow: hidden; }
.gallery-band .section-head h2 { color: #fff; }
.gallery-band .section-head .eyebrow { color: var(--primary-on-dark); }
.gallery-band .section-head p { color: rgba(255,255,255,0.66); }
.gallery-scroll { display: flex; gap: 28px; overflow-x: auto; padding: 8px 24px 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery-scroll::-webkit-scrollbar { height: 0; }
.shot { flex: 0 0 auto; width: 240px; scroll-snap-align: center; text-align: center; }
.shot .device { width: 240px; padding: 7px; border-radius: 38px; }
.shot .device img { border-radius: 31px; }
.shot .cap { margin-top: 18px; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: -0.2px; }
.shot .cap small { display: block; color: rgba(255,255,255,0.55); font-weight: 400; font-size: 13px; margin-top: 3px; }

/* Faixa coach (editorial escura, foto fundindo no tile) */
.coach-band { background: var(--tile-1); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
.coach-copy { padding: clamp(48px, 6vw, 88px); align-self: center; }
.coach-copy .eyebrow { color: var(--primary-on-dark); }
.coach-copy h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; max-width: 18ch; }
.coach-copy p { color: rgba(255,255,255,0.72); font-size: 18px; line-height: 1.45; max-width: 46ch; }
.coach-art { position: relative; min-height: 340px; }
.coach-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Gradiente funcional: funde a foto no tom do tile (nao e decorativo/colorido) */
.coach-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--tile-1) 0%, rgba(39,39,41,0.35) 30%, transparent 62%); }

/* CTA final (parchment) */
.cta-final { background: var(--bg); padding: 108px 0; }
.cta-band { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.cta-band p { font-size: 20px; color: var(--text-secondary); margin-bottom: 30px; }

/* -------------------------------------------------- Paginas de conteudo */
.page-header { background: var(--bg); padding: 72px 0 40px; }
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(34px, 5vw, 52px); }
.page-header .meta { color: var(--text-secondary); margin-top: 14px; font-size: 15px; }

/* Cards de conteudo: brancos, hairline, raio 18px, sem sombra */
.doc { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; padding: 48px clamp(24px, 5vw, 56px); margin: 40px auto 80px; max-width: 820px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 72px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-80); font-size: 17px; line-height: 1.55; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--primary-hover); }
.doc hr { border: none; border-top: 1px solid var(--hairline); margin: 32px 0; }

/* Realce e callout -> neutros */
.fill { background: var(--pearl); border: 1px solid var(--hairline); color: var(--ink); padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: 0.92em; }
.callout { display: flex; gap: 14px; background: var(--pearl); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 20px; margin: 8px 0 28px; font-size: 15px; color: var(--ink-80); }
.callout.warn { background: var(--pearl); color: var(--ink-80); }
.callout .ce { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.callout code { background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 5px; font-size: 0.9em; }

/* FAQ */
.faq-list { max-width: 820px; margin: 40px auto 0; }
.faq { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 18px; letter-spacing: -0.3px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .25s ease; color: var(--ink-48); flex: 0 0 auto; }
.faq[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-secondary); font-size: 16px; line-height: 1.5; }
.faq .faq-body p { margin-bottom: 10px; }

/* Changelog / timeline */
.changelog { max-width: 820px; margin: 40px auto 0; }
.release { position: relative; padding-left: 30px; padding-bottom: 36px; border-left: 1px solid var(--hairline); }
.release:last-child { border-left-color: transparent; padding-bottom: 0; }
.release::before { content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 2px solid var(--canvas); }
.release .ver-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.release .ver { font-weight: 600; font-size: 22px; letter-spacing: -0.4px; }
.release .ver-date { color: var(--text-secondary); font-size: 14px; font-weight: 400; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; padding: 3px 10px; border-radius: 9999px; background: var(--pearl); border: 1px solid var(--hairline); color: var(--ink); }
.tag.new, .tag.fix, .tag.imp { background: var(--pearl); border: 1px solid var(--hairline); color: var(--ink); }
.release ul { margin: 0 0 0 20px; }
.release li { margin-bottom: 8px; color: var(--ink-80); font-size: 16px; line-height: 1.5; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 40px auto 0; }
.contact-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; padding: 30px; transition: border-color .2s ease; }
.contact-card:hover { border-color: #cfcfd2; }
.contact-card .ic { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 16px; color: var(--primary); background: none; }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card p { color: var(--text-secondary); font-size: 16px; line-height: 1.45; margin-bottom: 14px; }
.contact-card a.link { color: var(--primary); font-weight: 600; }
.contact-card a.link:hover { color: var(--primary-hover); }

/* -------------------------------------------------------------- Footer */
.footer { background: var(--bg); color: var(--text-secondary); padding: 56px 0 32px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer .brand { color: var(--ink); margin-bottom: 14px; }
.footer-blurb { font-size: 13px; color: var(--text-secondary); max-width: 34ch; line-height: 1.5; }
.footer h4 { font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-48); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: var(--text-secondary); font-size: 12px; transition: color .15s ease; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-48); }

/* --------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- Responsivo */
@media (max-width: 900px) {
  .tile { padding: 72px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { order: 2; } .hero-device { order: 1; }
  .hero .lede { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media, .split .split-media { order: -1; }
  .split-copy p { max-width: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .coach-band { grid-template-columns: 1fr; }
  .coach-art { min-height: 260px; order: -1; }
  .coach-art::before { background: linear-gradient(0deg, var(--tile-1) 0%, rgba(39,39,41,0.1) 55%, transparent 100%); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: rgba(0,0,0,0.94); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); padding: 12px 16px 18px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tile { padding: 56px 0; }
  .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .doc { padding: 32px 22px; }
  .cta-final { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
