:root {
  --ink: #171b24;
  --muted: #687383;
  --line: #dbe2ec;
  --paper: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --teal: #2d9da8;
  --teal-dark: #176a76;
  --coral: #e7745f;
  --gold: #dcc47c;
  --navy: #1c3c9c;
  --midnight: #1b1c1f;
  --green-soft: #e5f6f4;
  --blue-soft: #edf3ff;
  --gold-soft: #fff7df;
  --coral-soft: #fdebe5;
  --shadow: 0 24px 70px rgba(17, 22, 36, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(13, 18, 30, 0.88) 0%, rgba(28, 60, 156, 0.7) 44%, rgba(27, 28, 31, 0.96) 100%),
    url("./assets/carrd-bg.jpg") center top / cover fixed no-repeat,
    var(--midnight);
  color: var(--ink);
  font-family:
    Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(15, 19, 29, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand img {
  display: block;
  width: 174px;
  height: auto;
}

.brand-raster {
  min-width: 190px;
}

.brand-raster img {
  width: auto;
  object-fit: contain;
  border-radius: 8px;
}

.brand-raster-full img {
  max-height: 82px;
}

.brand-raster-1 {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.brand-raster-1 img {
  max-height: 82px;
}

.brand-raster-2 img {
  max-height: 82px;
  box-shadow: 0 0 28px rgba(45, 157, 168, 0.18);
}

.brand-raster-clean {
  min-width: 230px;
}

.brand-raster-2-clean img {
  max-height: 54px;
  box-shadow: 0 0 28px rgba(45, 157, 168, 0.18);
}

.topnav {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
}

.topnav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.primary-button {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(28, 60, 156, 0.24);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.product-hero {
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100vh - 76px));
  padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 42px) clamp(24px, 4vw, 46px);
}

.hero-copy {
  max-width: 780px;
  padding: clamp(12px, 2.5vw, 26px) 0;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: var(--gold);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 11px;
  font-size: 0.86rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
  font-family:
    "Source Sans 3", Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.03rem;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}

.hero-copy h1,
.hero-copy .lead {
  color: #fff;
}

.hero-copy .lead {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.hero-actions,
.form-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.hero-button {
  min-width: min(100%, 240px);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.hero-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.workspace {
  display: grid;
  grid-template-columns: 250px minmax(340px, 0.86fr) minmax(420px, 1.14fr);
  gap: 16px;
  padding: 34px clamp(16px, 4vw, 42px) 42px;
  background: linear-gradient(180deg, rgba(238, 242, 246, 0.98) 0%, #eef2f6 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  scroll-margin-top: 96px;
}

.sidebar,
.analysis-panel,
.result-panel,
.history-section,
.pricing-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(18, 27, 42, 0.08);
}

.sidebar {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.metric-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.metric-tile span {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-tile strong {
  font-size: 1.12rem;
}

.side-panel {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--navy), var(--midnight));
  color: #fff;
}

.side-panel h2 {
  font-size: 1rem;
}

.side-panel ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #dce8e4;
  line-height: 1.8;
}

.analysis-panel,
.result-panel {
  padding: clamp(16px, 2.4vw, 26px);
}

.analysis-panel {
  align-self: start;
}

.result-panel {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  height: min(680px, calc(100vh - 116px));
  min-height: 560px;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  scroll-margin-top: 96px;
}

.panel-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #624e11;
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill.is-loading {
  background: var(--blue-soft);
  color: var(--navy);
}

.runtime-notice {
  margin: -4px 0 18px;
  border: 1px solid #ecd8b1;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #49381a;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.pilot-notice {
  margin: -4px 0 18px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #23415f;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.pilot-notice.is-empty {
  border-color: #ecd8b1;
  background: var(--gold-soft);
  color: #624e11;
}

.pilot-note {
  display: grid;
  gap: 5px;
  margin: -4px 0 18px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #23415f;
  padding: 12px 14px;
  line-height: 1.45;
}

.pilot-note strong {
  color: var(--navy);
}

.pilot-note span {
  font-size: 0.92rem;
  font-weight: 700;
}

.analysis-panel .ghost-button,
.history-section .ghost-button,
.pricing-section .ghost-button,
.report-actions .ghost-button,
.form-actions .ghost-button {
  border-color: var(--line);
  color: var(--ink);
}

.analysis-panel .ghost-button:hover,
.history-section .ghost-button:hover,
.pricing-section .ghost-button:hover,
.report-actions .ghost-button:hover,
.form-actions .ghost-button:hover {
  background: var(--surface-2);
}

.analysis-form {
  display: grid;
  gap: 16px;
}

.pilot-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 124px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 111, 100, 0.15);
}

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

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

