:root {
  --bg: #eef1ec;
  --surface: #ffffff;
  --surface-soft: #f8faf6;
  --ink: #16201d;
  --muted: #64716c;
  --green: #385f43;
  --green-dark: #244530;
  --lime: #a7b65b;
  --blue: #315b72;
  --amber: #c18425;
  --line: #d8ded6;
  --line-strong: #bfcbc1;
  --warn: #99600d;
  --danger: #9e332c;
  --good: #1f6b45;
  --shadow: 0 18px 45px rgba(22, 32, 29, .1);
  --shadow-soft: 0 8px 24px rgba(22, 32, 29, .07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(49, 91, 114, .08), transparent 340px),
    repeating-linear-gradient(135deg, rgba(22, 32, 29, .025) 0 1px, transparent 1px 14px),
    var(--bg);
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 2.1rem 0 1.6rem;
  margin-bottom: 1.2rem;
  background:
    linear-gradient(135deg, rgba(167, 182, 91, .2), transparent 38%),
    linear-gradient(125deg, #15231f 0%, #263f33 48%, #315b72 100%);
  border-bottom: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 55px rgba(22, 32, 29, .22);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--lime), var(--amber), var(--blue));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.2rem;
  align-items: end;
}

.brand {
  max-width: 760px;
  margin: 0 0 .25rem;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  line-height: .88;
  letter-spacing: 0;
  font-weight: 900;
}

h1 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

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

h3 {
  margin: 1.1rem 0 .55rem;
  font-size: 1.08rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 800;
  opacity: .85;
}

.eyebrow.dark {
  display: block;
  color: var(--muted);
  opacity: 1;
  margin-bottom: .25rem;
}

.tagline {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 .45rem;
}

.sub {
  max-width: 790px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-aside {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.hero-aside span,
.hero-aside small {
  color: rgba(255,255,255,.74);
  font-weight: 700;
}

.hero-aside strong {
  font-size: 1.15rem;
}

.nav {
  grid-column: 1 / -1;
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.24);
  padding: .62rem .85rem;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}

.nav-form {
  margin: 0;
}

.nav-form button {
  min-height: auto;
  padding: .62rem .85rem;
  color: white;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: none;
}

.nav-form button:hover {
  background: rgba(255,255,255,.17);
}

.nav a:hover {
  background: rgba(255,255,255,.17);
  transform: translateY(-1px);
}

.button-link,
.button-secondary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.45rem;
  padding: .66rem .9rem;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button-link,
button {
  background: linear-gradient(180deg, #4d744f, var(--green));
  color: white;
  border: 1px solid rgba(36, 69, 48, .2);
  box-shadow: 0 9px 18px rgba(56, 95, 67, .2);
}

.button-link:hover,
button:hover {
  background: linear-gradient(180deg, #426a49, var(--green-dark));
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  background: var(--surface-soft);
}

.grid {
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(0, 1.35fr);
  gap: 1.15rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(191, 203, 193, .9);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.grid > .card:first-child {
  position: sticky;
  top: 1rem;
}

.card.internal {
  background: #263948;
  color: white;
  border-color: #355064;
}

.auth-shell {
  display: grid;
  place-items: start center;
  padding: 1rem 0 2.5rem;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-card a {
  color: var(--green-dark);
  font-weight: 800;
}

.account-panel {
  margin-bottom: 2.5rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.metric-card {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-weight: 750;
}

.metric-card strong {
  font-size: 1.3rem;
}

.form {
  display: grid;
  gap: .9rem;
}

label {
  display: grid;
  gap: .38rem;
  font-weight: 800;
  font-size: .93rem;
}

input,
select {
  width: 100%;
  font: inherit;
}

button {
  font: inherit;
}

input,
select {
  padding: .78rem .82rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(22, 32, 29, .03);
}

input:focus,
select:focus {
  outline: 3px solid rgba(167, 182, 91, .28);
  border-color: #8fa04d;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .65rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.check input {
  width: 1rem;
  height: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.facts {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: .55rem .85rem;
}

.facts dt {
  font-weight: 850;
  color: var(--muted);
}

.facts dd { margin: 0; }
.card.internal .facts dt { color: rgba(255,255,255,.72); }

.lead {
  font-size: 1.08rem;
  line-height: 1.55;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .95rem;
}

.decision {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: .9rem;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(167, 182, 91, .22), transparent 55%),
    #f1f5ec;
  border: 1px solid #c7d3bf;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.decision strong {
  display: block;
  font-size: 1.18rem;
}

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

.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
  margin-bottom: .85rem;
}

.report-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.print-view { background: white; }

.print-wrap {
  max-width: 940px;
  padding: 1rem 0 2rem;
}

.print-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.print-header h1 {
  font-size: 2rem;
  margin: .2rem 0;
}

.report-section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

.report-section h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.report-section h3::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(167, 182, 91, .16);
}

.muted-section {
  color: #39413e;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.split-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-report > div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.facts.compact {
  grid-template-columns: 150px 1fr;
}

.saved-list {
  display: grid;
  gap: .8rem;
}

.dashboard-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .8fr)) auto;
  gap: .75rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  padding: 1rem;
  margin-bottom: 1rem;
}

.filter-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.filter-actions button { white-space: nowrap; }

.form button,
.dashboard-filters button {
  width: 100%;
}

.dashboard-summary {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  color: var(--muted);
  margin: .25rem 0 1rem;
}

.dashboard-summary strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.saved-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,.84);
  box-shadow: 0 6px 18px rgba(22, 32, 29, .04);
}

