/* Tabhaven site styles. No external fonts or assets. */

:root {
  color-scheme: light dark;

  --bg: #fbfaf7;
  --bg-alt: #f1f5f4;
  --surface: #ffffff;
  --surface-2: #f6f8f7;
  --text: #17211f;
  --muted: #4a5a57;
  --border: #dbe4e2;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --primary-soft: #e3f3f0;
  --on-primary: #ffffff;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-text: #8a3c0b;
  --link: #0f766e;
  --focus: #b45309;
  --shadow: 0 1px 2px rgb(15 40 37 / 0.06), 0 8px 24px rgb(15 40 37 / 0.08);
  --shadow-lg: 0 2px 4px rgb(15 40 37 / 0.06), 0 18px 48px rgb(15 40 37 / 0.14);

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1312;
    --bg-alt: #0f1a19;
    --surface: #142220;
    --surface-2: #1a2b29;
    --text: #e4eeec;
    --muted: #a2b4b0;
    --border: #25403c;
    --primary: #2dd4bf;
    --primary-strong: #5eead4;
    --primary-soft: #123531;
    --on-primary: #032420;
    --accent: #fbbf24;
    --accent-soft: #3b2a0b;
    --accent-text: #fcd34d;
    --link: #5eead4;
    --focus: #fbbf24;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.4), 0 18px 48px rgb(0 0 0 / 0.5);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 750;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.38em;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

kbd {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.4em;
  line-height: 1.4;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.2em;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  overflow-wrap: normal;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 760px);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary-strong);
}

@media (max-width: 900px) {
  /* Home is the logo; GitHub is in the hero and footer. */
  .nav-secondary {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 1rem;
  }
  /* Two rows on phones would cover too much of the screen if sticky. */
  .site-header {
    position: static;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 0.45rem 0.25rem;
    gap: 0.1rem 0.75rem;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: -0.6rem;
  }
  .site-nav ul {
    gap: 0;
  }
  .site-nav ul {
    flex-wrap: nowrap;
  }
  .site-nav a {
    min-height: 44px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .site-nav a {
    padding-inline: 0.45rem;
    font-size: clamp(0.8rem, 3.6vw, 0.9rem);
  }
  .nav-cta {
    min-height: 40px;
    font-size: 0.9rem;
    padding-inline: 0.9rem;
  }
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
}

/* Store button before a listing is live: visibly a button, clearly not clickable. */
.btn-store {
  font-family: inherit;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  cursor: not-allowed;
}

.btn-store:hover,
.btn-store:disabled:hover {
  transform: none;
}

.btn-store svg {
  color: var(--primary);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 650;
}

.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.meta-line {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--primary-soft), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero h1 {
  margin-top: 1rem;
}

.hero .lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  max-width: 36em;
}

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background: radial-gradient(50rem 22rem at 90% -20%, var(--primary-soft), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
}

.page-hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---------- Illustration ---------- */

