:root {
  --gutter: 20px;
  --header-h: 56px;
  --buybar-h: 68px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: var(--link);
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--h-weight);
  letter-spacing: var(--h-tracking);
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.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;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}

.skip-link:focus {
  top: 8px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  position: relative;
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.section__head h1,
.section__head h2 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

.lead {
  margin-top: 1rem;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

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

.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--link);
}

.btn--sm {
  min-height: 44px;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-hover);
  }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.menu-toggle__bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.menu-toggle__bar:first-child {
  top: 17px;
}

.menu-toggle__bar:last-child {
  top: 25px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  padding: 0.5rem var(--gutter) 1rem;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.site-nav li:last-child a {
  border-bottom: 0;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    background: none;
    border: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 0.75rem;
    border: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
  }
}

@media (hover: hover) {
  .site-nav a:hover {
    color: var(--text);
  }
}

/* Hero */
.hero {
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
}

.hero .lead {
  max-width: 36rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__actions .btn {
  width: 100%;
  max-width: 320px;
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
  }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-chip);
  background: var(--chip-bg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  isolation: isolate;
  max-width: 320px;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto clamp(0.5rem, 2vw, 1rem);
}

.devices--wide {
  display: none;
}

@media (min-width: 640px) {
  .hero__visual {
    max-width: 520px;
  }

  .devices--tall {
    display: none;
  }

  .devices--wide {
    display: block;
  }
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -15% -10%;
  z-index: -1;
  background: var(--glow);
}

.devices .flow {
  fill: none;
  stroke: var(--link);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  animation: dash 1.2s linear infinite;
}

.devices .floor {
  fill: var(--floor);
}

.devices--detailed .flow--out {
  stroke: var(--text-muted);
}

.devices--detailed .tunnel-track {
  fill: none;
  stroke: var(--link);
  stroke-opacity: 0.15;
  stroke-width: 20;
}

.devices--detailed .wall rect {
  fill: var(--device-edge);
}

.devices--detailed .wall__mortar {
  fill: none;
  stroke: var(--device-body);
  stroke-width: 2;
}

