:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2fbfb;
  --text: #071630;
  --muted: #617089;
  --line: #dbe9ee;
  --primary: #07969a;
  --primary-strong: #047377;
  --accent: #ff6040;
  --accent-2: #f6aa22;
  --green: #14865c;
  --amber: #a86f10;
  --blue: #236cae;
  --red: #b4483f;
  --shadow: 0 22px 60px rgba(7, 22, 48, 0.1);
  --soft-shadow: 0 14px 32px rgba(7, 22, 48, 0.07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(7, 150, 154, 0.12), transparent 24rem),
    radial-gradient(circle at 10% 36%, rgba(255, 96, 64, 0.07), transparent 18rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--primary); }

code {
  background: #eaf0f4;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08rem 0.28rem;
  font-size: 0.92em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--surface);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(4vw, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 37%, #ffffff 37% 45%, transparent 45% 55%, #ffffff 55% 63%, transparent 63%),
    linear-gradient(135deg, #0fb7b6, #047377);
  color: white;
  font-weight: 950;
  font-size: 0;
  box-shadow: 0 12px 24px rgba(7, 150, 154, 0.22);
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 750;
}

.top-nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}

main {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 4.6rem 0 3.2rem;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 48% 52% 42% 58%;
  background: rgba(8, 180, 182, 0.12);
}

.hero::before {
  width: 38rem;
  height: 21rem;
  right: 0;
  top: 6rem;
  transform: rotate(-8deg);
}

.hero::after {
  width: 22rem;
  height: 14rem;
  right: 22rem;
  bottom: 4rem;
  background: rgba(8, 180, 182, 0.08);
  transform: rotate(10deg);
}

.hero h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(3.2rem, 6.6vw, 6.05rem);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 660px;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-subtitle {
  margin: 0 0 0.8rem;
  color: var(--primary-strong) !important;
  font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
  font-weight: 900;
}

.commit-note {
  margin-top: 1rem;
  font-size: 0.84rem !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button,
button.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 5px;
  padding: 0.82rem 1.15rem;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.92rem;
}

.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(255, 96, 64, 0.24);
}

.button:hover,
.chip:hover,
.tab:hover {
  border-color: var(--primary);
}

.hero-panel {
  position: relative;
  display: block;
  min-height: 470px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.flow-step {
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  border-radius: 7px;
  background: var(--surface-2);
  font-weight: 800;
}

.flow-step.accent {
  background: #e7f4f6;
  color: var(--primary-strong);
  border: 1px solid #b8dce3;
}

.flow-arrow {
  color: var(--accent);
  font-weight: 900;
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 1rem;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(255, 96, 64, 0.22);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.45rem;
  max-width: 720px;
}

.hero-trust div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 0.75rem;
  align-items: center;
}

.hero-trust strong,
.hero-trust small {
  grid-column: 2;
}

.hero-trust strong {
  color: var(--text);
  font-size: 0.9rem;
}

.hero-trust small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mini-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dff7f7;
  color: var(--primary);
  position: relative;
}

.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.mini-icon.bars::before {
  width: 22px;
  height: 18px;
  background:
    linear-gradient(var(--primary), var(--primary)) 0 10px / 5px 8px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 8px 4px / 5px 14px no-repeat,
    linear-gradient(var(--primary), var(--primary)) 16px 0 / 5px 18px no-repeat;
}