.illustration {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.ill-window {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.ill-chrome {
  fill: var(--surface-2);
}

.ill-tab {
  fill: var(--surface);
  stroke: var(--border);
}

.ill-tabs {
  opacity: 0.45;
}

.ill-line {
  fill: var(--muted);
  opacity: 0.28;
}

.ill-line-strong {
  fill: var(--text);
  opacity: 0.7;
}

.ill-field {
  fill: var(--bg);
  stroke: var(--border);
}

.ill-card {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
  filter: drop-shadow(0 14px 22px rgb(15 40 37 / 0.18));
}

.ill-divider {
  stroke: var(--border);
  stroke-width: 1.5;
}

.ill-star {
  fill: var(--accent);
}

.ill-btn {
  fill: var(--primary);
}

.ill-btn-text {
  fill: var(--on-primary);
  font: 700 12px var(--font);
}

.ill-title {
  fill: var(--text);
  font: 750 15px var(--font);
}

.ill-meta {
  fill: var(--muted);
  font: 500 11.5px var(--font);
}

.ill-label {
  fill: var(--muted);
  font: 600 12px var(--mono);
}

.ill-doc {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.ill-doc-back {
  fill: var(--primary-soft);
  stroke: var(--primary);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0.8;
}

.ill-doc-text {
  fill: var(--primary-strong);
  font: 800 11px var(--mono);
}

.ill-check-bg {
  fill: var(--primary);
}

.ill-check {
  fill: none;
  stroke: var(--on-primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
}

.ill-arrowhead {
  fill: var(--accent);
}

.c1 { fill: #0f766e; }
.c2 { fill: #f59e0b; }
.c3 { fill: #6366f1; }
.c4 { fill: #e11d48; }
.c5 { fill: #0284c7; }

@media (prefers-color-scheme: dark) {
  .c1 { fill: #2dd4bf; }
  .c3 { fill: #a5b4fc; }
  .c4 { fill: #fb7185; }
  .c5 { fill: #38bdf8; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

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

.grid > *,
.split > *,
.hero-grid > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

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

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 1rem;
}

/* Problem section */

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.lost-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.lost-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.lost-list svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  color: var(--accent-text);
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.steps > li {
  min-width: 0;
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.15rem 4.1rem;
  box-shadow: var(--shadow);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.steps > li h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.08rem;
}

.steps > li p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.steps > li p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .steps-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Callouts */

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-warn {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}

/* Formats / chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.chips li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 550;
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.5em;
  width: 0.32rem;
  height: 0.6rem;
  border: solid var(--primary-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Privacy band */

.privacy-band {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .privacy-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

.privacy-band .card {
  text-align: center;
  padding: 1.4rem 1rem;
}

.privacy-band .card strong {
  display: block;
  font-size: 1.12rem;
  margin: 0.6rem 0 0.2rem;
}

.privacy-band .icon {
  margin-inline: auto;
}

/* Availability */

.store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-card h3 {
  margin-top: 0.9rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-text);
}

.status-active::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.availability-actions {
  margin-bottom: 0;
}

/* FAQ */

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

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650;
  font-size: 1.05rem;
  position: relative;
  border-radius: var(--radius);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq details > div {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
}

.faq details > div ul {
  padding-left: 1.2rem;
}

.faq details > div li + li {
  margin-top: 0.3rem;
}

.faq details > div p:last-child,
.faq details > div ul:last-child {
  margin-bottom: 0;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

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

th {
  background: var(--surface-2);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

/* Article pages */

.prose {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.prose h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  margin-top: 2.6rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose > .narrow > h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose .steps,
.prose .checklist,
.prose .chips {
  padding-left: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
}

.toc h2 {
  font-size: 0.95rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem !important;
}

.toc ol {
  margin: 0;
}

.cta-panel {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--accent-soft) 60%, var(--surface)));
  border: 1px solid var(--border);
}

.cta-panel h2 {
  margin-top: 0 !important;
}

.cta-panel .btn-row {
  margin-bottom: 0;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner .brand {
  font-size: 1rem;
}

.footer-inner .brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.55rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.after-band {
  margin-top: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .btn-row > .btn {
    flex: 1 1 100%;
  }
  .btn-store {
    font-size: 0.94rem;
    padding-inline: 0.85rem;
    gap: 0.45rem;
  }
  .card {
    padding: 1.25rem 1.15rem 1.1rem;
  }
  .steps > li {
    padding: 1rem 1.1rem 1.1rem 3.5rem;
  }
  .steps > li::before {
    left: 0.85rem;
    top: 0.95rem;
    width: 2rem;
    height: 2rem;
  }
  .cta-panel {
    padding: 1.35rem 1.1rem;
  }
  .cta-panel .btn-store {
    font-size: 0.9rem;
  }
  .cta-panel .btn-store svg {
    display: none;
  }
  .footer-links {
    row-gap: 0;
  }
  /* Two-column tables with long values: stack each row as a label and a value. */
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table-stack table,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
  }
  .table-stack tr {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .table-stack tr:last-child {
    border-bottom: 0;
  }
  .table-stack td {
    padding: 0;
    border: 0;
  }
  .table-stack td:first-child {
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: 0.1em;
}

td > .tag {
  display: block;
  width: fit-content;
  margin: 0.35rem 0 0;
}

td:first-child > code {
  white-space: nowrap;
  overflow-wrap: normal;
}
