:root {
  --bg: #F5F0F4; --surface: #FFFFFF; --surface-2: #FBF5F8; --ink: #34262F; --ink-muted: #7A6C75;
  --border: #E9DCE4; --accent: #A51890; --accent-ink: #FCE9F9; --accent-hover: #830F73; --accent-soft: #F3E1EF;
  --slate: #6E7280; --ring: rgba(165,24,144,0.35); --danger: #B42318; --danger-soft: #FEE4E2;
  --shadow: 0 1px 2px rgba(52,38,47,0.04), 0 8px 24px -12px rgba(52,38,47,0.18);
  --radius: 14px; --side: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #201A1E; --surface: #2A2228; --surface-2: #302730; --ink: #F3E9EF; --ink-muted: #C2AFBC; --border: #493C46;
    --accent: #E066C9; --accent-ink: #2B0526; --accent-hover: #EE8ADA; --accent-soft: #3B2938; --slate: #A9ACC0;
    --ring: rgba(224,102,201,0.35); --danger: #F97066; --danger-soft: #3B1F1D;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #201A1E; --surface: #2A2228; --surface-2: #302730; --ink: #F3E9EF; --ink-muted: #C2AFBC; --border: #493C46;
  --accent: #E066C9; --accent-ink: #2B0526; --accent-hover: #EE8ADA; --accent-soft: #3B2938; --slate: #A9ACC0;
  --ring: rgba(224,102,201,0.35); --danger: #F97066; --danger-soft: #3B1F1D;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
.muted { color: var(--ink-muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--side); }
@media (max-width: 480px) { :root { --side: 18px; } }

/* Header */
header.site { border-bottom: 1px solid var(--border); background: var(--surface); position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
.logo { display: flex; align-items: baseline; gap: 8px; user-select: none; text-decoration: none; }
.wordmark { font-size: 0.95rem; font-weight: 700; letter-spacing: normal; color: var(--ink); text-transform: uppercase; }
.wordmark-sub { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; color: var(--ink-muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"], .mobile-link[aria-current="page"] { color: var(--ink); }
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; color: var(--ink); padding: 8px; align-items: center; justify-content: center; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding-bottom: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.mobile-menu.open { display: flex; }
.mobile-link { padding: 12px 6px; font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 10px; }
@media (max-width: 760px) { .site-nav { display: none; } .hamburger { display: inline-flex; } }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 600; font-size: 0.92rem; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease; text-decoration: none; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-compact { padding: 9px 18px; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; max-width: 20ch; letter-spacing: -0.01em; }
.h1-sm { font-size: clamp(1.8rem, 3.4vw, 2.5rem) !important; max-width: 30ch !important; }
.hero .lede, .about-hero .lede, .apply .lede { margin-top: 18px; font-size: 1.12rem; line-height: 1.6; color: var(--ink-muted); max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.82rem; color: var(--ink-muted); }
@media (max-width: 640px) { .hero-ctas { flex-direction: column; align-items: stretch; } .hero-ctas .btn { width: 100%; } }
@media (max-width: 480px) { .stat-strip { gap: 24px; } }

/* Filter bar */
.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.search-field { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.search-field svg { flex-shrink: 0; color: var(--ink-muted); }
.search-field input { border: none; background: transparent; outline: none; font-family: inherit; font-size: 0.95rem; color: var(--ink); width: 100%; }
.search-field input::placeholder { color: var(--ink-muted); }
select { font-family: inherit; font-size: 0.92rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
select.field-select { min-width: 190px; }
.result-count { font-size: 0.85rem; color: var(--ink-muted); white-space: nowrap; padding-left: 4px; }

/* Directory */
section.directory { padding-top: 44px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--ink-muted); font-size: 0.95rem; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-top { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; color: var(--accent-ink); background: var(--accent); object-fit: cover; }
.avatar-lg { width: 112px; height: 112px; border-radius: 22px; font-size: 1.8rem; }
.card-id h3 { font-size: 1.02rem; }
.card-link { text-decoration: none; }
.card-link:hover { color: var(--accent); }
.card-id .role, .profile-head .role { font-size: 0.86rem; color: var(--ink-muted); margin-top: 2px; }
.tag { display: inline-flex; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.tag-muted { color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); margin: 0 6px 6px 0; }
.bio { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.expertise { font-size: 0.78rem; color: var(--ink-muted); }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.card .btn { padding: 9px 16px; font-size: 0.85rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-muted); }

/* Profile page */
.profile { padding-top: 36px; padding-bottom: 20px; max-width: 760px; }
.back-link { display: inline-block; font-size: 0.9rem; color: var(--ink-muted); text-decoration: none; margin-bottom: 18px; }
.back-link:hover { color: var(--accent); }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.profile-head { display: flex; gap: 20px; align-items: center; }
.profile-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.profile-head .tag { margin-top: 10px; }
.profile-short { font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.profile-meta { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profile-meta dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.profile-meta dd { margin: 0; font-size: 0.95rem; }
.profile-bio h2 { font-size: 1.2rem; margin-bottom: 10px; }
.profile-bio p { color: var(--ink-muted); line-height: 1.65; font-size: 0.98rem; }
.profile-bio p + p { margin-top: 12px; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .profile-card { padding: 22px; } .profile-head { flex-direction: column; align-items: flex-start; } .profile-actions { flex-direction: column; } .profile-actions .btn { width: 100%; } }

/* About */
.about-hero { padding-top: 56px; padding-bottom: 8px; }
.about { padding-top: 40px; padding-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 44px; max-width: 720px; }
.about-copy h2, .about-faq h2 { font-size: 1.7rem; margin-bottom: 14px; }
.about-copy p { color: var(--ink-muted); line-height: 1.65; font-size: 0.98rem; }
.about-copy p + p { margin-top: 12px; }
.how-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.55; color: var(--ink-muted); }
.step-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.72rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 16px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink); list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q svg { transition: transform .2s ease; color: var(--ink-muted); flex-shrink: 0; }
.faq-item[open] .faq-q svg { transform: rotate(180deg); }
.faq-a { padding: 0 4px 16px; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.6; }
.faq-a a { color: var(--accent); }

/* Footer */
footer.site { border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { padding-top: 26px; padding-bottom: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-muted); }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* Forms (shared) */
.modal label, .field label, .field .label { font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.modal input, .modal textarea, .modal select, .field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select, .dob-row select { width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
.modal textarea, .field textarea { resize: vertical; min-height: 70px; }
.modal input:focus, .modal textarea:focus, .modal select:focus, .field input:focus, .field textarea:focus, .field select:focus, select.field-select:focus, .search-field:focus-within { outline: 3px solid var(--ring); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"], .modal [aria-invalid="true"] { border-color: var(--danger); }
.fine { font-size: 0.76rem; color: var(--ink-muted); margin-top: 2px; line-height: 1.5; }
.hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 6px; line-height: 1.45; }
.hint.warn { color: var(--danger); }
.form-error { font-size: 0.85rem; color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--accent); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(32,20,28,0.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--surface); border-radius: 18px; max-width: 440px; width: 100%; padding: 28px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4); border: 1px solid var(--border); max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal h3 { font-size: 1.2rem; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--ink-muted); padding: 4px; }
.modal p.lede { color: var(--ink-muted); font-size: 0.9rem; margin-top: 6px; line-height: 1.5; }
.modal form { display: grid; gap: 12px; margin-top: 20px; }
.confirm { text-align: center; padding: 10px 0 4px; }
.confirm .check { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.confirm h2, .confirm h3 { margin-bottom: 8px; }
.confirm p { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.55; }
.confirm p + p { margin-top: 10px; }
.confirm .btn { margin-top: 18px; }

/* Mentor application form */
.apply { padding-top: 36px; padding-bottom: 30px; }
.apply-shell { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.apply-progress { margin-bottom: 26px; }
.apply-progress-bar { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.apply-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.apply-progress-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin-top: 8px; }
.apply-step { border: none; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.apply-step h2 { font-size: 1.4rem; }
.apply-step .h1-sm { font-size: clamp(1.6rem, 3vw, 2.1rem) !important; }
.apply-tip { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; font-size: 0.92rem; line-height: 1.5; }
.apply-tip ul { margin: 8px 0 0; padding-left: 20px; }
.apply-restore { border: 1px dashed var(--border); border-radius: 12px; padding: 16px; font-size: 0.92rem; }
.apply-restore-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.field { display: block; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dob-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.checks { display: grid; gap: 8px; }
.field .check, .check, .agree { display: flex; flex-wrap: nowrap; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; cursor: pointer; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-weight: 500; margin: 0; }
.check input, .agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--accent); }
.check > span, .agree > span { flex: 1 1 0; min-width: 0; }
.agree { font-weight: 400; }
.check:hover, .agree:hover { border-color: var(--accent); }
.agree a { color: var(--accent); }
.agree.invalid { border-color: var(--danger); }
.photo-row { display: flex; gap: 16px; align-items: flex-start; }
.photo-controls { flex: 1; min-width: 0; }
.photo-controls input[type="file"] { width: 100%; font-size: 0.9rem; }
#photo-preview { background-size: cover; background-position: center; }
.apply-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.apply-nav .btn-primary { margin-left: auto; }
.cf-turnstile { margin-top: 4px; }
@media (max-width: 560px) { .apply-shell { padding: 22px 18px; } .field-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Inline validation messages */
.field-msg { font-size: 0.8rem; color: var(--danger); margin-top: 6px; line-height: 1.45; }
.agree > .field-msg, .checks > .field-msg { flex-basis: 100%; }
.agree.invalid, .agree:has(.field-msg:not([hidden])) { flex-wrap: wrap; }
.checks.invalid { border: 1px solid var(--danger); border-radius: 12px; padding: 8px; }
.checks > .field-msg { margin-top: 0; }


/* ---------- Full-page mentor form ---------- */
.page-form { background: var(--surface); }
.page-form > main.form-wrap { flex: 1 0 auto; width: 100%; }
.form-wrap { max-width: 680px; margin: 0 auto; padding: 0 var(--side); }
.form-header { border-bottom: 1px solid var(--border); }
.form-header .form-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.form-header-note { font-size: 0.82rem; font-weight: 600; letter-spacing: normal; text-transform: uppercase; color: var(--ink-muted); }
.form-footer { border-top: 1px solid var(--border); margin-top: 60px; font-size: 0.8rem; color: var(--ink-muted); flex-shrink: 0; }
.form-footer .form-wrap { padding-top: 22px; padding-bottom: 22px; }
.apply { padding-top: 34px; }
.apply h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; }
.apply .lede { margin-top: 14px; font-size: 1.08rem; line-height: 1.6; color: var(--ink-muted); }
.apply-step { display: grid; gap: 20px; }
.step-head h2 { font-size: 1.5rem; }
.step-sub { margin-top: 8px; font-size: 0.98rem; line-height: 1.6; color: var(--ink-muted); }
.step-sub .pill { margin-right: 6px; position: relative; top: -1px; }
.apply-note { background: transparent; border: 2px solid var(--accent-soft); border-radius: 14px; padding: 18px 20px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.apply-note p + p { margin-top: 12px; }
.apply-note-legend { font-size: 0.9rem; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.apply-tip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; font-size: 0.95rem; line-height: 1.55; }
.apply-tip ul { margin: 8px 0 0; padding-left: 20px; }
.pill { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.pill-public { background: var(--accent-soft); color: var(--accent); }
.pill-private { background: var(--surface-2); color: var(--ink-muted); border: 1px solid var(--border); }
.pill-sm { font-size: 0.62rem; padding: 2px 7px; margin-left: 4px; }
.field label, .field .label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.stepper { margin: 26px 0 28px; }
.stepper-label { display: none; margin: 10px 0 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stepper-item { width: 100%; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left; color: var(--ink-muted); display: grid; gap: 8px; }
.stepper-item::before { content: ""; display: block; height: 5px; border-radius: 999px; background: var(--border); }
.stepper-item[data-status="current"]::before { background: var(--accent); }
.stepper-item[data-status="done"]::before { background: var(--accent); opacity: 0.45; }
.stepper-item[data-status="error"]::before { background: var(--danger); }
.stepper-item[data-status="current"] { color: var(--ink); }
.stepper-item[data-status="error"] .stepper-title::after { content: " !"; color: var(--danger); font-weight: 800; }
.stepper-num { display: none; }
.stepper-title { font-size: 0.74rem; font-weight: 600; line-height: 1.2; }
.stepper-item:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 560px) { .stepper-title { display: none; } .stepper-item::before { height: 6px; } .stepper-label { display: block; } .stepper { margin-bottom: 22px; } }
.apply-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.apply-nav-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); margin: 0 auto; }
.apply-nav .btn-primary { margin-left: auto; }
.apply-checklist { background: var(--danger-soft); border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; line-height: 1.55; }
.apply-checklist ul { margin: 8px 0 0; padding-left: 18px; }
.apply-checklist li + li { margin-top: 4px; }
.apply-checklist .link-btn { color: var(--danger); font-weight: 600; }
.apply-done { max-width: 560px; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.done-h2 { font-size: 1.15rem; margin-top: 6px; }
.apply-done .how-steps { margin-top: 0; }
.done-photo-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; line-height: 1.55; }
@media (max-width: 560px) {
  /* Primary action (Continue / Submit) on top, Back underneath. */
  .apply-nav { flex-direction: column; align-items: stretch; }
  .apply-nav-label { display: none; }
  .apply-nav .btn { width: 100%; margin: 0; }
  .apply-nav .btn-primary { order: -1; }
  /* Welcome page only: "Get started" is pinned to the bottom of the screen; the intro and footer scroll behind it. */
  .apply-nav.apply-nav-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 12px var(--side) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -16px rgba(52,38,47,0.35); }
  .apply-nav.apply-nav-sticky .btn { padding: 14px 18px; font-size: 1rem; }
  body.has-sticky-nav { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Preview lock page ---------- */
.page-lock { background: var(--bg); }
.lock { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px var(--side); }
.lock-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 36px 32px; }
.lock-card .wordmark { font-size: 0.95rem; color: var(--accent); }
.lock h1 { font-size: clamp(1.6rem, 3.4vw, 2rem); line-height: 1.15; margin-top: 18px; }
.lock .lede { color: var(--ink-muted); line-height: 1.6; font-size: 1rem; margin-top: 12px; }
.lock-form { margin-top: 24px; }
.lock-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.lock-row { display: flex; gap: 10px; }
.lock-row input { flex: 1 1 auto; min-width: 0; height: 48px; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 18px; }
.lock-row input:focus { outline: 3px solid var(--ring); outline-offset: 1px; border-color: var(--accent); }
.lock-row .btn { height: 48px; padding: 0 24px; flex: 0 0 auto; }
.lock-form .field-msg { margin-top: 10px; }
.lock .fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--ink-muted); line-height: 1.55; }
.lock .fine a { color: var(--accent); }
@media (max-width: 480px) { .lock { padding: 20px var(--side) 32px; align-items: flex-start; } .lock-card { padding: 26px 20px 24px; } .lock-row { flex-direction: column; } .lock-row .btn { width: 100%; } }
