/* digitalcontent.nu — purchase flow styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FFF7FB;
  --bg-alt: #FFFFFF;
  --bg-dark: #1E1B4B;
  --ink: #1A1530;
  --ink-muted: #6B6480;
  --line: #F4DAE6;
  --primary: #EC4899;
  --primary-dark: #DB2777;
  --primary-soft: #FCE7F3;
  --lime: #38BDF8;
  --shadow-md: 0 12px 32px rgba(30, 27, 75, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 27, 75, 0.14);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
h2 { font-size: 1.4rem; margin-bottom: 8px; }
p { color: var(--ink-muted); }

/* Nav */
.kop-nav {
  background: var(--bg-alt);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.kop-nav .logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.kop-nav .logo .dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 3px;
  transform: rotate(45deg);
}
.kop-nav .logo-tld { color: var(--primary); }
.step-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Progress bar */
.progress {
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--lime));
  transition: width 0.4s cubic-bezier(.2,.8,.2,1);
}

/* Save & continue later link */
.save-later {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 24px 0;
  text-align: right;
  font-size: 0.85rem;
}
.save-later a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--ink-muted);
  padding-bottom: 1px;
}
.save-later a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Main content */
.kop-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Card */
.card {
  background: var(--bg-alt);
  padding: 36px 32px;
  border-radius: 22px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

/* Form fields */
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.field label .req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 1rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Checkbox / radio rows */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.choice:hover { border-color: var(--primary); }
.choice input { margin-top: 4px; }
.choice input:checked + .choice-body { color: var(--ink); }
.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.choice-body { flex-grow: 1; }
.choice-body .name { font-weight: 600; }
.choice-body .desc { font-size: 0.9rem; color: var(--ink-muted); margin-top: 2px; }
.choice-price { font-weight: 700; color: var(--primary); white-space: nowrap; margin-left: 8px; }

/* Buttons */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 0 var(--primary-dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--primary-dark); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 0 var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: white; text-decoration: none; }

/* Summary card (used on review step + sidebar) */
.summary {
  background: var(--bg-dark);
  color: white;
  padding: 28px 26px;
  border-radius: 22px;
}
.summary h3 { color: white; margin-bottom: 16px; font-size: 1.2rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.20);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: none;
}
.summary small { color: rgba(255,255,255,0.6); }

/* Flash messages */
.flash {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.flash-error { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid var(--primary); }
.flash-info  { background: rgba(56, 189, 248, 0.12); color: #0E3A6B; border: 1px solid rgba(56, 189, 248, 0.30); }

/* File list (upload step) */
.file-list { list-style: none; margin-top: 14px; }
.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--primary-soft);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.file-list .remove {
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Footer */
.kop-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--ink-muted);
}
.kop-footer a { color: var(--ink-muted); }
.kop-footer a:hover { color: var(--primary); }

/* Success page */
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--lime);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  color: var(--ink);
}
.success { text-align: center; }