.saved-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.saved-item h3 { margin-top: .1rem; }
.saved-item p { margin: .35rem 0; }

.saved-subtitle {
  color: var(--muted);
  font-weight: 800;
  margin-top: -.15rem;
}

.saved-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

.result-badges {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  border-radius: 999px;
  padding: .48rem .72rem;
  font-weight: 850;
  border: 1px solid transparent;
  font-size: .92rem;
}

.badge.good { background: #e5f3e8; color: var(--good); border-color: #b7d7c0; }
.badge.warn { background: #fff2d8; color: var(--warn); border-color: #e5c98f; }
.badge.danger { background: #f9e2df; color: var(--danger); border-color: #e5aaa3; }
.badge.internal { background: #ddeeff; color: #12395c; border-color: #b2cfe9; }

ul {
  padding-left: 1.15rem;
}

li + li { margin-top: .35rem; }

.note,
.empty {
  color: var(--muted);
  line-height: 1.45;
}

.card.internal .empty { color: rgba(255,255,255,.75); }

.alert {
  border-radius: 8px;
  padding: .9rem;
  margin-bottom: 1rem;
}

.alert.error {
  background: #f9e2df;
  border: 1px solid #e5aaa3;
  color: var(--danger);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.table th,
.table td {
  padding: .6rem .55rem;
  border-bottom: 1px solid rgba(255,255,255,.16);
  text-align: left;
}

.table th { color: rgba(255,255,255,.75); }
.table.light th,
.table.light td { border-bottom: 1px solid var(--line); }
.table.light th { color: var(--muted); }

.print-report {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
}

.professional-report-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 2px solid #25312d;
  margin-bottom: .85rem;
}

.report-kicker {
  margin: 0 0 .2rem;
  color: #25312d;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.professional-report-header h1 {
  margin: 0 0 .8rem;
  font-size: 1.75rem;
  line-height: 1.05;
}

.report-meta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: .22rem .7rem;
  margin: 0;
  max-width: 620px;
  font-size: .9rem;
}

.report-meta dt {
  color: var(--muted);
  font-weight: 850;
}

.report-meta dd {
  margin: 0;
  font-weight: 750;
}

.print-job-title {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  padding: .65rem .8rem;
  margin: 0 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.print-job-title span {
  color: var(--muted);
  font-weight: 750;
}

.report-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: .85rem;
}

.status-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  padding: .75rem .85rem;
  background: #fff;
}

.status-card span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  margin-top: .18rem;
  font-size: 1.12rem;
}

.status-difficulty { border-left-color: var(--amber); }
.status-wear { border-left-color: var(--danger); }
.status-confidence { border-left-color: var(--good); }

.site-summary-box {
  padding: 1rem;
  margin: 0 0 .9rem;
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #f5f7f3;
  page-break-inside: avoid;
}

.site-summary-box h3,
.report-section h3,
.commercial-card h3 {
  margin: 0 0 .55rem;
  color: #25312d;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-summary-box p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 650;
}

.report-decision {
  page-break-inside: avoid;
}

.spec-table {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-table dt,
.spec-table dd {
  padding: .52rem .65rem;
  border-bottom: 1px solid var(--line);
}

.spec-table dt {
  color: var(--muted);
  background: #f5f7f3;
  font-weight: 900;
}

.spec-table dd {
  margin: 0;
  font-weight: 750;
  background: #fff;
}

.spec-table dt:last-of-type,
.spec-table dd:last-of-type {
  border-bottom: 0;
}

.commercial-blocks {
  align-items: stretch;
}

.commercial-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1rem;
  page-break-inside: avoid;
}

.commercial-total {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.commercial-total span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.commercial-total strong {
  display: block;
  margin-top: .15rem;
  font-size: 1.35rem;
}

.evidence-section {
  font-size: .9rem;
  color: #4d5854;
}

.evidence-section h3 {
  color: #56615d;
}

.report-footer {
  display: grid;
  gap: .18rem;
  margin-top: 1.2rem;
  padding-top: .75rem;
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.report-footer strong {
  color: var(--ink);
}

.public-page {
  background:
    linear-gradient(180deg, rgba(49, 91, 114, .08), transparent 360px),
    var(--bg);
}

.public-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.public-nav {
  background: #17241f;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.public-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .9rem 0;
}

.public-brand {
  color: white;
  font-weight: 950;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: .95;
  text-decoration: none;
}

.public-nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.public-nav a,
.public-nav span {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-weight: 800;
  font-size: .92rem;
}

.public-nav nav a {
  padding: .45rem .62rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.public-nav span {
  color: rgba(255,255,255,.62);
}

.landing-hero {
  background:
    linear-gradient(135deg, rgba(167, 182, 91, .14), transparent 42%),
    linear-gradient(125deg, #17241f 0%, #263f33 54%, #315b72 100%);
  color: white;
  padding: 4.1rem 0 3.3rem;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  gap: 2.4rem;
  align-items: center;
}

.public-kicker {
  margin: 0 0 .55rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.landing-hero .public-kicker {
  color: #d7df9b;
}

.landing-hero h1 {
  margin: 0 0 .9rem;
  max-width: 780px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .94;
  font-weight: 950;
}

.landing-subhead {
  max-width: 600px;
  display: grid;
  gap: .55rem;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.42;
}

.landing-subhead p {
  margin: 0;
}

.hero-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .7rem;
  margin: .1rem 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  position: relative;
  padding-left: 1rem;
  color: white;
  font-weight: 850;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: #d7df9b;
}

.landing-support {
  display: inline-block;
  margin: 1.1rem 0 0;
  padding: .46rem .65rem;
  color: white;
  font-weight: 950;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.35rem;
}

.public-cta {
  min-height: 3.1rem;
  font-size: 1.08rem;
  padding: .86rem 1.15rem;
  background: linear-gradient(180deg, #d2a23d, #b8781e);
  color: #17241f;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.public-cta:hover {
  background: linear-gradient(180deg, #ddb04c, #c18425);
  color: #17241f;
}

.example-panel {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}

.example-panel span {
  display: block;
  color: rgba(255,255,255,.72);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
}

.example-panel p {
  margin: .85rem 0 1.05rem;
  color: white;
  font-size: 1.02rem;
  line-height: 1.55;
}

.example-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}

.example-metrics div {
  display: grid;
  gap: .18rem;
  padding: .6rem;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}

.example-metrics div span {
  color: rgba(255,255,255,.68);
  letter-spacing: .08em;
  font-size: .68rem;
}

.example-metrics strong {
  color: white;
  font-size: .9rem;
}

.public-section {
  padding: 3.2rem 0;
}

.public-section.shaded {
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.public-section h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.problem-section .two-column {
  align-items: center;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr);
  gap: 1.6rem;
  align-items: start;
}

.two-column > p,
.trust-section p {
  margin: 0;
  color: #34403b;
  font-size: 1.08rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-grid article,
.audience-list li {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(22, 32, 29, .04);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-section {
  padding-top: 2rem;
}

.trust-section .public-wrap {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.public-footer {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.public-footer .public-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.public-footer strong {
  color: var(--ink);
}

.check-page {
  padding: 2.2rem 0 3rem;
}

.check-intro {
  margin-bottom: 1.2rem;
  text-align: center;
}

.check-intro h1 {
  max-width: 760px;
  margin: 0 auto .85rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 950;
}

.check-intro p:last-child {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
  gap: 1.15rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.check-layout.has-result {
  grid-template-columns: minmax(320px, .7fr) minmax(0, 1.45fr);
  justify-content: stretch;
}

.check-layout.has-result .check-card {
  position: sticky;
  top: 1rem;
}

.check-card {
  width: 100%;
}

.check-result-card {
  min-height: 420px;
}

.groundfit-page {
  background:
    linear-gradient(180deg, rgba(27, 74, 93, .1), transparent 360px),
    #eef1ec;
}

.groundfit-header {
  color: white;
  background:
    linear-gradient(130deg, rgba(193, 132, 37, .18), transparent 42%),
    linear-gradient(120deg, #13201c 0%, #273d35 52%, #1f4d61 100%);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.groundfit-header-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1.6rem 0;
}

.groundfit-header h1 {
  margin: .1rem 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .9;
  font-weight: 950;
}

.groundfit-header p {
  margin: 0;
  font-weight: 850;
}

.groundfit-header small {
  display: block;
  margin-top: .35rem;
  color: rgba(255,255,255,.72);
  font-weight: 850;
}

.groundfit-powered {
  margin: 0 0 .25rem;
  color: #d7df9b;
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.groundfit-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-end;
}

.groundfit-header a {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  padding: .58rem .75rem;
  background: rgba(255,255,255,.08);
  font-weight: 850;
}

.groundfit-main {
  padding: 1.2rem 0 3rem;
}

.groundfit-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 1.1rem;
  align-items: start;
}

.groundfit-layout.has-result {
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  justify-content: stretch;
}

.groundfit-layout.has-result .groundfit-panel {
  position: sticky;
  top: 1rem;
}

.groundfit-panel fieldset {
  display: grid;
  gap: .8rem;
  margin: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.groundfit-panel legend {
  padding: 0 .25rem;
  color: var(--green-dark);
  font-weight: 950;
}

.field-help,
.groundfit-statement {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.groundfit-result-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.groundfit-summary {
  max-width: 680px;
  margin: .45rem 0 0;
  color: #39413e;
  line-height: 1.45;
  font-weight: 700;
}

.groundfit-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .9rem;
}

.groundfit-score-grid div {
  display: grid;
  gap: .18rem;
  min-height: 4.5rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.groundfit-score-grid span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.groundfit-score-grid strong {
  align-self: end;
  font-size: 1.08rem;
}

.groundfit-section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.groundfit-result-head + .groundfit-section {
  border-top: 0;
  margin-top: 0;
}

.groundfit-section h3 {
  margin-top: 0;
  color: #25312d;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.groundfit-section h4 {
  margin: .85rem 0 .35rem;
  color: #25312d;
  font-size: .95rem;
}

.groundfit-section.disclaimer {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.groundfit-section.disclaimer p {
  margin: 0;
  color: #39413e;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero-inner,
  .grid,
  .check-layout.has-result,
  .groundfit-layout.has-result,
  .landing-hero-grid,
  .two-column,
  .split,
  .account-grid,
  .report-status-grid,
  .decision,
  .split-report,
  .saved-item,
  .report-heading,
  .professional-report-header,
  .print-header,
  .dashboard-filters {
    grid-template-columns: 1fr;
  }

  .grid > .card:first-child {
    position: static;
  }

  .brand {
    font-size: clamp(2.8rem, 17vw, 4.7rem);
  }

  .nav {
    justify-content: flex-start;
  }

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

  .saved-meta,
  .report-toolbar,
  .filter-actions {
    justify-content: flex-start;
  }

  .feature-grid,
  .audience-list,
  .example-metrics,
  .groundfit-score-grid,
  .hero-list {
    grid-template-columns: 1fr;
  }

  .public-nav-inner,
  .public-footer .public-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero {
    padding: 2.8rem 0 2.4rem;
  }

  .landing-hero-grid {
    gap: 1.4rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .public-cta {
    width: 100%;
  }

  .check-layout.has-result .check-card {
    position: static;
  }

  .groundfit-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .groundfit-header nav {
    justify-content: flex-start;
  }

  .groundfit-layout.has-result .groundfit-panel {
    position: static;
  }
}

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

  .hero,
  .card:first-child,
  .nav,
  .report-toolbar,
  .button-link,
  .button-secondary {
    display: none !important;
  }

  body {
    background: white;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .wrap {
    width: 100%;
  }

  .print-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: none;
  }

  .print-view .card:first-child {
    display: block !important;
  }

  .print-header {
    border-bottom: 2px solid #222;
  }

  .print-report {
    border: none;
    padding: 0;
  }

  .professional-report-header,
  .site-summary-box,
  .report-decision,
  .report-snapshot,
  .commercial-card,
  .evidence-section,
  .report-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .professional-report-header {
    margin-bottom: .7rem;
    padding-bottom: .7rem;
  }

  .professional-report-header h1 {
    font-size: 1.45rem;
  }

  .report-status-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-summary-box p {
    font-size: 1rem;
  }

  .report-section {
    margin-top: .75rem;
    padding-top: .65rem;
  }

  .report-section h3::before {
    display: none;
  }

  .split-report {
    grid-template-columns: 1fr 1fr;
  }

  .facts,
  .facts.compact {
    grid-template-columns: 130px 1fr;
  }

  .spec-table {
    grid-template-columns: 125px 1fr;
  }

  ul {
    margin-top: .35rem;
    margin-bottom: .35rem;
  }

  .report-footer {
    margin-top: .8rem;
  }
}

.public-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  gap: .8rem 1.4rem;
  align-items: start;
}

.public-footer-brand {
  display: grid;
  gap: .25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: .15rem 0 0;
  line-height: 1.45;
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-document {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-soft);
}

.legal-document h1 {
  margin-bottom: .4rem;
}

.legal-document h2 {
  margin-top: 1.55rem;
  font-size: 1.25rem;
}

.legal-document h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.legal-document p,
.legal-document li {
  line-height: 1.58;
}

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

.last-updated {
  margin-top: 0;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .public-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* TrenchLogic visual refresh - clean modern agri style */
:root {
  --bg: #f3f5ef;
  --surface: #ffffff;
  --surface-soft: #f8f9f3;
  --surface-agri: #edf3e4;
  --ink: #17231f;
  --muted: #637168;
  --green: #426b3f;
  --green-dark: #243f2b;
  --green-deep: #13291d;
  --lime: #aabd67;
  --blue: #3d6572;
  --amber: #c28b2c;
  --line: #dce4d5;
  --line-strong: #bdcab8;
  --shadow: 0 22px 60px rgba(36, 63, 43, .12);
  --shadow-soft: 0 12px 32px rgba(36, 63, 43, .08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(170, 189, 103, .22), transparent 28rem),
    linear-gradient(180deg, #f7f8f2 0, var(--bg) 24rem, #eef3e9 100%);
  color: var(--ink);
}

body.public-page {
  background:
    linear-gradient(180deg, rgba(237, 243, 228, .92), rgba(248, 249, 243, .88) 28rem, #f3f5ef 100%);
}

.wrap,
.public-wrap {
  width: min(1180px, calc(100% - 2.2rem));
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(19, 41, 29, .96);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(19, 41, 29, .16);
}

.public-nav-inner {
  min-height: 4.35rem;
}

.public-brand {
  color: white !important;
  font-size: clamp(1.8rem, 3vw, 2.7rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0;
  line-height: .9;
}

.public-nav nav a,
.public-nav nav span,
.nav a,
.nav-form button {
  border-radius: 999px;
  font-size: .9rem;
}

.public-nav nav a {
  padding: .58rem .82rem;
  background: rgba(255,255,255,.08);
}

.public-nav nav a:hover {
  background: rgba(255,255,255,.16);
}

.hero {
  margin-bottom: 1.8rem;
  padding: 2.7rem 0 2rem;
  background:
    linear-gradient(135deg, rgba(170, 189, 103, .24), transparent 36%),
    linear-gradient(125deg, #14271d 0%, #284d32 54%, #3d6572 100%);
}

.brand {
  max-width: 920px;
  font-size: clamp(4.3rem, 9vw, 8.4rem);
  line-height: .82;
  letter-spacing: 0;
}

.tagline {
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
}

.sub {
  max-width: 840px;
  font-size: 1.06rem;
}

.hero-aside,
.example-panel,
.card,
.legal-document,
.trust-section .public-wrap,
.commercial-card,
.status-card,
.site-summary-box,
.decision {
  border-radius: 8px;
  border-color: rgba(189, 202, 184, .9);
  box-shadow: var(--shadow-soft);
}

.card,
.legal-document {
  background: rgba(255,255,255,.96);
}

.card h2,
.legal-document h1,
.check-intro h1,
.public-section h2,
.report-heading h2 {
  color: #18261f;
}

.landing-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6.4rem) 0 4rem;
  background:
    linear-gradient(135deg, rgba(19, 41, 29, .92), rgba(40, 77, 50, .88)),
    linear-gradient(90deg, #13291d, #426b3f);
  color: white;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--lime), var(--amber), var(--blue));
}

.landing-hero-grid {
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.landing-hero h1 {
  max-width: 860px;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: 0;
}

.landing-subhead {
  max-width: 720px;
  font-size: 1.13rem;
}

.hero-list {
  max-width: 620px;
  gap: .55rem .85rem;
}

.hero-list li::before {
  background: var(--lime);
}

.landing-support {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
}

.example-panel {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.24);
}

.example-metrics div {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
}

.public-section {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}

.public-section.shaded {
  background: rgba(255,255,255,.62);
}

.feature-grid,
.audience-list {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.feature-grid article,
.audience-list li {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(36, 63, 43, .06);
}

.check-page {
  padding-top: 2rem;
}

.check-intro {
  padding: 2.2rem 0 1.2rem;
}

.check-intro h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
}

.check-card,
.check-result-card,
.report-card,
.account-panel,
.auth-card {
  border-top: 5px solid var(--green);
}

input,
select,
textarea {
  border-radius: 8px !important;
  border-color: var(--line-strong) !important;
  background: #fbfcf8 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(66, 107, 63, .14) !important;
  outline: none;
}

.button-link,
button {
  border-radius: 999px;
  background: linear-gradient(180deg, #557d4e, var(--green));
  box-shadow: 0 12px 24px rgba(66, 107, 63, .2);
}

.button-secondary {
  border-radius: 999px;
}

.report-status-grid {
  gap: .8rem;
}

.status-card {
  background: linear-gradient(180deg, white, #fbfcf8);
}

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

.site-summary-box {
  background: linear-gradient(180deg, #f8fbf2, #edf3e4);
}

.report-decision {
  background: #172b20;
  color: white;
}

.report-decision .eyebrow,
.report-decision p {
  color: rgba(255,255,255,.78);
}

.report-section {
  border-color: var(--line);
}

.report-section h3,
.commercial-card h3 {
  color: var(--green-dark);
  letter-spacing: .08em;
}

.commercial-card {
  background: linear-gradient(180deg, white, #fbfcf8);
}

.legal-page {
  padding-top: 2.8rem;
}

.legal-document {
  border-top: 5px solid var(--green);
}

.public-footer {
  background: #edf3e4;
  border-top: 1px solid #d4dfcc;
}

.public-footer-inner {
  padding: .6rem 0;
}

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

.footer-disclaimer {
  color: #59685f;
}

.saved-item {
  background: white;
  border-color: var(--line);
  border-radius: 8px;
}

.saved-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-soft);
}

.alert {
  border-radius: 8px;
}

@media (max-width: 900px) {
  .public-brand {
    font-size: 2rem !important;
  }

  .brand {
    font-size: clamp(3.2rem, 17vw, 5.6rem);
  }

  .landing-hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .public-nav {
    position: static;
  }

  .check-page {
    padding-top: 1rem;
  }
}

.public-footer .public-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  gap: .8rem 1.4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .public-footer .public-footer-inner {
    grid-template-columns: 1fr;
  }
}

.landing-hero {
  padding: clamp(3rem, 5.5vw, 4.8rem) 0 clamp(3rem, 5vw, 4.2rem);
}

.landing-hero-grid {
  align-items: end;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 6.3vw, 5.8rem);
  line-height: .94;
}

.landing-subhead {
  font-size: 1.06rem;
}

.hero-list {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: .48rem 1.1rem;
  margin: .35rem 0;
}

@media (max-width: 900px) {
  .landing-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .hero-list {
    grid-template-columns: 1fr;
  }
}

.landing-hero {
  padding: clamp(2.2rem, 4.4vw, 3.6rem) 0 clamp(2.5rem, 4.6vw, 3.8rem);
}

.landing-hero h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 5.7vw, 5.2rem);
  line-height: .95;
}

.landing-subhead {
  font-size: 1.02rem;
  line-height: 1.35;
}

.landing-support {
  margin-top: .75rem;
  padding: .38rem .62rem;
}

.landing-actions {
  margin-top: .9rem;
}

.public-cta {
  min-height: 2.75rem;
  padding: .68rem 1rem;
}

.example-panel {
  padding: 1.05rem;
}

.example-panel p {
  margin: .65rem 0 .75rem;
  line-height: 1.45;
}

.example-metrics div {
  padding: .52rem;
}

@media (max-width: 900px) {
  .landing-hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.3rem);
  }
}
