/* Celerium — site institucional
   Escala de espaço: 4 8 12 16 24 32 48 64 96
   Camadas: header 10, botão flutuante 20, skip-link 30 */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --paper: #fbfaf8;
  --paper-tint: #f3f0eb;
  --card: #fffdfb;
  --line: #e2ddd5;
  --orange: #ff6b00;
  --orange-strong: #e55f00;
  --orange-text: #b04700;   /* laranja legível sobre fundo claro (≥ 4.5:1) */
  --orange-wash: #fff1e5;
  --dark: #1c1917;
  --dark-soft: #2a2623;
  --on-dark: #f5f2ee;
  --on-dark-soft: #c9c2ba;
  --green: #0b6b3a;
  --radius: 16px;
  --radius-small: 10px;
  --shadow-float: 0 1px 2px rgba(28, 25, 23, .06), 0 12px 32px rgba(28, 25, 23, .10);
  --on-orange: #1c1917;     /* texto sobre o laranja, igual nos dois temas */
  --solid: #1c1917;         /* botão/numeração de alto contraste */
  --solid-hover: #3a342f;
  --on-solid: #f5f2ee;
  --orange-line: #f3cfae;
  color-scheme: light dark;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f2ee;
    --ink-soft: #c9c2ba;
    --paper: #151311;
    --paper-tint: #1d1a17;
    --card: #221f1c;
    --line: #3a3531;
    --orange-text: #ff9447;
    --orange-wash: #2e1f13;
    --orange-line: #5a3a20;
    --dark: #221f1c;
    --dark-soft: #2c2824;
    --solid: #f5f2ee;
    --solid-hover: #d9d3cc;
    --on-solid: #1c1917;
    --shadow-float: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, 1120px); } }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 30;
  padding: 12px 16px; background: var(--solid); color: var(--on-solid);
  border-radius: var(--radius-small); font-weight: 700; text-decoration: none;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 120ms ease-out;
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 8px 20px; }

.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-strong); }

.btn-dark { background: var(--solid); color: var(--on-solid); }
.btn-dark:hover { background: var(--solid-hover); }
.cta .btn-dark { background: #1c1917; color: #f5f2ee; }
.cta .btn-dark:hover { background: #3a342f; }
.cta :focus-visible { outline-color: var(--on-orange); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--solid); color: var(--on-solid); }

.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }

.link { display: inline-block; padding: 10px 0; color: var(--orange-text); font-weight: 700; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-symbol { width: 40px; height: 40px; }
.brand-word { width: auto; height: 32px; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 12px; border-radius: var(--radius-small);
  font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.site-nav ul a:hover { color: var(--ink); background: var(--paper-tint); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  background: none; border: 2px solid var(--line); border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars { position: relative; top: -3px; }
.nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }

@media (max-width: 919px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.0625rem; color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 0; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: 1.35fr .9fr; gap: 64px; }
}

.eyebrow { font-size: .9375rem; font-weight: 700; color: var(--orange-text); margin-bottom: 16px; }
.accent { color: var(--orange-text); }
.lead { max-width: 34rem; margin-top: 24px; font-size: 1.25rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-card {
  padding: 32px; border-radius: 24px;
  background: var(--dark); color: var(--on-dark);
}
.hero-card-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--orange); color: var(--on-orange); font-size: .875rem; font-weight: 700;
}
.hero-card-name { margin-top: 24px; font-size: 1.125rem; font-weight: 700; color: var(--on-dark-soft); }
.hero-card-speed { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.hero-card-speed span { font-size: clamp(4.5rem, 12vw, 6.5rem); font-weight: 800; letter-spacing: -.04em; color: var(--orange); }
.hero-card-list { margin-top: 24px; padding-top: 24px; border-top: 1px solid #44403c; display: grid; gap: 8px; color: var(--on-dark-soft); }
.hero-card-price { margin-top: 24px; font-size: 1rem; }
.hero-card-price strong { font-size: 1.75rem; font-weight: 800; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px;
  margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dt { font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
@media (min-width: 920px) { .section { padding: 96px 0; } }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--dark); color: var(--on-dark); }

.section-head { max-width: 40rem; margin-bottom: 48px; }
.section-head p { margin-top: 12px; font-size: 1.125rem; color: var(--ink-soft); }
.section-head .btn { margin-top: 24px; }
.section-dark .section-head p { color: var(--on-dark-soft); }

.split { display: grid; gap: 16px; }
@media (min-width: 920px) {
  .split { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .split .section-head { position: sticky; top: 104px; margin-bottom: 0; }
}

/* ---------- Planos ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.plan-featured { border: 2px solid var(--orange); background: var(--orange-wash); }
.plan-badge {
  position: absolute; top: -14px; left: 24px;
  padding: 2px 12px; border-radius: 999px;
  background: var(--orange); color: var(--on-orange); font-size: .875rem; font-weight: 700;
}
.plan h3 { font-size: 1rem; color: var(--ink-soft); }
.plan-speed { margin-top: 4px; font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.plan-speed span { font-size: 3.5rem; font-weight: 800; letter-spacing: -.03em; }
.plan-for { margin-top: 8px; color: var(--ink-soft); }
.plan-list { display: grid; gap: 8px; margin: 24px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-featured .plan-list { border-top-color: var(--orange-line); }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 12px; height: 6px; border-left: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text);
  transform: rotate(-45deg);
}
.plan-price { margin-top: auto; margin-bottom: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-price strong { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { color: var(--ink-soft); font-weight: 500; }

.fineprint { margin-top: 16px; font-size: .9375rem; color: var(--ink-soft); }

.addon {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding: 32px; border-radius: var(--radius);
  background: var(--paper-tint);
}
.addon div { max-width: 38rem; }
.addon p { margin-top: 8px; color: var(--ink-soft); }
.addon h3 { font-size: 1.375rem; }

/* ---------- Passos ---------- */
.steps { counter-reset: passo; display: grid; }
.steps li {
  counter-increment: passo; position: relative;
  padding: 24px 0 24px 72px; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(passo); position: absolute; left: 0; top: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--solid); color: var(--on-solid); font-weight: 800; font-size: 1.125rem;
}
.steps p { margin-top: 4px; color: var(--ink-soft); }

/* ---------- Benefícios e depoimentos ---------- */
.benefits { display: grid; gap: 32px; }
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 48px 64px; } }
.benefits li { padding-top: 16px; border-top: 3px solid var(--orange); }
.benefits p { margin-top: 8px; color: var(--ink-soft); max-width: 30rem; }

