/* Institucional da Segory — identidade própria (não usa o sistema whitelabel,
 * que é o das corretoras).
 *
 * Paleta: Direção B "Clareza" de docs/design/segory-marca/ESTUDO-MARCA.md,
 * aprovada pela Nadia em 23/10/2026. Coral só como forma: como letra reprova
 * (2,8:1). Contrastes medidos: tinta/fundo 15,0:1 · apoio/fundo 6,8:1 ·
 * petróleo/fundo 7,4:1 · branco/petróleo 7,9:1.
 *
 * Trocar a paleta é mexer só no bloco :root abaixo.
 */
:root {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --ink: #142426;
  --muted: #4A5A5C;
  --line: #DCE5E4;
  --control: #6B7C7E;
  --brand: #0E5A63;
  --brand-hover: #0B4D55;
  --deep: #0B3F45;
  --on-deep: #C9DADB;
  --on-brand-soft: #DCEBEC;
  --coral: #E07A5F;
  --tint: #E3EEEF;

  --display: Manrope, Inter, system-ui, sans-serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala: celular 390px → computador 1440px. Corpo nunca abaixo de 16px. */
  --t-small: 0.8125rem;                                   /* 13 */
  --t-body: 1rem;                                         /* 16 */
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);     /* 17 → 20 */
  --t-h3: clamp(1.125rem, 1.06rem + 0.3vw, 1.375rem);     /* 18 → 22 */
  --t-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);          /* 24 → 40 */
  --t-h1: clamp(2rem, 1.45rem + 2.5vw, 3.5rem);           /* 32 → 56 */

  --wrap: 76rem;
  --measure: 64ch;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --sec: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --r-card: 16px;
  --r-btn: 10px;
  --btn-h: 48px;
  --shadow: 0 24px 48px -24px rgba(11, 63, 69, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body) / 1.65 var(--sans);
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.sec { padding-block: var(--sec); }
.sec--surface { background: var(--surface); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 32px; }
.intro { max-width: 48rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); line-height: 1.2; }
h3 { font-size: var(--t-h3); line-height: 1.3; font-weight: 700; }
p { margin: 0; max-width: var(--measure); }
.lead { font-size: var(--t-lead); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); line-height: 1.5; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--coral); flex: none; }

/* ── Botões: 48px, canto de 10px ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 24px; border-radius: var(--r-btn);
  font: 600 var(--t-body) / 1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1px solid var(--brand); cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--outline { background: transparent; color: var(--brand); }
.btn--outline:hover { background: var(--tint); }
.btn--light { background: #fff; color: var(--deep); border-color: #fff; }
.btn--full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Topo ────────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--surface);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
/* Logo "Ponto final": o nome e um ponto coral (forma, nunca letra) no fim. */
.logo {
  display: inline-flex; align-items: baseline; text-decoration: none; color: var(--brand);
  font: 800 1.625rem / 1 var(--display); letter-spacing: -0.03em;
}
.logo__ponto {
  display: inline-block; width: 0.2em; height: 0.2em; border-radius: 0.05em;
  background: var(--coral); margin-left: 0.05em;
}
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav__entrar { color: var(--brand) !important; font-weight: 600; }

.menu { display: none; }
.menu summary {
  list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter-r) 16px var(--gutter);
  display: flex; flex-direction: column;
}
.menu__panel a:not(.btn) {
  min-height: 48px; display: flex; align-items: center; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu__panel .btn { margin-top: 16px; }
@media (max-width: 60rem) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ── Grades ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid > * { min-width: 0; }
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split--side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 56rem) { .split, .split--even, .split--side { grid-template-columns: minmax(0, 1fr); } }

