:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6fafb;
  --ink: #172126;
  --muted: #5c6970;
  --line: #d9e5e8;
  --teal: #0e7c86;
  --teal-dark: #095861;
  --blue: #2563eb;
  --coral: #ff7b54;
  --amber: #f5b942;
  --green: #1f9d68;
  --red: #ce3b45;
  --shadow-1: 0 1px 2px rgba(23, 33, 38, 0.08);
  --shadow-2: 0 8px 18px rgba(23, 33, 38, 0.09);
  --shadow-3: 0 20px 55px rgba(14, 124, 134, 0.14);
  --radius: 8px;
  --shell: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 42%, #ffffff 100%);
  font-family: var(--font);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  padding: 0.78rem 0.86rem;
  min-height: 44px;
  box-shadow: inset 0 1px 2px rgba(23, 33, 38, 0.04);
}

textarea {
  resize: vertical;
}

label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-weight: 750;
  color: #263238;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 32px, var(--shell));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 229, 232, 0.78);
  backdrop-filter: blur(18px);
}

.header-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--teal);
  font-weight: 850;
  box-shadow:
    0 1px 0 #fff,
    0 8px 0 rgba(14, 124, 134, 0.07),
    0 16px 24px rgba(14, 124, 134, 0.14);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}

.site-nav a {
  color: #2c3a40;
  text-decoration: none;
  padding: 0.58rem 0.76rem;
  border-radius: var(--radius);
  font-weight: 740;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: #eef8f9;
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  padding: 4.2rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: var(--teal-dark);
  background: #edf8f8;
  border: 1px solid #cde8eb;
  border-radius: var(--radius);
  padding: 0.32rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  margin-top: 1rem;
}

h2 {
  font-size: clamp(1.42rem, 2vw, 2.05rem);
}

h3 {
  font-size: 1.05rem;
}

.hero-copy p,
.page-hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions,
.button-row,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-actions {
  margin: 1.65rem 0 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  text-decoration: none;
  font-weight: 830;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(14, 124, 134, 0.22);
}

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

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

.button.secondary:hover {
  box-shadow: var(--shadow-2);
}

.link-button {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  padding: 0.55rem 0;
  font-weight: 800;
  cursor: pointer;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.34rem 0.58rem;
  color: #39484f;
  background: #fff;
  box-shadow: var(--shadow-1);
  font-weight: 720;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  perspective: 1300px;
}

.hero-visual img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(217, 229, 232, 0.96);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 #fff,
    0 6px 0 rgba(14, 124, 134, 0.06),
    0 12px 0 rgba(37, 99, 235, 0.05),
    0 18px 0 rgba(255, 123, 84, 0.05),
    0 24px 0 rgba(245, 185, 66, 0.05),
    0 40px 80px rgba(23, 33, 38, 0.18);
  transform: rotateX(2deg) rotateY(-4deg);
}

.depth-card {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 48px;
  border: 1px solid rgba(217, 229, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-3);
  font-weight: 900;
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.depth-card-one {
  left: -4px;
  top: 18%;
  color: var(--teal-dark);
}

.depth-card-two {
  right: 5%;
  top: 10%;
  color: var(--blue);
}

.depth-card-three {
  right: 12%;
  bottom: 8%;
  color: var(--coral);
}

.section {
  padding: 3.3rem 0;
}

.section.compact {
  padding-top: 1rem;
}

.page-hero {
  padding: 3.6rem 0 2rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
  border-bottom: 1px solid var(--line);
}

.notice {
  border: 1px solid #cde8eb;
  border-left: 5px solid var(--teal);
  background: #f2fbfb;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: #244147;
  box-shadow: var(--shadow-1);
}

.medical-notice {
  margin: 0 0 1.4rem;
}

.warning {
  border-color: #ffd6c8;
  border-left-color: var(--coral);
  background: #fff8f5;
}

.danger {
  border-color: #f1b7bd;
  border-left-color: var(--red);
  background: #fff5f6;
}

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

.feature-tile,
.panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 #fff,
    0 8px 0 rgba(14, 124, 134, 0.04),
    0 16px 30px rgba(23, 33, 38, 0.08);
}

.feature-tile,
.contact-card {
  padding: 1.2rem;
}

.feature-tile p,
.panel p,
.prose p,
.contact-card p {
  color: var(--muted);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: #edf8f8;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.split-band {
  background: #f8fbfc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 2rem;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 0.75rem;
}

.check-list span {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.82rem 0.95rem 0.82rem 2.45rem;
  box-shadow: var(--shadow-1);
  font-weight: 720;
}

.check-list span::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.12rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--green);
}

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

.tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tool-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}

.tool-main {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1rem;
}

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

.panel-heading p {
  margin: 0.3rem 0 0;
}

.status-panel {
  font-weight: 780;
  color: #2b464c;
  background: #f4fbfc;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 150px;
  padding: 1rem;
  text-align: center;
  border: 1.5px dashed #a8cdd2;
  border-radius: var(--radius);
  background: #fbfefe;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  color: var(--teal-dark);
  font-weight: 850;
}

.small {
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

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

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

.data-table th,
.data-table td {
  padding: 0.62rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f4fafb;
  color: #263238;
  font-size: 0.88rem;
}

.data-table input {
  min-height: 38px;
  padding: 0.48rem 0.52rem;
}

.confidence {
  display: inline-flex;
  min-width: 56px;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.28rem 0.45rem;
  background: #f3f7f8;
  color: #34454c;
  font-weight: 800;
}

.results-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.result-card {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-1);
}

.result-card.normal {
  border-left-color: var(--green);
}

.result-card.low,
.result-card.high {
  border-left-color: var(--amber);
}

.result-card.critical {
  border-left-color: var(--red);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f7fbfc;
  color: #304249;
  min-height: 30px;
  padding: 0.22rem 0.48rem;
  font-weight: 780;
  font-size: 0.88rem;
}

.calculator-app {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
}

.calculator-menu,
.calculator-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-2);
}

.calculator-menu {
  align-self: start;
  position: sticky;
  top: 92px;
}

.search-input {
  margin-bottom: 0.85rem;
}

.calc-list {
  display: grid;
  gap: 0.44rem;
  max-height: 70vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.calc-list button {
  width: 100%;
  min-height: 42px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #27383f;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
  font-weight: 760;
}

.calc-list button:hover,
.calc-list button.active {
  border-color: #b6dce1;
  background: #eef8f9;
  color: var(--teal-dark);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.calc-result {
  margin-top: 1rem;
  border-radius: var(--radius);
  border: 1px solid #cde8eb;
  background: #f4fbfc;
  padding: 1rem;
}

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

.prose {
  max-width: 860px;
}

.prose h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.45rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.policy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-1);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #f6fafb;
  padding: 2.4rem 0 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(160px, 0.55fr));
  gap: 1.5rem;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid a:not(.brand) {
  display: block;
  margin: 0.36rem 0;
}

.footer-grid p {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .tool-grid,
  .calculator-app,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-visual {
    min-height: auto;
  }

  .tool-sidebar,
  .calculator-menu {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    grid-template-columns: 1fr;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
  }

  .site-nav.open {
    display: grid;
  }

  h1 {
    font-size: 2.5rem;
  }

  .page-hero {
    padding-top: 2.2rem;
  }

  .panel-heading,
  .footer-bottom {
    display: grid;
  }

  .calc-fields {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
