:root {
  --test-mode-banner-height: 40px;
  color-scheme: light dark;
  --font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-bg: #f4f6fb;
  --page-accent:
    radial-gradient(circle at top, rgba(103, 80, 164, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%);
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-muted: #eef2ff;
  --surface-hover: #f7f8fd;
  --text: #1c1b1f;
  --text-muted: #5f6368;
  --border: rgba(103, 80, 164, 0.16);
  --border-strong: rgba(103, 80, 164, 0.26);
  --shadow-1: 0 8px 24px rgba(29, 27, 32, 0.08);
  --shadow-2: 0 16px 40px rgba(29, 27, 32, 0.12);
  --primary: #6750a4;
  --primary-strong: #5a43a0;
  --primary-contrast: #ffffff;
  --secondary: #e8def8;
  --secondary-text: #4a4458;
  --success-bg: rgba(45, 125, 78, 0.12);
  --success-border: rgba(45, 125, 78, 0.32);
  --warning-bg: rgba(183, 126, 16, 0.12);
  --warning-border: rgba(183, 126, 16, 0.32);
  --danger-bg: rgba(179, 38, 30, 0.12);
  --danger-border: rgba(179, 38, 30, 0.32);
  --chip-bg: rgba(103, 80, 164, 0.1);
  --chip-text: #4f378b;
  --hero-bg: linear-gradient(135deg, rgba(103, 80, 164, 0.16), rgba(98, 91, 113, 0.08));
  --btc-orange: #f7931a;
  --btc-orange-strong: #e8850f;
  --hero-landing-bg: #f9f9f9;
  --hero-badge-bg: rgba(247, 147, 26, 0.14);
  --hero-badge-text: #c45c00;
  --hero-feature-dot: #2d7d4e;
  --input-bg: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] {
  --page-bg: #141218;
  --page-accent:
    radial-gradient(circle at top, rgba(208, 188, 255, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 40%);
  --surface: rgba(30, 27, 37, 0.88);
  --surface-strong: #211f26;
  --surface-muted: #2b2930;
  --surface-hover: #2f2b36;
  --text: #e6e1e5;
  --text-muted: #cac4d0;
  --border: rgba(202, 196, 208, 0.14);
  --border-strong: rgba(202, 196, 208, 0.22);
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 18px 48px rgba(0, 0, 0, 0.34);
  --primary: #d0bcff;
  --primary-strong: #c2abff;
  --primary-contrast: #381e72;
  --secondary: rgba(208, 188, 255, 0.14);
  --secondary-text: #e8def8;
  --success-bg: rgba(74, 226, 136, 0.12);
  --success-border: rgba(74, 226, 136, 0.28);
  --warning-bg: rgba(255, 214, 102, 0.12);
  --warning-border: rgba(255, 214, 102, 0.28);
  --danger-bg: rgba(255, 180, 171, 0.12);
  --danger-border: rgba(255, 180, 171, 0.28);
  --chip-bg: rgba(208, 188, 255, 0.12);
  --chip-text: #e8def8;
  --hero-bg: linear-gradient(135deg, rgba(208, 188, 255, 0.16), rgba(147, 143, 153, 0.1));
  --btc-orange: #ffb347;
  --btc-orange-strong: #f7931a;
  --hero-landing-bg: rgba(33, 31, 38, 0.55);
  --hero-badge-bg: rgba(247, 147, 26, 0.18);
  --hero-badge-text: #ffb347;
  --hero-feature-dot: #4ae288;
  --input-bg: rgba(43, 41, 48, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--page-accent), var(--page-bg);
  color: var(--text);
  line-height: 1.5;
}

body.has-test-mode-banner {
  padding-top: var(--test-mode-banner-height);
}

.test-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--test-mode-banner-height);
  padding: 0 12px;
  background: #c62828;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-1);
  top: 16px;
  z-index: 10;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__title-link {
  color: inherit;
  text-decoration: none;
}

.brand__title-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.brand__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.brand__subtitle-initial {
  color: var(--primary);
  font-weight: 800; 
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-text);
  font-weight: 600;
}

.nav-link:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

.card--soft {
  background: var(--surface-muted);
}

.hero {
  background: var(--hero-bg);
  border-radius: 32px;
  padding: 28px;
}

.hero-landing {
  background: var(--hero-landing-bg);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  border-radius: 32px;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 40px);
  text-align: center;
}

