/* ============================================================
   bitcoinadviser.io — Bitcoin Basics for professionals
   Shared design system. Hand-built, framework-free, WCAG AA.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #f7931a;          /* brand fill colour (filled CTAs, accents) */
  --orange-bright: #ffa733;
  --orange-dim: #c4711a;
  /* --orange-text: brand orange tuned for use as SMALL TEXT so it clears
     WCAG-AA 4.5:1. The raw brand #f7931a is only ~4.1:1 on the dark bg, which
     fails for text. Filled-orange CTAs keep --orange (accepted brand choice). */
  --orange-text: #ffb968;
  /* --label-text: uppercase eyebrow / section-label text. These small labels sit
     on an ORANGE-TINTED pill (eyebrow) or directly on the page background
     (section-label). A pale orange on the orange-tinted pill drops below AA, so
     labels use a brighter, near-cream orange that clears 4.5:1 over both the
     tinted pill (≈#1d1a13 effective on dark) and the plain card background. */
  --label-text: #ffc987;

  /* dark default */
  --bg: #0a0a0b;
  --bg2: #111113;
  --bg3: #18181b;
  --bg-soft: #1f1f23;
  --border: #2a2a2e;
  --border-soft: #232327;
  --text: #ececee;
  --text-strong: #ffffff;
  --muted: #a8a8b0;          /* AA: ~4.98:1 on --bg2 cards */
  --muted-dim: #a4a4ad;      /* AA: ~4.79:1 on --bg2 (small print) */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-1: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-2: 0 8px 28px rgba(0,0,0,0.45);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* fluid type */
  --fs-eyebrow: 0.78rem;
  --fs-body: 1.02rem;
  --fs-h1: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h3: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fbfbfa; --bg2: #ffffff; --bg3: #f4f4f2; --bg-soft: #f0efec;
    --border: #e4e3df; --border-soft: #eceae5;
    --text: #1c1c1e; --text-strong: #0a0a0b; --muted: #5f5f66; --muted-dim: #66666f;
    --orange-text: #985409;  /* AA: 4.5:1+ on light + gradient-tinted surfaces */
    --label-text: #8a4a06;   /* AA: small uppercase labels on light + orange-tinted pill */
    --shadow-1: 0 1px 3px rgba(20,20,20,0.08);
    --shadow-2: 0 12px 30px rgba(20,20,20,0.10);
  }
}
:root[data-theme="light"] {
  --bg: #fbfbfa; --bg2: #ffffff; --bg3: #f4f4f2; --bg-soft: #f0efec;
  --border: #e4e3df; --border-soft: #eceae5;
  --text: #1c1c1e; --text-strong: #0a0a0b; --muted: #5f5f66; --muted-dim: #66666f;
  --orange-text: #985409;    /* AA: 4.5:1+ on light + gradient-tinted surfaces */
  --label-text: #8a4a06;     /* AA: small uppercase labels on light + orange-tinted pill */
  --shadow-1: 0 1px 3px rgba(20,20,20,0.08);
  --shadow-2: 0 12px 30px rgba(20,20,20,0.10);
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --bg2: #111113; --bg3: #18181b; --bg-soft: #1f1f23;
  --border: #2a2a2e; --border-soft: #232327;
  --text: #ececee; --text-strong: #ffffff; --muted: #a8a8b0; --muted-dim: #b1b1ba;
  --orange-text: #ffb968;
  --label-text: #ffc987;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.5rem; }

/* ---- skip link ---- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #000; padding: 0.6rem 1rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---- focus visibility ---- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding-inline: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em;
  color: var(--text-strong); text-decoration: none;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(140deg, var(--orange-bright), var(--orange-dim));
  color: #1a1206; font-weight: 900; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(247,147,26,0.35);
}
.brand .dot { color: var(--orange); }

/* The header's only nav item is the "List your practice" CTA, rendered as a
   primary button in the right-hand cluster with the theme toggle to its right. */
.nav-right { display: flex; align-items: center; gap: 0.7rem; }
.nav-cta { white-space: nowrap; }

.theme-toggle {
  appearance: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer; width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.18s, color 0.18s; padding: 0; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s var(--ease-spring), background 0.18s, border-color 0.18s, color 0.18s;
  min-height: 44px;
}
.btn-primary { background: var(--orange); color: #1a1206; box-shadow: 0 2px 12px rgba(247,147,26,0.28); }
.btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1rem; min-height: 38px; font-size: 0.86rem; }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(247,147,26,0.16), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(247,147,26,0.07), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 4rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(247,147,26,0.10); border: 1px solid rgba(247,147,26,0.32);
  color: var(--label-text); font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.85rem; border-radius: 999px;
}
.hero h1 {
  font-size: var(--fs-h1); font-weight: 850; line-height: 1.08; letter-spacing: -0.02em;
  color: var(--text-strong); margin: 1.3rem 0 1.1rem; max-width: 18ch;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-lede { font-size: 1.16rem; color: var(--muted); max-width: 60ch; line-height: 1.7; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-meta { margin-top: 1.6rem; font-size: 0.84rem; color: var(--muted-dim); max-width: 62ch; }

.hero-audience {
  display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 2.4rem;
  padding-top: 1.8rem; border-top: 1px dashed var(--border);
}
.hero-audience .lbl { width: 100%; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dim); font-weight: 700; margin-bottom: 0.2rem; }
.chip {
  font-size: 0.84rem; font-weight: 600; color: var(--text);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 0.4rem 0.85rem; border-radius: 999px;
}

/* ============================ SECTIONS ============================ */
section.band { padding: 4.5rem 0; }
.band-alt { background: var(--bg2); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 64ch; margin-bottom: 2.6rem; }
.section-label { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--label-text); margin-bottom: 0.7rem; }
.section-title { font-size: var(--fs-h2); font-weight: 820; letter-spacing: -0.015em; color: var(--text-strong); line-height: 1.15; }
.section-sub { font-size: 1.05rem; color: var(--muted); margin-top: 0.9rem; line-height: 1.7; }

