/* ============================================================
   Amparus — Landing Page
   Tokens e componentes conforme PLANO-LANDING-PAGE.md (Seção 3)
   ============================================================ */

/* ---------- Fontes locais ---------- */
@font-face { font-family: 'Source Serif 4'; src: url('/fonts/SourceSerif4-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --primary: #465266;
  --primary-soft: #E5EAEA;
  --primary-soft-2: #D3DFE0;
  --accent: #C26B4E;
  --accent-soft: #F5E3D9;
  --accent-soft-2: #E9CFC0;
  --accent-strong: #B15A3E;

  /* Estado */
  --warning: #D9A441;  --warning-soft: #F6EBCE;  --warning-strong: #9A6B12;
  --success: #4F7D4B;  --success-soft: #E4EBDD;  --success-strong: #3F6B3C;
  --destructive: #D92626;

  /* Neutros quentes */
  --background: #FAF7F2;
  --background-alt: #F1ECE2;
  --foreground: #1E1A14;
  --foreground-soft: #4A4236;
  --line: #E4DDCD;
  --on-primary: #FAF7F2;

  /* Tipografia */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Satoshi', -apple-system, system-ui, sans-serif;

  /* Raios */
  --r-control: 13px;
  --r-tile: 18px;
  --r-card: 20px;
  --r-bb: 22px;
  --r-sheet: 26px;
  --r-full: 999px;

  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/25px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
}

h1 { font-size: 32px; line-height: 34px; letter-spacing: -0.64px; }
h2 { font-size: 32px; line-height: 36px; letter-spacing: -0.64px; }

@media (min-width: 768px) {
  h1 { font-size: 48px; line-height: 52px; letter-spacing: -0.96px; }
}

p { margin: 0; }

.accent { color: var(--accent); }

.container {
  max-width: 920px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

.section-head { max-width: 680px; }
.section-head h2 { margin: 10px 0 14px; }
.section-head .lede { color: var(--foreground-soft); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.56px;
  text-transform: uppercase;
  color: var(--foreground-soft);
  margin: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 14px;
  letter-spacing: 1.38px;
  text-transform: uppercase;
  color: var(--foreground-soft);
}
.section-label::before {
  content: "";
  width: 16px;
  height: 2.5px;
  border-radius: var(--r-full);
  background: var(--accent);
}

.caption { font-size: 14px; line-height: 20px; color: var(--foreground-soft); }
.fine { font-size: 13px; line-height: 18px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-primary);
  padding: 12px 16px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1;
  padding: 17px 20px;
  border-radius: var(--r-tile);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:focus-visible,
.faq-q:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-attention {
  background: var(--accent);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -12px rgba(194, 107, 78, 0.55);
}
.btn-attention:hover { background: var(--accent-strong); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 16px 20px;
}
.btn-secondary:hover { background: var(--primary-soft); }

.btn-ghost {
  background: transparent;
  color: var(--foreground-soft);
  font-size: 14.5px;
  padding: 13px 20px;
}
.btn-ghost:hover { color: var(--foreground); }

.btn-ghost-onnavy {
  background: transparent;
  color: rgba(250, 247, 242, 0.75);
  font-size: 14.5px;
  padding: 13px 20px;
}
.btn-ghost-onnavy:hover { color: var(--on-primary); }

/* ---------- Header fixo (navy) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--primary);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(250, 247, 242, 0.14);
  box-shadow: 0 4px 16px -8px rgba(20, 24, 32, 0.5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-word {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
  color: var(--on-primary);
}

.header-actions { display: flex; align-items: center; gap: 2px; }
.header-actions .btn { padding: 9px 11px; font-size: 12.5px; }
.header-actions .btn-ghost-onnavy { padding-inline: 2px; }
.header-actions .btn-attention { box-shadow: 0 8px 18px -10px rgba(194, 107, 78, 0.55); }

@media (min-width: 400px) {
  .brand-word { font-size: 22px; }
  .header-actions .btn { font-size: 14px; }
  .header-actions .btn-ghost-onnavy { padding-inline: 10px; }
}
@media (min-width: 480px) {
  .brand-word { font-size: 24px; letter-spacing: -0.24px; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding-block: 12px; font-size: 15px; }
  .header-actions .btn-ghost-onnavy { padding-inline: 16px; }
}

/* ---------- Hero (navy) ---------- */
.hero {
  background: var(--primary);
  color: var(--on-primary);
  padding: calc(var(--header-h) + 48px) 0 56px;
}
@media (min-width: 1024px) { .hero { padding: calc(var(--header-h) + 72px) 0 80px; } }

.hero-grid { display: grid; gap: 41px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
}

.hero .eyebrow { color: var(--accent-soft); }
.hero h1 { margin: 14px 0 16px; color: var(--on-primary); }

.hero-sub {
  color: rgba(250, 247, 242, 0.75);
  max-width: 52ch;
}

.hero-bullets {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-bullets li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  color: rgba(250, 247, 242, 0.9);
}
.hero-bullets li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--accent);
  transform: translateY(-1px);
}

