:root {
  --wis-ink: #073042;
  --wis-muted: #496570;
  --wis-teal: #087f83;
  --wis-green: #009b84;
  --wis-gold: #a76700;
  --wis-line: #c9e6df;
  --wis-soft: #f3fbf8;
  --wis-mint: #e6f8f3;
  --wis-mint-strong: #d7f2ec;
  --wis-warn: #fff1df;
  --wis-white: #ffffff;
  --wis-shadow: 0 18px 48px rgba(7, 48, 66, .11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--wis-ink);
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f8fcfb 0%, #eaf7f4 100%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.wis-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 18px 46px;
}

.wis-topbar,
.wis-panel,
.wis-food-card {
  border: 1px solid var(--wis-line);
  border-radius: 18px;
  background: var(--wis-white);
  box-shadow: var(--wis-shadow);
}

.wis-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 18px;
}

.wis-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--wis-teal);
  font-weight: 900;
}

.wis-brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid #9bd9cf;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--wis-mint);
}

.wis-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
}

.wis-nav a {
  text-decoration: none;
}

.wis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  margin-bottom: 18px;
}

.wis-panel {
  padding: 24px;
}

.wis-hero-main {
  padding: 30px;
}

.wis-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 13px;
  border: 1px solid #9bd9cf;
  border-radius: 999px;
  background: var(--wis-mint-strong);
  color: #007c80;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: .98;
}

.wis-lede {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--wis-muted);
  font-size: 18px;
  line-height: 1.55;
}

.wis-setup-list {
  margin: 0;
  padding-left: 20px;
  color: var(--wis-muted);
  line-height: 1.55;
}

.wis-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.wis-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}

.wis-section-head p {
  max-width: 490px;
  margin: 0;
  color: var(--wis-muted);
  line-height: 1.45;
}

.wis-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 220px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dbeee9;
  border-radius: 14px;
  background: var(--wis-soft);
}

.wis-field {
  min-width: 0;
}

.wis-browse-controls {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.wis-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--wis-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-field-note {
  margin: 7px 0 0;
  color: var(--wis-muted);
  font-size: 12px;
  line-height: 1.35;
}

.wis-field select,
.wis-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--wis-line);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--wis-ink);
  background: var(--wis-white);
}

.wis-button {
  min-height: 44px;
  border: 1px solid var(--wis-line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--wis-white);
  color: var(--wis-ink);
  cursor: pointer;
  font-weight: 900;
}

.wis-button[aria-pressed="true"],
.wis-button-primary {
  border-color: var(--wis-ink);
  background: var(--wis-ink);
  color: var(--wis-white);
}

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

.wis-mobile-showdown {
  display: none;
  border: 1px solid var(--wis-line);
  border-radius: 14px;
  background: var(--wis-white);
  overflow: hidden;
}

.wis-versus-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #dbeee9;
  background: var(--wis-soft);
}

.wis-versus-food {
  min-width: 0;
}

.wis-versus-food:last-child {
  text-align: right;
}

.wis-versus-image {
  width: 100%;
  height: 116px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #dbeee9;
  border-radius: 14px;
  background: #eef8f6;
}

.wis-versus-image img,
.wis-versus-image .wis-food-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.wis-versus-image .wis-food-visual {
  display: grid;
  place-items: center;
  padding: 10px;
  font-size: 18px;
}

.wis-versus-food span,
.wis-category {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--wis-mint-strong);
  color: #007c80;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-higher span,
.wis-food-card[data-category="Higher-spike example"] .wis-category {
  background: var(--wis-warn);
  color: var(--wis-gold);
}

.wis-versus-food h3 {
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.1;
}

.wis-versus-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}

.wis-versus-food:last-child .wis-versus-groups {
  justify-content: flex-end;
}

.wis-versus-groups span {
  border: 1px solid #d7e8e4;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fbfffd;
  color: var(--wis-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-versus-food strong {
  display: block;
  color: var(--wis-green);
  font-size: 28px;
  line-height: 1;
}

.wis-higher strong {
  color: var(--wis-gold);
}

.wis-versus-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--wis-ink);
  color: var(--wis-white);
  font-size: 12px;
  font-weight: 900;
}

.wis-shared-chart {
  padding: 12px;
  background: linear-gradient(180deg, #fbfffd 0%, #f4fbf8 100%);
}

.wis-chart-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--wis-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-legend {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  text-transform: none;
}

.wis-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wis-legend span::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--wis-teal);
}

.wis-legend span:last-child::before {
  background: var(--wis-gold);
}

.wis-insights,
.wis-mobile-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.wis-insight,
.wis-mobile-metric {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dbeee9;
  border-radius: 12px;
  background: var(--wis-soft);
}

