/* Neurah Light International — site styles
   Palette drawn from the logo: royal purple, lime green, olive-mauve gradient, soft lavender. */
:root {
  --purple-950: #1f0d31;
  --purple-900: #2e1446;
  --purple-800: #422063;
  --purple-700: #5c2e80;
  --purple-600: #6f3d97;
  --purple-100: #efe1f6;
  --lime-500: #97c11f;
  --lime-600: #7da314;
  --lime-700: #5f7d0c;
  --lime-100: #eef6d6;
  --olive: #7c7b48;
  --mauve: #6e5763;
  --lav-50: #fff7ff;
  --lav-100: #fbeefc;
  --lav-200: #f3def5;
  --ink: #22142f;
  --text: #3a2a47;
  --muted: #6d5d7a;
  --line: #e7d6ea;
  --white: #ffffff;
  --danger: #b3261e;
  --success: #3f7d12;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(46, 20, 70, .06), 0 8px 28px rgba(46, 20, 70, .08);
  --shadow-lg: 0 20px 60px rgba(46, 20, 70, .18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--lav-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-700); text-underline-offset: 3px; }
a:hover { color: var(--purple-900); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime-500); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--purple-700);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--lime-500); }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .98rem/1 var(--sans); padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--purple-700); color: #fff; box-shadow: 0 6px 18px rgba(92, 46, 128, .28); }
.btn-primary:hover { background: var(--purple-800); color: #fff; }
.btn-lime { background: var(--lime-500); color: var(--purple-950); }
.btn-lime:hover { background: #a6cf2c; color: var(--purple-950); }
.btn-ghost { background: transparent; color: var(--purple-700); border-color: var(--purple-700); }
.btn-ghost:hover { background: var(--purple-700); color: #fff; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 255, .88); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.18rem/1 var(--sans); letter-spacing: .04em; color: var(--purple-700); }
.brand-sub { font: 600 .62rem/1 var(--sans); letter-spacing: .38em; color: var(--purple-700); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--lav-200); color: var(--purple-800); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--lav-200); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--purple-700); color: #fff; display: grid; place-items: center; font: 700 .85rem/1 var(--sans); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: fixed; inset: 76px 0 auto 0; background: var(--lav-50); border-bottom: 1px solid var(--line); padding: 12px 20px 22px; display: none; box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 12px; }
  .nav-actions { margin-top: 12px; flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}
@media (min-width: 921px) { .nav-menu { display: flex; align-items: center; gap: 18px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 193, 31, .22), rgba(151, 193, 31, 0) 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 61, 151, .16), rgba(111, 61, 151, 0) 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--purple-700); }
.hero .lead { max-width: 580px; margin-bottom: 30px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .halo { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%); }
.hero-visual img { position: relative; width: min(340px, 72%); filter: drop-shadow(0 24px 40px rgba(46,20,70,.18)); }
.verse-card {
  position: relative; margin-top: -10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); max-width: 360px;
}
.verse-card p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink); margin: 0 0 8px; }
.verse-card cite { font: 700 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-700); font-style: normal; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--lime-600); }
@media (max-width: 920px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 180px; }
  .verse-card { display: none; }
}

/* Message strip */
.strip { background: var(--purple-900); color: #fff; padding: 22px 0; overflow: hidden; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.strip span { font: 600 1.02rem/1.3 var(--serif); font-style: italic; display: inline-flex; align-items: center; gap: 12px; }
.strip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); flex: none; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1020px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-5 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.pillar { position: relative; padding: 26px 22px; }
.pillar .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-100); color: var(--lime-700); margin-bottom: 16px; }
.pillar .icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel-purple { background: linear-gradient(145deg, var(--purple-800), var(--purple-950)); color: #eadcf3; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; }
.panel-purple h2, .panel-purple h3 { color: #fff; }
.panel-purple::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(151,193,31,.35), transparent 70%); }
.panel-purple .eyebrow { color: var(--lime-500); }
@media (max-width: 600px) { .panel-purple { padding: 30px 22px; border-radius: 22px; } }

