/* Solhys — site institucional
   Layout: coluna de até 1280px; seções escuras em sequência, com uma faixa verde de marca no meio da página. */

:root {
  color-scheme: dark;
  --bg: #0A0E0C;
  --bg-2: #0D1210;
  --bg-3: #080B0A;
  --surface: #101512;
  --surface-2: #141A17;
  --chip: #161D19;
  --queue: #1E2622;
  --dot: #2A332E;
  --line-soft: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.28);
  --fg: #F2F6F4;
  --fg-2: #C3CBC6;
  --muted: #A7B0AB;
  --subtle: #8F9A94;
  --faint: #56605A;
  --green: #00E676;
  --green-hover: #4BF09A;
  --green-2: #31C97D;
  --green-soft: rgba(0, 230, 118, 0.12);
  --green-glow: rgba(0, 230, 118, 0.14);
  --band: #0C3A2B;
  --band-card: rgba(0, 0, 0, 0.16);
  --band-line: rgba(255, 255, 255, 0.12);
  --band-fg: #FFFFFF;
  --band-text: #C4DCD2;
  --band-muted: #A9C9BC;
  --band-label: #7CF5B5;
  --danger: #F28B82;
  --danger-text: #F7A39C;
  --header-bg: rgba(10, 14, 12, 0.86);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
