:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-soft: #f4f4f5;
  --text: #27272a;
  --muted: #71717a;
  --line: #e4e4e7;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: rgba(15, 118, 110, 0.09);
  --ink: #09090b;
  --shadow-sm: 0 1px 0 rgba(9, 9, 11, 0.06);
  --shadow-md: 0 16px 48px rgba(9, 9, 11, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }

.text-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: clamp(12px, 3.5vw, 32px);
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
  overflow: visible;
}

.nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

@media (min-width: 961px) {
  .nav {
    min-height: 72px;
    gap: 16px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  background: var(--surface-soft);
  box-shadow: none;
  font-weight: 600;
}

.nav-links .nav-cta {
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
}

.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.nav-links a.active.nav-cta {
  background: var(--primary-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: #d4d4d8;
  background: var(--surface-soft);
}

.hero {
  padding: clamp(56px, 8vw, 88px) 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Instrument Sans", system-ui, sans-serif;
  padding: 7px 11px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 4.8vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.hero p {
  margin-top: 18px;
  font-size: 1.0625rem;
  max-width: 52ch;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: none;
}

.hero-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-card li {
  color: var(--text);
  font-size: 0.9375rem;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--primary);
}

.section {
  padding: clamp(56px, 7vw, 80px) 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  margin-bottom: 14px;
  max-width: 20ch;
}

.section-lead {
  max-width: 58ch;
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card > p:last-of-type { margin-bottom: 8px; }

.card:hover {
  border-color: #d4d4d8;
  background: var(--surface-soft);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p { font-size: 0.9375rem; line-height: 1.58; }

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-check li {
  color: var(--muted);
  font-size: 0.9375rem;
  position: relative;
  padding-left: 18px;
  line-height: 1.55;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--primary);
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--surface);
  box-shadow: none;
}

.metric strong {
  display: block;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.cta-band {
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: none;
}

.cta-band h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fafafa;
}

.cta-band p { font-size: 0.9375rem; max-width: 42ch; color: #a1a1aa; }

.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

.table th,
.table td {
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: var(--surface-soft); }

.table thead th {
  border-top: none;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td { color: var(--muted); }
.table td:last-child {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

textarea { min-height: 128px; resize: vertical; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: var(--surface);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Homepage: section structure —— */
.section-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  max-width: 720px;
}

.section-label {
  display: block;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.section-head h2 {
  margin-bottom: 10px;
  max-width: none;
}

.section-head .section-lead {
  margin-bottom: 0;
}

.intro-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.intro-pillar {
  background: var(--surface);
  padding: 22px 20px;
}

.intro-pillar strong {
  display: block;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.intro-pillar p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* —— Public reviews —— */
#reviews .section-head {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  justify-items: center;
}

.reviews-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  grid-column: 1 / -1;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  width: 100%;
  max-width: 420px;
}

.review-stars {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--primary);
  line-height: 1;
}

.review-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}

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

.review-meta strong {
  font-weight: 600;
  color: var(--ink);
}

.review-date {
  font-weight: 400;
  color: var(--muted);
}

.review-submit-card {
  max-width: 520px;
  margin-inline: auto;
}

.review-submit-card h3 {
  margin-bottom: 8px;
}

.review-submit-lead {
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.review-form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-admin-hint {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form-intro {
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.contact-form-status {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-email-line {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.contact-email-line strong {
  color: var(--ink);
}

/* —— Admin panel —— */
.admin-login-card {
  max-width: 440px;
  margin: 20px auto;
}

.admin-login-lead {
  margin: 10px 0 14px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login-lead code {
  font-size: 0.8125rem;
}

.admin-msg {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-title {
  margin-bottom: 10px;
}

.admin-panel-lead {
  margin: 0 0 20px;
  max-width: 72ch;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.admin-section-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-soft);
}

.admin-item-muted {
  opacity: 0.92;
}

.admin-item-head {
  margin: 0 0 6px;
  font-size: 0.9375rem;
}

.admin-muted {
  color: var(--muted);
  font-weight: 500;
}

.admin-item-body {
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-item-meta {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-tag {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  color: var(--ink);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.admin-rejected-card,
.admin-published-card {
  margin-top: 18px;
}

.admin-reply-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 12px 0 6px;
}

.admin-reply-draft {
  width: 100%;
  min-height: 88px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  resize: vertical;
}

.admin-reply-draft:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.admin-replied-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 4px;
  vertical-align: middle;
}

.admin-item-replied {
  background: var(--primary-soft);
}

.admin-inline-note {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.admin-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Service slider —— */
.slider-shell-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: center;
}

.slider-shell-wrap .slider-viewport {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.slider-shell-wrap .slider-arrow.prev { grid-column: 1; grid-row: 1; }
.slider-shell-wrap .slider-arrow.next { grid-column: 3; grid-row: 1; }
.slider-shell-wrap .slider-dots { grid-column: 1 / -1; grid-row: 2; }

.slider-shell {
  display: contents;
}

.slider-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  box-sizing: border-box;
}

.slider-slide h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.slider-slide .slide-lead {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  max-width: 54ch;
}

.slider-slide ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.slider-slide li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.slider-slide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 10px;
  border-radius: 1px;
  background: var(--primary);
}

.slider-arrow {
  width: 44px;
  min-width: 44px;
  align-self: center;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slider-arrow:hover {
  border-color: #d4d4d8;
  background: var(--surface-soft);
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  grid-column: 1 / -1;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d6d3d1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover { background: #a8a29e; }

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.15);
}

/* —— Process stepper (arrows between steps) —— */
.process-stepper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 520px;
  margin-inline: auto;
}

.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 16px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.process-step .step-num {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.process-step p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
  align-self: center;
  user-select: none;
  padding: 10px 0;
  transform: rotate(90deg);
}

@media (min-width: 1024px) {
  .process-stepper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0 12px;
    align-items: stretch;
    max-width: none;
    margin-inline: 0;
  }

  .process-arrow {
    transform: none;
    padding: 0 4px;
    font-size: 1.15rem;
    align-self: center;
  }
}

/* —— Bundle cards —— */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* —— Bundle horizontal scroll + arrows —— */
.bundle-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto;
  gap: 12px;
  align-items: center;
}

.bundle-carousel .bundle-scroll-viewport {
  grid-column: 2;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface-soft);
}

.bundle-carousel .bundle-scroll-viewport::-webkit-scrollbar {
  height: 10px;
}

.bundle-carousel .bundle-scroll-viewport::-webkit-scrollbar-track {
  background: var(--surface-soft);
  border-radius: 5px;
}

.bundle-carousel .bundle-scroll-viewport::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 55%, var(--line));
  border-radius: 5px;
}

.bundle-carousel .bundle-scroll-viewport::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.bundle-scroll-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 2px 2px;
}

.bundle-scroll-track .bundle-card {
  flex: 0 0 min(300px, calc(100vw - 120px));
  width: min(300px, calc(100vw - 120px));
  max-width: 100%;
  scroll-snap-align: start;
  margin: 0;
}

.bundle-scroll-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.2s ease;
}

.bundle-scroll-btn:hover:not(:disabled) {
  border-color: #d4d4d8;
  background: var(--surface-soft);
}

.bundle-scroll-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bundle-scroll-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.bundle-carousel .bundle-scroll-btn.prev { grid-column: 1; grid-row: 1; }
.bundle-carousel .bundle-scroll-btn.next { grid-column: 3; grid-row: 1; }

.bundle-scroll-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 0;
  grid-column: 1 / -1;
  grid-row: 2;
}

.bundle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bundle-card:hover {
  border-color: #d4d4d8;
  background: var(--surface-soft);
}

.bundle-card.featured {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: none;
}

.bundle-card.tier-budget {
  border-left: 3px solid #a1a1aa;
}

.bundle-card.tier-premium {
  border-left: 3px solid var(--primary);
}

.bundle-tier-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.bundle-card h3 {
  font-size: 1.0625rem;
  margin: 0;
}

.bundle-price {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bundle-card .fine {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.bundle-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bundle-card li {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}

.bundle-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.bundle-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

.table-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 14px;
  max-width: 70ch;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 4px;
  overscroll-behavior-x: contain;
}

.table-scroll .table {
  min-width: 520px;
}

@media (max-width: 960px) {
  /* Two-row header: brand + always-visible horizontal nav (no hamburger-only menu). */
  .site-header .container.nav {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 0;
    column-gap: 0;
  }

  .site-header .nav .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    font-size: clamp(0.94rem, 3.8vw, 1.02rem);
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    grid-column: 1;
    grid-row: 2;
    display: flex !important;
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0 14px;
    margin: 0;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-padding-inline: 4px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
  }

  .nav-links::-webkit-scrollbar {
    height: 3px;
  }

  .nav-links::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    width: auto;
    white-space: nowrap;
    box-sizing: border-box;
    background: var(--surface-soft);
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .nav-links a:hover {
    background: var(--surface);
    color: var(--ink);
  }

  .nav-links a.active {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary-dark);
  }

  .nav-links .nav-cta {
    margin-top: 0;
    margin-inline: 0;
    justify-content: center;
    border-radius: 999px;
    min-height: 42px;
    background: var(--primary);
    color: #fff;
    border-color: transparent;
  }

  .nav-links .nav-cta:hover {
    background: var(--primary-dark);
    color: #fff;
  }

  .section h2 {
    max-width: none;
  }

  .hero p {
    max-width: none;
  }

  .table th,
  .table td {
    padding: 12px 14px;
    font-size: 0.8125rem;
  }

  input,
  textarea,
  select {
    font-size: 1rem;
  }

  .hero-grid,
  .grid.three,
  .grid.two,
  .metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .slider-shell-wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .slider-shell-wrap .slider-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .slider-shell-wrap .slider-arrow.prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .slider-shell-wrap .slider-arrow.next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .slider-shell-wrap .slider-dots { grid-row: 3; }

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

  .bundle-carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  .bundle-carousel .bundle-scroll-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .bundle-carousel .bundle-scroll-btn.prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .bundle-carousel .bundle-scroll-btn.next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .bundle-scroll-hint { grid-row: 3; margin-top: 4px; }

  .bundle-scroll-track .bundle-card {
    flex-basis: min(280px, calc(100vw - 40px));
    width: min(280px, calc(100vw - 40px));
  }

  .hero h1 { max-width: none; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0));
  }
}