.wis-insight span,
.wis-mobile-metric span {
  display: block;
  color: var(--wis-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-insight strong,
.wis-mobile-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.15;
}

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

.wis-food-card {
  overflow: hidden;
  min-width: 0;
  box-shadow: none;
}

.wis-food-card[data-category="Higher-spike example"] {
  border-color: #f2c990;
}

.wis-food-media {
  aspect-ratio: 4 / 3;
  background: var(--wis-mint);
  overflow: hidden;
}

.wis-food-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wis-food-visual {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--wis-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.wis-visual-pastry {
  background: radial-gradient(circle at 30% 38%, #734824 0 13%, transparent 14%),
    radial-gradient(circle at 62% 36%, #d9aa53 0 16%, transparent 17%),
    linear-gradient(135deg, #fff0d6 0%, #dfb46c 50%, #6e4027 100%);
}

.wis-visual-candy,
.wis-visual-soda,
.wis-visual-rice {
  background: linear-gradient(135deg, #ffe1e0 0%, #f8f1ff 45%, #ffe9a8 100%);
}

.wis-visual-soda {
  background: linear-gradient(135deg, #e2fbff 0%, #f7f0ff 50%, #c9f1ff 100%);
}

.wis-visual-rice {
  background: linear-gradient(135deg, #fff 0%, #f2efe5 55%, #d9caa8 100%);
}

.wis-food-body {
  padding: 14px;
}

.wis-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.wis-category-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.wis-score {
  min-width: 76px;
  padding: 8px 9px;
  border: 1px solid var(--wis-line);
  border-radius: 11px;
  background: var(--wis-mint);
  text-align: center;
}

.wis-food-card[data-category="Higher-spike example"] .wis-score {
  border-color: #f2c990;
  background: var(--wis-warn);
}

.wis-score strong {
  display: block;
  color: var(--wis-green);
  font-size: 29px;
  line-height: 1;
}

.wis-food-card[data-category="Higher-spike example"] .wis-score strong {
  color: var(--wis-gold);
}

.wis-meal-tag {
  display: inline-flex;
  border: 1px solid #d7e8e4;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fbfffd;
  color: var(--wis-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-score span {
  display: block;
  color: var(--wis-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-food-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.wis-food-group {
  margin: -3px 0 10px;
  color: var(--wis-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.wis-food-group span {
  color: var(--wis-ink);
  font-weight: 900;
}

.wis-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.wis-badge {
  border: 1px solid #d7e8e4;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--wis-ink);
  font-size: 11px;
  font-weight: 900;
  background: #fbfffd;
}

.wis-chart-box {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #dbeee9;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfffd 0%, #f2fbf8 100%);
}

.wis-food-card[data-category="Higher-spike example"] .wis-chart-box {
  border-color: #f2d4aa;
  background: linear-gradient(180deg, #fffaf2 0%, #fff4e6 100%);
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.wis-grid-line {
  stroke: #d7e8e4;
  stroke-width: 1;
}

.wis-tick-label,
.wis-axis-label {
  fill: var(--wis-muted);
  font-size: 11px;
}

.wis-curve,
.wis-shared-left,
.wis-shared-right {
  fill: none;
  stroke: var(--wis-teal);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wis-food-card[data-category="Higher-spike example"] .wis-curve,
.wis-shared-right {
  stroke: var(--wis-gold);
}

.wis-peak-dot,
.wis-dot-left,
.wis-dot-right {
  fill: var(--wis-white);
  stroke: var(--wis-teal);
  stroke-width: 4;
}

.wis-food-card[data-category="Higher-spike example"] .wis-peak-dot,
.wis-dot-right {
  stroke: var(--wis-gold);
}

.wis-peak-label {
  fill: var(--wis-ink);
}

.wis-peak-text {
  fill: var(--wis-white);
  font-size: 11px;
  font-weight: 900;
}

.wis-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dbeee9;
  border-radius: 12px;
  overflow: hidden;
}

.wis-stat {
  min-height: 58px;
  padding: 9px 10px;
  border-right: 1px solid #dbeee9;
  border-bottom: 1px solid #dbeee9;
}

.wis-stat:nth-child(3n) {
  border-right: 0;
}

.wis-stat:nth-last-child(-n+3) {
  border-bottom: 0;
}

.wis-stat span {
  display: block;
  color: var(--wis-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.wis-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wis-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--wis-ink);
  color: var(--wis-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.wis-link-secondary {
  border: 1px solid #9bd9cf;
  background: var(--wis-mint);
  color: var(--wis-teal);
}

.wis-compare-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wis-compare-link-card {
  padding: 14px;
  border: 1px solid #dbeee9;
  border-radius: 12px;
  background: var(--wis-soft);
}

.wis-compare-link-card > span {
  display: block;
  color: var(--wis-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wis-compare-link-card h3 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.wis-future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wis-future-card {
  padding: 14px;
  border: 1px solid #dbeee9;
  border-radius: 12px;
  background: var(--wis-soft);
}

.wis-future-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.wis-future-card p,
.wis-empty,
.wis-note {
  margin: 0;
  color: var(--wis-muted);
  line-height: 1.45;
}

.wis-note {
  margin-top: 16px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .wis-hero,
  .wis-controls,
  .wis-browse-controls,
  .wis-cards-grid,
  .wis-compare-links,
  .wis-future-grid {
    grid-template-columns: 1fr;
  }

  .wis-section-head {
    display: block;
  }

  .wis-section-head p {
    margin-top: 8px;
  }

  .wis-insights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 660px) {
  .wis-page {
    padding: 12px 10px 32px;
  }

  .wis-topbar,
  .wis-card-topline {
    display: block;
  }

  .wis-nav,
  .wis-score {
    margin-top: 12px;
  }

  .wis-panel,
  .wis-hero-main {
    padding: 16px;
  }

  .wis-compare-grid {
    display: none;
  }

  .wis-mobile-showdown {
    display: block;
  }

  .wis-chart-title {
    display: block;
  }

  .wis-legend {
    margin-top: 6px;
    flex-wrap: wrap;
  }

  .wis-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .wis-stats,
  .wis-insights,
  .wis-mobile-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .wis-stat,
  .wis-stat:nth-child(3n),
  .wis-stat:nth-last-child(-n+3) {
    border-right: 1px solid #dbeee9;
    border-bottom: 1px solid #dbeee9;
  }

  .wis-stat:nth-child(2n) {
    border-right: 0;
  }

  .wis-stat:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
