:root {
  --ink: #142424;
  --muted: #5f6f6f;
  --line: #d7e2df;
  --surface: #f7fbfa;
  --surface-strong: #e9f4f1;
  --brand: #0b7d7a;
  --brand-dark: #075c5a;
  --accent: #d59f2a;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(14, 49, 48, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 226, 223, .8);
  background: rgba(247, 251, 250, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: .95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 92px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(120deg, rgba(11, 125, 122, .14), rgba(213, 159, 42, .08) 46%, rgba(255, 255, 255, .2)),
    radial-gradient(circle at 82% 18%, rgba(11, 125, 122, .16), transparent 32%);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: .78rem;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 620px;
  color: #304746;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

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

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

.button.primary {
  color: var(--white);
  background: var(--brand);
}

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

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

.button.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
}

.button.full {
  width: 100%;
}

.hero-panel {
  width: 100%;
}

.route-card,
.feature-card,
.report-card,
.scan-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
}

.route-card {
  padding: clamp(24px, 4vw, 42px);
}

.crest-preview {
  display: block;
  width: min(340px, 100%);
  margin: 0 auto 24px;
  border-radius: 8px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--surface-strong);
  font-size: .8rem;
  font-weight: 750;
}

.route-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.route-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #354c4b;
}

.route-list span {
  color: var(--accent);
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 60px);
}

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

.feature-card {
  min-height: 180px;
  padding: 24px;
  box-shadow: none;
}

.feature-card p,
.section-heading p,
.operator-copy p,
.app-copy p,
.site-footer p {
  color: var(--muted);
}

.muted {
  background: var(--white);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.operator-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.operator-copy,
.metrics {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px;
}

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

.metrics div {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: var(--brand-dark);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.metrics span {
  margin-top: 10px;
  color: var(--muted);
}

.quality-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: #113c3b;
}

.quality-band .eyebrow,
.quality-band p {
  color: rgba(255, 255, 255, .78);
}

.quality-band div {
  max-width: 760px;
}

.app-shell {
  background: var(--surface-strong);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.tab.is-active {
  color: var(--white);
  border-color: var(--brand);
  background: var(--brand);
}

.app-view {
  display: none;
  grid-template-columns: minmax(240px, .74fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.app-view.is-active {
  display: grid;
}

.signup-form,
.report-card,
.scan-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
}

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #2f4645;
  font-size: .92rem;
  font-weight: 750;
}

fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 125, 122, .28);
  outline-offset: 2px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.radio-row input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 750;
}

.report-card h3 {
  font-size: 1.8rem;
}

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

.report-grid div {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}

.report-grid dt {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.report-grid dd {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 850;
}

.jug-badge {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  background: var(--surface-strong);
}

.jug-badge span {
  color: var(--muted);
  font-weight: 750;
}

.jug-badge strong {
  font-size: 1.55rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 6vw, 88px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .hero,
  .grid-two,
  .operator-layout,
  .app-view {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .quality-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

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

  h1 {
    font-size: 3.2rem;
  }
}
