:root {
  --bg: #f3efe4;
  --paper: rgba(255, 250, 242, 0.86);
  --ink: #1b1f16;
  --muted: #586052;
  --line: rgba(27, 31, 22, 0.12);
  --accent: #00664f;
  --accent-2: #ba5d2e;
  --accent-3: #143a52;
  --success: #0f7a55;
  --warning: #a86419;
  --danger: #a13024;
  --shadow: 0 24px 60px rgba(20, 58, 82, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 102, 79, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(186, 93, 46, 0.14), transparent 24%),
    linear-gradient(135deg, #efe5d1 0%, #f7f3ea 52%, #edf4f1 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 24px auto 48px;
  display: grid;
  gap: 20px;
}

.hero,
.panel {
  background: var(--paper);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0 0 12px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pills,
.stats,
.panel-grid,
.input-grid,
.queue,
.notices {
  display: grid;
  gap: 14px;
}

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

.pill,
.stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.pill strong,
.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.stat span,
.pill span {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.button,
button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #008d68);
  color: white;
  box-shadow: 0 16px 32px rgba(0, 102, 79, 0.24);
}

.button-secondary {
  background: rgba(20, 58, 82, 0.08);
  color: var(--ink);
  border: 1px solid rgba(20, 58, 82, 0.12);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

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

.panel-grid {
  grid-template-columns: repeat(12, 1fr);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

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

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

.field.full {
  grid-column: 1 / -1;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(27, 31, 22, 0.12);
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.queue {
  margin-top: 18px;
}

.queue-item {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.queue-item strong {
  display: block;
  margin-bottom: 8px;
}

.queue-item code,
.notice code {
  font-size: 0.85rem;
}

.steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.step {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(20, 58, 82, 0.08);
  color: var(--muted);
  font-size: 0.85rem;
}

.step.active {
  background: rgba(0, 102, 79, 0.12);
  color: var(--accent);
}

.notices {
  position: sticky;
  top: 18px;
}

.notice {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
}

.notice.success {
  border-color: rgba(15, 122, 85, 0.2);
}

.notice.error {
  border-color: rgba(161, 48, 36, 0.2);
}

.notice.info {
  border-color: rgba(20, 58, 82, 0.18);
}

.verify-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 58, 82, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.verify-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.verify-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed rgba(27, 31, 22, 0.08);
  padding-bottom: 10px;
}

.verify-card div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

@media (max-width: 980px) {
  .span-4,
  .span-5,
  .span-6,
  .span-7 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 20px, 100%);
  }

  .hero,
  .panel {
    padding: 18px;
  }

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