.hero-landing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.hero-landing__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--hero-badge-bg);
  color: var(--hero-badge-text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-landing__badge-icon {
  flex-shrink: 0;
  color: var(--btc-orange);
}

.hero-landing__title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-landing__title-line {
  display: block;
}

.hero-landing__btc {
  color: var(--btc-orange);
}

.hero-landing__lead {
  margin: 0 0 32px;
  max-width: 560px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-landing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-landing__cta {
  min-width: min(100%, 260px);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  text-decoration: none;
}

.button--btc {
  background: var(--btc-orange);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(247, 147, 26, 0.28);
}

.button--btc:hover {
  background: var(--btc-orange-strong);
  color: #ffffff;
  filter: none;
}

.button--hero-outline {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text-muted) 28%, transparent);
  box-shadow: none;
}

.button--hero-outline:hover {
  background: var(--surface-hover);
  color: var(--text);
  filter: none;
}

.hero-landing__features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-landing__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-landing__features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-feature-dot);
  flex-shrink: 0;
}

.hero-landing__rates {
  margin-top: 32px;
  justify-content: center;
}

.pill--compact {
  margin: 4px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.how-it-works {
  --how-it-works-gap: clamp(14px, 2.5vw, 28px);
  --how-it-works-line: color-mix(in srgb, var(--btc-orange) 22%, var(--border));
  --how-it-works-number: color-mix(in srgb, var(--btc-orange) 32%, transparent);
  text-align: center;
  padding: clamp(8px, 2vw, 24px) 0 clamp(32px, 4vw, 48px);
}

.how-it-works__title {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.how-it-works__track {
  --how-it-works-head-height: 52px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--how-it-works-gap);
  text-align: left;
}

.how-it-works__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

.how-it-works__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(20px + var(--how-it-works-head-height) / 2);
  left: 100%;
  width: var(--how-it-works-gap);
  height: 1px;
  transform: translateY(-50%);
  background: var(--how-it-works-line);
  pointer-events: none;
}

.how-it-works__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--how-it-works-head-height);
  margin-bottom: 2px;
}

.how-it-works__number {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--how-it-works-number);
  user-select: none;
}

.how-it-works__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 12%, var(--surface-strong)), var(--surface-muted));
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent);
}

.how-it-works__item-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.how-it-works__item-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

#tiers-grid,
#how-it-works {
  scroll-margin-top: 24px;
}

body.has-test-mode-banner #tiers-grid,
body.has-test-mode-banner #how-it-works {
  scroll-margin-top: calc(var(--test-mode-banner-height) + 24px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--sm {
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.row--start {
  align-items: flex-start;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

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

.section {
  margin-bottom: 18px;
}

.page-title,
.section-title,
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--text);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  padding: 12px 12px 12px 16px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
  font-weight: 600;
  margin: 10px;
}

.site-notices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.site-notices:empty {
  display: none;
  margin: 0;
}

.site-notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-1);
}

.site-notice__body {
  flex: 1;
  min-width: 0;
}

.site-notice__title {
  display: block;
  font-size: 1.02rem;
}

.site-notice__detail {
  margin-top: 6px;
  color: var(--text);
  line-height: 1.45;
}

