/* Temas.
   Claro (padrão): creme quente com hortelã, pêssego, céu e coral.
   Escuro: azul-noite com as mesmas cores, mais suaves.
   O tema vem de data-theme no <html>, que um script no <head> define a partir
   da escolha salva ou, sem escolha, da preferência do sistema. Sem JavaScript,
   vale a preferência do sistema. */
:root {
  color-scheme: light;
  --ink: #22304A;
  --ink-soft: #4E5A72;
  --ink-faint: #8C93A3;
  --paper: #FFF6EC;
  --card: #FFFDF9;
  --sand: #FDE6D2;
  --line: #F1DDC9;
  --teal: #1E8A7D;
  --teal-soft: #D2F0E7;
  --sea: #4FA9D1;
  --sea-soft: #DBF0FA;
  --coral: #EC6F55;
  --coral-soft: #FFE0D6;
  --mustard: #F2B23A;
  --mustard-soft: #FFF0C8;
  --leaf: #78BE68;
  --leaf-deep: #4C9444;
  --night: #22304A;
  --night-text: #FFF1E2;
  --glow-a: rgba(120, 214, 190, .35);
  --glow-b: rgba(255, 180, 140, .35);
  --glow-c: rgba(255, 214, 120, .30);
  --shadow: 0 1px 2px rgba(120, 72, 30, .05), 0 12px 32px rgba(120, 72, 30, .09);
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EEF1F6;
  --ink-soft: #B9C1D0;
  --ink-faint: #7F889B;
  --paper: #121A2B;
  --card: #18223A;
  --sand: #233150;
  --line: #2A3756;
  --teal: #5CB8AA;
  --teal-soft: #1D3B44;
  --sea: #6FA7B9;
  --sea-soft: #1B2D45;
  --coral: #EB937B;
  --coral-soft: #3A2A35;
  --mustard: #E9C574;
  --mustard-soft: #353326;
  --leaf: #7FA874;
  --leaf-deep: #5E8F5A;
  --night: #0C1220;
  --night-text: #F2E8DA;
  --glow-a: rgba(92, 184, 170, .10);
  --glow-b: rgba(235, 147, 123, .08);
  --glow-c: rgba(233, 197, 116, .06);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #EEF1F6;
    --ink-soft: #B9C1D0;
    --ink-faint: #7F889B;
    --paper: #121A2B;
    --card: #18223A;
    --sand: #233150;
    --line: #2A3756;
    --teal: #5CB8AA;
    --teal-soft: #1D3B44;
    --sea: #6FA7B9;
    --sea-soft: #1B2D45;
    --coral: #EB937B;
    --coral-soft: #3A2A35;
    --mustard: #E9C574;
    --mustard-soft: #353326;
    --leaf: #7FA874;
    --leaf-deep: #5E8F5A;
    --night: #0C1220;
    --night-text: #F2E8DA;
    --glow-a: rgba(92, 184, 170, .10);
    --glow-b: rgba(235, 147, 123, .08);
    --glow-c: rgba(233, 197, 116, .06);
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 8% -6%, var(--glow-a), transparent 70%),
    radial-gradient(820px 520px at 96% 2%, var(--glow-b), transparent 70%),
    radial-gradient(700px 500px at 60% 38%, var(--glow-c), transparent 70%),
    var(--paper);
  background-repeat: no-repeat;
  transition: background-color .3s, color .3s;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* Cabeçalho */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand-name span { font-weight: 400; color: var(--ink-soft); }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--mustard); }
.theme-toggle:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .ico-moon { display: none; }
}
.nav .cta {
  text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  transition: transform .2s;
}
.nav .cta:hover { transform: translateY(-1px); }

/* Abertura */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 18px 0 24px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* Ilustrações */
.flow { stroke-dasharray: 2 9; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.flow.slow { animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.bob { animation: bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob.d2 { animation-delay: -2s; }
.bob.d3 { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.pulse { animation: pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .35; } }
.drift { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(26px); } }

/* Seções */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--ink-soft); font-size: 18px; }

/* Faixa de valores */
.ribbon { padding: 0 0 24px; }
.ribbon-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px;
  padding: 22px 28px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
}
.ribbon-inner span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* O nome */
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.name-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 18px;
}
.name-card .art { height: 150px; border-radius: 16px; display: grid; place-items: center; }
.name-card .art svg { height: 120px; width: auto; }
.name-card h3 { font-size: 26px; }
.name-card h3 small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.name-card p { color: var(--ink-soft); font-size: 16px; }
.equation {
  margin-top: 34px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink-soft);
}
.equation b { color: var(--ink); font-weight: 500; }
.equation i { color: var(--teal); }

/* O que fazemos */
.what { background: var(--sand); border-radius: 44px; margin-inline: 12px; }
.what-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.what-card {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px 30px;
  box-shadow: var(--shadow); transition: transform .3s;
}
.what-card:hover { transform: translateY(-4px); }
.what-card svg { width: 64px; height: 64px; margin-bottom: 22px; }
.what-card h3 { font-size: 22px; margin-bottom: 10px; }
.what-card p { color: var(--ink-soft); font-size: 15.5px; }