/* ---- card grid (curriculum / modules) ---- */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: rgba(247,147,26,0.5); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--orange-text); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.card-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(247,147,26,0.10); border: 1px solid rgba(247,147,26,0.28);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: var(--fs-h3); font-weight: 750; color: var(--text-strong); margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.card .card-more { margin-top: auto; padding-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 0.3rem; }
a.card:hover .card-more .arr { transform: translateX(3px); }
.card-more .arr { transition: transform 0.2s var(--ease); }

/* ---- "why it matters" feature rows ---- */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem 2.2rem; }
.feature { }
.feature .f-ico { font-size: 1.4rem; margin-bottom: 0.6rem; }
.feature h3 { font-size: 1.06rem; font-weight: 750; color: var(--text-strong); margin-bottom: 0.4rem; }
.feature p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.stat { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.stat .n { font-size: 2.1rem; font-weight: 850; color: var(--orange); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

/* ---- principles / do-dont list ---- */
.checklist { list-style: none; max-width: 70ch; }
.checklist li { display: flex; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border-soft); font-size: 0.98rem; color: var(--text); }
.checklist li:last-child { border-bottom: none; }
.checklist .yes { color: var(--orange); font-weight: 800; flex-shrink: 0; }
.checklist .no { color: var(--muted-dim); font-weight: 800; flex-shrink: 0; }

/* ============================ FOOTER ============================ */
footer.site { background: var(--bg2); border-top: 1px solid var(--border-soft); padding: 2.8rem 0 2.6rem; margin-top: 0; }
.footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-bottom .brand { margin-bottom: 0.2rem; }
.footer-disc { font-size: 0.8rem; color: var(--muted-dim); line-height: 1.65; max-width: 90ch; }
.footer-disc strong { color: var(--muted); }
.footer-copy { font-size: 0.78rem; color: var(--muted-dim); }

/* ============================ REVEAL ============================ */
/* Progressive enhancement: reveal animation only applies when JS has marked
   the document with .js — without JS, content is fully visible by default. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print failsafe: content must never be hidden when printing. */
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   HOLDING-PAGE ADDITIONS — bitcoinaccountant.io (Bitcoin-aware directory)
   ============================================================ */

/* ---- live "coming soon" dot inside the hero eyebrow ---- */
.eyebrow .dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(247,147,26,0.6); animation: dot-pulse 2s var(--ease) infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(247,147,26,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(247,147,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(247,147,26,0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .dot-live { animation: none; } }

/* ---- honest "early days" note under the hero CTA ---- */
/* Sits over the orange-tinted hero gradient, which lifts the effective bg
   luminance — use --muted (higher contrast) not --muted-dim so it clears AA. */
.hero-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); max-width: 58ch; line-height: 1.6; }

/* ---- "the problem" pain points ---- */
.pain-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain {
  background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--orange);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.pain h3 { font-size: 1.04rem; font-weight: 750; color: var(--text-strong); margin-bottom: 0.45rem; }
.pain p { font-size: 0.93rem; color: var(--muted); line-height: 1.6; }

/* ---- "what we're building" credibility grid ---- */
.trust-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.trust .t-ico { font-size: 1.5rem; margin-bottom: 0.7rem; }
.trust h3 { font-size: 1.04rem; font-weight: 750; color: var(--text-strong); margin-bottom: 0.4rem; }
.trust p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ---- honest status box ---- */
.status-box {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.8rem 2rem;
  background-image: radial-gradient(420px 200px at 50% -10%, rgba(247,147,26,0.10), transparent 70%);
}
.status-box .status-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  background: rgba(247,147,26,0.10); border: 1px solid rgba(247,147,26,0.32);
  padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.status-box h2 { font-size: var(--fs-h2); font-weight: 820; color: var(--text-strong); letter-spacing: -0.015em; }
.status-box p { color: var(--muted); margin: 1rem auto 0; max-width: 58ch; line-height: 1.7; }

/* ---- "for accountants" mailto CTA (no form) ---- */
.contact-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.contact-cta .contact-or { font-size: 0.92rem; color: var(--muted); }
.contact-cta .contact-or a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   DIRECTORY MVP — bitcoinaccountant.io (region select, cards,
   profiles, forms). Builds on the shared design system above.
   ============================================================ */

/* ---- directory hero spacing ---- */
.hero-directory .hero-inner { padding-bottom: 3rem; }

/* ---- region selector ---- */
.region-selector {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.2rem;
}
.region-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; font-size: 0.9rem; font-weight: 650;
  color: var(--text); background: var(--bg3); border: 1px solid var(--border);
  padding: 0.6rem 1rem; border-radius: 999px; min-height: 44px;
  transition: border-color 0.16s var(--ease), color 0.16s, background 0.16s, transform 0.14s var(--ease-spring);
}
.region-pill:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.region-pill.active {
  background: var(--orange); color: #1a1206; border-color: var(--orange);
  box-shadow: 0 2px 10px rgba(247,147,26,0.28);
}
.region-pill .soon {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dim); border: 1px solid var(--border); border-radius: 5px;
  padding: 0.05rem 0.3rem;
}
.region-pill.active .soon { color: #1a1206; border-color: rgba(26,18,6,0.4); }
.region-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--muted); max-width: 60ch; }
.region-note strong { color: var(--text-strong); }

