/* Matches iera.au: Inter, magenta #A80078, blush #FDF2F8, ink #181818, pill buttons. */
:root {
  --brand: #a80078;
  --brand-dark: #86005f;
  --ink: #181818;
  --ink-2: #2a2a2a;
  --muted: #6b6b6b;
  --blush: #fdf2f8;
  --line: #efe3eb;
  --soft: #fafafa;
  --ok: #0f7a44;
  --bad: #b42318;
  --radius: 20px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 4px; }
.h-card { font-size: clamp(26px, 3vw, 34px); }
.h-step { font-size: clamp(26px, 3.2vw, 38px); margin-top: 10px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mt { margin-top: 18px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.brand img { height: 42px; width: auto; }
.brand span { padding-left: 14px; border-left: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a.btn { color: #fff; }
.site-header nav form { margin: 0; }
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 40px 0; font-size: 14px; }
.site-footer strong { color: #fff; }
.site-footer a { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(168, 0, 120, 0.35); outline-offset: 2px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--blush); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--blush); }
button.link { background: none; border: 0; padding: 0; font: 500 16px var(--font); color: var(--ink); cursor: pointer; }

/* forms */
.signup { display: grid; gap: 14px; max-width: 460px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.opt { font-weight: 400; color: var(--muted); }
input[type='email'], input[type='text'], textarea { width: 100%; padding: 14px 16px; border: 1.5px solid #e2d4dd; border-radius: 14px; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--font); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(168, 0, 120, 0.12); }
.code-input { font-size: 28px !important; font-weight: 700 !important; letter-spacing: 0.45em; text-align: center; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.alert-error { background: #fdecec; color: var(--bad); }
.alert-info { background: var(--blush); color: var(--brand-dark); }

/* home */
.hero { background: var(--blush); padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { margin: 0 0 28px; max-width: 38em; font-size: 19px; color: var(--ink-2); }
.hero-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 40px rgba(168, 0, 120, 0.08); }
.how { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.how li { position: relative; padding: 0 0 18px 52px; color: var(--ink-2); counter-increment: how; }
.how li:last-child { padding-bottom: 0; }
.how li::before { content: counter(how); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blush); color: var(--brand); font-weight: 800; }
.section { padding-top: 64px; padding-bottom: 64px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lesson-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.lesson-card:hover { border-color: var(--brand); box-shadow: 0 8px 30px rgba(168, 0, 120, 0.08); transform: translateY(-2px); }
.lesson-card .meta { margin: 0; }
.lesson-card .bar { margin-top: auto; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blush); color: var(--brand); font-weight: 800; }
.num-done { background: var(--brand); color: #fff; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--brand); font-size: 12px; font-weight: 600; }
.meta { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.band { background: var(--brand); color: #fff; padding: 56px 0; }
.band h2 { color: #fff; }
.band p { margin: 0; max-width: 36em; color: rgba(255, 255, 255, 0.85); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* progress */
.bar { height: 8px; border-radius: 999px; background: #f1e4ec; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

/* cards, dashboard, lesson */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.narrow { max-width: 540px; margin: 56px auto; padding: 0 20px; }
.page { padding-top: 36px; padding-bottom: 72px; }
.dash-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 28px; padding: 32px; border-radius: var(--radius); background: var(--blush); }
.lesson-rows { display: grid; gap: 12px; }
.lesson-row { display: grid; grid-template-columns: auto 1fr 180px; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.lesson-row:hover { border-color: var(--brand); }
.lesson-row .meta { margin: 0; }
.crumbs { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.done-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ok); font-weight: 600; }

/* step list */
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.steps a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.4; text-decoration: none; }
.steps a:hover { background: var(--soft); }
.steps a.current { background: var(--blush); color: var(--brand); font-weight: 600; }
.steps-lg a { padding: 14px 16px; font-size: 16px; border: 1px solid var(--line); margin-bottom: 8px; border-radius: 14px; }
.kind { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #d9c7d2; border-radius: 50%; font-size: 12px; }
.tick.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* step page */
.step-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 24px; border-radius: var(--radius); overflow: hidden; background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: 17px; color: var(--ink-2); }
.prose img { height: auto; border-radius: 12px; }
.placeholder { margin: 8px 0 24px; padding: 28px; border: 1.5px dashed #e2d4dd; border-radius: var(--radius); background: var(--soft); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.actions form { margin: 0; }
.answer-form { display: grid; gap: 10px; margin-top: 8px; }
.step-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.step-nav a { text-decoration: none; }
.sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar h3 { font-size: 15px; }

/* quizzes */
.q { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.q legend { padding: 0 6px; font-weight: 700; }
.opt-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 16px; font-weight: 400; cursor: pointer; }
.opt-row:hover { background: var(--soft); }
.opt-row input { margin-top: 6px; accent-color: var(--brand); }
.review p { margin: 6px 0; }
.review .right { color: var(--ok); }
.review .wrong { color: var(--bad); }
.result { margin: 8px 0 20px; padding: 24px; border-radius: var(--radius); background: var(--blush); }
.result p { margin: 8px 0 0; }
.score { font-size: 44px; font-weight: 800; line-height: 1; color: var(--brand); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid, .step-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; max-height: none; }
  .dash-head { grid-template-columns: 1fr; padding: 24px; }
  .lesson-row { grid-template-columns: auto 1fr; }
  .lesson-row .bar-wrap { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand span, .hide-sm { display: none; }
  .card, .hero-card { padding: 24px; }
  .btn { width: 100%; }
  .site-header .btn, .actions .btn-ghost { width: auto; }
}
