/* "Unapanga nini?" — one flow to create an event (/public/start) */
:root {
  --st-accent: #e07844;
  --st-accent-dark: #c4612f;
  --st-ink: #291812;
  --st-text: #4a3b35;
  --st-muted: #7c6a62;
  --st-line: #ead9cf;
  --st-bg: #fbf6f2;
  --st-surface: #ffffff;
  --st-soft: #fdf1ea;
  --st-ok: #2f8a57;
}

body.st-page {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* top bar */
.st-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(251, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--st-line);
}
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--st-ink); }
.st-brand span { font-family: "Cinzel", serif; font-size: 18px; letter-spacing: 0.06em; }
.st-top-right { display: flex; align-items: center; gap: 14px; }
.st-exit { display: inline-flex; align-items: center; gap: 6px; color: var(--st-muted); text-decoration: none; font-size: 14px; }
.st-exit:hover { color: var(--st-ink); }
.st-lang-slot .ab-lang-toggle { position: static !important; box-shadow: none; }

.st-progress { height: 4px; background: var(--st-line); }
.st-progress-bar { height: 100%; width: 25%; background: var(--st-accent); transition: width 0.35s ease; }

/* layout */
.st-main { padding: 28px 16px 120px; }
.st-layout { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .st-layout { grid-template-columns: 1fr; gap: 28px; } }

.st-stepno { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-accent-dark); margin: 0 0 8px; }
.st-step { display: none; animation: st-in 0.3s ease; }
.st-step.is-active { display: block; }
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-step, .st-progress-bar { animation: none; transition: none; } }

.st-title { font-family: "Source Serif Pro", Georgia, serif; font-weight: 700; color: var(--st-ink); font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 0 0 8px; }
.st-sub { color: var(--st-muted); font-size: 16px; margin: 0 0 24px; }

