:root {
  --ink: #203142;
  --muted: #64707d;
  --line: #ddd6cb;
  --paper: #f7f2ea;
  --surface: #ffffff;
  --soft: #eef5f1;
  --brand: #203142;
  --brand-dark: #162433;
  --brand-accent: #2aae8d;
  --gold: #e85d42;
  --blue: #2aae8d;
  --danger: #8f3f35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(247, 242, 234, .94);
  border-bottom: 1px solid rgba(32, 49, 66, .1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}

.brand-logo {
  display: block;
  width: clamp(226px, 22vw, 282px);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a,
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 700;
}

.nav a { color: var(--muted); }
.nav a.is-active { color: var(--ink); background: var(--soft); }
.nav-cta, .button.primary { color: #fff; background: var(--brand); }
.button.secondary { color: var(--brand); background: var(--soft); }
.button.ghost { color: var(--brand-dark); border: 1px solid var(--line); background: #fff; }

.fixed-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 10px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.mia-chat {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 35;
  display: none;
  width: min(380px, calc(100vw - 28px));
  max-height: min(680px, calc(100svh - 112px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(32, 49, 66, .18);
}

.mia-chat.is-open { display: grid; grid-template-rows: auto minmax(180px, 1fr) auto; }

.mia-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #fff;
  background: var(--brand);
}

.mia-chat-head strong,
.mia-chat-head span {
  display: block;
}

.mia-chat-head span {
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 750;
}

.mia-chat-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.mia-chat-log {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  background: var(--soft);
}

.chat-message {
  max-width: 88%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.42;
  font-size: 14px;
}

.chat-message.is-ai {
  justify-self: start;
  color: var(--ink);
  background: #fff;
}

.chat-message.is-user {
  justify-self: end;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.mia-chat-form {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.mia-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.mia-chat-compose textarea {
  min-height: 40px;
  max-height: 120px;
  resize: vertical;
  font-size: 14px;
}

.mia-chat-compose .button {
  min-height: 40px;
  padding: 0 16px;
}

.mia-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mia-chat-actions span {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.mia-chat-actions button {
  min-height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(430px, calc(100svh - 150px), 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 36, 51, .92) 0%, rgba(32, 49, 66, .74) 43%, rgba(32, 49, 66, .18) 78%),
    url("/assets/origem-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: min(8vw, 110px);
  top: 18%;
  width: min(28vw, 330px);
  aspect-ratio: 1;
  background: url("/assets/brand/origem-logo-icon.svg?v=brand-20260709d") center / contain no-repeat;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,.28));
  opacity: .9;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 46px 0 34px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3, p { letter-spacing: 0; }

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .96;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1;
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-proof span {
  min-height: 34px;
  padding: 8px 12px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.band {
  padding: 78px 32px;
}

.band.alt { background: #fff; }

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); }
.grid.sidebar { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
.grid.admin-grid { grid-template-columns: 1fr 1fr; }

.admin-wide { grid-column: 1 / -1; }

.card {
  min-height: 160px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }

.category-card {
  display: grid;
  gap: 10px;
  min-height: 148px;
}

.category-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.simulator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel.dark {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.panel.dark p { color: rgba(255,255,255,.78); }
.panel.dark .check-list li { color: rgba(255,255,255,.78); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  min-height: 112px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

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

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: none;
}

.step.is-current {
  display: grid;
  gap: 18px;
}

.step-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.step-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}

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

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice span,
.quick-value {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.choice small {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  opacity: .75;
}

.choice input:checked + span,
.quick-value.is-selected {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.quick-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-value {
  min-width: 112px;
  min-height: 44px;
  border-radius: 6px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }

label {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 120px;
  padding: 12px 13px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.check input { width: 18px; min-height: 18px; }

.result {
  position: sticky;
  top: 92px;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.result p { color: rgba(255,255,255,.78); }

.score {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 18px 0;
  border: 8px solid rgba(232, 93, 66, .28);
  border-top-color: var(--gold);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.result-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.result-list div {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.result-list strong { display: block; color: var(--gold); }

.notice {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.comparison article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.timeline {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.segment-anchor {
  scroll-margin-top: 110px;
}

.segment-faq {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.segment-faq details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.segment-faq summary {
  cursor: pointer;
  font-weight: 850;
}

.segment-faq p {
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 850;
}

.faq p { color: var(--muted); line-height: 1.55; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.admin-section {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  overflow-x: auto;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(160px, .9fr) minmax(170px, .9fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: end;
}

.admin-filter-actions .admin-actions {
  min-height: 46px;
}

.conversation-log {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.conversation-bubble {
  max-width: 78%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.conversation-bubble.is-ai {
  border-color: rgba(232, 93, 66, .44);
}

.conversation-bubble.is-agent,
.conversation-bubble.is-system {
  justify-self: center;
  max-width: 92%;
  background: var(--soft);
}

.conversation-bubble.is-contact {
  justify-self: end;
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.conversation-bubble span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  opacity: .72;
}

.conversation-bubble p {
  margin: 0;
  line-height: 1.48;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-item span { color: var(--gold); font-weight: 800; }

.article-body {
  color: var(--muted);
  line-height: 1.65;
}

.inline-form {
  display: contents;
}

.compact-input {
  min-width: 150px;
  max-width: 220px;
}

.danger-text { color: var(--danger); }

.footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 28px;
  padding: 36px 32px;
  color: rgba(255,255,255,.76);
  background: var(--brand-dark);
}

.footer p { margin: 8px 0 0; line-height: 1.45; }
.footer strong { color: #fff; }
.fineprint { font-size: 13px; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; padding: 0 18px; }
  .brand { min-width: 202px; }
  .brand-logo { width: min(226px, 66vw); }
  .nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; padding-bottom: 12px; }
  .nav-cta { display: none; }
  .hero { min-height: clamp(430px, calc(100svh - 160px), 620px); }
  .hero::before { background: linear-gradient(180deg, rgba(22, 36, 51, .88), rgba(32, 49, 66, .58)), url("/assets/origem-hero.png") center / cover no-repeat; }
  .hero::after { right: -70px; top: 18%; width: 250px; opacity: .22; }
  .hero-content { padding: 34px 0 24px; }
  h1 { font-size: clamp(36px, 10vw, 58px); }
  .section-head, .footer { display: block; }
  .grid.cols-3, .grid.cols-4, .grid.two, .grid.sidebar, .grid.admin-grid, .simulator, .form-grid, .choice-grid, .comparison, .kpi-row, .admin-filter-bar, .article-list-cards, .article-layout { grid-template-columns: 1fr; }
  .article-side-nav { position: static; }
  .timeline article { grid-template-columns: 1fr; }
  .band { padding: 54px 20px; }
  .result { position: static; }
  .fixed-cta { left: 12px; right: 12px; }
  .fixed-cta .button { flex: 1; }
  .mia-chat { left: 12px; right: 12px; bottom: 88px; width: auto; max-height: calc(100svh - 112px); }
  .mia-chat-form .form-grid { grid-template-columns: 1fr; }
}


.article-list-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  display: grid;
  gap: 12px;
}

.article-card h2 {
  margin-bottom: 0;
}

.article-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.article-hero .eyebrow a {
  color: inherit;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.article-detail {
  max-width: 780px;
}

.article-detail h2 {
  margin: 34px 0 12px;
  font-size: 30px;
  line-height: 1.14;
}

.article-detail h2:first-child {
  margin-top: 0;
}

.article-detail h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.article-detail p,
.article-detail li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.article-detail ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 22px;
  padding-left: 22px;
}

.article-side-nav {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.article-aside h2,
.article-side-nav h2 {
  font-size: 22px;
}


.trust-strip {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.proof-grid { margin-top: 18px; }

.proof-card span,
.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  font-weight: 900;
  background: var(--accent);
  border-radius: 50%;
}

.credibility-panel .fineprint {
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 18px;
  padding-top: 14px;
}

.metric-grid .metric-card {
  gap: 10px;
  min-height: 178px;
}

.metric-card strong {
  display: block;
  color: var(--brand);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.source-band .source-list {
  display: grid;
  gap: 10px;
}

.source-list p {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.final-cta {
  color: #fff;
  background: var(--brand-dark);
}

.final-cta .eyebrow,
.final-cta h2,
.final-cta .lead { color: #fff; }

.founders-grid article,
.role-grid article { min-height: 260px; }

.process-grid .card h3 { margin-top: 0; }

.segment-note {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 16px 18px;
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment-note span {
  color: var(--muted);
  line-height: 1.48;
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: 1fr; }
  .metric-grid .metric-card { min-height: auto; }
}
