:root {
  --ink: #1b151d;
  --ink-soft: #2c222f;
  --paper: #f5eff2;
  --surface: #fffafb;
  --muted: #746873;
  --line: #d8cbd1;
  --accent: #ef7098;
  --accent-dark: #b83f68;
  --mint: #d9e9df;
  --yellow: #efcad6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: var(--accent-dark);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  font-size: 1.35rem;
  transition: transform 160ms ease;
}

.wordmark:hover .wordmark-icon {
  transform: rotate(-8deg);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  padding-bottom: 6rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  padding: 4.5rem 0 5rem;
}

.hero-copy {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--surface);
  border-radius: 4px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero-description {
  max-width: 620px;
  margin: 2rem 0 0;
  color: #b9c0c6;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-panel {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 4px;
}

.hero-panel-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #157254;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.hero-penguin {
  align-self: center;
  font-size: clamp(6rem, 13vw, 10rem);
  filter: drop-shadow(8px 10px 0 rgba(16, 24, 32, 0.14));
  transform: rotate(4deg);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
}

.hero-stats div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--ink);
}

.hero-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showdown {
  padding: 1rem 0 5rem;
}

.showdown-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.showdown-heading .eyebrow {
  color: var(--accent-dark);
  margin-bottom: 0.45rem;
}

.showdown-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.showdown-heading h2 span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.3em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.showdown-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.showdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.showdown-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  text-decoration: none;
  transition: filter 150ms ease;
}

.showdown-card:hover {
  filter: brightness(0.95);
}

.showdown-card:focus-visible {
  position: relative;
  z-index: 2;
  outline: 4px solid var(--accent);
  outline-offset: -4px;
}

.showdown-astra {
  background: #d9d2f3;
}

.showdown-penguin {
  background: var(--mint);
}

.showdown-coral {
  background: #f3b5c8;
}

.showdown-sky {
  background: #a9d9f5;
}

.showdown-label,
.showdown-open {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.showdown-card strong {
  display: block;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.showdown-card p {
  max-width: 460px;
  margin: 0;
  color: #46525b;
  font-size: 0.88rem;
}

.showdown-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 24, 32, 0.4);
}

.showdown-open span {
  font-size: 1rem;
  transition: transform 140ms ease;
}

.showdown-card:hover .showdown-open span {
  transform: translate(3px, -3px);
}

.showdown-vs {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--ink);
  border: 5px solid var(--paper);
  border-radius: 50%;
  color: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.catalog {
  padding-top: 1rem;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.catalog-heading .eyebrow {
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
}

.catalog-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) 2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--ink);
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

#search {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  outline: 0;
}

#search::placeholder {
  color: #8a9297;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.tag-filter {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: lowercase;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tag-filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.tag-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease;
}

.card:hover {
  background: var(--mint);
}

.card:focus-visible {
  position: relative;
  z-index: 1;
  outline: 4px solid var(--accent);
  outline-offset: -4px;
}