.market-inputs {
  display: grid;
  gap: 12px;
  border: 1px solid #ecd8b1;
  border-radius: 8px;
  background: #fff7ea;
  padding: 14px;
}

.mini-heading {
  margin: 0;
  color: #49381a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-box {
  display: grid;
  gap: 8px;
}

.upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-box label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border: 1px dashed #a6b7b2;
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.upload-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.upload-box small {
  color: var(--muted);
}

.score-ring {
  display: grid;
  place-items: center;
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 56%, transparent 57%),
    conic-gradient(var(--coral) 0deg, #e8eeeb 0deg);
  color: var(--teal-dark);
  font-weight: 900;
}

.score-ring span {
  display: block;
  margin-top: 13px;
  font-size: 1.6rem;
  line-height: 1;
}

.score-ring small {
  margin-top: -15px;
  color: var(--muted);
}

.empty-state {
  display: grid;
  place-content: center;
  min-height: 360px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed #c9d8d4;
  text-align: center;
  padding: 28px;
}

.empty-state p {
  max-width: 440px;
  color: var(--muted);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.report-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
}

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

.summary-band div,
.breakdown-item {
  min-height: 82px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  padding: 14px;
}

.summary-band span,
.breakdown-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-band strong {
  font-size: 1rem;
}

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

.breakdown-item {
  display: grid;
  gap: 8px;
}

.breakdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: #e7eeeb;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--value);
  background: var(--teal);
}

.recommendations {
  border-radius: 8px;
  background: #fff7ea;
  border: 1px solid #ecd8b1;
  padding: 16px;
}

.recommendations ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #49381a;
  line-height: 1.55;
}

.report-document {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgba(28, 60, 156, 0.42) transparent;
}

.report-document::-webkit-scrollbar {
  width: 8px;
}

.report-document::-webkit-scrollbar-track {
  background: transparent;
}

.report-document::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(28, 60, 156, 0.32);
}

.report-actions {
  flex: 0 0 auto;
  padding-top: 4px;
}

.report-separator {
  color: #9aa7a3;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.quick-read,
.report-cover,
.report-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 18px;
}

.quick-read {
  background: var(--green-soft);
  border-color: #dbece6;
}

.quick-read h3,
.report-section h3 {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.quick-read p,
.report-section p {
  color: var(--ink);
  line-height: 1.62;
}

.quick-read p:last-child,
.report-section p:last-child {
  margin-bottom: 0;
}

.report-cover {
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, var(--ink), var(--navy));
  color: #fff;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-brand img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 76px;
  object-fit: contain;
}

.report-brand div {
  display: grid;
  gap: 3px;
}

.report-brand span {
  color: #b8d8d0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-brand strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

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

.client-strip div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.client-strip span {
  display: block;
  margin-bottom: 4px;
  color: #b8d8d0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-strip strong {
  color: #fff;
  line-height: 1.25;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 9px;
  color: #d9e8e4;
  font-size: 0.76rem;
  font-weight: 800;
}

.report-kicker {
  margin: 0;
  color: #b8d8d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-score-line {
  display: grid;
  gap: 6px;
}

.report-score-line strong {
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.1;
}

.report-score-line span {
  color: #d9e8e4;
  font-weight: 700;
}

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

.executive-grid div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
}

.executive-grid span,
.fact-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.executive-grid span {
  color: #b8d8d0;
}

.executive-grid strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.28;
}

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

.fact-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.fact-card strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.fact-card small {
  color: var(--muted);
  font-weight: 700;
}

.report-section-title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.report-section-title h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.report-section-title span {
  color: var(--coral);
}

.score-meter {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e7eeeb;
  overflow: hidden;
}