.mini-icon.target::before {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mini-icon.target::after {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.mini-icon.shield::before {
  width: 20px;
  height: 24px;
  background: currentColor;
  clip-path: polygon(50% 0, 90% 16%, 82% 72%, 50% 100%, 18% 72%, 10% 16%);
}

.dashboard-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e8ee;
  border-radius: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dashboard-card h3,
.dashboard-card h4 {
  margin: 0;
  color: var(--text);
}

.main-card {
  top: 1.1rem;
  left: 0.5rem;
  width: min(610px, 82%);
  padding: 1.25rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.metric-row div {
  min-height: 92px;
  border: 1px solid #e1edf2;
  border-radius: 6px;
  padding: 0.65rem;
  background: #fbfefe;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.metric-row strong {
  display: block;
  margin: 0.28rem 0 0.45rem;
  color: var(--primary);
  font-size: 1rem;
}

.metric-row div:nth-child(4) strong {
  color: var(--accent-2);
}

.metric-row i {
  display: block;
  height: 28px;
  background:
    linear-gradient(135deg, transparent 45%, var(--primary) 46% 52%, transparent 53%),
    linear-gradient(to top, rgba(7, 150, 154, 0.12), rgba(7, 150, 154, 0));
  border-bottom: 2px solid rgba(7, 150, 154, 0.36);
  border-radius: 0 0 10px 10px;
}

.signal-bars {
  border: 1px solid #e1edf2;
  border-radius: 8px;
  padding: 0.85rem;
  background: #fbfefe;
}

.signal-bars h4 {
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.signal-bars p {
  display: grid;
  grid-template-columns: 120px 1fr 34px;
  gap: 0.65rem;
  align-items: center;
  margin: 0.4rem 0;
  font-size: 0.74rem;
  color: var(--text);
}

.signal-bars b {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary) var(--w), #e9f3f5 var(--w));
}

.signal-bars em {
  font-style: normal;
  color: var(--muted);
  font-weight: 800;
}

.journey-card {
  top: 3.3rem;
  right: 0.4rem;
  width: 245px;
  padding: 1rem;
  transform: rotate(4deg);
}

.journey-card h3 {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.journey-card ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-card li {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-left: 2.5rem;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 850;
}

.journey-card li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #b8dfe4;
  background: #f5ffff;
}

.journey-card li.active {
  min-height: 48px;
  margin-left: -0.2rem;
  padding-left: 1rem;
  border-radius: 6px;
  background: var(--primary);
  color: white;
}

.journey-card li.active::before {
  display: none;
}

.score-card {
  right: 12rem;
  bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  width: 225px;
  padding: 0.9rem;
}

.score-card h3 {
  grid-column: 1 / -1;
  font-size: 0.86rem;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 52%, transparent 53%),
    conic-gradient(var(--primary) 0 72%, var(--accent-2) 72% 100%);
}

.score-ring strong {
  font-size: 1.55rem;
  line-height: 1;
}

.score-ring span {
  margin-top: -1.4rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.score-card ul {
  margin: 0;
  padding-left: 0.85rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.anchor-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  margin: -0.9rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.anchor-strip a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 850;
}

.anchor-strip a:hover,
.anchor-strip a:focus {
  color: var(--primary);
}

.anchor-strip a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: transparent;
}

.anchor-strip a:hover::after,
.anchor-strip a:focus::after {
  background: var(--primary);
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(219, 233, 238, 0.78);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading.inline {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2,
.section h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
}

.card,
.signal-card,
.compare-card,
.checklist-card,
.accordion,
.tab-panel {
  background: var(--surface);
  border: 1px solid #dcebf0;
  border-radius: 10px;
  padding: 1.15rem;
  box-shadow: var(--soft-shadow);
}

.card h3,
.signal-card h3,
.compare-card h3,
.checklist-card h3 {
  margin: 0.45rem 0 0.4rem;
}

.card p,
.signal-card p,
.compare-card p {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 6px;
  padding: 0.24rem 0.62rem;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.confirmed { background: #e7f5ed; color: var(--green); }
.badge.inference { background: #e7f6fb; color: var(--blue); }
.badge.hypothesis { background: #fff1d9; color: var(--amber); }

.stack {
  display: grid;
  gap: 0.75rem;
}

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

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

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

.signal-card {
  position: relative;
  overflow: hidden;
}

.signal-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(255, 255, 255, 0.75) 35% 44%, transparent 45%),
    linear-gradient(135deg, var(--primary), #0fb7b6);
  box-shadow: 0 12px 22px rgba(7, 150, 154, 0.2);
}

.signal-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.signal-journey div {
  position: relative;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  min-height: 112px;
  padding: 1rem 1rem 1rem 4.2rem;
  border: 1px solid #dcebf0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f7fdfd);
  box-shadow: var(--soft-shadow);
}

.signal-journey div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--primary);
}

.signal-journey span {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 950;
  transform: translateY(-50%);
}

.signal-journey strong {
  color: var(--text);
}

.signal-journey small {
  color: var(--muted);
  line-height: 1.35;
}

.filters,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-weight: 800;
}

.chip.active,
.tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(7, 150, 154, 0.16);
}

.action-card {
  display: grid;
  align-content: start;
  min-height: 240px;
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: #aad9df;
  box-shadow: 0 20px 42px rgba(7, 22, 48, 0.11);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  background: #effafa;
  color: var(--text);
}

.tab-panels {
  margin-top: 1rem;
}

.tabs {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fdfd;
  padding: 0.25rem;
  width: fit-content;
}

.tab {
  min-width: 132px;
  border-color: transparent;
  background: transparent;
}

.tab-panel {
  display: none;
  min-height: 180px;
  border-top: 3px solid var(--primary);
  background:
    radial-gradient(circle at 88% 50%, rgba(7, 150, 154, 0.1), transparent 10rem),
    var(--surface);
}

.tab-panel.active {
  display: block;
}

.bad,
.good {
  border-left: 4px solid;
  padding-left: 0.8rem;
}

.bad { border-color: var(--red); }
.good { border-color: var(--green); }

.checklist-card label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}

.checklist-card input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--primary);
}

.checklist-card .done {
  color: var(--muted);
  text-decoration: line-through;
}

.source-list {
  padding-left: 1.2rem;
}

.disclaimer {
  background: #fff7e9;
  border: 1px solid #f0d49b;
  border-radius: 10px;
  padding: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 32, 42, 0.45);
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(540px, 100%);
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.4rem;
}

@media (max-width: 940px) {
  .site-header,
  .section-heading.inline {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .two-col,
  .grid.two,
  .grid.three,
  .grid.four,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-panel {
    display: grid;
    gap: 1rem;
    min-height: auto;
  }

  .dashboard-card,
  .main-card,
  .journey-card,
  .score-card {
    position: static;
    width: 100%;
    transform: none;
  }

  .score-card {
    max-width: 360px;
  }

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

  .anchor-strip {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
  }

  .signal-journey div:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 1.4rem, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .top-nav {
    gap: 0.1rem;
  }

  .header-cta {
    width: 100%;
  }

  .hero h2 {
    font-size: clamp(2.8rem, 17vw, 4.2rem);
  }

  .hero-trust,
  .metric-row,
  .signal-journey {
    grid-template-columns: 1fr;
  }

  .signal-bars p {
    grid-template-columns: 96px 1fr 30px;
  }

  .score-card {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin: 0 auto;
  }

  .top-nav a {
    padding: 0.35rem 0.45rem;
  }
}

@media print {
  .site-header,
  .header-cta,
  .anchor-strip,
  .hero-actions,
  .filters,
  .tabs,
  #resetChecks,
  .modal {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  main {
    width: auto;
    margin: 0;
  }

  .hero,
  .two-col,
  .grid,
  .signal-grid {
    display: block;
  }

  .section {
    padding: 1.2rem 0;
    page-break-inside: avoid;
  }

  .card,
  .signal-card,
  .compare-card,
  .checklist-card,
  .accordion,
  .tab-panel {
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 0.8rem;
  }
}
