:root {
  --ink: #0d1117;
  --ink-2: #1c2333;
  --ink-3: #2d3748;
  --muted: #6b7a90;
  --muted-2: #a0aabb;
  --line: #e2e8f0;
  --surface: #f7f9fc;
  --white: #ffffff;

  --red: #c0392b;
  --red-soft: #fdecea;

  --green: #1a7a4a;
  --green-soft: #e8f5ee;

  --amber: #b45309;
  --amber-soft: #fef3c7;

  --accent: #1b3a8c;
  --accent-2: #2e5fac;
  --accent-soft: #ebf1ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ───────────────────────────── */

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

/* ── Header ───────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

/* ── Hero ───────────────────────────── */

.hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-soft);
  color: var(--red);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  color: var(--ink);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.2;
  text-align: center;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.7;
  text-align: center;
}

/* ── Category grid ───────────────────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px auto;
  max-width: 760px;
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.category-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(17,24,39,.10);
  transform: translateY(-2px);
  text-decoration: none;
}

.category-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.category-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.category-card__desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.category-card__price {
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
}

.category-card--featured {
  border-color: var(--accent-2);
  background: var(--accent-soft);
}

/* ── Badge ───────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── Steps ───────────────────────────── */

.steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
}

.step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step:last-child {
  margin-bottom: 0;
}

.step__num {
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.step__title {
  font-weight: 700;
  font-size: 0.9rem;
}

.step__desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Upload ───────────────────────────── */

.upload-panel {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
}

.upload-panel.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ── File selected ───────────────────────────── */

.selected-file {
  display: none;
  background: var(--green-soft);
  border: 1px solid var(--green);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.selected-file.show {
  display: block;
}

/* ── CTA ───────────────────────────── */

.cta {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.cta:hover {
  background: var(--ink);
}

.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Status ───────────────────────────── */

.status {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.status.error {
  display: block;
  background: var(--red-soft);
  color: var(--red);
}

.status.info {
  display: block;
  background: var(--amber-soft);
  color: var(--amber);
}

.status.success {
  display: block;
  background: var(--green-soft);
  color: var(--green);
}

/* ── Upsell ───────────────────────────── */

.upsell {
  margin-bottom: 24px;
}

.upsell-box {
  border: 1.5px solid var(--amber);
  background: var(--amber-soft);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.upsell-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.upsell-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.upsell-box p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.upsell-btn {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.upsell-btn:hover {
  background: #d97706;
}

/* ── Success ───────────────────────────── */

.success-screen {
  text-align: center;
  margin-top: 20px;
}

.success-screen__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 600px) {
  .hero {
    padding: 44px 0 24px;
  }

  .wrap {
    padding: 28px 14px;
  }

  .card {
    padding: 20px;
  }
}
