/* ============================================================
   HelpGHL — site institucional
   HTML + CSS puro. Sem build, sem dependência externa.
   Paleta herdada da POC: roxo #5f418c.
   ============================================================ */

:root {
  color-scheme: light dark;

  --brand:       #5f418c;
  --brand-hover: #513674;
  --brand-ink:   #ffffff;
  --brand-text:  #5f418c;
  --brand-wash:  #f4f0fa;
  --accent:      #7c5cb8;

  --bg:      #ffffff;
  --surface: #faf9fc;
  --raised:  #ffffff;
  --line:    #e6e3ee;
  --line-2:  #d8d4e4;

  --ink:   #16121e;
  --ink-2: #56506a;
  --ink-3: #8b8598;

  --ok:     #087443;
  --ok-bg:  #e8f6ee;
  --warn:   #8a5300;
  --warn-bg:#fdf3e2;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 18, 30, .05), 0 6px 20px rgba(22, 18, 30, .05);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1020px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:       #7d5bb5;
    --brand-hover: #8e6cc6;
    --brand-ink:   #ffffff;
    --brand-text:  #bda1ea;
    --brand-wash:  #221b30;
    --accent:      #a486d6;

    --bg:      #131019;
    --surface: #191524;
    --raised:  #1e1a2b;
    --line:    #2c2638;
    --line-2:  #3a3348;

    --ink:   #f2f0f7;
    --ink-2: #b3adc2;
    --ink-3: #837d94;

    --ok:     #5ed39b;
    --ok-bg:  #12281f;
    --warn:   #e8b165;
    --warn-bg:#2a2113;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --brand:       #7d5bb5;
  --brand-hover: #8e6cc6;
  --brand-ink:   #ffffff;
  --brand-text:  #bda1ea;
  --brand-wash:  #221b30;
  --accent:      #a486d6;

  --bg:      #131019;
  --surface: #191524;
  --raised:  #1e1a2b;
  --line:    #2c2638;
  --line-2:  #3a3348;

  --ink:   #f2f0f7;
  --ink-2: #b3adc2;
  --ink-3: #837d94;

  --ok:     #5ed39b;
  --ok-bg:  #12281f;
  --warn:   #e8b165;
  --warn-bg:#2a2113;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 3.2vw, 28px); }
h3 { font-size: 17px; }
p  { margin: 0; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, pre { font-family: var(--mono); }
code {
  font-size: .88em;
  background: var(--brand-wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--ink);
  word-break: break-word;
}
kbd {
  font-size: .82em;
  background: var(--raised);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink-2);
  white-space: nowrap;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

section { padding: 68px 0; }
section + section { border-top: 1px solid var(--line); }
.section-tint { background: var(--surface); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 12px;
}

.lead { font-size: 18px; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny  { font-size: 13px; color: var(--ink-3); }

.stack   > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 8px; }
.stack-l > * + * { margin-top: 28px; }

/* ---------- topo ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo svg { display: block; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--brand-text); font-weight: 600; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--raised);
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

@media (max-width: 720px) {
  .topbar .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .nav { gap: 14px; width: 100%; margin-left: 0; order: 3; flex-wrap: wrap; }
  .theme-toggle { margin-left: auto; }
}

/* ---------- herói ---------- */

.hero { padding: 78px 0 64px; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 56ch; margin-top: 20px; font-size: 19px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--brand);
  color: var(--brand-ink);
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* ---------- selos de estado ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-live    { background: var(--ok-bg);   color: var(--ok); }
.badge-next    { background: var(--warn-bg); color: var(--warn); }
.badge-neutral { background: var(--brand-wash); color: var(--brand-text); }
/* Escrito e testado, mas ainda não ligado. Nem verde nem âmbar: um terceiro estado. */
.badge-ready   { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- cartões ---------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.card-head h3 { margin: 0; }

.icon-box {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand-wash);
  color: var(--brand-text);
  margin-bottom: 14px;
}

/* ---------- listas ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.list li + li { margin-top: 10px; }
.list li::before {
  content: "";
  position: absolute;
  left: 6px; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-text);
}
.list-check li::before {
  content: "✓";
  left: 2px; top: 0;
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  color: var(--ok);
  font-weight: 700;
}
.list-x li::before {
  content: "×";
  left: 4px; top: -.06em;
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  color: var(--ink-3);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- passos ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  padding: 0 0 40px 62px;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
}
.step::after {
  content: "";
  position: absolute;
  left: 18.5px; top: 46px; bottom: 8px;
  width: 1px;
  background: var(--line-2);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; padding-top: 6px; }
.step p { font-size: 15px; color: var(--ink-2); }

@media (max-width: 560px) {
  .step { padding-left: 50px; }
  .step::before { width: 32px; height: 32px; font-size: 14px; }
  .step::after { left: 15.5px; top: 40px; }
}

/* ---------- bloco de código ---------- */

.codeblock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.codeblock .codebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 650;
}
.codeblock pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}
.codeblock pre .c { color: var(--ink-3); }

.copy-btn {
  border: 1px solid var(--line-2);
  background: var(--raised);
  color: var(--ink-2);
  border-radius: 7px;
  padding: 3px 10px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy-btn:hover { color: var(--ink); }

/* ---------- avisos ---------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.note b, .note strong { color: var(--ink); }
.note-warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note-warn b { color: var(--ink); }
.note-pending {
  border-style: dashed;
  border-left-style: solid;
  border-left-color: var(--ink-3);
}

/* ---------- tabelas ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--raised);
}
th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
td b, td strong { color: var(--ink); font-weight: 600; }
td code { font-size: .84em; }

/* ---------- preços ---------- */

.price-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.price-card.is-outlined { border-color: var(--brand); }
.price-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 14px 0 2px;
}
.price-card .list { margin-top: 18px; }
.price-card .list li { font-size: 14.5px; }

/* ---------- rodapé ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
  font-size: 14px;
  color: var(--ink-3);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--ink-2); }

/* ---------- responsivo ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .wrap { padding: 0 18px; }
}

/* "Entrar" precisa se distinguir de "Começar": quem já é cliente não está
   procurando a mesma porta que quem está chegando. */
.nav .nav-entrar {
  border: 1px solid var(--linha, #d9dbe4);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
}
.nav .nav-entrar:hover { border-color: var(--marca, #5f418c); color: var(--marca, #5f418c); }