.devices--detailed .wall__label {
  fill: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.devices--detailed .badge {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1.5;
}

.devices--detailed .badge__icon {
  color: var(--link);
}

.devices--detailed .net-icon {
  color: var(--device-mark);
}

.devices--detailed .link {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.devices--detailed .link--wireless {
  stroke-dasharray: 2 6;
}

.devices--detailed .ip-chip {
  fill: var(--bg);
  stroke: var(--border);
  stroke-width: 1.5;
}

.devices--detailed .ip-label {
  fill: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
}

.devices--tall .ip-label {
  font-size: 12px;
}

@keyframes dash {
  to {
    stroke-dashoffset: -12;
  }
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

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

.step__num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--link);
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.tunnel-figure {
  margin-top: clamp(1rem, 3vw, 1.5rem);
  padding: 2rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.tunnel-figure .devices--wide {
  max-width: 920px;
  margin: 0 auto;
}

.tunnel-figure .devices--tall {
  max-width: 320px;
  margin: 0 auto;
}

.tunnel-figure figcaption {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .tunnel-figure {
    padding: 3rem;
  }
}

/* Use cases */
.cards {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

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

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-icon);
  background: var(--accent-soft);
  color: var(--link);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

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

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

@media (min-width: 640px) and (max-width: 1023.98px) {
  .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

/* Comparison */
.compare {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  border-collapse: collapse;
  font-size: 1rem;
}

.compare th,
.compare td {
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare thead th:not(:first-child),
.compare td {
  width: 4.75rem;
}

.compare th[scope="row"] {
  padding-left: 0;
  font-weight: 400;
  text-align: left;
}

.compare thead th {
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.compare thead th.is-ours {
  color: var(--link);
  border-radius: 12px 12px 0 0;
}

.compare .is-ours {
  background: var(--accent-soft);
}

.compare .text-cell {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.compare .is-ours.text-cell {
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 640px) {
  .compare {
    font-size: 1.0625rem;
  }

  .compare thead th:not(:first-child),
  .compare td {
    width: 9rem;
  }

  .compare thead th {
    font-size: 0.9375rem;
  }
}

.mark {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
}

.mark--yes {
  background: var(--ok);
}

.mark--yes::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--on-ok);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mark--no {
  border: 1.5px solid var(--no);
}

.mark--no::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--no);
  transform: translate(-50%, -50%);
}

/* Pricing */
.plans {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.plan--featured {
  border: 2px solid var(--accent);
}

.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-chip);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Guarantee stamp */
.stamp {
  position: absolute;
  top: -3.25rem;
  right: -0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10.25em;
  aspect-ratio: 1;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: var(--bg);
  color: var(--stamp);
  font-size: 0.5625rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.92;
  rotate: -12deg;
  user-select: none;
  animation: stamp-wobble 5s ease-in-out infinite;
  transition: scale 0.2s;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
}

.stamp__big {
  font-size: 2.6em;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stamp__unit {
  font-size: 0.9em;
  letter-spacing: 0.2em;
}

.stamp__main {
  font-size: 1.05em;
}

.stamp__note {
  max-width: 6em;
  margin-top: 0.3em;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes stamp-wobble {
  0%,
  100% {
    rotate: -12deg;
  }

  50% {
    rotate: -7deg;
  }
}

@media (hover: hover) {
  .stamp:hover {
    scale: 1.08;
    animation-duration: 0.8s;
  }
}

@media (min-width: 1024px) {
  .stamp {
    top: 1.5rem;
    right: auto;
    left: calc(100% + 1.5rem);
    font-size: 0.8125rem;
  }
}

.plan__visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

.plan__visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: var(--glow);
}

.plan h3 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
}

.plan__tagline {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.price__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3rem);
  font-weight: var(--h-weight);
  letter-spacing: var(--h-tracking);
  line-height: 1;
}

.price__note {
  color: var(--text-muted);
}

.checklist {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist .mark {
  flex: 0 0 auto;
  margin-top: 1px;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.plans__fineprint {
  margin-top: 1.5rem;
  text-align: center;
}

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

/* Order form */
.order-form {
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field + .field {
  margin-top: 2.5rem;
}

.field legend,
.order-step {
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
}

.field legend {
  margin-bottom: 0.5rem;
}

.order-step__note {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.kit-options {
  display: grid;
  gap: 0.75rem;
}

.kit-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.kit-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.kit-option input:focus-visible {
  outline: none;
}

.kit-option:has(:focus-visible) {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.kit-option:has(:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.kit-option__name {
  font-weight: 600;
}

.kit-option__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--h-weight);
}

.kit-option__desc {
  grid-column: 2 / -1;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.order-form__status:not(:empty) {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
}

@media (hover: hover) {
  .kit-option:hover {
    border-color: var(--link);
  }
}

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

  .kit-option {
    grid-template-columns: auto 1fr;
    align-content: start;
  }

  .kit-option__price {
    grid-column: 2;
    font-size: 1.5rem;
  }

  .kit-option__desc {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
}

.cal-embed {
  width: 100%;
  overflow: auto;
}

.cal-embed:has(iframe) {
  min-height: 650px;
}

.cal-embed__placeholder {
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  color: var(--text-muted);
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}

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

.faq details p {
  max-width: 62ch;
  padding-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding-block: 3rem calc(var(--buybar-h) + 3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

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

.disclaimer {
  max-width: 60ch;
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 3rem;
  }
}

.site-footer--no-buybar {
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

/* Mobile sticky buy bar */
.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--buybar-h);
  padding: 0.75rem max(var(--gutter), env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--header-border);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.buybar.is-visible {
  transform: none;
}

.buybar__text {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.buybar__text strong {
  font-size: 1rem;
  color: var(--text);
}

@media (min-width: 1024px) {
  .buybar {
    display: none;
  }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle .icon {
  display: none;
  width: 20px;
  height: 20px;
}

[data-theme-mode="system"] .theme-toggle [data-mode="system"],
[data-theme-mode="light"] .theme-toggle [data-mode="light"],
[data-theme-mode="dark"] .theme-toggle [data-mode="dark"] {
  display: block;
}

.theme-menu {
  position: relative;
}

.theme-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 10rem;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.theme-menu__list button {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
}

.theme-menu__list button:focus-visible {
  outline-offset: -2px;
}

.theme-menu__list .icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.theme-menu__list [aria-checked="true"],
.theme-menu__list [aria-checked="true"] .icon {
  font-weight: 600;
  color: var(--link);
}

.theme-menu__list [aria-checked="true"]::after {
  content: "";
  width: 5px;
  height: 10px;
  margin-left: auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

@media (hover: hover) {
  .theme-toggle:hover,
  .theme-menu__list button:hover {
    background: var(--accent-soft);
  }
}
