:root {
  --bg-base: linear-gradient(180deg, #fbf7ef 0%, #eef3f7 100%);
  --bg-accent:
    radial-gradient(circle at 0% 0%, rgba(248, 208, 136, 0.55) 0, transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(134, 184, 240, 0.4) 0, transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(84, 153, 138, 0.12) 0, transparent 30%);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(250, 251, 253, 0.92);
  --text: #172033;
  --muted: #475266;
  --line: rgba(23, 32, 51, 0.1);
  --line-strong: rgba(23, 32, 51, 0.16);
  --primary: #0f766e;
  --primary-strong: #0c5f59;
  --primary-soft: #e5f3f1;
  --warning: #fff6e4;
  --warning-line: #f1c46f;
  --warning-text: #6b3e0b;
  --success: #0a7d56;
  --shadow-lg: 0 22px 50px rgba(19, 28, 45, 0.09);
  --shadow-md: 0 16px 32px rgba(19, 28, 45, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1160px;
  --article-width: 920px;
  --font-stack: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  margin: 0;
  font-family: var(--font-stack);
  background: var(--bg-accent), var(--bg-base);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  transform: translateY(-200%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.page-shell {
  min-height: 100vh;
  min-width: 0;
}

.hero,
.main-content,
.site-footer {
  width: min(calc(100% - 1.25rem), var(--container));
  margin: 0 auto;
}

.hero {
  padding: 0.9rem 0 1.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #46a7a0);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.ghost-link {
  color: var(--muted);
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
}

.hero-content {
  display: grid;
  gap: 1rem;
}

.hero-copy,
.hero-panel,
.card {
  min-width: 0;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 1.5rem;
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.3rem, 8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-text,
.section-heading p,
.faq-list p,
.result-subcopy,
.empty-state p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

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

.hero-panel {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.38rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-content {
  padding-bottom: 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.2rem;
}

.section-heading h2 {
  margin: 0.12rem 0 0.55rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hardware-grid {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.2rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field select,
.custom-hardware-input {
  width: 100%;
  appearance: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  padding: 0.95rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.custom-hardware-input[hidden] {
  display: none;
}

.custom-hardware-input:invalid {
  border-color: var(--warning-line);
}

.disclaimer-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.22rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease,
    box-shadow 140ms ease;
}

.button:hover,
.button:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
.brand:focus-visible,
.ghost-link:focus-visible,
.article-card a:focus-visible,
.footer-pill:focus-visible,
summary:focus-visible,
select:focus-visible,
.custom-hardware-input:focus-visible,
.share-field input:focus-visible,
.copy-button:focus-visible,
.skip-link:focus-visible,
.results-card:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #10908b);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.button-secondary {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.22);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.08);
}

.button-full {
  width: 100%;
}

.field-action {
  align-self: end;
}

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

.share-panel {
  min-width: 0;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(229, 243, 241, 0.9), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.share-header p,
.share-status {
  color: #334155;
}

.share-header h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.share-header p {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}

.share-controls {
  min-width: 0;
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.share-field input {
  min-width: 0;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  padding: 0.95rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
}

.share-button {
  white-space: nowrap;
}

.share-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.checklist-panel {
  min-width: 0;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 118, 110, 0.14);
  box-shadow: var(--shadow-md);
}

.comparison-panel {
  min-width: 0;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.comparison-header h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.comparison-header p {
  margin: 0.3rem 0 0;
  color: #334155;
}

.comparison-table-wrap {
  max-width: 100%;
  min-width: 0;
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.8rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table td {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
}

.comparison-model {
  font-weight: 800;
}

.comparison-command {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.comparison-command code {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow-x: auto;
  white-space: nowrap;
}

.checklist-header h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.checklist-header p,
.checklist-status,
.checklist-item-copy {
  color: #334155;
}

.checklist-header p {
  margin: 0.3rem 0 0;
}

.checklist-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.checklist-list li + li {
  margin-top: 0.8rem;
}

.checklist-item-copy {
  display: block;
  margin-top: 0.2rem;
}

.checklist-command {
  margin-top: 0.55rem;
  min-width: 0;
}

.checklist-command-group {
  margin-top: 0.55rem;
  min-width: 0;
}

.checklist-command-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 800;
}

.checklist-command-block {
  max-width: 100%;
  min-width: 0;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  overflow-x: auto;
}

.checklist-command-block code {
  display: block;
  color: #f8fafc;
  white-space: nowrap;
  overflow-x: auto;
}

.checklist-copy-button {
  margin-top: 0.6rem;
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  box-shadow: none;
}

.checklist-copy-button:hover,
.checklist-copy-button:focus-visible {
  background: #1d4ed8;
}

.checklist-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checklist-status {
  min-height: 1.5rem;
  margin: 0;
  font-size: 0.88rem;
}

.result-card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.result-card.best-match {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 22px 44px rgba(15, 118, 110, 0.12);
}

.result-card.best-match::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.4), rgba(92, 170, 132, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-rank {
  background: #eef1f7;
  color: #344056;
}

.badge-best {
  background: #e7f7ef;
  color: var(--success);
}

.badge-size {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.result-top {
  display: grid;
  gap: 0.45rem;
}

.result-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.result-top h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.1;
}

.result-subcopy {
  margin: 0;
}

.scan-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.scan-item {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid rgba(23, 32, 51, 0.06);
}

.scan-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.scan-item strong {
  display: block;
  margin-bottom: 0.24rem;
  font-size: 1rem;
}

.why-block {
  margin-top: 0.95rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: #f7fbfa;
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.why-block strong {
  display: block;
  margin-bottom: 0.28rem;
}

.command-block {
  max-width: 100%;
  min-width: 0;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  background: #0f1726;
  color: #edf4ff;
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.command-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.command-meta {
  min-width: 0;
}

.command-meta strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  color: rgba(248, 251, 255, 0.94);
}

.command-row code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
}

.copy-button {
  justify-self: start;
  min-width: 82px;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.checklist-copy-button:not([data-state="copied"]):not([data-state="failed"]),
.comparison-command .copy-button:not([data-state="copied"]):not([data-state="failed"]) {
  border: 1px solid #1d4ed8;
  background: #2563eb;
  color: #ffffff;
  opacity: 1;
}

.checklist-copy-button:not([data-state="copied"]):not([data-state="failed"]):hover,
.comparison-command .copy-button:not([data-state="copied"]):not([data-state="failed"]):hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.checklist-copy-button:not([data-state="copied"]):not([data-state="failed"]):focus-visible,
.comparison-command .copy-button:not([data-state="copied"]):not([data-state="failed"]):focus-visible {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.checklist-copy-button:not([data-state="copied"]):not([data-state="failed"]):active,
.comparison-command .copy-button:not([data-state="copied"]):not([data-state="failed"]):active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.copy-button[data-state="copied"] {
  background: rgba(10, 125, 86, 0.3);
  border-color: rgba(92, 202, 151, 0.3);
}

.copy-button[data-state="failed"] {
  background: rgba(138, 63, 31, 0.3);
  border-color: rgba(255, 177, 140, 0.26);
}

.warning-cluster {
  margin-top: 0.95rem;
  padding-left: 1.1rem;
}

.warning-cluster li + li,
.warning-list li + li,
.steps-list li + li {
  margin-top: 0.55rem;
}

.inline-warning,
.warning-card {
  background: linear-gradient(180deg, rgba(255, 246, 228, 0.92), rgba(255, 251, 240, 0.95));
  border-color: rgba(241, 196, 111, 0.48);
}

.inline-warning {
  border: 1px solid var(--warning-line);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  color: var(--warning-text);
  margin-top: 1rem;
}

.resources-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.8rem;
}

.resources-card .section-heading {
  flex: 1 0 100%;
}

.feedback-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

.feedback-card p {
  margin: 0;
  color: #dbeafe;
  font-weight: 700;
}

.feedback-card a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.empty-state {
  min-width: 0;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed var(--line-strong);
}

.empty-state h3 {
  margin: 0 0 0.4rem;
}

.result-card ul,
.warning-list,
.steps-list {
  padding-left: 1.15rem;
}

.steps-list code,
.warning-list code,
.result-card code {
  overflow-wrap: anywhere;
}

.upgrade-copy {
  font-size: 1.02rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.9rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--primary-strong);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "−";
}

.site-footer {
  padding: 0 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-pill {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.08);
  padding: 0.72rem 1rem;
  color: var(--muted);
  font-weight: 700;
}

.article-hero,
.article-main {
  width: min(calc(100% - 1.25rem), var(--article-width));
  max-width: none;
}

.article-hero {
  padding-bottom: 1rem;
}

.article-card {
  padding: 1.2rem;
}

.article-card section + section {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-card h3 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1.16rem;
  line-height: 1.2;
}

.article-card p,
.article-card li {
  color: var(--muted);
}

.article-card strong,
.article-card h2,
.article-card h3 {
  color: var(--text);
}

.article-card a {
  color: var(--primary-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-card .button {
  color: #fff;
  text-decoration: none;
}

.article-card .button-secondary {
  color: var(--primary-strong);
}

.article-card ul,
.article-card ol {
  padding-left: 1.25rem;
}

.article-card li + li {
  margin-top: 0.45rem;
}

.article-card code {
  overflow-wrap: anywhere;
}

.article-card p code,
.article-card li code,
.article-table code {
  border-radius: 0.45rem;
  padding: 0.12rem 0.34rem;
  background: rgba(15, 118, 110, 0.09);
  color: var(--primary-strong);
  font-size: 0.94em;
}

.article-card pre {
  max-width: 100%;
  margin: 0.85rem 0 1rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.article-card pre code {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: #f8fafc;
  white-space: pre;
}

.article-card blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary-soft);
}

.article-card blockquote p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.article-table-wrap {
  max-width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-table th,
.article-table td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--surface-soft);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-table td {
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.article-cta {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(229, 243, 241, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.internal-links {
  display: grid;
  gap: 0.45rem;
}

.article-bottom-nav {
  display: grid;
  gap: 1rem;
}

.hidden {
  display: none;
}

@media (hover: none) {
  .button:hover,
  .copy-button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .copy-button,
  .skip-link {
    transition: none;
  }
}

@media (min-width: 720px) {
  .hero,
  .main-content,
  .site-footer {
    width: min(calc(100% - 2rem), var(--container));
  }

  .article-hero,
  .article-main {
    width: min(calc(100% - 2rem), var(--article-width));
  }

  .hero {
    padding-top: 1.4rem;
  }

  .topbar {
    margin-bottom: 2.35rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.95fr);
    align-items: stretch;
  }

  .hero-copy {
    padding: 2.15rem;
  }

  .card {
    padding: 1.45rem;
  }

  .article-card {
    padding: 2rem;
  }

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

  .field-action {
    grid-column: span 2;
  }

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

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

  .share-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .checklist-actions {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .comparison-command {
    min-width: 250px;
  }

  .command-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .copy-button {
    justify-self: end;
  }
}

@media (max-width: 719px) {
  :root {
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --shadow-lg: 0 10px 24px rgba(19, 28, 45, 0.07);
    --shadow-md: 0 8px 18px rgba(19, 28, 45, 0.05);
  }

  body {
    background: linear-gradient(180deg, #fbf7ef 0%, #eef3f7 100%);
  }

  .hero,
  .main-content,
  .site-footer {
    width: min(calc(100% - 1rem), var(--container));
  }

  .article-hero,
  .article-main {
    width: min(calc(100% - 1rem), var(--article-width));
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .hero-panel,
  .card {
    border-radius: var(--radius-lg);
    backdrop-filter: none;
    border-color: rgba(23, 32, 51, 0.08);
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .brand-mark,
  .result-card,
  .result-card.best-match,
  .comparison-panel,
  .checklist-panel,
  .share-panel,
  .checklist-command-block {
    box-shadow: none;
  }

  .result-card.best-match::before {
    display: none;
  }

  .main-content > section {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }

  .button,
  .copy-button {
    max-width: 100%;
    white-space: normal;
  }

  .share-button,
  .checklist-actions .button {
    width: 100%;
  }

  .comparison-panel,
  .checklist-panel,
  .share-panel {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .comparison-table-wrap {
    overflow-x: visible;
  }

  .comparison-table {
    width: 100%;
    min-width: 0;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    border: 1px solid rgba(23, 32, 51, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    overflow: hidden;
  }

  .comparison-table tr + tr {
    margin-top: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    display: grid;
    grid-template-columns: minmax(6.6rem, 0.38fr) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(23, 32, 51, 0.08);
    background: transparent;
    overflow-wrap: anywhere;
  }

  .comparison-table tr > :last-child {
    border-bottom: 0;
  }

  .comparison-table th::before,
  .comparison-table td::before {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .comparison-table th:nth-child(1)::before {
    content: "Model";
  }

  .comparison-table td:nth-child(2)::before {
    content: "Size";
  }

  .comparison-table td:nth-child(3)::before {
    content: "Best for";
  }

  .comparison-table td:nth-child(4)::before {
    content: "Performance";
  }

  .comparison-table td:nth-child(5)::before {
    content: "Speed";
  }

  .comparison-table td:nth-child(6)::before {
    content: "Quality";
  }

  .comparison-table td:nth-child(7)::before {
    content: "Coding";
  }

  .comparison-table td:nth-child(8)::before {
    content: "Vision";
  }

  .comparison-table td:nth-child(9)::before {
    content: "Pull";
  }

  .comparison-command code,
  .checklist-command-block code,
  .article-card pre code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topbar-links {
    gap: 1rem;
  }

  .article-main {
    max-width: none;
  }

  .article-card {
    padding: 1rem;
  }

  .article-card section + section {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
  }

  .article-table {
    min-width: 620px;
  }

  .comparison-command .copy-button,
  .checklist-copy-button,
  .command-row .copy-button {
    justify-self: stretch;
    width: 100%;
  }

  .checklist-list {
    padding-left: 1rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    gap: 1.15rem;
  }

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

  .field-action {
    grid-column: auto;
  }

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