.card-number {
  margin-bottom: 3.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.card h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.badge {
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-site {
  color: #12634d;
}

.badge-code {
  color: #93402e;
}

.card-desc {
  max-width: 540px;
  margin: 1.15rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tag {
  padding: 0.22rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.card:hover .tag {
  background: #d7f2e7;
  border-color: #82bca6;
  color: #275f4f;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.card-action {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.card-action span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 140ms ease;
}

.card:hover .card-action span {
  transform: translate(3px, -3px);
}

.empty {
  padding: 5rem 1rem;
  border: 1px solid var(--ink);
  border-top: 0;
  text-align: center;
}

.empty span {
  font-size: 3rem;
}

.empty p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.back {
  display: inline-block;
  margin: 3rem 0 1.25rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.back:hover {
  color: var(--accent-dark);
}

.test-head {
  padding: 2rem 0 2.5rem;
}

.test-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.test-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.test-desc {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.open-full {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.open-full:hover {
  background: var(--accent-dark);
}

.readme-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}

.readme {
  padding: 1.2rem;
  margin: 0 0 1.5rem;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.code-box {
  overflow: hidden;
  background: #0d1117;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  background: var(--ink-soft);
  border-bottom: 1px solid #384550;
}

.tab {
  padding: 0.75rem 1rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #9ba7b2;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.tab:hover {
  color: #ffffff;
}

.tab.active {
  border-bottom-color: var(--accent);
  color: #ffffff;
}

.code-pane {
  display: none;
  padding: 1.25rem;
  margin: 0;
  overflow-x: auto;
}

.code-pane.active {
  display: block;
}

.code-pane code {
  font-family: var(--mono);
  font-size: 0.84rem;
}

.test-frame {
  display: block;
  width: 100%;
  height: 75vh;
  background: #ffffff;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.site-footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 2rem, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 4rem;
  }

  .hero-copy,
  .hero-panel {
    min-height: 390px;
  }

  .hero-panel {
    min-height: 330px;
  }

  .hero-penguin {
    font-size: 8rem;
  }

  .showdown-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

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

  .showdown-card {
    min-height: 300px;
  }

  .showdown-vs {
    top: 50%;
  }

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

  .tag-row {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .site-header {
    min-height: 76px;
  }

  .tagline {
    display: none;
  }

  .hero-copy {
    min-height: 420px;
    padding: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .showdown {
    padding-bottom: 4rem;
  }

  .showdown-heading h2 span {
    display: block;
    width: max-content;
    margin: 0.65rem 0;
    font-size: 0.24em;
  }

  .showdown-card strong {
    font-size: 2.4rem;
  }

  .card {
    min-height: 340px;
  }

  .card-top {
    flex-direction: column;
  }

  .card-number {
    margin-bottom: 2.5rem;
  }

  .site-footer {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
  }
}

.site-header,
main,
.site-footer {
  width: min(1320px, calc(100% - 3rem));
}

.hero {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
  gap: 0;
  padding: 3rem 0 5.5rem;
}

.hero-copy {
  min-height: 570px;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  border-radius: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.86;
}

.hero-description {
  max-width: 760px;
  color: #c7ced3;
}

.hero-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.35rem;
  margin-top: 2.4rem;
  border-bottom: 1px solid #6d7880;
  color: var(--surface);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-link span {
  color: var(--yellow);
  font-size: 1rem;
}

.hero-panel {
  min-height: 570px;
  padding: 2rem;
  background: #ff7b5f;
  border-radius: 0;
  border-left: 0;
}

.hero-mark {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.85rem;
}

.hero-mark span:first-child,
.hero-mark span:last-child {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: var(--ink);
  border: 2px solid var(--ink);
  color: var(--surface);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-mark span:last-child {
  background: var(--yellow);
  color: var(--ink);
}

.hero-mark span:nth-child(2) {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
}

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

.hero-stats div + div {
  padding-left: 0.8rem;
}

.hero-stats strong {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ink);
}

.section-heading .eyebrow {
  margin-bottom: 0.45rem;
  color: var(--accent-dark);
}

.section-heading h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.model-index {
  padding-bottom: 6rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.model-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.4rem;
  background: var(--surface);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: filter 140ms ease, box-shadow 140ms ease;
}

.model-card:hover {
  filter: brightness(0.96);
}

.model-card:focus-visible,
.model-card.active {
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 -9px 0 var(--accent);
  outline: 0;
}

.model-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.model-card-all {
  background: var(--ink);
  color: var(--surface);
}

.model-tone-1 {
  background: var(--mint);
}

.model-tone-2 {
  background: #d8d1ff;
}

.model-tone-3 {
  background: #a9d9f5;
}

.model-tone-4 {
  background: var(--yellow);
}

.model-tone-5 {
  background: #ffad9d;
}

.model-number {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.model-card strong {
  max-width: 320px;
  margin: auto 0 0.65rem;
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.model-card > span:last-child {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparisons {
  padding-bottom: 6rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.comparison-card {
  min-width: 0;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--ink);
}

.comparison-card-heading {
  min-height: 200px;
  padding: 0.6rem 0.6rem 1.5rem;
}

.comparison-card-heading .eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.comparison-card-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.comparison-card-heading h3 span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.28em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.comparison-card-heading > p:last-child {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.comparison-pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.comparison-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  transition: filter 140ms ease;
}

.comparison-side:hover {
  filter: brightness(0.94);
}

.comparison-side:focus-visible {
  position: relative;
  z-index: 2;
  outline: 4px solid var(--accent);
  outline-offset: -4px;
}

.comparison-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(16, 24, 32, 0.28);
}

.comparison-visual-image {
  display: grid;
  place-items: center;
}

.comparison-visual-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.comparison-visual-type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.comparison-visual-type span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-visual-type strong {
  max-width: 220px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.comparison-side > strong {
  min-height: 2.8em;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.comparison-side .showdown-open {
  margin-top: auto;
  border-top-color: rgba(16, 24, 32, 0.3);
}

.comparison-pair .showdown-vs {
  width: 48px;
  height: 48px;
  border-width: 4px;
  font-size: 0.62rem;
}

.catalog {
  padding-top: 0;
}

.catalog-heading {
  padding-bottom: 1.4rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--ink);
}

.catalog-heading h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.toolbar {
  margin-bottom: 1.5rem;
  border-top: 0;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  background: transparent;
  border: 0;
}

.card {
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.card:hover {
  background: var(--surface);
}

.card-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4e0d7;
  border-bottom: 1px solid var(--ink);
}

.card-preview-image {
  display: grid;
  place-items: center;
}

.card-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform 220ms ease;
}

.card:hover .card-preview-image img {
  transform: scale(1.025);
}

.card-preview-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--yellow);
}

.card:nth-child(5n + 2) .card-preview-placeholder {
  background: var(--mint);
}

.card:nth-child(5n + 3) .card-preview-placeholder {
  background: #d8d1ff;
}

.card:nth-child(5n + 4) .card-preview-placeholder {
  background: #a9d9f5;
}

.card:nth-child(5n + 5) .card-preview-placeholder {
  background: #ffad9d;
}

.card-preview-placeholder span {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-preview-placeholder strong {
  align-self: flex-end;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
  text-transform: uppercase;
}

.card-body {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.card-top {
  display: block;
}

.card-top .badge {
  width: max-content;
  max-width: 100%;
  display: block;
  margin-top: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  margin-bottom: 1.2rem;
}

.card .tags {
  margin-top: auto;
}

.card:hover .tag {
  background: var(--paper);
  border-color: var(--line);
  color: var(--muted);
}

@media (max-width: 1100px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-card-heading {
    min-height: 0;
  }

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

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 2rem, 1320px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-panel {
    min-height: 430px;
  }

  .hero-panel {
    border-top: 0;
    border-left: 1px solid var(--ink);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .hero-copy {
    min-height: 470px;
    padding: 2rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero-panel {
    min-height: 360px;
  }

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

  .hero-stats span {
    font-size: 0.58rem;
  }

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

  .model-card {
    min-height: 160px;
  }

  .comparison-card {
    padding: 0.75rem;
  }

  .comparison-pair {
    grid-template-columns: 1fr;
  }

  .comparison-pair .showdown-vs {
    top: 50%;
  }

  .comparison-card-heading h3 span {
    display: block;
    width: max-content;
    margin: 0.5rem 0;
  }

  .comparison-side > strong {
    min-height: 0;
  }

  .card-body {
    min-height: 320px;
  }
}

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

.card {
  background: var(--surface);
  color: var(--ink);
}

.card-preview {
  aspect-ratio: 16 / 10;
}

.card-preview-image {
  background: #ffffff;
}

.card:hover .card-preview-image img {
  transform: scale(1.012);
}

.card-preview-live {
  display: flex;
  flex-direction: column;
  background: var(--ink);
}

.embed-toolbar {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.embed-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.embed-toolbar i {
  width: 8px;
  height: 8px;
  display: block;
  flex: 0 0 auto;
  background: #5ce0a3;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(92, 224, 163, 0.2);
}

.embed-toolbar a {
  color: var(--surface);
  text-decoration: none;
}

.embed-toolbar a:hover {
  color: var(--yellow);
}

.output-frame {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  border: 0;
}

.embed-stage {
  position: relative;
  min-height: 0;
  flex: 1;
}

.card-body {
  min-height: 300px;
}

.card-action {
  text-decoration: none;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .card-preview {
    aspect-ratio: 4 / 3;
  }

  .embed-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .card-body {
    min-height: 280px;
  }
}
