/* Ella Elite site look: paper + charcoal, cyan + lime accents, iOS-style cards. Same tokens as the v3 site. */
:root {
  --paper: #EEE8DE; --char: #151515; --ink: #141414; --grey: #5E5E5E;
  --cyan: #1EC9D8; --cyan-deep: #0FA5B3; --lime: #DFF65B;
  --card: #FFFFFF; --line: rgba(20,20,20,.12); --line-d: rgba(255,255,255,.14);
  --radius: 22px; --shadow: 0 10px 30px rgba(20,20,20,.08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, serif; --hand: 'Caveat', cursive;
}
html.dark {
  --paper: #0F0F0F; --char: #F3EFE8; --ink: #F3EFE8; --grey: #A8A39B;
  --card: #1A1A1A; --line: rgba(255,255,255,.12); --shadow: 0 10px 30px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: var(--cyan-deep); }
button { font: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; transition: transform .08s ease, background .15s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-dark { background: #151515; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-lime { background: var(--lime); color: #151515; }
.btn-lime:hover { background: #d4ee3f; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); width: auto; padding: 10px 16px; font-size: 14px; }
.btn-cyan { background: var(--cyan); color: #0b1b1d; }

/* ---------- login ---------- */
.login-body { background: radial-gradient(1200px 600px at 50% -10%, rgba(30,201,216,.18), transparent 60%), var(--paper); }
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 28px; padding: 36px 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.lead { margin: 0 0 22px; color: var(--grey); font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 15px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); font-size: 17px; color: var(--ink); outline: none; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(30,201,216,.2); }
#code { letter-spacing: .4em; font-weight: 800; font-size: 26px; text-align: center; }
.small { font-size: 13px; color: var(--grey); margin: 14px 0 0; }
.msg { min-height: 1.4em; margin: 16px 0 0; font-size: 14px; color: var(--grey); }
.msg.err { color: #b42318; }
.msg.ok { color: #0e7a52; }
.support { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff4e5; color: #7a3e00; font-size: 14px; }
.foot { margin: 18px 0 0; font-size: 13px; color: var(--grey); text-align: center; }

/* ---------- hub shell ---------- */
.hub { max-width: 1120px; margin: 0 auto; padding: 20px 20px 80px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin: 0 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.topbar .title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.topbar .title small { display: block; font-weight: 500; font-size: 12px; color: var(--grey); }
.progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--lime)); border-radius: 999px; transition: width .4s ease; }
.pct { font-weight: 800; font-size: 14px; min-width: 40px; text-align: right; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; font-size: 16px; }
.saved { font-size: 12px; color: var(--grey); white-space: nowrap; }

.grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .topbar .saved { display: none; } }

.nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 8px; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; }
.nav button.active { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); }
.nav button .num { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); font-weight: 800; font-size: 12px; flex: none; }
.nav button.done .num { background: var(--lime); color: #151515; }
.nav button .sub { display: block; font-weight: 500; font-size: 12px; color: var(--grey); }
.nav .locked { opacity: .5; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.panel .intro { color: var(--grey); margin: 0 0 20px; }
.outcome { padding: 14px 16px; border-radius: 16px; background: var(--paper); margin: 0 0 22px; font-size: 14px; }
.outcome b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); margin-bottom: 4px; }
.video { aspect-ratio: 16/9; border-radius: 16px; background: #151515; display: grid; place-items: center; color: #fff; margin: 0 0 22px; overflow: hidden; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; }
.video .ph { font-family: var(--hand); font-size: 26px; color: var(--lime); }

.steps { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.step input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #151515; flex: none; }
.step .t { font-weight: 600; }
.step .d { color: var(--grey); font-size: 14px; }
.step.checked .t { text-decoration: line-through; color: var(--grey); }

.prompt { border-radius: 16px; background: #151515; color: #F3EFE8; padding: 16px 16px 14px; margin: 0 0 14px; }
html.dark .prompt { background: #0a0a0a; border: 1px solid var(--line); }
.prompt .ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.prompt .ph b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.prompt pre { margin: 0; white-space: pre-wrap; font: 14px/1.55 var(--font); max-height: 220px; overflow: auto; }
.copy { background: var(--lime); color: #151515; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.copy.ok { background: var(--cyan); }

.done-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.sticker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: #151515; font-family: var(--hand); font-size: 20px; transform: rotate(-3deg); }

.path { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .path { grid-template-columns: 1fr; } }
.path button { text-align: left; padding: 22px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.path button:hover { border-color: var(--cyan); }
.path button b { display: block; font-size: 18px; margin-bottom: 6px; }
.path button span { color: var(--grey); font-size: 14px; }
.hero { padding: 36px 28px; border-radius: 26px; background: #151515; color: #F3EFE8; margin: 0 0 20px; }
.hero h2 { font-size: 34px; color: #fff; }
.hero p { color: #cfc9bf; margin: 10px 0 0; max-width: 560px; }
.hero .tag { display: inline-block; font-family: var(--hand); font-size: 22px; color: var(--lime); transform: rotate(-2deg); margin-bottom: 8px; }

canvas#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #151515; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 60; opacity: 0; transition: opacity .2s; }
.toast.show { opacity: 1; }
