:root {
  color-scheme: light;
  --bg: #f5efe4;
  --surface: rgba(255, 250, 242, 0.86);
  --surface-strong: #fff9f0;
  --ink: #1c1b18;
  --muted: #61584b;
  --line: rgba(58, 46, 31, 0.14);
  --accent: #12664f;
  --accent-strong: #0a4e3c;
  --accent-soft: rgba(18, 102, 79, 0.12);
  --warning: #9d5c00;
  --warning-soft: rgba(157, 92, 0, 0.14);
  --danger: #8b2e24;
  --danger-soft: rgba(139, 46, 36, 0.14);
  --success-soft: rgba(18, 102, 79, 0.18);
  --shadow: 0 24px 70px rgba(58, 46, 31, 0.12);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(226, 191, 115, 0.28), transparent 30%),
    radial-gradient(circle at right 20%, rgba(18, 102, 79, 0.18), transparent 26%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.products-section,
.checkout-section,
.payments-section {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.eyebrow,
.section-kicker,
.panel-label,
.product-meta,
.timeline-item span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--muted);
  margin: 0 0 14px;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
}

.hero-text {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 160ms ease, background 160ms ease;
}

.ghost-link:hover {
  background: #fffdf8;
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(28, 27, 24, 0.08);
  font-weight: 500;
}

.status-live {
  background: var(--success-soft);
  color: var(--accent-strong);
}

.banner {
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.5;
}

.banner-neutral {
  background: rgba(28, 27, 24, 0.06);
}

.banner-success {
  background: var(--success-soft);
  color: var(--accent-strong);
}

.banner-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

.banner-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
}

.products-section,
.checkout-section,
.payments-section {
  padding: 28px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 1.55rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
}

.product-description {
  color: var(--muted);
  line-height: 1.6;
}

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

.checkout-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--accent);
  color: #f7f8f4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.checkout-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.checkout-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(18, 102, 79, 0.24);
  border-color: rgba(18, 102, 79, 0.4);
}

.hint-box {
  margin-top: 6px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: 18px;
  line-height: 1.6;
  color: var(--accent-strong);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.timeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: #fbf7ef;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.summary-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.payments-section {
  display: grid;
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1460px;
}

.payments-table th,
.payments-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.payments-table th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.payments-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.42);
}

.table-strong {
  font-weight: 700;
}

.table-muted {
  color: var(--muted);
  line-height: 1.45;
}

.doc-links {
  display: grid;
  gap: 8px;
}

.doc-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.doc-link:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(28, 27, 24, 0.08);
  white-space: nowrap;
}

.status-badge.status-paid {
  background: var(--success-soft);
  color: var(--accent-strong);
}

.status-badge.status-split {
  background: rgba(18, 102, 79, 0.1);
  color: var(--accent-strong);
}

.status-badge.status-platform {
  background: rgba(28, 27, 24, 0.08);
}

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

  .hero-copy,
  .hero-panel,
  .products-section,
  .checkout-section,
  .payments-section {
    padding: 22px;
  }

  h1 {
    max-width: none;
  }
}