/* ---- accountant card grid (PRD §7) ---- */
.acct-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.acct-card {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; text-decoration: none; color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.acct-card:hover { border-color: rgba(247,147,26,0.5); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.acct-card.is-featured { border-color: rgba(247,147,26,0.45); background-image: radial-gradient(300px 140px at 100% -20%, rgba(247,147,26,0.10), transparent 70%); }
.acct-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.acct-card-head h3 { font-size: 1.16rem; font-weight: 780; color: var(--text-strong); letter-spacing: -0.01em; line-height: 1.25; }
.badge-featured {
  flex-shrink: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); background: rgba(247,147,26,0.12); border: 1px solid rgba(247,147,26,0.4);
  padding: 0.22rem 0.55rem; border-radius: 999px;
}
.acct-loc { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }
/* website line: globe icon + human-friendly web address (plain text, not a
   nested link — the whole card is the profile link). */
.acct-website {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.7rem; font-size: 0.9rem; color: var(--orange-text);
  font-weight: 600; word-break: break-word;
}
.acct-website .acct-globe { width: 16px; height: 16px; flex-shrink: 0; }
.acct-website-url { overflow-wrap: anywhere; }
.acct-cta {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border-soft);
  font-size: 0.9rem; font-weight: 750; color: var(--orange-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.acct-card:hover .acct-cta .arr { transform: translateX(3px); }
.acct-cta .arr { transition: transform 0.2s var(--ease); }

/* ---- empty region state (PRD §6) ---- */
.empty-region {
  text-align: center; max-width: 620px; margin: 0 auto;
  background: var(--bg2); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 3rem 2rem;
}
.empty-region .empty-ico { font-size: 2rem; margin-bottom: 0.6rem; }
.empty-region h3 { font-size: 1.3rem; font-weight: 780; color: var(--text-strong); margin-bottom: 0.7rem; }
.empty-region p { color: var(--muted); line-height: 1.7; max-width: 52ch; margin: 0 auto; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }

/* ---- CTA strip ---- */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 2.2rem;
  background-image: radial-gradient(440px 200px at 90% -30%, rgba(247,147,26,0.10), transparent 70%);
}
.cta-strip h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.01em; }
.cta-strip p { color: var(--muted); margin-top: 0.5rem; max-width: 56ch; line-height: 1.6; }