.score-meter i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.report-section h4 {
  margin: 16px 0 10px;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.advisor-section ul,
.advisor-section ol {
  margin-bottom: 4px;
}

.advisor-section li {
  padding-left: 2px;
}

.advisor-cover .report-kicker {
  color: #d9e8e4;
}

.report-section ul,
.report-section ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.55;
}

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

.report-columns > div {
  min-width: 0;
}

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

.variable-card {
  display: grid;
  gap: 6px;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.variable-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.variable-card strong {
  line-height: 1.25;
}

.variable-card em {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--blue-soft);
  color: #23415f;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.variable-card em.forte,
.variable-card em.valoriza,
.variable-card em.informado {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.variable-card em.penaliza,
.variable-card em.em-falta,
.variable-card em.acima-da-faixa-provavel {
  background: #fde8df;
  color: #923923;
}

.variable-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.market-value-section {
  background: #f8fbff;
  border-color: #d8e4f2;
}

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

.value-summary div {
  min-height: 92px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.value-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.value-summary strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.value-scale {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.value-scale i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.explanation-box {
  margin-top: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.explanation-box p {
  color: var(--ink);
}

.suggestion-box {
  margin-top: 14px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid #ecd8b1;
  padding: 14px;
}

.suggestion-box p,
.suggestion-box li {
  color: #49381a;
}

.action-grid {
  display: grid;
  gap: 10px;
}

.action-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.action-card span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.action-card p {
  margin: 0;
}

.conclusion-section {
  background: #f8fbff;
  border-color: #d8e4f2;
}

.report-footer {
  border-color: #d8e4f2;
  background: #f8fbff;
}

.report-footer strong {
  display: block;
  margin-bottom: 8px;
}

.report-footer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.history-section,
.pricing-section {
  margin: 0 clamp(16px, 4vw, 42px) 38px;
  padding: clamp(16px, 2.4vw, 26px);
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 clamp(16px, 4vw, 42px) 38px;
  padding: clamp(16px, 2.4vw, 26px);
}

.trust-section article {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
}

.trust-section span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 900;
}

.trust-section h3 {
  margin: 0 0 8px;
}

.trust-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.trust-section a {
  color: var(--navy);
  font-weight: 800;
}

.legal-section {
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 0 clamp(16px, 4vw, 42px) 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 22px;
  font-weight: 800;
}

.site-footer a {
  color: #fff;
}

.history-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px 90px 150px;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-head {
  background: #f5faf8;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.history-empty {
  padding: 18px 14px;
  color: var(--muted);
}

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

.pricing-card {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfb;
}

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.pricing-card strong {
  display: block;
  margin: 10px 0;
  font-size: 1.35rem;
}

.pricing-card p {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card button {
  width: 100%;
  margin-top: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 320px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .result-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: 760px;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    position: static;
  }

  .topbar > .ghost-button {
    display: none;
  }

  .topnav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .product-hero {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero-copy {
    padding: 12px 0;
  }

  .hero-copy .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .analysis-panel {
    order: 1;
  }

  .result-panel {
    order: 2;
    min-height: 560px;
    max-height: 78vh;
  }

  .sidebar {
    order: 3;
  }

  .form-grid,
  .summary-band,
  .pilot-fields,
  .trust-section,
  .report-columns,
  .variable-grid,
  .value-summary,
  .executive-grid,
  .fact-grid,
  .client-strip,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .history-head {
    display: none;
  }

  .report-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-brand img {
    max-width: 160px;
    max-height: 64px;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .product-hero,
  .sidebar,
  .analysis-panel,
  .history-section,
  .pricing-section,
  .report-actions,
  .toast {
    display: none !important;
  }

  .workspace {
    display: block;
    padding: 0;
  }

  .result-panel {
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .report-content,
  .report-document {
    display: block;
    overflow: visible;
    padding: 0;
  }

  .report-section,
  .quick-read,
  .report-cover,
  .report-footer {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 10px;
  }

  .report-separator {
    margin: 8px 0;
  }

  .executive-grid,
  .fact-grid,
  .client-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-card,
  .fact-card,
  .executive-grid div {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-brand img {
    max-width: 150px;
    max-height: 60px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .score-meter i {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