.bg-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-lav { background: var(--lav-100); }

/* Course cards */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.course-top { position: relative; padding: 26px 26px 22px; background: linear-gradient(140deg, var(--purple-700), var(--purple-900)); color: #fff; min-height: 150px; }
.course-card.free .course-top { background: linear-gradient(140deg, #88b014, #4f6a08); }
.course-num { font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.course-top h3 { color: #fff; font-size: 1.35rem; margin: 10px 0 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.badge svg { width: 13px; height: 13px; }
.badge-free { background: var(--lime-100); color: var(--lime-700); }
.badge-locked { background: var(--lav-200); color: var(--purple-800); }
.badge-open { background: #e6f3d3; color: var(--success); }
.badge-pending { background: #fff1d6; color: #8a5a00; }
.course-top .badge { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,.18); color: #fff; }
.course-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.course-meta { display: flex; gap: 16px; font-size: .86rem; color: var(--muted); font-weight: 600; margin-top: auto; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 16px; height: 16px; }
.progress { height: 8px; background: var(--lav-200); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-500), var(--lime-600)); border-radius: 999px; transition: width .4s ease; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-700); color: #fff; font: 700 1rem/1 var(--sans); }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Page header */
.page-head { padding: 64px 0 40px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(151,193,31,.18), transparent 65%); pointer-events: none; }
.page-head .lead { max-width: 720px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Scripture */
.scripture { border-left: 4px solid var(--lime-500); background: #fff; padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 14px; box-shadow: var(--shadow); }
.scripture p { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink); margin: 0 0 6px; }
.scripture cite { font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-700); font-style: normal; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .76rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--lav-100); }
tr:last-child td { border-bottom: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.hint { font-weight: 500; color: var(--muted); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; font: 500 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple-600); box-shadow: 0 0 0 4px rgba(111, 61, 151, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple-700); flex: none; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .94rem; font-weight: 600; }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-success { background: #eaf5dc; color: var(--success); }
.alert-info { background: var(--lav-200); color: var(--purple-800); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); }
.auth-side { background: linear-gradient(160deg, var(--purple-800), var(--purple-950)); color: #eadcf3; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(151,193,31,.35), transparent 70%); }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; }
.auth-side li svg { flex: none; width: 22px; height: 22px; color: var(--lime-500); margin-top: 2px; }
.auth-main { padding: 56px 40px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 36px 20px 64px; } }

/* Rating */
.rating { display: flex; flex-wrap: wrap; gap: 6px; }
.rating label { margin: 0; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; color: var(--muted); transition: all .12s; }
.rating input:checked + span { background: var(--purple-700); border-color: var(--purple-700); color: #fff; }
.rating input:focus-visible + span { outline: 3px solid var(--lime-500); outline-offset: 2px; }

/* Lesson layout */
.lesson-layout { display: grid; grid-template-columns: 290px 1fr; gap: 48px; align-items: start; padding: 40px 0 88px; }
.lesson-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.lesson-nav h4 { font: 700 .78rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 6px 12px; }
.lesson-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lesson-nav a { display: flex; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .92rem; line-height: 1.35; font-weight: 600; }
.lesson-nav a:hover { background: var(--lav-100); }
.lesson-nav a[aria-current="page"] { background: var(--lav-200); color: var(--purple-900); }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: var(--muted); margin-top: 1px; }
.dot.done { background: var(--lime-500); border-color: var(--lime-500); color: var(--purple-950); }
.lesson-main { min-width: 0; max-width: 780px; }
.lesson-main section { margin-bottom: 44px; }
.lesson-main h2 { font-size: 1.55rem; display: flex; align-items: center; gap: 12px; }
.lesson-main h2 .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lime-100); color: var(--lime-700); flex: none; }
.lesson-main h2 .ico svg { width: 20px; height: 20px; }
.hook { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; color: var(--purple-800); font-style: italic; margin: 8px 0 34px; padding: 26px 28px; background: linear-gradient(135deg, #fff, var(--lav-100)); border-radius: var(--radius); border: 1px solid var(--line); }
.reality { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.reflect-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reflect-list li { background: var(--purple-100); color: var(--purple-900); padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.activity { background: #fff; border: 2px solid var(--purple-100); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.activity ol { padding-left: 20px; margin: 0 0 24px; }
.activity ol li { margin-bottom: 8px; }
.save-status { font-size: .88rem; color: var(--muted); font-weight: 600; }
.prayer { background: linear-gradient(145deg, var(--purple-800), var(--purple-950)); color: #eadcf3; border-radius: 22px; padding: 30px; }
.prayer h2 { color: #fff; }
.prayer p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin: 0; }
.takeaway { margin-top: 18px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--lime-100); color: var(--lime-700); font-weight: 700; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; max-width: 48%; }
.pager a small { color: var(--muted); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pager a span { font-weight: 700; color: var(--ink); }
.pager a.next { margin-left: auto; text-align: right; }
@media (max-width: 960px) {
  .lesson-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .lesson-nav { position: static; }
  .activity, .prayer { padding: 22px; }
}

/* Lesson list on course page */
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lesson-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; color: inherit; }
a.lesson-item:hover { border-color: var(--purple-600); color: inherit; }
.lesson-item .num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--lav-200); color: var(--purple-800); display: grid; place-items: center; font-weight: 800; }
.lesson-item.done .num { background: var(--lime-500); color: var(--purple-950); }
.lesson-item .t { flex: 1; min-width: 0; }
.lesson-item .t strong { display: block; color: var(--ink); }
.lesson-item .t span { font-size: .88rem; color: var(--muted); }
.lesson-item .go { color: var(--purple-700); flex: none; }
.lesson-item.locked { opacity: .75; }
.course-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; } }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.outcomes li { display: flex; gap: 10px; }
.outcomes svg { flex: none; width: 20px; height: 20px; color: var(--lime-600); margin-top: 3px; }

/* Dashboard */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font: 600 2.2rem/1 var(--serif); color: var(--purple-800); margin-bottom: 6px; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { background: none; border: 0; padding: 12px 16px; font: 700 .96rem/1 var(--sans); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--purple-800); border-bottom-color: var(--lime-500); }
.journal-entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.journal-entry header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.journal-entry h3 { font-size: 1.12rem; margin: 0; }
.journal-entry dl { margin: 0; display: grid; gap: 12px; }
.journal-entry dt { font-weight: 700; font-size: .86rem; color: var(--muted); }
.journal-entry dd { margin: 2px 0 0; white-space: pre-wrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--purple-950); color: #cdbbd9; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #e9dcf1; text-decoration: none; }
.site-footer a:hover { color: var(--lime-500); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; background: var(--lav-50); border-radius: 12px; padding: 6px; }
.footer-brand .brand-name, .footer-brand .brand-sub { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--purple-700), var(--purple-900)); border-radius: 28px; padding: 54px 48px; color: #eadcf3; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band::after { content: ""; position: absolute; left: 40%; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(151,193,31,.3), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; border-radius: 22px; } }

/* Misc */
.tribes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .tribes { grid-template-columns: 1fr; } }
.tag { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--lime-700); background: var(--lime-100); padding: 7px 10px; border-radius: 999px; margin-bottom: 12px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 30px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7d0c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--lav-200); border-top-color: var(--purple-700); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--purple-900); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; opacity: 0; transition: all .25s ease; z-index: 200; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal-bg { position: fixed; inset: 0; background: rgba(31,13,49,.5); display: grid; place-items: center; z-index: 150; padding: 20px; }
.modal { background: #fff; border-radius: 22px; padding: 30px; max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