section[id] { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Tipografia comum */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.h2-xl { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.dim { color: var(--subtle); }
.head { display: flex; flex-direction: column; gap: 20px; }
.head-880 { max-width: 880px; }
.head-1000 { max-width: 1000px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 500 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--green); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--line-3); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg); border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.logo svg { width: 30px; height: 30px; display: block; }
.logo span { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line-soft); }
.mobile-menu .wrap { padding-bottom: 24px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; color: var(--fg); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 16px; width: 100%; border-bottom: 0; }
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { height: 64px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-hex { position: absolute; right: -180px; top: -140px; width: 980px; height: 980px; max-width: none; pointer-events: none; }
.hero-glow { position: absolute; right: 8%; top: 38%; width: 720px; height: 520px; max-width: 100%; pointer-events: none; background: radial-gradient(closest-side, var(--green-glow), transparent); }
.hero-inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px);
}
.hero-copy { flex: 1 1 420px; max-width: 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(0, 230, 118, 0.04); } }
}
.hero h1 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.underline { position: relative; white-space: nowrap; }
.underline::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 4px; border-radius: 4px; background: var(--green); }
.lede { margin: 0; max-width: 500px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
/* Hero das páginas de plataforma */
.hero-copy-wide { max-width: 760px; }
.hero-tag { margin: -12px 0 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; color: var(--fg-2); text-wrap: balance; }
.hero-copy-wide .lede { max-width: 620px; }
.cards-3.cards-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards-3.cards-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-3.cards-features { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ticks {
  list-style: none; margin: 8px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 13px; height: 13px; color: var(--green); }

/* Painel do Paralegal (ilustração) */
.app {
  flex: 1 1 560px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: 0 48px 120px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden;
}
.app-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.app-dots { position: absolute; left: 16px; display: flex; gap: 6px; }
.app-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.app-url { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 6px; background: var(--chip); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.app-url b { font-weight: 400; color: var(--fg); }
.app-url i { font-style: normal; color: var(--faint); }
.app-body { display: flex; }
.app-side { width: 168px; flex-shrink: 0; border-right: 1px solid var(--line-soft); padding: 16px 10px; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.app-side li { padding: 7px 10px; border-radius: 6px; color: var(--muted); }
.app-side li.on { background: var(--green-soft); color: var(--green); font-weight: 500; }
.app-main { flex: 1; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.app-greet { margin: 0; font-size: 15px; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); }
.kpi-value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi-note { font-size: 12px; color: var(--green-2); }
.feed { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.feed-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.feed-row:last-child { border-bottom: 0; }
.feed-row > span:first-child { min-width: 0; }
.feed-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.feed-time { font-size: 12px; color: var(--subtle); }
.badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.badge-done { background: var(--green-soft); color: var(--green); }
.badge-queue { background: var(--queue); color: var(--fg-2); }
@media (max-width: 640px) {
  .app-side, .app-dots, .feed-time { display: none; }
  .app-main { padding: 14px; gap: 12px; }
  .app-greet { font-size: 14px; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px; gap: 2px; }
  .kpi-label { font-size: 9px; letter-spacing: 0.06em; }
  .kpi-value { font-size: 19px; }
  .kpi-note { font-size: 10px; }
  .feed { font-size: 12px; }
  .feed-row { padding: 10px 12px; }
}

/* Seções */
.section { padding-block: var(--section); border-top: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-2); }
.section-flush { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }

.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
a.card:hover { border-color: var(--line-3); background: var(--surface-2); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.num { font-family: var(--mono); font-size: 13px; color: var(--green); }
.card-top svg { width: 18px; height: 18px; color: var(--subtle); transition: color .15s ease, transform .15s ease; }
a.card:hover .card-top svg { color: var(--green); transform: translate(2px, -2px); }
.card h3 { margin: clamp(8px, 1.6vw, 24px) 0 0; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; }
.card p { margin: 0; max-width: 520px; color: var(--muted); text-wrap: pretty; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 4vw, 48px); }
.step { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.step p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--fg-2); text-wrap: pretty; }

/* Faixa verde */
.band { position: relative; overflow: hidden; padding-block: var(--section); background: var(--band); }
.band-hex { position: absolute; left: -220px; bottom: -320px; width: 760px; height: 760px; max-width: none; pointer-events: none; }
.band .wrap { position: relative; }
.band .eyebrow { color: var(--band-label); }
.band .h2 { color: var(--band-fg); }
.band .h2 span { display: block; }
.band .h2 .soft { color: var(--band-muted); }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.promise { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--band-line); border-radius: 14px; background: var(--band-card); display: flex; flex-direction: column; gap: 14px; }
.promise svg { width: 36px; height: 36px; color: var(--band-fg); }
.promise-label { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-label); }
.promise h3 { margin: 0; font-size: clamp(20px, 1.7vw, 22px); letter-spacing: -0.02em; font-weight: 600; color: var(--band-fg); }
.promise p { margin: 0; color: var(--band-text); text-wrap: pretty; }

/* Plataformas */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.split-head .head { max-width: 760px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--green); text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.text-link:hover svg { transform: translateX(3px); }
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.product { min-height: 260px; padding: 28px; gap: 14px; }
.product-text { display: contents; }
.product-code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--subtle); }
.product-name { margin-top: 20px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.product-desc { font-size: 15px; line-height: 1.55; color: var(--muted); }
.product-go { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--green); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.product-go svg { width: 15px; height: 15px; }
a.product:hover .product-go { background: var(--green); color: var(--bg); border-color: var(--green); }
@media (max-width: 640px) {
  .product { min-height: 0; flex-direction: row; align-items: center; padding: 20px; gap: 16px; }
  .product-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .product-name { margin-top: 0; font-size: 19px; }
  .product-desc { font-size: 14px; }
  .product-go { margin-top: 0; align-self: center; width: 32px; height: 32px; flex-shrink: 0; }
}

/* Perguntas */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-grid .head { max-width: 460px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; min-height: 72px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border: 0; background: transparent; color: var(--fg); font: 500 clamp(16px, 1.3vw, 18px)/1.45 var(--font); text-align: left; cursor: pointer;
}
.faq-q:hover { color: var(--green); }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; border-radius: 2px; background: var(--subtle); transition: transform .2s ease, background-color .2s ease; }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after { background: var(--green); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { margin: 0; padding: 0 48px 24px 0; color: var(--muted); text-wrap: pretty; }
@media (max-width: 640px) { .faq-a { padding-right: 0; } }

/* Por que Solhys + contato */
.contact { position: relative; overflow: hidden; }
.contact-glow { position: absolute; left: -200px; top: -120px; width: 760px; height: 560px; max-width: 120%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 230, 118, 0.09), transparent); }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(36px, 5vw, 64px); align-items: start; }
.why { display: flex; flex-direction: column; gap: 24px; }
.why .h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -0.035em; }
.why p { margin: 0; max-width: 540px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--fg); }

.form { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: clamp(22px, 3vw, 40px); }
.form-body { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--fg);
  font: 16px/1.5 var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; font-size: 14px; color: var(--danger-text); }
.form-body .btn { width: 100%; }
.form-alt { margin: 0; text-align: center; font-size: 14px; color: var(--subtle); }
.form-alt a { color: var(--fg); text-underline-offset: 3px; }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px; outline: none; }
.done svg { width: 44px; height: 44px; color: var(--fg); }
.done h3 { margin: 8px 0 0; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; font-weight: 600; }
.done p { margin: 0; color: var(--muted); }
.link-btn { padding: 0; min-height: 44px; border: 0; background: none; color: var(--subtle); font: 14px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--fg); }

/* Rodapé */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-3); }
.footer-inner { padding-block: 64px max(36px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand p { margin: 0; font-size: 15px; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--subtle); }
@media (max-width: 640px) {
  .footer-inner { padding-block: 48px max(32px, env(safe-area-inset-bottom, 0px)); gap: 36px; }
  .footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; font-size: 14px; }
  .footer-bottom { flex-direction: column; }
}

/* Página 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 96px; }
.notfound .code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--green); }
.notfound h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; }
.notfound p { margin: 0; max-width: 480px; color: var(--muted); }
