:root {
  --primary: #2b7fc4;
  --primary-hover: #1f6aa8;
  --primary-soft: #e8f2fb;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #5b6776;
  --border: #e3e8ef;
  --success: #1f9d55;
  --danger: #c53030;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 8px 24px rgb(16 24 40 / .06);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5aa7e6;
    --primary-hover: #7bbaee;
    --primary-soft: #16293b;
    --bg: #0f1620;
    --bg-alt: #141d29;
    --surface: #18222f;
    --text: #e6ebf1;
    --muted: #9aa7b6;
    --border: #263241;
    --success: #4ade80;
    --danger: #f87171;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .7em 1.3em;
  font: inherit; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { min-height: 38px; padding: .4em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: var(--text); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-menu .btn { margin-top: 12px; width: 100%; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0; background: radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: .3em .9em; border-radius: 999px; margin-bottom: 1.2em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* Seções */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head-left { text-align: left; margin-inline: 0; margin-bottom: 24px; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature { display: grid; gap: 28px; align-items: center; padding: 32px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature p { color: var(--muted); font-size: 1.05rem; }
.feature img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 48px 0; }
  .feature:nth-of-type(even) > div { order: 2; }
}

/* Planos */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .8rem; font-weight: 600; padding: .25em .9em; border-radius: 999px; white-space: nowrap; }
.plan-desc { color: var(--muted); }
.price { margin: .4em 0 1.2em; color: var(--muted); }
.price strong { font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--success); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.5 5.6l-4.2 4.6-2.8-2.6 1-1.1 1.7 1.6 3.2-3.5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.5 5.6l-4.2 4.6-2.8-2.6 1-1.1 1.7 1.6 3.2-3.5z'/%3E%3C/svg%3E") center/contain no-repeat; }

.addons { margin-top: 40px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.addons dl { margin: 0; }
.addons dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.addons dt small { display: block; color: var(--muted); }
.addons dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* Contato */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.contact-info { display: flex; flex-direction: column; gap: 10px; font-style: normal; color: var(--muted); }
.contact-info strong { color: var(--text); }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: .65em .85em;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.6em; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-row p { margin: 0; }
.footer-credit a { color: inherit; }

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