.site-notice__detail + .site-notice__detail {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.site-notice__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.site-notice__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .site-notice__close {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .site-notice__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.notice {
  border-radius: 22px;
  padding: 18px 20px;
}

.notice--success {
  background: color-mix(in srgb, #2d7d4e 14%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, #2d7d4e 42%, transparent);
}

.notice--warning {
  background: color-mix(in srgb, #b77e10 16%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, #b77e10 44%, transparent);
}

.notice--info {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, var(--primary) 36%, transparent);
}

.is-hidden {
  display: none !important;
}

:root[data-theme="dark"] .notice--info {
  background: rgba(208, 188, 255, 0.12);
  border: 1px solid rgba(208, 188, 255, 0.24);
}

.notice--danger {
  background: color-mix(in srgb, #b3261e 14%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, #b3261e 42%, transparent);
}

:root[data-theme="dark"] .notice--success {
  background: color-mix(in srgb, #4ae288 16%, var(--surface-strong));
  border-color: color-mix(in srgb, #4ae288 36%, transparent);
}

:root[data-theme="dark"] .notice--warning {
  background: color-mix(in srgb, #ffd666 14%, var(--surface-strong));
  border-color: color-mix(in srgb, #ffd666 34%, transparent);
}

:root[data-theme="dark"] .notice--danger {
  background: color-mix(in srgb, #ffb4ab 14%, var(--surface-strong));
  border-color: color-mix(in srgb, #ffb4ab 36%, transparent);
}

.price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price__value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.tier-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.9;
}

.tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tier-card--sold-out {
  opacity: 0.92;
}

.tier-card--sold-out::before {
  background: linear-gradient(90deg, var(--text-muted), transparent);
}

.tier-card--sold-out:hover {
  transform: none;
}

.tier-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 118px;
  height: 118px;
  overflow: hidden;
  pointer-events: none;
}

.tier-card__ribbon span {
  position: absolute;
  top: 28px;
  right: -34px;
  width: 168px;
  padding: 7px 0;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #b3261e, #8c1d18);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(140, 29, 24, 0.35);
}

.tier-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tier-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier-card__footer {
  margin-top: auto;
}

.tier-card__price-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), var(--surface-strong));
  border: 1px solid var(--border);
}

.tier-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-strip .pill {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text);
}

.metric-card {
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.metric-card__value {
  font-size: 1.65rem;
  font-weight: 700;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 18px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-item__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__totals {
  min-width: 140px;
  text-align: right;
}

.cart-item__line-total {
  font-size: 1.35rem;
  font-weight: 700;
}

.checkout-summary {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--secondary);
  color: var(--secondary-text);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
}

.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

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

.field-check .link-button {
  font-size: inherit;
  vertical-align: baseline;
}

.cart-message {
  margin-top: 4px;
}

.checkout-message-counter {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.checkout-message-counter[data-low="true"] {
  color: #b3261e;
}

:root[data-theme="dark"] .checkout-message-counter[data-low="true"] {
  color: #ffb4ab;
}

.checkout-message-hint {
  font-size: 0.88rem;
}

.input-number {
  max-width: 110px;
}

.form-caption {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.inline-form,
.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-form input[type="number"],
.form-inline input[type="number"] {
  width: 96px;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 8px 0;
}

.list-reset {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--primary-contrast);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  filter: brightness(1.02);
}

button:disabled,
.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button--secondary {
  background: var(--secondary);
  color: var(--secondary-text);
  box-shadow: none;
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.theme-toggle {
  min-width: auto;
  padding: 6px;
  gap: 6px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: none;
}

.theme-toggle:hover {
  filter: none;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle[data-theme="light"] [data-theme-icon="light"],
.theme-toggle[data-theme="dark"] [data-theme-icon="dark"] {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow-1);
}

.theme-toggle[data-theme="light"] [data-theme-icon="dark"],
.theme-toggle[data-theme="dark"] [data-theme-icon="light"] {
  opacity: 0.78;
}

.footer {
  margin-top: 12px;
  padding: 10px 4px 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer strong {
  color: var(--text);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

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

.footer__contact a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}

.footer__legal-sep {
  color: var(--muted);
  user-select: none;
}

button.link-button,
.link-button {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transform: none;
  filter: none;
}

button.link-button:hover,
.link-button:hover {
  color: var(--primary-strong);
  background: none;
  box-shadow: none;
  transform: none;
  filter: none;
  text-decoration: underline;
}

.offer-dialog {
  margin: auto;
  padding: 0;
  max-width: calc(100vw - 24px);
  width: min(640px, 100%);
  border: none;
  background: transparent;
  color: var(--text);
}

.offer-dialog::backdrop {
  background: rgba(15, 13, 20, 0.52);
  backdrop-filter: blur(2px);
}

:root[data-theme="dark"] .offer-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.offer-dialog__panel {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 820px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-2);
}

.offer-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.offer-dialog__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.offer-dialog__close {
  min-width: auto;
}

.offer-dialog__body {
  padding: 16px 18px 22px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.offer-dialog__body h3 {
  margin: 1.15em 0 0.45em;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--text);
}

.offer-dialog__body p {
  margin: 0 0 0.65em;
}

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

.offer-dialog__body ul {
  margin: 0 0 0.75em;
  padding-left: 1.25em;
}

.offer-dialog__body li {
  margin: 0.2em 0;
}

.offer-dialog__body code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--chip-text);
}

.offer-dialog__body strong {
  color: var(--text);
}

.offer-lead {
  margin-bottom: 0.85em;
}

.offer-meta {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.offer-placeholder {
  margin: 0 0 1em;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--warning-border);
  background: var(--warning-bg);
  font-size: 0.88rem;
  line-height: 1.45;
}

.text-danger {
  color: #b3261e;
}

:root[data-theme="dark"] .text-danger {
  color: #ffb4ab;
}

@media (max-width: 980px) {
  .cart-layout,
  .grid--hero,
  .grid--two {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .cart-item__top {
    flex-direction: column;
  }

  .cart-item__totals {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .row--start {
    align-items: stretch;
  }

  .tier-card__price-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .how-it-works__track {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 360px;
    margin-inline: auto;
  }

  .how-it-works__item:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1120px);
    padding: 16px 0 28px;
  }

  .site-header,
  .card,
  .hero,
  .hero-landing {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-landing {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-landing__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-landing__cta {
    width: 100%;
  }

  .hero-landing__features {
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions > * {
    flex: 1 1 auto;
  }

  .nav-link,
  .theme-toggle,
  button,
  .button {
    width: 100%;
  }

  .inline-form,
  .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-form input[type="number"],
  .form-inline input[type="number"],
  .input-number {
    width: 100%;
    max-width: none;
  }
}