/* step 1: type tiles */
.st-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .st-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-type {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 18px 16px; min-height: 108px;
  background: var(--st-surface); border: 1.5px solid var(--st-line); border-radius: 14px;
  color: var(--st-ink); font-weight: 600; font-size: 15px; text-align: left;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.st-type i { font-size: 24px; color: var(--st-accent); }
.st-type:hover { border-color: #d9b8a6; transform: translateY(-1px); }
.st-type:focus-visible { outline: 3px solid rgba(224, 120, 68, 0.35); outline-offset: 2px; }
.st-type.is-selected { border-color: var(--st-accent); background: var(--st-soft); box-shadow: 0 0 0 3px rgba(224, 120, 68, 0.15); }

/* fields */
.st-field { margin-bottom: 18px; }
.st-field label, .st-mini { display: block; font-weight: 600; font-size: 14px; color: var(--st-ink); margin-bottom: 6px; }
.st-mini { font-size: 13px; font-weight: 500; color: var(--st-muted); margin-top: 6px; }
.st-opt { font-weight: 400; color: var(--st-muted); font-size: 12px; }
.st-page .form-control, .st-page .form-select { border-color: var(--st-line); border-radius: 10px; }
.st-page .form-control:focus, .st-page .form-select:focus { border-color: var(--st-accent); box-shadow: 0 0 0 3px rgba(224, 120, 68, 0.18); }
.st-page .form-control.is-invalid { border-color: #c0392b; }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--st-line);
  background: var(--st-surface); color: var(--st-ink); font-weight: 500; font-size: 14px; cursor: pointer;
}
.st-chip.is-selected { border-color: var(--st-accent); background: var(--st-soft); color: var(--st-accent-dark); }
.st-chip-input { width: 110px; border-radius: 999px !important; }

/* step 3: feature toggles */
.st-feature { background: var(--st-surface); border: 1.5px solid var(--st-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.15s; }
.st-feature.is-on { border-color: var(--st-accent); }
.st-feature-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer; }
.st-feature.is-fixed .st-feature-head { cursor: default; }
.st-feature-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--st-soft); color: var(--st-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.st-feature-text { flex: 1; min-width: 0; }
.st-feature-text strong { display: block; color: var(--st-ink); font-size: 16px; }
.st-feature-text small { display: block; color: var(--st-muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.st-switch { flex: 0 0 44px; height: 26px; border-radius: 999px; background: #d9cbc3; position: relative; transition: background 0.2s; }
.st-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.st-feature.is-on .st-switch { background: var(--st-accent); }
.st-feature.is-on .st-switch::after { transform: translateX(18px); }
.st-included { font-size: 12px; font-weight: 600; color: var(--st-ok); background: #e8f5ee; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st-feature-body { display: none; padding: 0 16px 16px 74px; }
.st-feature.is-on .st-feature-body { display: block; }
@media (max-width: 520px) { .st-feature-body { padding-left: 16px; } }

/* step 4: review */
.st-review { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 14px; padding: 6px 18px; margin: 0 0 20px; }
.st-review div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f3e8e1; }
.st-review div:last-child { border-bottom: 0; }
.st-review dt { font-weight: 500; color: var(--st-muted); font-size: 14px; }
.st-review dd { margin: 0; color: var(--st-ink); font-weight: 600; text-align: right; font-size: 14.5px; }
.st-review .st-edit { background: none; border: 0; color: var(--st-accent-dark); font-size: 13px; padding: 0 0 0 8px; cursor: pointer; }

.st-signup { background: var(--st-soft); border: 1px solid #f2d3c2; border-radius: 14px; padding: 18px; }
.st-signup-lead { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; color: var(--st-ink); }
.st-signup-lead i { color: var(--st-accent); font-size: 20px; }
.st-signup-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* buttons + nav */
.st-btn-primary { background: var(--st-accent); color: #fff; border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.st-btn-primary:hover, .st-btn-primary:focus { background: var(--st-accent-dark); color: #fff; }
.st-btn-primary:disabled { opacity: 0.6; }
.st-btn-ghost { background: transparent; color: var(--st-ink); border: 1.5px solid var(--st-line); border-radius: 12px; padding: 12px 18px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.st-btn-ghost:hover { border-color: #cfb3a3; color: var(--st-ink); }
.st-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.st-nav.is-first #st-back { visibility: hidden; }
.st-error { color: #b03a2e; margin-top: 12px; font-weight: 500; }
@media (max-width: 960px) {
  .st-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.97); border-top: 1px solid var(--st-line); }
  .st-nav .btn { flex: 1; justify-content: center; }
  .st-nav.is-first #st-back { display: none; }
}

/* done */
.st-done-badge { width: 64px; height: 64px; border-radius: 50%; background: #e8f5ee; color: var(--st-ok); display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 16px; }
.st-next { display: grid; gap: 12px; }
.st-next a, .st-next button {
  display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; width: 100%;
  background: var(--st-surface); border: 1.5px solid var(--st-line); border-radius: 14px; color: var(--st-ink); text-decoration: none;
}
.st-next a:hover, .st-next button:hover { border-color: var(--st-accent); }
.st-next .st-next-n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--st-soft); color: var(--st-accent-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-next strong { display: block; }
.st-next small { color: var(--st-muted); }
.st-next .bi-chevron-right { margin-left: auto; color: var(--st-muted); }
.st-next .is-primary { border-color: var(--st-accent); background: var(--st-soft); }

/* preview */
.st-preview { position: sticky; top: 84px; }
@media (max-width: 960px) { .st-preview { position: static; } }
.st-preview-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-muted); margin: 0 0 10px; }
.st-card { background: linear-gradient(145deg, #3a2419, #1f130d); border-radius: 18px; padding: 10px; box-shadow: 0 18px 40px rgba(41, 24, 18, 0.22); }
.st-card-inner { border: 1px solid rgba(232, 196, 140, 0.55); border-radius: 12px; padding: 22px 20px 18px; color: #f6e9dc; text-align: center; }
.st-card-kicker { font-family: "Cinzel", serif; letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; color: #e8c48c; margin: 0 0 10px; }
.st-card-hosts { font-size: 12.5px; color: #d8c4b4; margin: 0 0 6px; }
.st-card-title { font-family: "Source Serif Pro", Georgia, serif; font-size: 24px; line-height: 1.2; color: #fff; margin: 0 0 12px; word-break: break-word; }
.st-card-rule { width: 56px; height: 1px; background: #e8c48c; margin: 0 auto 12px; }
.st-card-line { display: flex; justify-content: center; gap: 8px; font-size: 13.5px; margin: 0 0 6px; color: #f1e2d4; }
.st-card-line i { color: #e8c48c; }
.st-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(232, 196, 140, 0.4); text-align: left; }
.st-card-guest-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #c9b2a0; margin: 0; }
.st-card-guest { font-weight: 600; color: #fff; margin: 0; font-size: 14px; }
.st-card-admits { font-size: 12px; color: #e8c48c; margin: 2px 0 0; }
.st-card-qr { background: #fff; border-radius: 8px; padding: 4px; }
.st-card.is-dim { opacity: 0.45; filter: grayscale(0.4); }
.st-preview-note { font-size: 13px; color: var(--st-muted); margin: 10px 2px 18px; }

.st-cost { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 14px; padding: 16px 18px; }
.st-cost-title { font-weight: 700; color: var(--st-ink); margin: 0 0 8px; }
.st-cost-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #f3e8e1; }
.st-cost-row strong { color: var(--st-ink); white-space: nowrap; }
.st-cost-note { font-size: 12.5px; color: var(--st-muted); margin: 10px 0 6px; }
.st-cost-link { font-size: 13px; color: var(--st-accent-dark); font-weight: 600; }
.st-lang-slot .ab-lang-toggle { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); }
.st-lang-slot .ab-lang-btn:not(.active) { color: #6b5f58; }
.st-lang-slot .ab-lang-btn:hover:not(.active) { color: #291812; background: rgba(0,0,0,0.06); }
.st-chip-input { width: 130px; }
.st-title:focus { outline: none; }