/* Produtos */
.products { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.product {
  border-radius: 28px; padding: 40px; position: relative; overflow: hidden;
  display: grid; gap: 26px;
}
.product.vigil { background: var(--teal-soft); grid-template-columns: 1.15fr .85fr; align-items: center; }
.product.next { background: var(--card); border: 2px dashed var(--line); align-content: center; text-align: center; justify-items: center; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--teal);
}
.product h3 { font-size: 40px; margin: 16px 0 12px; }
.product p { color: var(--ink-soft); }
.product ul { margin: 18px 0 26px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-soft); font-size: 15.5px; }
.product li { display: flex; gap: 10px; align-items: baseline; }
.product li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.product .link { font-weight: 700; color: var(--teal); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.product .link:hover { text-decoration: underline; text-underline-offset: 4px; }
.product.next h3 { font-size: 30px; }
.product.next svg { width: 180px; }

/* Lema */
.motto {
  background: var(--night); color: var(--night-text);
  border-radius: 44px; margin-inline: 12px; position: relative; overflow: hidden;
  text-align: center; padding: 120px 0;
}
.motto svg.sky { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.motto .wrap { position: relative; }
.motto .eyebrow { color: var(--mustard); justify-content: center; }
.motto .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.motto h2 { font-size: clamp(42px, 7vw, 92px); margin: 22px auto 26px; max-width: 900px; }
.motto h2 em { font-style: italic; color: var(--mustard); }
.motto p { max-width: 620px; margin-inline: auto; color: color-mix(in srgb, var(--night-text) 78%, transparent); font-size: 18px; }

/* Princípios */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 34px 26px 10px 0; }
.principle + .principle { padding-left: 26px; border-left: 1px solid var(--line); }
.principle .num { font-family: var(--serif); font-size: 15px; color: var(--ink-faint); }
.principle svg { width: 48px; height: 48px; margin: 18px 0; }
.principle h3 { font-size: 24px; margin-bottom: 10px; }
.principle p { color: var(--ink-soft); font-size: 15.5px; }

/* Contato */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border-radius: 36px; padding: 56px; box-shadow: var(--shadow);
}
.contact h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; }
.contact p { color: var(--ink-soft); }
.mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); text-decoration: none;
  border-bottom: 2px solid var(--coral); padding-bottom: 4px;
}
.contact svg { width: 100%; max-width: 440px; margin-left: auto; }

/* Rodapé */
footer { padding: 56px 0 44px; color: var(--ink-soft); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 32px; }
.foot .brand-name { font-size: 18px; color: var(--ink); }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Entrada suave */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow, .bob, .pulse, .drift { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1020px) {
  .what-grid, .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .name-grid { grid-template-columns: 1fr; }
  .product.vigil { grid-template-columns: 1fr; }
  .product.vigil > svg { max-width: 220px; margin-inline: auto; }
  .contact { padding: 36px 28px; }
  .contact svg { margin: 0 auto; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .what, .motto { margin-inline: 0; border-radius: 28px; }
  .what-grid, .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 28px 0 8px; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .product { padding: 28px 24px; }
  .product h3 { font-size: 34px; }
  .ribbon-inner { border-radius: 24px; justify-content: flex-start; }
  .motto { padding: 88px 0; }
  .nav .cta { padding: 9px 14px; font-size: 14px; }
}

/* ---------- Página "A história do nome" ---------- */
.page-hero { padding: 64px 0 24px; overflow: hidden; }
.page-hero .hero-grid { grid-template-columns: 1.1fr .9fr; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 70px); margin: 18px 0 22px; }
.page-hero h1 em { font-style: italic; color: var(--teal); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.toc a {
  text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  transition: color .2s, transform .2s;
}
.toc a:hover { color: var(--ink); transform: translateY(-1px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 16px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--ink-soft); }
.split .art-box { border-radius: 28px; padding: 28px; display: grid; place-items: center; }
.split .art-box svg { width: 100%; max-width: 420px; height: auto; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.facts span {
  font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
}
.facts b { color: var(--ink); font-weight: 700; }

.callout {
  margin-top: 22px; padding: 18px 20px; border-radius: 16px;
  background: var(--card); border-left: 4px solid var(--teal); color: var(--ink-soft); font-size: 15.5px;
}
.callout b { color: var(--ink); }

.args { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.arg {
  background: var(--card); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
}
.arg svg { width: 56px; height: 56px; }
.arg h3 { font-size: 22px; margin-bottom: 8px; }
.arg p { color: var(--ink-soft); font-size: 15.5px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); font-size: 15.5px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--serif); font-weight: 500; font-size: 20px; background: var(--sand); }
.compare thead th.win { background: var(--teal-soft); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-soft); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; margin-left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--teal); color: #fff; vertical-align: middle; }
.table-scroll { overflow-x: auto; border-radius: 24px; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; padding: 0 0 34px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .pin { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--paper); box-shadow: 0 0 0 2px var(--line); }
.timeline .date { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.timeline h3 { font-size: 24px; margin: 6px 0 8px; }
.timeline p { color: var(--ink-soft); max-width: 760px; }

.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.names-group { background: var(--card); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow); }
.names-group h3 { font-size: 21px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 7px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.chip b { color: var(--ink); font-weight: 700; }

.verdict { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: v; }
.verdict li { list-style: none; background: var(--card); border-radius: 18px; padding: 22px 20px; box-shadow: var(--shadow); font-size: 15px; color: var(--ink-soft); }
.verdict li::before { counter-increment: v; content: counter(v, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 28px; color: var(--teal); margin-bottom: 10px; }
.verdict b { color: var(--ink); }
.verdict-wrap { padding: 0; margin: 0; }

.story-link {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 40px; padding: 26px 30px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
}
.story-link p { color: var(--ink-soft); max-width: 560px; }
.story-link strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); margin-bottom: 4px; }

@media (max-width: 1020px) {
  .verdict { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .page-hero .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 0; }
  .args, .names { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .arg { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 14px 14px; }
  .compare { min-width: 560px; }
  .story-link { padding: 22px; }
}
