/* ========================================================================== 
   CORVITA · LANDING V1
   1. Tokens  2. Base  3. Componentes  4. Seções  5. Responsividade
   Fonte dos tokens: Figma / CorVita — Rebrand 2026 / Foundations.
   ========================================================================== */

/* 1. Identidade · valores existentes, sem alterar o Foundations */
:root {
  --color-surface: #f7f3ed;
  --color-ink: #17191b;
  --color-secondary: #6c706f;
  --color-accent: #8f6e5e;
  --color-accent-text: #775746;
  --color-earth: rgb(226.4404 211.7911 202.8125);
  --color-dark: #111315;
  --color-on-dark: #f4f1eb;
  --color-muted-dark: #a8aeab;
  --color-accent-dark: #c7a895;
  --color-line: rgb(23 25 27 / 22%);
  --space-base: 24px;
  --radius: 14px;
  --font-body: 'Manrope', sans-serif;
  --font-display: 'IBM Plex Sans', sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-label: 'IBM Plex Mono', monospace;
  --page-gutter: 72px;
}

/* 2. Base, tipografia e acessibilidade */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--color-surface); color: var(--color-ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: 64px; line-height: 68px; letter-spacing: -1.5px; }
h2 { font-size: 40px; line-height: 46px; letter-spacing: -.6px; }
h3 { font-size: 28px; line-height: 34px; letter-spacing: -.2px; font-weight: 500; }
p { font-size: 18px; line-height: 28px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 6px; border-radius: 4px; }
section:focus, main:focus { outline: none; }
::selection { background: var(--color-earth); color: var(--color-ink); }
.shell { width: calc(100% - var(--page-gutter) * 2); max-width: 1296px; margin-inline: auto; }
.section-space { padding-block: 96px; }
.skip-link { position: absolute; top: 12px; left: 16px; padding: 12px 20px; background: var(--color-ink); color: var(--color-surface); z-index: 10; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* 3. Componentes compartilhados */
.brand { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 32px; line-height: 44px; font-weight: 600; letter-spacing: -1px; white-space: nowrap; }
.brand em { color: var(--color-accent); font-family: var(--font-accent); font-weight: 400; }
.eyebrow { font-family: var(--font-label); font-size: 12px; line-height: 20px; letter-spacing: .8px; }
.index { font-family: var(--font-label); font-size: 14px; line-height: 22px; color: var(--color-secondary); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px 24px; min-height: 52px; background: var(--color-ink); color: var(--color-surface); border-radius: var(--radius); font-size: 16px; line-height: 24px; font-weight: 500; transition: background-color .15s ease; }
.button:hover { background: #353331; }
.button span:last-child { font-size: 22px; font-weight: 400; }
.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 24px; }
.dark-section { background: var(--color-dark); color: var(--color-on-dark); }

/* 4A. Cabeçalho e abertura */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 112px; border-bottom: 1px solid rgb(143 110 94 / 16%); }
.space-identity { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.identity-caption { color: #625d58; font-family: var(--font-display); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .1px; }

/* Vidro: fundo legível como base; transparência e refração são melhorias visuais. */
.site-header nav { display: flex; gap: 10px; padding: 6px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 999px; background: linear-gradient(135deg, rgb(255 255 255 / 76%), rgb(231 218 208 / 42%)); box-shadow: inset 0 1px 0 #fff, 0 5px 18px rgb(71 51 39 / 6%); }
.site-header nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 22px; transition: background-color .18s ease, box-shadow .18s ease; }
.site-header nav a:hover { background: rgb(255 255 255 / 72%); border-color: rgb(255 255 255 / 90%); box-shadow: 0 3px 10px rgb(71 51 39 / 8%); }
.site-header nav a:focus-visible { outline-offset: 3px; border-radius: 999px; }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header nav { backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
}
.back-top:hover { text-decoration: underline; text-underline-offset: 5px; }
/* Abertura editorial · título e explicação compartilham o mesmo eixo. */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: 600px; padding-block: 96px; }
.hero h1 { margin: 0; font-size: clamp(64px, 6.1vw, 88px); line-height: 1.06; letter-spacing: -.035em; }
.hero h1 span { color: var(--color-accent); }
.hero-copy { min-width: 0; }
.hero .lead { max-width: 560px; margin-bottom: 32px; font-size: 20px; line-height: 1.7; color: #625d58; text-wrap: pretty; }
/* Vidro sutil · contraste independente da disponibilidade do desfoque. */
.button-glass { color: var(--color-ink); background: linear-gradient(135deg, #fffaf5, #e8d9cd); border: 1px solid #bca393; box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgb(71 51 39 / 8%); border-radius: 999px; }
.button-glass:hover { background: #e2d3c7; box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgb(71 51 39 / 12%); }
.button-glass:active { background: #d8c5b8; }
.button-glass:focus-visible { outline-offset: 5px; border-radius: 999px; }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .button-glass { background: linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(226 211 202 / 74%)); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); }
  .button-glass:hover { background: #e2d3c7; }
}
.brand-panel { position: relative; isolation: isolate; overflow: hidden; min-height: 480px; padding: 32px; background: radial-gradient(ellipse at 95% 0%, rgb(255 255 255 / 65%), transparent 62%), linear-gradient(145deg, #e7dcd3, #d8c5b8); border: 1px solid rgb(255 255 255 / 72%); border-radius: 24px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 16px 40px -28px rgb(92 64 45 / 32%); display: flex; flex-direction: column; justify-content: space-between; }
.brand-panel::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; top: -220px; right: -180px; border: 1px solid rgb(255 255 255 / 50%); border-radius: 50%; box-shadow: 0 0 0 40px rgb(255 255 255 / 10%), 0 0 0 80px rgb(255 255 255 / 8%); pointer-events: none; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.small-cross { font-size: 28px; line-height: 28px; font-weight: 400; }
.brand-study { display: flex; flex-direction: row; align-items: baseline; white-space: nowrap; padding-block: 32px; font-family: var(--font-display); font-size: clamp(64px, 6vw, 88px); line-height: 1.15; letter-spacing: -3px; font-weight: 600; }
.brand-study em { font-family: var(--font-accent); font-weight: 400; color: var(--color-accent); }
.panel-bottom { font-size: 15px; line-height: 23px; }
.panel-line { display: block; height: 1px; background: var(--color-line); margin-bottom: 20px; }

/* 4B. Propósito */
/* Duas colunas no computador; leitura contínua nas telas menores. */
/* Proposta · capítulo editorial com leitura contínua e movimento progressivo. */
.purpose { position: relative; padding-block: 72px 80px; border-radius: 40px 40px 0 0; }
.purpose-editorial { max-width: 880px; }
.purpose .eyebrow { color: var(--color-accent-dark); margin-bottom: 24px; }
.purpose h2 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 32px; }
.purpose-title-line { display: block; }
.purpose-accent { color: var(--color-accent-dark); }
.purpose-summary { max-width: 720px; font-size: 20px; line-height: 1.65; color: #d1d4d1; text-wrap: pretty; }
.purpose-signoff { max-width: 720px; margin-top: 32px; }
.purpose-rule { display: block; height: 1px; background: rgb(199 168 149 / 45%); transform-origin: left; margin-bottom: 24px; }
.purpose-signoff p { color: var(--color-accent-dark); font-size: 18px; line-height: 28px; }
.button-glass span:last-child { transition: transform .22s ease; }
.button-glass:is(:hover, :focus-visible) span:last-child { transform: translateY(3px); }


/* 4C. Compromissos editoriais · título acima e colunas amplas */
.commitments .section-heading { margin-bottom: 56px; }
.commitments .eyebrow { color: var(--color-accent-text); }
.commitment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.commitment { min-width: 0; border-top: 1px solid var(--color-line); padding-top: 32px; }
.commitment .index { display: block; margin-bottom: 24px; color: var(--color-accent-text); }
.commitment h3 { margin-bottom: 16px; font-size: 26px; line-height: 34px; text-wrap: balance; }
.commitment p { color: #625d58; line-height: 30px; }

/* 4D. Territórios de conteúdo · linhas de leitura, não cartões clicáveis */
.topics { border-top: 1px solid var(--color-line); }
.topics-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.topics .eyebrow, .topic .index { color: var(--color-accent); }
.topics-heading > p { max-width: 680px; color: #625d58; line-height: 30px; }
.topic { display: grid; grid-template-columns: 40px minmax(0, .85fr) minmax(0, 1.4fr); gap: 32px; align-items: start; padding-block: 32px; border-top: 1px solid var(--color-line); }
.topic .index { padding-top: 6px; }
.topic h3 { font-size: 26px; line-height: 34px; text-wrap: balance; }
.topic p { color: #625d58; max-width: 680px; line-height: 30px; }
.topic:last-child { border-bottom: 1px solid var(--color-line); }

/* 4E. Continuidade e rodapé */
.closing { padding-block: 80px; background: var(--color-earth); }
.closing-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.closing .eyebrow { color: #625044; }
.closing h2 { max-width: 720px; text-wrap: balance; }
.closing p:not(.eyebrow) { max-width: 640px; margin-top: 24px; line-height: 30px; color: #51483f; }
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 48px; padding-block: 40px; }
.site-footer p { max-width: 600px; font-size: 14px; line-height: 23px; color: #625d58; }
.back-top { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 14px; line-height: 22px; }

/* 5. Responsividade · conteúdo determina a altura, sem cortes fixos */
@media (max-width: 1100px) {
  :root { --page-gutter: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-block: 80px; }
  .hero h1 { font-size: 64px; }
  h1 { font-size: 52px; line-height: 58px; }
  .brand-study { font-size: 64px; line-height: 74px; }
  .commitments .section-heading { margin-bottom: 48px; }

  .site-footer { gap: 24px; }
}
@media (max-width: 850px) {
  .site-header { gap: 20px; }
  .site-header nav a { padding-inline: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero .lead { max-width: 560px; }
  /* Painel compacto: a assinatura apoia a abertura sem adiar a proposta. */
  .brand-panel { min-height: 0; padding: 24px; gap: 16px; }
  .brand-study { flex-direction: row; gap: 0; padding: 0; font-size: 56px; line-height: 64px; letter-spacing: -1.5px; }
  .panel-line { margin-bottom: 12px; }
  .commitment-grid { grid-template-columns: 1fr; gap: 40px; }
  .commitment p { max-width: 600px; }
  .topics-heading { flex-direction: column; align-items: start; gap: 24px; }
  .topics-heading > p { max-width: 560px; }
  .topic { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 24px; }
  .topic p { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-row: 2; grid-column: 1 / -1; }
}
/* A identidade e a navegação ganham linhas próprias antes de competir por espaço. */
@media (min-width: 481px) and (max-width: 680px) {
  .site-header { flex-wrap: wrap; padding-block: 24px; }
  .site-header nav { margin-left: auto; }
}
@media (max-width: 480px) {
  :root { --page-gutter: 24px; }
  h1 { font-size: 40px; line-height: 46px; letter-spacing: -.6px; }
  h2 { font-size: 32px; line-height: 38px; }
  h3 { font-size: 24px; line-height: 30px; }
  .site-header { min-height: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 24px; }
  .site-header .brand, .site-footer .brand { font-size: 28px; }
  .site-header nav { width: 100%; gap: 8px; }
  .site-header nav a { flex: 1; font-size: 14px; min-height: 44px; padding-inline: 16px; }
  .hero { gap: 32px; padding-block: 56px; }
  .hero h1 { font-size: clamp(32px, 10.8vw, 48px); }
  .hero-copy .eyebrow { font-size: 12px; letter-spacing: .5px; margin-bottom: 24px; }
  .hero .lead { font-size: 17px; line-height: 28px; margin-bottom: 32px; }
  .brand-panel { padding: 20px 24px; }
  .purpose, .closing, .section-space { padding-block: 64px; }
  .closing p:not(.eyebrow) { font-size: 17px; line-height: 28px; }
  .purpose { border-radius: 24px 24px 0 0; padding-block: 48px 56px; }
  .purpose h2 { font-size: 36px; line-height: 1.14; margin-bottom: 24px; }
  .purpose-summary { font-size: 17px; line-height: 28px; }
  .purpose-signoff p { font-size: 17px; line-height: 27px; }
  .purpose .eyebrow { margin-bottom: 20px; }
  .section-heading { margin-bottom: 32px; }
  .commitments .section-heading { margin-bottom: 48px; }
  .commitment h3 { font-size: 24px; line-height: 30px; }
  .commitment p { font-size: 17px; line-height: 28px; }
  .topic h3 { font-size: 24px; line-height: 30px; }
  .topic p, .topics-heading > p { font-size: 17px; line-height: 28px; }
  .topic { grid-template-columns: 24px minmax(0, 1fr); gap: 12px 16px; padding-block: 28px; }
  .site-footer { padding-block: 32px; gap: 24px; }
  .back-top { max-width: 96px; font-size: 13px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header nav, .button-glass { background: #eee5dc; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Revisão editorial · More Air como referência de escala, ritmo e movimento. */
.commitments { padding-block: 88px 72px; }
.commitments .section-heading { margin-bottom: 64px; }
.commitments h2 { font-size: clamp(44px,6vw,86px); line-height: 1.04; font-weight: 500; letter-spacing: -.045em; }
.commitments h2 span { color: var(--color-accent); }
.commitment-grid { display: block; }
.commitment { position: relative; display: grid; grid-template-columns: 96px minmax(0,1fr) minmax(0,1fr); column-gap: 40px; align-items: start; padding: 48px 0; border-top: 1px solid #d4c8be; }
.commitment::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--color-accent); transform: scaleX(var(--progress,1)); transform-origin: left; }
.commitment .index { font-family: var(--font-display); font-size: 60px; font-weight: 400; line-height: 1; letter-spacing: -.05em; color: #8f6e5e; margin: 0; }
.commitment h3 { max-width: 360px; font-size: 38px; line-height: 1.12; font-weight: 500; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.commitment p { max-width: 460px; font-size: 18px; line-height: 1.65; }
.commitment h3,.commitment p { transform: translateY(var(--lift,0px)); }
.commitment:last-child { border-bottom: 1px solid #d4c8be; }
@media(max-width:1100px){.commitment{grid-template-columns:64px minmax(0,1fr);gap:20px 32px}.commitment p{grid-column:2;max-width:560px}.commitment h3{max-width:none;font-size:32px}.commitment .index{font-size:44px;grid-row:1 / 3}}
@media(max-width:480px){.commitments{padding-block:56px}.commitments .section-heading{margin-bottom:40px}.commitments h2{font-size:44px}.commitment{padding:32px 0;grid-template-columns:36px minmax(0,1fr);gap:16px}.commitment .index{font-size:32px}.commitment h3{font-size:28px}.commitment p{font-size:17px;line-height:28px}}
@media(prefers-reduced-motion:reduce){.commitment h3,.commitment p{transform:none}.commitment::before{transform:none}}
