/* Maila Salon installer */
:root {
  --maroon: #733526;
  --maroon-deep: #3a1912;
  --cream: #f8e6bf;
  --gold: #c9a45c;
  --ink: #2a1d19;
  --muted: #7a6b65;
  --line: #eadfd6;
  --bg: #faf6f1;
  --ok: #2f7a4f;
  --bad: #b23a2e;
  --warn: #a8701b;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.55 "Source Sans 3", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; line-height: 1.12; margin: 0; }
code { padding: 1px 6px; border-radius: 6px; background: #f3ebe3; font-size: .88em; }
a { color: var(--maroon); }

/* ---------- Layout (mobile first) ---------- */
.shell { display: grid; min-height: 100vh; }
.side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px;
  padding: 26px 22px; color: #f6ece4;
  background: radial-gradient(120% 80% at 0% 0%, #8a4433 0%, transparent 60%), linear-gradient(160deg, var(--maroon) 0%, var(--maroon-deep) 100%);
}
.side::after { /* soft gold glow */
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, .28), transparent 70%); pointer-events: none;
}
.side-logo { width: 150px; height: auto; }
.kicker { margin: 0 0 6px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.side h1 { font-size: 1.9rem; color: #fff; }
.side-copy p:last-child { margin: 8px 0 0; color: rgba(246, 236, 228, .78); }

.steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.steps li { display: flex; flex: 1 0 auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; color: rgba(246, 236, 228, .6); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.steps li.is-current { background: rgba(255, 255, 255, .1); color: #fff; }
.steps li.is-done { color: var(--cream); }
.step-dot { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 1.5px solid currentColor; border-radius: 50%; font-size: .82rem; }
.steps li.is-current .step-dot { border-color: var(--gold); background: var(--gold); color: var(--maroon-deep); }
.steps li.is-done .step-dot { border-color: var(--cream); background: var(--cream); color: var(--maroon); }
.step-dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* The Great Lion King SiMbA */
.king { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 16px; border: 1px solid rgba(201, 164, 92, .45); border-radius: 14px; background: rgba(0, 0, 0, .16); }
.king-crown { flex: 0 0 auto; width: 46px; height: 36px; fill: var(--gold); filter: drop-shadow(0 2px 6px rgba(201, 164, 92, .45)); }
.king figcaption { display: grid; gap: 1px; }
.king-small { color: rgba(246, 236, 228, .7); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.king strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; line-height: 1.15; color: #fff; }
.king em { color: var(--gold); font-style: italic; letter-spacing: .02em; }
.king-quote { margin-top: 3px; color: var(--cream); font-size: .86rem; font-style: italic; }

.main { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 14px 28px; }
.card { width: 100%; max-width: 680px; padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 24px 60px -30px rgba(58, 25, 18, .35); }
.foot { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }
.foot strong { color: var(--maroon); }

.eyebrow { margin: 0 0 6px; color: var(--maroon); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card h2 { font-size: 2rem; color: var(--maroon-deep); }
.lead { margin: 10px 0 20px; color: var(--muted); }
.hint { color: var(--muted); font-size: .92rem; }
.hero-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 50%; background: #e6f2ea; color: var(--ok); }
.hero-icon.is-gold { background: #f7eedb; color: var(--warn); }
.hero-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Requirement checks ---------- */
.checks { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.checks strong { display: block; font-size: .95rem; }
.checks small { display: block; color: var(--muted); font-size: .84rem; }
.check-icon { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; color: #fff; font-size: .8rem; font-weight: 700; }
.checks .ok .check-icon { background: var(--ok); }
.checks .bad { border-color: #f0c9c4; background: #fdf3f2; }
.checks .bad .check-icon { background: var(--bad); }
.checks .warn { border-color: #efdcb7; background: #fdf8ee; }
.checks .warn .check-icon { background: var(--warn); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.row { display: grid; align-items: start; gap: 16px; }
.form label { display: grid; gap: 6px; min-width: 0; font-size: .9rem; font-weight: 600; }
.form small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.optional { color: var(--muted); font-weight: 400; font-size: .8rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input:not([type]) {
  width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #ddd0c5; border-radius: 10px; background: #fffdfb; color: var(--ink); font: inherit; font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(115, 53, 38, .14); }
.form label.tick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 500; }
.tick input { width: 18px; height: 18px; accent-color: var(--maroon); }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 5px 10px; border: 0; border-radius: 7px; background: #f3ebe3; color: var(--maroon); font: 600 .78rem/1.2 inherit; font-family: inherit; cursor: pointer; }
.meter { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #efe6de; }
.meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bad); transition: width .2s, background .2s; }
.is-match { color: var(--ok) !important; }
.is-mismatch { color: var(--bad) !important; }

/* ---------- Buttons, alerts ---------- */
.actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; gap: 10px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; font: 600 .95rem/1.2 "Source Sans 3", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary { flex: 1 1 auto; background: var(--maroon); color: #fff; box-shadow: 0 10px 22px -12px rgba(115, 53, 38, .8); }
.btn-primary:hover { background: #5e2a1e; transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: #d5c4b7; }
.alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; }
.alert-error { border: 1px solid #f0c9c4; background: #fdf3f2; color: #8d2a20; }
.alert-ok { border: 1px solid #cfe5d7; background: #f1f8f3; color: #23583a; }
.alert-ok a { margin-left: 4px; color: inherit; font-weight: 600; }
.alert-warn { border: 1px solid #efdcb7; background: #fdf8ee; color: #6f4a12; }
.summary { display: grid; gap: 8px; margin: 0 0 16px; }
.summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; border-radius: 10px; background: #faf5f0; }
.summary dt { color: var(--muted); font-size: .88rem; }
.summary dd { margin: 0; font-weight: 600; word-break: break-all; }
.config-box { width: 100%; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #2a1d19; color: #f8e6bf; font: .8rem/1.5 ui-monospace, Consolas, monospace; resize: vertical; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .card { padding: 34px 36px; }
  .row { grid-template-columns: 1fr 1fr; }
  .row .grow { grid-column: auto; }
  .row:has(.narrow) { grid-template-columns: 1fr 120px; }
  .actions { flex-wrap: nowrap; }
  .btn-primary { flex: 0 0 auto; }
}
@media (min-width: 980px) {
  .shell { grid-template-columns: 380px 1fr; }
  .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 36px 34px 28px; gap: 24px; }
  .side-logo { width: 180px; }
  .side h1 { font-size: 2.4rem; }
  .steps { flex-direction: column; overflow: visible; }
  .steps li { flex: none; padding: 10px 12px; font-size: .98rem; }
  .king { flex: 0 0 auto; margin-top: auto; }
}
@media (min-width: 980px) and (max-height: 760px) {
  .side { gap: 16px; padding-top: 26px; }
  .side-logo { width: 140px; }
  .side h1 { font-size: 2rem; }
  .steps li { padding: 7px 12px; }
  .main { justify-content: center; padding: 48px 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
