/* Tokens: ver design-system/MASTER.md */
:root {
  --grafite: #2A2C2E;
  --grafite-profundo: #1E2022;
  --giz: #F1F2EF;
  --branco: #FFFFFF;
  --tinta: #24272A;
  --tinta-suave: #5A5F63;
  --nevoa: #B4B8BB;
  --oliva: #4F5843;
  --oliva-claro: #B9C2A2;
  --linha-escura: rgba(241, 242, 239, 0.55);
  --linha-clara: #C9CCC8;

  --font-display: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --portrait: 184px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --portrait: 240px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--giz);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 300; font-family: var(--font-display); line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(185, 194, 162, .25); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--giz); color: var(--tinta); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--oliva-claro); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible, .section-white :focus-visible { outline-color: var(--oliva); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.btn-light { background: var(--oliva-claro); color: var(--grafite); }
.btn-light:hover { background: #CBD3B5; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 1.0625rem; }

/* Textura do cartão */
.textured, .hero {
  background-color: var(--grafite);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 32, 34, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  color: var(--giz);
  border-bottom: 1px solid rgba(241, 242, 239, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-role { font-size: .875rem; color: var(--nevoa); font-family: var(--font-body); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--nevoa); text-decoration: none; font-size: .9375rem; padding: 12px 12px; transition: color .18s; }
.nav a:hover { color: var(--giz); }
.site-header .btn { margin-left: auto; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }
@media (min-width: 980px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}
@media (max-width: 400px) { .brand-role { display: none; } }

/* Hero = o cartão */
.hero {
  position: relative;
  color: var(--giz);
  padding: clamp(48px, 8vw, 96px) 0 calc(var(--portrait) / 2 + clamp(40px, 6vw, 72px));
}
.hero-card { max-width: 860px; }
.hero-meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 300; font-size: 1rem; letter-spacing: .04em;
  color: var(--nevoa);
  margin-bottom: clamp(40px, 7vw, 72px);
}
.hero-lines { display: grid; gap: clamp(20px, 3vw, 28px); padding-inline: clamp(0px, 4vw, 56px); }
.ruled {
  position: relative;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.3;
  padding-bottom: 12px;
  text-wrap: balance;
}
.hero h1.ruled { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; padding-bottom: 16px; }
.ruled::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--linha-escura);
  transform-origin: left center;
  animation: draw .7s var(--ease) both;
  animation-delay: calc(var(--i) * 140ms + 150ms);
}
.ruled { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 140ms); }
.hero-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-top: clamp(32px, 5vw, 48px); padding-inline: clamp(0px, 4vw, 56px);
  animation: rise .6s var(--ease) .5s both;
}
.hero-note { color: var(--nevoa); font-size: .9375rem; }

.portrait {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: var(--portrait); height: var(--portrait); margin: 0;
  transform: translate(-50%, 50%);
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--giz);
  box-shadow: 0 18px 40px -18px rgba(30, 32, 34, .55);
  background: var(--giz);
  animation: portrait .8s var(--ease) .35s both;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes portrait { from { opacity: 0; transform: translate(-50%, 56%); } to { opacity: 1; transform: translate(-50%, 50%); } }

/* Seções */
.section { padding-block: var(--section-y); }
.section-light { background: var(--giz); }
.section-white { background: var(--branco); }
.section-dark { color: var(--giz); }
.section-after-portrait { padding-top: calc(var(--portrait) / 2 + clamp(48px, 7vw, 88px)); }

.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 24px; text-wrap: balance; }
.lead { max-width: 60ch; color: var(--tinta-suave); font-size: 1.125rem; }
.section-dark .lead { color: var(--nevoa); }

.split { display: grid; gap: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: clamp(56px, 8vw, 112px); align-items: start; } }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 16px; }

.list-title { font-size: 1.375rem; font-weight: 400; margin-bottom: 8px; }
.ruled-list { list-style: none; margin: 0; padding: 0; }
.ruled-list li { padding: 14px 0; border-bottom: 1px solid var(--linha-clara); }

/* Para quem */
.ages { display: grid; gap: 0 48px; margin-top: 40px; }
@media (min-width: 700px) { .ages { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .ages { grid-template-columns: repeat(4, 1fr); gap: 0 36px; } }
.age { border-top: 1px solid var(--tinta); padding: 20px 0 32px; }
.age h3 { font-size: 1.6rem; margin-bottom: 10px; }
.age p { color: var(--tinta-suave); }

/* Como funciona (sequência real) */
.steps { list-style: none; counter-reset: passo; margin: 40px 0 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0 36px; } }
.steps li { counter-increment: passo; border-top: 1px solid var(--linha-escura); padding: 20px 0 32px; }
.steps li::before {
  content: counter(passo);
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: 2.75rem; line-height: 1; color: var(--oliva-claro); margin-bottom: 16px;
}
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 400; }
.steps p { color: var(--nevoa); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linha-clara); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative;
  font-weight: 600; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding-bottom: 18px; color: var(--tinta-suave); max-width: 60ch; }

/* Contato */
.contact-inner { text-align: center; display: grid; justify-items: center; }
.contact .lead { margin: 0 auto 32px; }
.contact-list {
  display: grid; gap: 24px; margin: 56px 0 0; width: 100%; max-width: 720px; text-align: left;
}
@media (min-width: 700px) { .contact-list { grid-template-columns: 1fr 1fr; } }
.contact-list > div { border-top: 1px solid var(--linha-escura); padding-top: 16px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; color: var(--nevoa); font-size: .9375rem; margin-bottom: 6px; }
.contact-list dd { margin: 0; font-size: 1.125rem; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--oliva-claro); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a:hover { color: #CBD3B5; }

/* Rodapé */
.site-footer { background: var(--grafite-profundo); color: var(--nevoa); padding: 40px 0; font-size: .9375rem; }
.footer-inner { display: grid; gap: 4px; }
.footer-name { color: var(--giz); font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 4px; }
.footer-small { margin-top: 12px; font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