.quotes { display: grid; gap: 16px; margin-top: 64px; }
@media (min-width: 920px) { .quotes { grid-template-columns: 1.4fr 1fr; } .quotes li:first-child { grid-row: span 2; } }
.quotes blockquote {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.quotes li:first-child p { font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.quotes footer { font-size: .9375rem; color: var(--ink-soft); font-weight: 700; }
.quotes cite { font-style: normal; font-weight: 500; }

/* ---------- Atalhos do cliente ---------- */
.shortcuts { display: grid; gap: 12px; }
@media (min-width: 620px) { .shortcuts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .shortcuts { grid-template-columns: repeat(4, 1fr); } }
.shortcuts a {
  display: block; height: 100%; padding: 24px; border-radius: var(--radius);
  background: var(--dark-soft); border: 1px solid #44403c; text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.shortcuts a:hover { border-color: var(--orange); background: #332e2a; }
.shortcuts h3::after { content: " →"; color: var(--orange); }
.shortcuts p { margin-top: 8px; color: var(--on-dark-soft); font-size: 1rem; }

/* ---------- Unidades ---------- */
.places { display: grid; gap: 16px; }
@media (min-width: 720px) { .places { grid-template-columns: repeat(2, 1fr); } }
.places li { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.places h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.places h3 span { font-size: 1rem; font-weight: 700; color: var(--orange-text); letter-spacing: 0; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; font-weight: 700; font-size: 1.125rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform 180ms ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--orange-text); }
.faq details p { padding: 0 4px 24px; max-width: 65ch; color: var(--ink-soft); }

/* ---------- Chamada final ---------- */
.cta { background: var(--orange); color: var(--on-orange); padding: 64px 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { max-width: 20ch; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding: 64px 0 96px; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.brand-footer { margin-bottom: 16px; }
.site-footer h2 { font-size: .9375rem; letter-spacing: 0; color: var(--on-dark); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding: 10px 0; text-underline-offset: 4px; }
.site-footer li a:hover { color: var(--on-dark); }
.footer-base a { display: inline-block; padding: 10px 0; margin-left: 12px; text-underline-offset: 4px; }
.footer-base a:hover { color: var(--on-dark); }
.notfound { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 24px; padding: 96px 0; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid #44403c; font-size: .9375rem; }

/* ---------- Chat flutuante (Chatwoot) ---------- */
.chat-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-float);
  transition: background-color 150ms ease-out, transform 120ms ease-out;
}
.chat-float:hover { background: var(--solid-hover); }
.chat-float:active { transform: translateY(1px); }
.chat-float:focus-visible { outline-color: var(--orange); }
.chat-float[aria-busy="true"] { cursor: progress; }

/* Janela do chat: o Chatwoot abre em tela cheia abaixo de 667px de largura.
   Aqui ela vira sempre uma janela flutuante acima do botão, em qualquer tela. */
html body .woot-widget-holder.woot-widget-holder {
  top: auto !important; left: auto !important;
  right: 16px !important; bottom: 80px !important;
  width: min(400px, calc(100vw - 32px)) !important;
  height: min(640px, calc(100dvh - 104px)) !important;
  max-height: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-float) !important;
  overflow: hidden !important;
}
.woot-widget-holder iframe { height: 100% !important; min-height: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