/* ============================ PROFILE (PRD §8) ============================ */
.profile { padding: 2.6rem 0 4rem; }
.back-link { display: inline-block; font-size: 0.88rem; font-weight: 650; color: var(--muted); text-decoration: none; margin-bottom: 1.6rem; }
.back-link:hover { color: var(--orange); }
.profile-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 1.8rem; margin-bottom: 2rem; }
.profile-title { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.profile-title h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); font-weight: 840; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.1; }
.profile-loc { font-size: 1rem; color: var(--muted); margin-top: 0.7rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.profile-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
@media (min-width: 880px) { .profile-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

.profile-section { margin-bottom: 2.2rem; }
.profile-section h2 { font-size: 1.15rem; font-weight: 780; color: var(--text-strong); margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.profile-bio { color: var(--text); line-height: 1.8; font-size: 1.02rem; max-width: 68ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.muted { color: var(--muted-dim); }

.detail-list { display: grid; gap: 0.9rem; max-width: 60ch; }
.detail-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: baseline; padding-bottom: 0.9rem; border-bottom: 1px solid var(--border-soft); }
.detail-list div:last-child { border-bottom: none; }
.detail-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-dim); }
.detail-list dd { color: var(--text); font-size: 0.96rem; line-height: 1.55; }
@media (max-width: 520px) { .detail-list div, .acct-meta div { grid-template-columns: 1fr; gap: 0.2rem; } }

.cred-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; max-width: 60ch; }
.cred-list li { position: relative; padding-left: 1.5rem; color: var(--text); font-size: 0.96rem; }
.cred-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.cred-note { font-size: 0.8rem; color: var(--muted-dim); margin-top: 0.9rem; line-height: 1.5; max-width: 60ch; }

/* ---- enquiry card / forms ---- */
.profile-aside { position: relative; }
@media (min-width: 880px) { .profile-aside { position: sticky; top: 88px; } }
.enquiry-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem;
  background-image: radial-gradient(360px 160px at 100% -20%, rgba(247,147,26,0.08), transparent 70%);
}
.enquiry-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--text-strong); margin-bottom: 0.5rem; }
.enquiry-intro { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.3rem; line-height: 1.6; }

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-strong); margin-bottom: 0.4rem; }
.field-optional { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.field select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.85rem; transition: border-color 0.16s, box-shadow 0.16s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
  padding-right: 2.4rem;
}
.field select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,26,0.18); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.7rem 0.85rem; transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,26,0.18); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field-hint { font-size: 0.78rem; color: var(--muted-dim); margin-top: 0.4rem; line-height: 1.45; }

.btn-block { width: 100%; justify-content: center; }
.form-status { font-size: 0.88rem; margin-top: 0.9rem; line-height: 1.5; min-height: 1.2em; }
.form-status.ok { color: var(--orange); font-weight: 650; }
.form-status.err { color: #ff6b6b; }
:root[data-theme="light"] .form-status.err { color: #c0392b; }
.form-fineprint { font-size: 0.76rem; color: var(--muted-dim); margin-top: 0.9rem; line-height: 1.5; }

/* ============================ APPLY (PRD §12) ============================ */
.apply-wrap { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: start; }
@media (min-width: 860px) { .apply-wrap { grid-template-columns: 1fr 1fr; } }
.apply-intro h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-strong); margin-bottom: 0.8rem; }
.apply-intro p { color: var(--muted); line-height: 1.75; margin-bottom: 1.2rem; max-width: 56ch; }
.apply-intro .checklist { margin: 0.5rem 0 1.2rem; }
.apply-note { font-size: 0.85rem; color: var(--muted-dim); line-height: 1.6; }
.apply-form-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem;
}
.apply-form-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-strong); margin-bottom: 1.3rem; }

/* ---- admin (internal applications review at /admin) ---- */
.admin-tablewrap { overflow-x: auto; margin-top: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td {
  text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-soft);
  vertical-align: top; white-space: normal; word-break: break-word;
}
.admin-table th {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--bg3); white-space: nowrap;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table td.admin-empty { color: var(--muted); text-align: center; padding: 1.4rem; }

/* mobile header: with a single CTA button + theme toggle there is nothing to
   collapse. Keep both visible and comfortably tappable; tighten the CTA so the
   pair always fits on a 360px viewport. */
@media (max-width: 640px) {
  .theme-toggle { width: 44px; height: 44px; }
  .nav-cta { padding: 0.6rem 1rem; font-size: 0.86rem; }
}
@media (max-width: 360px) {
  .nav-cta { padding: 0.55rem 0.85rem; font-size: 0.82rem; }
}
