:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #66635c;
  --line: #d8d2c7;
  --surface: #f7f4ee;
  --surface-strong: #ffffff;
  --accent: #0f7b68;
  --accent-dark: #095849;
  --warning: #9d4b16;
  --shadow: 0 20px 70px rgba(33, 28, 18, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--surface);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

.nav-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #ebe5da;
  border-radius: 10px;
}

.tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(33, 28, 18, 0.1);
}

.view {
  display: none;
  animation: rise 420ms ease both;
}

.view.is-active {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100svh - 72px);
  padding: clamp(54px, 9vw, 108px) clamp(18px, 7vw, 96px);
  background: #eee8dc;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.8) 48%, rgba(247, 244, 238, 0.42) 100%),
    repeating-linear-gradient(90deg, transparent 0 94px, rgba(23, 23, 23, 0.08) 94px 95px),
    repeating-linear-gradient(0deg, transparent 0 94px, rgba(23, 23, 23, 0.08) 94px 95px);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 7vw, 96px);
  top: clamp(44px, 10vw, 104px);
  width: min(42vw, 540px);
  aspect-ratio: 1.15;
  content: "";
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(#ffffff, #ffffff) 11% 16% / 34% 8% no-repeat,
    linear-gradient(#0f7b68, #0f7b68) 11% 34% / 56% 5% no-repeat,
    linear-gradient(#d8d2c7, #d8d2c7) 11% 47% / 70% 4% no-repeat,
    linear-gradient(#d8d2c7, #d8d2c7) 11% 57% / 62% 4% no-repeat,
    linear-gradient(#171717, #171717) 11% 76% / 28% 10% no-repeat,
    linear-gradient(135deg, #fdfcf8, #e4ded2);
  box-shadow: var(--shadow);
  opacity: 0.88;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(46px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: #4a4842;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.primary-action {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

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

.price {
  font-size: 28px;
  font-weight: 800;
}

.proof-panel,
.operator-panel,
.metric {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.proof-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 28px;
}

.panel-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.proof-panel strong {
  font-size: 28px;
  line-height: 1.05;
}

.proof-panel span {
  color: var(--muted);
  line-height: 1.5;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 9vw, 108px) clamp(18px, 7vw, 96px);
}

.inclusion-list,
.action-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inclusion-list li,
.action-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #383630;
  font-size: 18px;
}

.operator-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(38px, 7vw, 72px) clamp(18px, 5vw, 64px) 24px;
}

.operator-header h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 84px);
}

.operator-header p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 64px) 28px;
}

.metric {
  padding: 18px;
  box-shadow: none;
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.metric strong {
  font-size: clamp(26px, 4vw, 42px);
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 64px) 64px;
}

.operator-panel {
  padding: 22px;
  box-shadow: none;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  font-size: 22px;
}

.panel-heading span,
.queue-empty {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dceee9;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
}

.status.pending {
  background: #f4e3ce;
  color: var(--warning);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .topbar,
  .operator-header {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  .hero,
  .section-grid,
  .operator-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

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