/* Ori's List — design tokens + marketplace layout.
   Markup and styling only. No logic lives here or in /views. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --text: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --accent: #16a34a;              /* verified check ONLY */
  --accent-subtle: #f0fdf4;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif; /* footer tagline only */
  --maxw: 1200px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo svg { width: 22px; height: 22px; }

.search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}
.search input:focus { outline: none; border-color: #d1d5db; background: var(--bg); }
.search .kbd {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--bg);
}

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-actions a { font-size: 14px; color: var(--text-secondary); }
.header-actions a:hover { color: var(--text); text-decoration: none; }
/* `.header-actions a` (0,1,1) outranks `.btn-dark` (0,1,0), which greyed out the
   text on the dark button. Restate it at matching specificity. */
.header-actions a.btn-dark,
.header-actions a.btn-dark:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--bg-subtle); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #000; }

/* Dark-mode toggle slot — v1.1, hidden for now */
.theme-slot { display: none; }

/* ---------- Nav tabs ---------- */

.nav { border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; gap: 28px; }
.nav a {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }

/* ---------- Page head ---------- */

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 0 28px;
}
.page-head h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--text-secondary); }
.page-head .btn { margin-left: auto; flex-shrink: 0; }

/* ---------- Directory layout ---------- */

.layout { display: grid; grid-template-columns: 232px 1fr; gap: 40px; padding-bottom: 64px; }

