:root {
  --bg: #f3f7f5;
  --surface: #ffffff;
  --ink: #10231d;
  --muted: #64756f;
  --line: #d8e3df;
  --green: #087552;
  --green-dark: #043c2f;
  --cyan: #0d8ea1;
  --soft: #e5f1ec;
  --red: #b73535;
  --yellow: #9f7308;
  --shadow: 0 18px 50px rgba(6, 34, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 142, 161, 0.11), transparent 28%),
    radial-gradient(circle at top right, rgba(8, 117, 82, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdfc 0%, var(--bg) 30%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.6;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

code {
  border-radius: 6px;
  background: #eaf3ef;
  padding: 2px 6px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 227, 223, 0.9);
  background: rgba(251, 253, 252, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.hero-actions,
.ops-actions,
.risk-row,
.report-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  font-size: 13px;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.nav-cta {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--green-dark);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 56px);
  min-height: calc(100vh - 70px);
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  border: 1px solid rgba(11, 143, 98, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 12px 28px rgba(4, 60, 47, 0.22);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.file-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.full {
  width: 100%;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.hero-proof div,
.calculator-panel,
.report-card,
.lead-form,
.plan-grid article,
.ops {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero-proof div {
  padding: 14px;
}

.hero-proof dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 36px rgba(24, 48, 39, 0.08);
}

.signal-strip div {
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.signal-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.signal-strip span {
  color: var(--muted);
  font-size: 13px;
}

.calculator-panel {
  align-self: start;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 42px;
  padding: 0 11px;
}

textarea {
  min-height: 108px;
  padding: 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 143, 98, 0.12);
}

.field-with-search {
  display: grid;
  gap: 6px;
}

.visually-hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.search-row input {
  height: 38px;
}

.compact-button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.compact-note {
  min-height: 18px;
  margin: 0;
}

#temp-link-note {
  overflow-wrap: anywhere;
}

.result-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.risk-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e2f5ed;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.risk-badge.warning {
  background: #fff4d8;
  color: #875f00;
}

.risk-badge.danger {
  background: #ffe5e5;
  color: #a52d2d;
}

.decision-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.decision-hero h3 {
  margin: 10px 0 6px;
  font-size: 28px;
}

.decision-hero p {
  margin: 0;
  color: var(--muted);
}

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

.decision-action span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decision-action strong {
  color: var(--green-dark);
  line-height: 1.5;
}

.metric-grid,
.report-metrics,
.plan-grid {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric-grid div {
  border-radius: 8px;
  background: #f0f8f4;
  padding: 12px;
}

.metric-grid span,
.report-metrics dt {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.2;
}

.primary-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.primary-metrics strong {
  font-size: clamp(26px, 4vw, 36px);
}

.secondary-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.secondary-metrics div {
  background: #fbfefd;
}

.highlight-metric {
  background: #e2f5ed !important;
}

.highlight-metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cost-breakdown-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.cost-breakdown-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.cost-breakdown-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cost-breakdown-card strong {
  color: var(--green-dark);
}

.cost-breakdown-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.diagnosis-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}

.diagnosis-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.diagnosis-card strong {
  color: var(--green-dark);
}

.diagnosis-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.bulk-action-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cost-bars {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.cost-row {
  display: grid;
  gap: 5px;
}

.cost-row div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cost-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f1;
}

.cost-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.action-plan {
  margin-top: 14px;
}

.action-plan h3 {
  margin-bottom: 10px;
}

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

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

.action-grid span {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #f0f8f4;
  padding: 4px 8px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.action-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.bulk-diagnosis {
  margin: 12px 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.insight-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 14px;
}

.insight-heading,
.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(5, auto);
  gap: 10px;
  align-items: center;
}

.insight-heading {
  margin-bottom: 8px;
}

.compact-search {
  margin-bottom: 10px;
}

.insight-heading span {
  color: var(--muted);
  font-size: 13px;
}

.insight-heading strong {
  grid-column: 2 / -1;
  justify-self: end;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.support-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 12px 14px;
}

.support-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
}

.support-card summary::-webkit-details-marker {
  display: none;
}

.support-card summary span {
  color: var(--muted);
  font-size: 13px;
}

.support-card > p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mini-table {
  display: grid;
  gap: 8px;
}

.mini-row {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 13px;
}

.mini-row strong {
  white-space: nowrap;
}

.mini-remove {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.mini-remove:hover {
  border-color: var(--red);
  color: var(--red);
}

.market-recommendation {
  border-radius: 999px;
  padding: 4px 9px;
  background: #e2f5ed;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.market-recommendation.watch {
  background: #fff4d8;
  color: #875f00;
}

.market-recommendation.bad {
  background: #ffe5e5;
  color: #a52d2d;
}

.quota-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 28, 22, 0.48);
}

.quota-modal[hidden] {
  display: none;
}

.quota-modal-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.quota-modal-card h2 {
  margin-bottom: 8px;
}

.quota-modal-card p:not(.eyebrow) {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.compliance-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.advice-box ul,
.check-list {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: clamp(36px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.bulk-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  gap: 18px;
  align-items: start;
}

.bulk-input,
.bulk-summary,
.price-card,
.launch-card,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bulk-input,
.bulk-summary,
.launch-card {
  padding: 20px;
}

.bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.compact-metrics {
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

td {
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.risk-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.risk-chip.good {
  background: #e2f5ed;
  color: var(--green-dark);
}

.risk-chip.watch {
  background: #fff4d8;
  color: #875f00;
}

.risk-chip.bad {
  background: #ffe5e5;
  color: #a52d2d;
}

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

.deliverables {
  padding-top: clamp(42px, 7vw, 92px);
}

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

.deliverable-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 10px 32px rgba(24, 48, 39, 0.06);
}

.deliverable-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.deliverable-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

.trust-grid article,
.faq-grid details,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-grid article,
.faq-grid details {
  padding: 20px;
}

.trust-grid p,
.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.faq-grid {
  max-width: 920px;
}

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

.faq-grid details p {
  margin-top: 10px;
}

.report-card {
  padding: 18px;
}

.report-topline {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.status-dot.red {
  background: var(--red);
}

.status-dot.yellow {
  background: var(--yellow);
}

.status-dot.green {
  background: var(--green);
}

.report-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
}

.report-metrics dd {
  margin: 0;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.split p {
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  color: var(--ink);
  font-weight: 700;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.danger-zone {
  border-color: rgba(201, 61, 61, 0.28);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-muted {
  color: var(--muted);
  font-size: 12px;
}

.compact-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-link-note a,
.report-status-card a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.plan-grid article {
  padding: 20px;
}

.step-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 900;
}

.plan-grid p,
.report-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.price-card {
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(11, 143, 98, 0.46);
  background: linear-gradient(180deg, #ffffff 0%, #f1fbf6 100%);
  box-shadow: var(--shadow);
}

.plan-name {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin: 10px 0 16px;
  font-size: 34px;
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.launch-card {
  max-width: 920px;
}

.launch-card p {
  color: var(--ink);
  font-size: 18px;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(36px, 7vw, 86px) clamp(18px, 4vw, 56px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ops {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 4vw, 56px) clamp(36px, 7vw, 86px);
  padding: 22px;
}

.ops h2 {
  font-size: 28px;
}

.ops p {
  margin-bottom: 0;
  color: var(--muted);
}

.ops-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#lead-count {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.full-footer {
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover,
.legal-note a {
  color: var(--green-dark);
}

.legal-page {
  padding: clamp(30px, 6vw, 80px) clamp(18px, 4vw, 56px);
}

.report-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.report-hero h1 {
  margin-bottom: 14px;
}

.report-hero p {
  max-width: 760px;
  color: var(--muted);
}

.report-brand-card,
.report-shell,
.report-document,
.report-advice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.report-brand-card {
  padding: 20px;
  box-shadow: var(--shadow);
}

.report-brand-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-brand-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.report-shell {
  padding: clamp(18px, 4vw, 32px);
}

.legal-card {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 24px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-date {
  color: var(--green-dark);
  font-weight: 800;
}

.legal-note a {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.case-card,
.report-summary-card,
.contact-methods article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.case-card {
  padding: 20px;
}

.case-card h2 {
  margin-top: 14px;
  font-size: 24px;
}

.case-card p,
.case-card dd,
.contact-methods span {
  color: var(--muted);
}

.case-card dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.case-card dt {
  font-size: 12px;
  font-weight: 900;
  color: var(--green-dark);
}

.case-card dd {
  margin: 0;
}

.report-summary-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 18px;
}

.report-summary-card div {
  background: #fff;
  padding: 18px;
}

.report-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.report-table {
  background: #fff;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-methods article {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.report-lookup-card {
  display: grid;
  gap: 18px;
}

.report-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.report-lookup-form label {
  flex: 1 1 320px;
}

.report-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 18px;
}

.report-document {
  margin-top: 22px;
  padding: clamp(18px, 4vw, 34px);
}

.report-document-header,
.report-section-title,
.report-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-document-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-document-header h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
}

.report-actions-print {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.report-section {
  margin-top: 24px;
}

.report-section h3 {
  font-size: 20px;
}

.report-conclusion {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f1fbf6;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.report-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.billing-overview {
  margin-bottom: 18px;
}

.admin-quote-form {
  margin-bottom: 22px;
}

.two-column-admin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.two-column-admin > div {
  min-width: 0;
}

.company-logo-button {
  width: fit-content;
}

.company-logo-preview {
  display: flex;
  min-height: 54px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 12px;
}

.company-logo-preview img {
  max-width: 180px;
  max-height: 54px;
  object-fit: contain;
}

.report-metric-strip div {
  background: #fbfefd;
  padding: 14px;
}

.report-metric-strip span,
.report-metric-strip small,
.report-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-metric-strip strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

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

.report-advice-card {
  padding: 18px;
  background: #fbfefd;
}

.report-advice-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.report-recommendation-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.report-recommendation-list li {
  color: var(--muted);
  font-weight: 700;
}

.report-footer-note {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.report-status-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.report-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  margin: 0 0 16px;
}

.report-detail-list div {
  background: #fff;
  padding: 14px;
}

.report-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-detail-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(15, 159, 184, 0.12), transparent 34%),
    var(--bg);
}

.invoice-page {
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.invoice-document {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(22px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.invoice-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.invoice-company {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.invoice-company strong {
  display: block;
  font-size: 22px;
}

.invoice-company p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.invoice-logo {
  max-width: 96px;
  max-height: 52px;
  object-fit: contain;
}

.invoice-title {
  text-align: right;
}

.invoice-title h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5vw, 54px);
}

.invoice-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.invoice-meta div {
  background: #fbfefd;
  padding: 14px;
}

.invoice-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.invoice-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.invoice-table-wrap {
  margin-bottom: 20px;
}

.invoice-total {
  display: grid;
  justify-content: end;
  margin: 22px 0;
  text-align: right;
}

.invoice-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.invoice-total strong {
  font-size: 40px;
}

.invoice-payment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  padding: 18px;
}

.invoice-payment h2 {
  font-size: 22px;
}

.invoice-payment p {
  margin-bottom: 0;
  color: var(--muted);
}

.invoice-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 159, 184, 0.14), transparent 34%),
    var(--bg);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 500px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 22px 0 12px;
  font-size: 34px;
}

.auth-muted {
  color: var(--muted);
}

.auth-tabs,
.oauth-grid {
  display: grid;
  gap: 10px;
}

.auth-tabs {
  grid-template-columns: repeat(2, 1fr);
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.auth-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  color: var(--muted);
  font-weight: 900;
}

.auth-tab.active {
  background: var(--green);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.oauth-grid {
  grid-template-columns: minmax(220px, 260px);
  justify-content: center;
  margin-top: 14px;
}

.dashboard .section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.dashboard-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.account-card,
.payment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-card {
  align-self: center;
  padding: 24px;
  box-shadow: var(--shadow);
}

.account-card span,
.payment-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-card strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.payment-list {
  display: grid;
  gap: 12px;
}

.payment-item {
  padding: 16px;
}

.payment-item strong {
  display: block;
}

.payment-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-login {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  max-width: 560px;
}

.admin-login label {
  flex: 1 1 260px;
}

@media (max-width: 1040px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .calculator-panel {
    max-width: 820px;
  }

  .report-layout,
  .deliverable-grid,
  .trust-grid,
  .case-grid,
  .report-hero,
  .report-advice-grid,
  .two-column-admin,
  .plan-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 12px 14px;
  }

  .nav-links {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    gap: 24px;
    padding: 28px 14px 38px;
  }

  .hero-copy,
  .calculator-panel,
  .section-heading {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-subtitle {
    max-width: none;
    font-size: 16px;
  }

  .hero-tags {
    margin-top: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: 22px 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    max-width: none;
  }

  .signal-strip {
    margin-right: 14px;
    margin-left: 14px;
  }

  .calculator-panel {
    padding: 18px;
    box-shadow: 0 12px 32px rgba(6, 34, 27, 0.1);
  }

  .section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-grid,
  .metric-grid,
  .primary-metrics,
  .secondary-metrics,
  .decision-hero,
  .action-grid,
  .hero-proof,
  .signal-strip,
  .insight-heading,
  .mini-row,
  .report-layout,
  .deliverable-grid,
  .report-hero,
  .report-metric-strip,
  .report-advice-grid,
  .two-column-admin,
  .report-metrics,
  .case-grid,
  .report-summary-card,
  .report-detail-list,
  .plan-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 20px;
  }

  .insight-heading strong {
    grid-column: auto;
    justify-self: start;
  }

  .ops,
  .final-cta,
  .site-footer {
    flex-direction: column;
  }

  .ops-actions {
    justify-content: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .report-document-header,
  .report-section-title,
  .report-footer-note,
  .invoice-top,
  .invoice-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-title {
    text-align: left;
  }

  .invoice-meta {
    grid-template-columns: 1fr;
  }

  .oauth-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .report-lookup-form,
  .report-shell > .section-heading,
  .report-shell > p,
  .report-actions-print .button {
    display: none;
  }

  .invoice-toolbar,
  .site-header {
    display: none;
  }

  body {
    background: #fff;
  }

  .report-page {
    padding: 0;
  }

  .report-hero,
  .report-shell,
  .report-document {
    border: 0;
    box-shadow: none;
  }

  .report-document {
    margin-top: 0;
    padding: 0;
  }

  .invoice-page {
    padding: 0;
  }

  .invoice-document {
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
