:root {
  color-scheme: light;
  --bg: #f4efe8;
  --panel: #ffffff;
  --text: #1f2328;
  --muted: #64748b;
  --accent: #e16a2f;
  --accent-dark: #b94d15;
  --success: #167a46;
  --danger: #b42318;
  --border: #e5ddd2;
  --shadow: 0 20px 60px rgba(31, 35, 40, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #fff7ef 0%, var(--bg) 50%, #ebe3d8 100%);
  color: var(--text);
}
a { color: inherit; }
.topbar, .shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 0 12px;
}
.brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow, .muted { color: var(--muted); }
.nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shell { padding: 20px 0 56px; }
.hero, .split-card {
  display: grid;
  gap: 24px;
  align-items: start;
}
.hero { grid-template-columns: 1.5fr 1fr; margin-bottom: 28px; }
.split-card { grid-template-columns: 1.3fr 1fr; margin-top: 24px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.04em; margin: 10px 0 16px; }
h2, h3 { margin: 0 0 12px; }
.lede { font-size: 1.08rem; color: #374151; max-width: 62ch; line-height: 1.6; }
.panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(229,221,210,0.9);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.form { display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: white;
}
.btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.ghost { background: rgba(255,255,255,0.8); border: 1px solid var(--border); }
.danger { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff1e8;
  color: #a6491a;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0;
}
.pill.success { background: #e7f7ee; color: var(--success); }
.hero-copy, .metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metrics.single { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.metrics article, .value-log ul { background: #fffaf5; border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.metrics span { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.metrics strong, .amount { font-size: 1.5rem; font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; }
.status { text-transform: capitalize; font-weight: 800; padding: 8px 12px; border-radius: 999px; font-size: 0.85rem; }
.status.approved { background: #e7f7ee; color: var(--success); }
.status.sent { background: #fef3c7; color: #a16207; }
.status.draft { background: #e0f2fe; color: #0369a1; }
.status.declined { background: #fee4e2; color: var(--danger); }
.amount { margin: 18px 0; }
.link { color: var(--accent-dark); font-weight: 700; }
.value-log ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; }
.link-box {
  background: #fff7f0;
  border: 1px dashed #f1b692;
  border-radius: 16px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin: 12px 0 18px;
}
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .topbar, .hero, .split-card { grid-template-columns: 1fr; display: grid; }
  .nav { justify-content: flex-start; }
  .hero-copy, .metrics, .metrics.single { grid-template-columns: 1fr; }
}
