:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #607066;
  --line: #d7dfda;
  --panel: #ffffff;
  --bg: #f7f8f5;
  --accent: #087f5b;
  --accent-strong: #045f46;
  --gold: #c7831d;
  --blue: #246b9b;
  --shadow: 0 16px 44px rgba(23, 32, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

main > section {
  position: relative;
}

.hero {
  z-index: 1;
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
  padding: 64px 0 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0 16px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.signal-panel,
.panel,
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel {
  padding: 24px;
}

.signal-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.signal-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.signal-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 850;
}

.workspace,
.split {
  margin: 28px 0;
}

#marketplace {
  z-index: 2;
}

.split {
  z-index: 3;
}

#creator {
  z-index: 4;
}

#supervisor {
  z-index: 5;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head.compact {
  align-items: center;
}

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

label {
  display: grid;
  gap: 6px;
  font-weight: 750;
  color: var(--ink);
}

label span {
  font-size: 0.86rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-meta,
.purchase-meta,
.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f4ef;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.78rem;
}

.price {
  font-size: 1.4rem;
  font-weight: 900;
}

.card-summary,
.purchase-list,
.supervisor-status {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 16px;
}

.panel {
  padding: 20px;
}

.checkout-form,
.creator-grid {
  display: grid;
  gap: 14px;
}

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

.creator-grid .wide {
  grid-column: 1 / -1;
}

.creator-grid button {
  grid-column: 1 / span 2;
}

.notice {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8e8;
  color: #6d4b12;
  min-height: 48px;
}

.purchase-list,
.supervisor-status {
  display: grid;
  gap: 12px;
}

.purchase {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.license {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--blue);
  overflow-wrap: anywhere;
}

.check-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.check-row strong {
  color: var(--ink);
}

.check-row[data-ok="true"] {
  border-color: #abd8c8;
}

.check-row[data-ok="false"] {
  border-color: #e6b0a8;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

@media (max-width: 920px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .topbar,
  .section-head,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .product-grid,
  .creator-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .panel,
  .signal-panel {
    padding: 14px;
  }

  .card-summary {
    font-size: 0.95rem;
  }

  .price {
    font-size: 1.2rem;
  }

  .creator-grid button {
    grid-column: auto;
  }
}