.hero-ctas { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.hero-ctas .btn-attention {
  width: 100%; /* comprimento total do device do usuário */
  padding: 18px 24px;
  font-size: 17px;
  border-radius: var(--r-bb);
  box-shadow: none;
}
.hero-ctas .btn-ghost-onnavy { width: 100%; text-align: center; }

.hero-legal {
  margin-top: 18px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(250, 247, 242, 0.72);
  max-width: 44ch;
}

/* ---------- Mockup do app da família (iframe fiel — app-home.html) ---------- */
.hero-visual { display: flex; justify-content: center; }
.app-embed {
  /* moldura nativa 402×874 encolhida via transform; a caixa reserva o
     footprint já reduzido para o layout refluir igual em todo navegador.
     box-shadow + border-radius acompanham os cantos arredondados do
     aparelho (56px nativo) — drop-shadow seguiria o retângulo do iframe
     e vazaria nos cantos. */
  width: calc(402px * 0.74);
  height: calc(874px * 0.74);
  border-radius: calc(56px * 0.74);
  box-shadow: 0 30px 70px rgba(20, 24, 32, 0.5);
}
.app-embed iframe {
  width: 402px;
  height: 874px;
  border: 0;
  display: block;
  background: transparent;
  transform: scale(0.74);
  transform-origin: top left;
}
@media (min-width: 768px) {
  .app-embed { width: calc(402px * 0.82); height: calc(874px * 0.82); border-radius: calc(56px * 0.82); }
  .app-embed iframe { transform: scale(0.82); }
}
@media (min-width: 1024px) {
  .app-embed { width: calc(402px * 0.9); height: calc(874px * 0.9); border-radius: calc(56px * 0.9); }
  .app-embed iframe { transform: scale(0.9); }
}

/* ---------- Cards genéricos ---------- */
.card {
  background: var(--background-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(30, 26, 20, 0.05);
}
.card-title {
  font-weight: 500;
  font-size: 21px;
  line-height: 24px;
  letter-spacing: -0.21px;
  margin: 0 0 8px;
}
.card-body { color: var(--foreground-soft); font-size: 15px; line-height: 23px; }

.grid-3 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Seções alternadas: cards claros sobre fundo alt */
.section-alt { background: var(--background-alt); }
.section-alt .card { background: var(--background); }

/* ---------- Fotografia ---------- */
.photo-figure {
  margin: 36px 0 0;
  border-radius: var(--r-sheet);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 26, 20, 0.05);
}
.photo-figure img { width: 100%; height: 100%; object-fit: cover; }

.photo-rotina { aspect-ratio: 4 / 5; margin: 0; }

/* Seção "Você conhece essa rotina": foto vertical à esquerda, cards empilhados à direita */
.rotina-grid { display: grid; gap: 16px; margin-top: 36px; }
.rotina-cards { display: grid; gap: 16px; align-content: stretch; }
@media (min-width: 768px) {
  .rotina-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
  .photo-rotina { aspect-ratio: auto; position: relative; height: 100%; }
  .photo-rotina img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}

.photo-maos { max-width: 680px; }

/* ---------- Como funciona (passos) ---------- */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

/* ---------- Perfis ---------- */
.profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.profile-icon svg { width: 22px; height: 22px; }

.card-extra {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--foreground-soft);
}