/* ── Cartões ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(20px, 2.5vw, 32px); display: flex; flex-direction: column; gap: 12px;
}
.card--bg { background: var(--bg); }
a.card { color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); box-shadow: 0 8px 24px -16px rgba(11, 63, 69, .45); }
.card__go { margin-top: auto; font-weight: 600; color: var(--brand); }
.card__pub { font-size: var(--t-small); line-height: 1.5; font-weight: 600; color: var(--brand); }
.card__num { font: 800 2.5rem / 1 var(--display); color: var(--brand); }
.card__tag { font-size: var(--t-small); font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.card--row { flex-direction: row; gap: 16px; }
.card--row > svg { flex: none; color: var(--brand); margin-top: 2px; }

.tile {
  width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--brand);
  display: grid; place-items: center; flex: none;
}
.tile--sm { width: 40px; height: 40px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--brand); font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none;
}
.chip svg { color: var(--brand); }
.chip:hover { border-color: var(--brand); }

/* ── Tela de exemplo (dados fictícios) ───────────────────────────────────── */
.figure { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.figure figcaption { font-size: var(--t-small); color: var(--muted); }
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden; display: flex; color: #0A1628;
}
.mock__side {
  width: 200px; flex: none; background: #F4F6F8; border-right: 1px solid #DFE4EA;
  padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: #4A5568;
}
.mock__side strong { font-size: 15px; color: #0A1628; }
.mock__side .on { color: #0A1628; font-weight: 700; }
.mock__main { flex: 1; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; }
.mock__title { font-size: 20px; font-weight: 700; }
.mock__row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEF1F5;
}
.mock__t { flex: 1; min-width: 0; }
.mock__n {
  width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none;
}
.mock__state { font-size: 13px; white-space: nowrap; color: #4A5568; }
.ok { background: #E3F2EA; color: #1B7A4A; }
.warn { background: #FDF3D4; color: #5A3D00; }
.idle { background: #EEF1F5; color: #4A5568; }
.mock__totais { display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 12px; }
.mock__totais span { display: flex; flex-direction: column; font-size: 13px; color: #4A5568; }
.mock__totais strong { font-size: 20px; color: #0A1628; }
.mock--lista { flex-direction: column; padding: 24px 28px; gap: 0; }
.mock--lista .mock__row { justify-content: space-between; padding: 14px 0; }
@media (max-width: 40rem) {
  .mock__side { display: none; }
  .mock__main, .mock--lista { padding: 20px 16px; }
  .mock__state { white-space: normal; text-align: right; }
}

/* ── Planos ──────────────────────────────────────────────────────────────── */
.plano { gap: 16px; }
.plano--destaque { border: 2px solid var(--brand); }
.plano__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plano__nome { font: 800 1.5rem / 1.2 var(--display); }
.plano__flag { font-size: var(--t-small); font-weight: 700; color: var(--brand); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.plano__preco { font: 800 2rem / 1.2 var(--display); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 10px; }
.checks svg { color: var(--brand); flex: none; margin-top: 3px; }
.plano .btn { margin-top: auto; }

/* ── Perguntas ───────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem / 1 var(--sans); color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 4px 0 12px; color: var(--muted); }

/* ── Faixa final ─────────────────────────────────────────────────────────── */
.final { background: var(--brand); color: #fff; padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.final h2 { color: #fff; }
.final p { color: var(--on-brand-soft); }
.final__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.final__in--row { flex-direction: row; justify-content: space-between; text-align: left; flex-wrap: wrap; }

/* ── Rodapé ──────────────────────────────────────────────────────────────── */
.foot { background: var(--deep); color: var(--on-deep); padding-block: 56px 32px; }
.foot a { color: var(--on-deep); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col strong { color: #fff; }
.foot__base { max-width: none; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(201, 218, 219, .25); font-size: var(--t-small); }
@media (max-width: 48rem) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Formulário da demonstração ──────────────────────────────────────────── */
.form-card { max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.field label em { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
  font: 400 var(--t-body) var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--control); border-radius: 8px; padding: 0 14px; min-height: 48px; width: 100%;
}
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field__err { font-size: var(--t-small); color: #B23B2A; }
.field.is-err input, .field.is-err select { border-color: #B23B2A; }
.aviso {
  border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface);
  border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.copia { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.copia code { font: 600 1rem var(--sans); color: var(--ink); user-select: all; }
.copia button {
  min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--brand);
  background: transparent; color: var(--brand); font: 600 var(--t-small) var(--sans); cursor: pointer;
}

/* Página de texto (política de privacidade): coluna de leitura. */
.texto { max-width: 48rem; }
.texto h2 { font-size: var(--t-h3); line-height: 1.3; }
.lista { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; color: var(--muted); max-width: var(--measure); }