.sidebar { font-size: 14px; }
.sidebar-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 8px;
  padding: 0 10px;
}
.sidebar-group { margin-bottom: 24px; }
.sidebar hr { border: 0; border-top: 1px solid var(--border); margin: 0 0 24px; }
.sidebar-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.sidebar-row:hover { background: var(--bg-subtle); text-decoration: none; }
.sidebar-row.active { background: #f3f4f6; font-weight: 600; }
.sidebar-row .icon { width: 16px; text-align: center; flex-shrink: 0; }
.sidebar-row .count { margin-left: auto; color: var(--text-secondary); font-size: 12px; font-weight: 400; }

.grid-head { display: flex; align-items: center; margin-bottom: 16px; }
.sort {
  margin-left: auto;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
}

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

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  flex-wrap: wrap;
}
.pager-link {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pager-link:hover { background: var(--bg-subtle); text-decoration: none; }
.pager-link.is-disabled { color: var(--text-secondary); opacity: 0.5; pointer-events: none; }
.pager-pages { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.pager-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.pager-num:hover { background: var(--bg-subtle); text-decoration: none; }
.pager-num.is-current { background: var(--text); color: #fff; font-weight: 600; }
.pager-gap { color: var(--text-secondary); padding: 0 2px; }

@media (max-width: 720px) {
  .pager { justify-content: center; }
  .pager-pages { order: -1; width: 100%; justify-content: center; margin-bottom: 8px; }
}

/* ---------- Card ---------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.card:hover { box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06); text-decoration: none; }

.card-top { display: flex; gap: 14px; align-items: flex-start; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.card-name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card-domain { color: var(--text-secondary); font-size: 13px; }
.card-desc {
  color: #374151;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Card sparkline. Monochrome — never the accent. */
.spark { display: block; width: 100%; height: 28px; margin-top: -2px; }
.spark polyline {
  fill: none;
  stroke: #9ca3af;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.card:hover .spark polyline { stroke: var(--text); }

.card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.card-metric { font-size: 13px; color: var(--text-secondary); }
.card-metric strong { color: var(--text); font-weight: 600; }
.card-pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Marks ---------- */

/* The check is the ONLY use of --accent anywhere in the system. */
.check { color: var(--accent); display: inline-flex; }
.check svg { width: 17px; height: 17px; }

.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
.pill-unclaimed { background: #fff; border: 1px solid var(--border); }
.pill-sponsored { background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border); }

.trend { font-size: 12px; font-weight: 600; }
.trend-growing { color: #15803d; }
.trend-stable  { color: var(--text-secondary); }
.trend-declining { color: #b45309; }

/* ---------- Sponsored card ---------- */
/* Pastel gradient + label. Never the accent, never the check. */

.card-sponsored {
  background: linear-gradient(160deg, #eef4ff 0%, #ffffff 62%);
  border-color: #e3ebfa;
}
.card-sponsored .card-icon { background: #fff; }
.card-sponsored .sponsored-tag { position: absolute; top: 14px; right: 14px; }
/* Keep the name clear of the absolutely-positioned Sponsored pill. */
.card-sponsored .card-top { padding-right: 84px; }

/* ---------- Profile ---------- */

.profile { padding-block: 40px 64px; max-width: 820px; }
.profile-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.profile-icon { width: 80px; height: 80px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-subtle); }
.profile h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.profile-domain { color: var(--text-secondary); font-size: 14px; }
.profile-desc { font-size: 16px; color: #374151; margin: 0 0 20px; }
.profile-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------- Form ---------- */

.form { max-width: 480px; margin-bottom: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: #9ca3af; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); }

.benefits { list-style: none; margin: 0 0 32px; padding: 0; max-width: 52ch; }
.benefits li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 15px;
  color: #374151;
}
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 5px;
  font-weight: 700;
  color: var(--text);
}
.field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.check-item input { width: auto; margin: 0; }
.check-item:has(input:disabled) { color: var(--text-secondary); cursor: not-allowed; opacity: 0.55; }
.counter { color: var(--text); font-weight: 600; }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }

.proof {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}
.proof-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 16px; }
.proof-row { display: flex; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.proof-row:first-of-type { border-top: 0; }
/* When a chart precedes the stats, restore the rule so the two blocks separate. */
.chart + dl .proof-row:first-of-type { border-top: 1px solid var(--border); }
.proof-row dt { color: var(--text-secondary); margin: 0; }
.proof-row dd { margin: 0 0 0 auto; font-weight: 600; text-align: right; }
.proof-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); }

/* ---------- Clicks chart ---------- */
/* Monochrome. The accent belongs to the verified check alone. */

/* Sits inside the proof panel, between the header and the stats, so it carries no
   border of its own — just a rule separating it from the rows below. */
.chart {
  margin: 0 0 4px;
  padding-bottom: 18px;
}
.chart-head { display: flex; align-items: baseline; margin-bottom: 14px; }
.chart-title { font-weight: 600; font-size: 15px; }
.chart-peak { margin-left: auto; font-size: 13px; color: var(--text-secondary); }
/* Scales proportionally — no preserveAspectRatio="none", or the labels would
   stretch with the bars. */
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg rect { fill: #d1d5db; }
.chart-svg rect:hover { fill: var(--text); }
.chart-svg line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-value {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  fill: var(--text);
  text-anchor: middle;
}
.chart-month {
  font-family: var(--font);
  font-size: 10px;
  fill: var(--text-secondary);
  text-anchor: middle;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.chart-foot span:nth-child(2) { text-align: center; }

.embed { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.embed h3 { margin: 0 0 12px; font-size: 15px; }
.embed-preview { margin: 0 0 16px; }
.embed-preview img { display: block; max-width: 100%; height: auto; }
.embed code {
  display: block;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre;
  color: #374151;
}

.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  padding: 18px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ---------- Owner status bar ----------
   Seen only by the listing's own owner. Tones are neutral by design: the accent
   green belongs to the verified check alone, so a paid-but-unverified listing
   can never borrow the colour of verification. */

.owner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}

.owner-bar strong { color: var(--text); margin-right: 6px; }
.owner-bar .btn { flex: none; }

.owner-bar--info { border-left-color: var(--text-secondary); }
.owner-bar--success { border-left-color: var(--text); }
.owner-bar--pending { border-left-color: #d97706; }
.owner-bar--warning { border-left-color: #b45309; background: #fffbeb; border-color: #fde68a; }

/* ---------- Home ---------- */

.hero { padding-block: 88px 64px; text-align: center; }
.hero h1 { margin: 0 auto 16px; font-size: 52px; line-height: 1.1; letter-spacing: -0.035em; max-width: 15ch; }
.hero p { margin: 0 auto 32px; font-size: 18px; color: var(--text-secondary); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 40px; }
.strip h3 { margin: 0 0 6px; font-size: 15px; }
.strip p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.section { padding-block: 56px; }
.section-head { display: flex; align-items: baseline; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.section-head a { margin-left: auto; font-size: 14px; color: var(--text-secondary); }

/* ---------- Pricing ---------- */

/* Comparison table. Wide content scrolls inside its own container so the page
   body never scrolls horizontally. */
.table-scroll { overflow-x: auto; padding-bottom: 24px; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th,
.compare td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare thead th {
  border-bottom: 1px solid var(--text);
  padding-top: 0;
  padding-bottom: 18px;
  vertical-align: bottom;
}
/* First column: the feature name. Left-aligned, and it stays put while the rest
   of the table scrolls on narrow screens. */
.compare th[scope="row"],
.compare thead th:first-child,
.compare tfoot th {
  text-align: left;
  font-weight: 400;
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--bg);
  min-width: 260px;
}
/* Info tooltip. A real <button> so it is keyboard focusable and, crucially,
   tappable on touch devices — :hover alone never fires there. */
.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
.info:hover, .info:focus-visible { border-color: var(--text); color: var(--text); }
.info:focus { outline: none; }
.info-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 20;
  pointer-events: none;
}
/* Hover for pointers; focus/focus-within for keyboard and touch, where :hover
   never fires. Tapping a <button> focuses it, which is why this is a button. */
.info:hover .info-tip,
.info:focus .info-tip,
.info:focus-within .info-tip { opacity: 1; visibility: visible; }
.compare .col-plan { display: block; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.compare .col-price { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.compare .col-price em { font-style: normal; font-size: 13px; font-weight: 400; color: var(--text-secondary); }

.compare tr.group th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  font-weight: 600;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Neutral marks — the accent colour belongs to the verified check alone. */
.compare .yes { color: var(--text); font-weight: 700; }
.compare .no { color: var(--text-secondary); }

/* The featured column gets a tint, never the accent. */
.compare .col-featured { background: var(--bg-subtle); }
.compare thead th.col-featured { background: var(--bg-subtle); }

.compare tfoot td { padding-top: 20px; padding-bottom: 4px; border-bottom: 0; }
.compare tfoot th { border-bottom: 0; }
.compare tfoot .btn { justify-content: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 24px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan-featured { border-color: #d1d5db; box-shadow: 0 2px 14px rgba(17, 24, 39, 0.06); }
.plan h2 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.plan .blurb { color: var(--text-secondary); font-size: 14px; margin: 6px 0 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; }
.plan li { padding: 6px 0 6px 20px; position: relative; }
.plan li::before { content: "·"; position: absolute; left: 6px; color: var(--text-secondary); }
.plan .btn { margin-top: auto; justify-content: center; }

.fineprint { border-top: 1px solid var(--border); padding: 32px 0 64px; font-size: 14px; color: var(--text-secondary); max-width: 68ch; }
.fineprint strong { color: var(--text); }

.faq { padding-bottom: 64px; max-width: 68ch; }
.faq h3 { margin: 24px 0 6px; font-size: 16px; }
.faq p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); padding-top: 56px; }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;              /* the only serif italic in the system */
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 44px;
  max-width: 22ch;
}
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding-bottom: 44px; }
.footer-cols h4 {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 4px 0; }
.footer-cols a { font-size: 14px; color: var(--text-secondary); }
.footer-cols a:hover { color: var(--text); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding-block: 20px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-social { margin-left: auto; display: flex; gap: 14px; }
.footer-social a { color: var(--text-secondary); display: inline-flex; }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid, .plans, .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 200px 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .search { display: none; }
  .grid, .plans, .strip-inner, .footer-cols { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; }
  .sidebar-group { margin-bottom: 0; }
  .sidebar hr { display: none; }
  .page-head { flex-direction: column; gap: 16px; }
  .page-head .btn { margin-left: 0; }
  /* Keep the sticky feature column narrow enough that the plan columns are
     actually reachable on a phone. */
  .compare { min-width: 560px; font-size: 13px; }
  .compare th,
  .compare td { padding: 10px; }
  .compare th[scope="row"],
  .compare thead th:first-child,
  .compare tfoot th { min-width: 150px; }
  .compare .col-price { font-size: 18px; }
  .compare .btn { padding: 0 12px; font-size: 13px; }
  /* Shrinking the chart to phone width makes the value labels unreadable, so it
     keeps a usable size and scrolls inside its own container instead. */
  .chart-svg { min-width: 520px; }
  .hero { padding-block: 56px 40px; }
  .hero h1 { font-size: 36px; }
}