/* ---------- Grid de categorias ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
  margin-top: 36px;
}
.cat-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 11px 12px;
}
.cat-chip {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.cat-name { font-weight: 500; font-size: 14.5px; line-height: 18px; }

.cat-note { margin-top: 20px; max-width: 680px; }

/* ---------- Índice Harmonia + faces ---------- */
.harmonia-blocks { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1024px) {
  .harmonia-blocks { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}

.faces-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.faces-row svg { width: 52px; height: 52px; flex: 0 0 auto; }
@media (min-width: 768px) { .faces-row svg { width: 68px; height: 68px; } }
.faces-caption { margin-top: 18px; max-width: 48ch; }

/* Mockup da aba Saúde (spec: LP-ICONES-E-GRAFICOS.md §5) */
.health-card {
  background: var(--background-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: 0 1px 2px rgba(30, 26, 20, 0.05);
}

.seg {
  display: inline-flex;
  gap: 4px;
  background: var(--background-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
}
.seg-opt {
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--foreground-soft);
}
.seg-opt.is-sel { background: var(--primary); color: var(--on-primary); }
.seg-period { margin-bottom: 12px; }
.seg-persp { background: var(--background); border-color: var(--line); margin: 12px 0 14px; }
.seg-persp .seg-opt { font-size: 12.5px; padding: 7px 10px; }

.chart-wrap { position: relative; }
.wl-chart { display: block; width: 100%; height: 168px; }
.chart-faces { position: absolute; left: 0; top: 0; width: 20px; height: 168px; }
.chart-faces svg { position: absolute; left: 0; width: 20px; height: 20px; }

.chart-xlabels {
  display: flex;
  justify-content: space-between;
  padding-left: 9%;
  padding-right: 0.5%;
  margin-top: 6px;
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  color: var(--foreground-soft);
}

.chart-legend { margin-top: 14px; display: grid; gap: 6px; }
.chart-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  line-height: 15px;
  color: var(--foreground-soft);
}
.chart-legend-row svg { flex: 0 0 auto; }
.chart-legend-note { margin-top: 2px; font-size: 10.8px; line-height: 15px; color: var(--foreground-soft); }

.harmonia-body { margin-top: 18px; color: var(--foreground-soft); }

/* ---------- Callout / Tip ---------- */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 28px;
  max-width: 680px;
}
.callout-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--background);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}
.callout-icon svg { width: 18px; height: 18px; }
.callout-title { font-weight: 500; font-size: 14px; line-height: 20px; margin: 0 0 3px; }
.callout-body { font-size: 13px; line-height: 19px; color: var(--foreground-soft); }

/* ---------- CTA intermediário ---------- */
.cta-inline {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Princípios (navy) ---------- */
/* Âncoras do footer não ficam sob o header fixo */
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-navy { background: var(--primary); color: var(--on-primary); }
.section-navy .eyebrow { color: var(--accent-soft); }
.section-navy h2 { color: var(--on-primary); }

.principle-card {
  background: rgba(250, 247, 242, 0.07);
  border: 1px solid rgba(250, 247, 242, 0.14);
  border-radius: var(--r-card);
  padding: 24px;
}
.principle-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  letter-spacing: -0.21px;
  margin: 0 0 10px;
}
.principle-body { color: rgba(250, 247, 242, 0.85); font-size: 15px; line-height: 23px; }

/* ---------- O que não é ---------- */
.not-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 680px;
  border-bottom: 1px solid var(--line);
}
.not-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.not-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 2.5px;
  border-radius: var(--r-full);
  background: var(--accent);
  transform: translateY(-4px);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 36px; max-width: 680px; }
.faq-item {
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 22px;
  color: var(--foreground);
  padding: 17px 20px;
}
.faq-q svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--foreground-soft);
  transition: transform .2s ease;
}
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--foreground-soft); font-size: 15px; line-height: 23px; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 560px; margin: 10px auto 28px; }
.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.cta-final .btn-attention { padding: 19px 28px; border-radius: var(--r-bb); }

/* ---------- Rodapé ---------- */
/* Rodapé — barra compacta sobre o mesmo azul da seção CTA acima */
.site-footer {
  background: var(--primary);
  color: rgba(250, 247, 242, 0.72);
  padding: 30px 0;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
}
/* Linha superior: marca + navegação pelas seções */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--on-primary);
  text-decoration: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.footer-nav a {
  color: rgba(250, 247, 242, 0.72);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--on-primary); }

.footer-hair {
  height: 1px;
  border: 0;
  background: rgba(250, 247, 242, 0.14);
  margin: 22px 0 18px;
}

/* Faixa inferior: aviso de segurança + legal/copyright */
.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 12.5px;
  line-height: 18px;
  color: rgba(250, 247, 242, 0.55);
  max-width: 52ch;
  margin: 0;
}
.footer-disclaimer b { color: rgba(250, 247, 242, 0.78); font-weight: 500; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
}
.footer-legal a {
  color: rgba(250, 247, 242, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--on-primary); }
.footer-copy {
  font-size: 13px;
  line-height: 18px;
  color: rgba(250, 247, 242, 0.5);
}
