/* ============================================================
   Career Sentinel — careersentinel.co landing page
   Brand LOCKED: Royal Blue #1d4ed8 · tower gradient #60a5fa→#2563eb→#1d4ed8
   Background royal-navy-black #0b1538→#030611 · gold apex #d4a72c/#fcd34d
   ============================================================ */

:root {
  /* Backgrounds (royal-navy-black) */
  --bg:           #030611;
  --bg-2:         #070d24;
  --bg-3:         #0b1538;
  --bg-card:      rgba(255, 255, 255, 0.028);
  --bg-card-hover:rgba(255, 255, 255, 0.05);

  /* Text */
  --text:      #eaf0fb;
  --text-dim:  #9fb0d0;
  --text-muted:#62719a;

  /* Royal blue scale */
  --blue:        #1d4ed8;
  --blue-mid:    #2563eb;
  --blue-bright: #60a5fa;
  --blue-pale:   #bfdbfe;
  --blue-glow:   rgba(37, 99, 235, 0.45);
  --blue-soft:   rgba(37, 99, 235, 0.12);
  --blue-border: rgba(96, 165, 250, 0.30);

  /* Gold apex accents */
  --gold:        #d4a72c;
  --gold-bright: #fcd34d;
  --gold-deep:   #92671f;
  --gold-soft:   rgba(212, 167, 44, 0.12);
  --gold-border: rgba(252, 211, 77, 0.35);

  /* Semantic (exposure states) */
  --bad:  #f87171;
  --mid:  #fbbf24;
  --good: #34d399;

  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  --maxw: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, var(--bg-3) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.grad-text {
  background: linear-gradient(100deg, var(--blue-bright) 0%, var(--blue-mid) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.muted { color: var(--text-muted); font-weight: 500; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.9rem 1.5rem;
  backdrop-filter: blur(14px);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,6,17,0.85), rgba(3,6,17,0.35));
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { border-radius: 9px; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-name-accent { color: var(--blue-bright); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text-dim); font-size: 0.93rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 0.5rem 1rem; border-radius: 10px; font-weight: 600 !important;
  box-shadow: 0 6px 20px var(--blue-glow);
}
.nav-cta:hover { background: var(--blue-mid); }
.nav-employer-link {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--gold-bright) !important;
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--gold-soft);
  transition: background 0.15s, border-color 0.15s !important;
}
.nav-employer-link:hover {
  background: rgba(212,167,44,0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold-bright) !important;
}

/* ============ HERO ============ */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 3rem; overflow: hidden; }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  filter: blur(40px); opacity: 0.55;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--blue-bright);
  background: var(--blue-soft); border: 1px solid var(--blue-border);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 900;
  line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-dim);
  max-width: 38ch; margin-bottom: 1.8rem;
}
.hero-sub strong { color: var(--text); }
.hero-sub em { color: var(--blue-bright); font-style: normal; font-weight: 600; }

.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  margin-top: 1.4rem; font-size: 0.86rem; color: var(--text-muted);
}
.hero-trust li { position: relative; padding-left: 1.1rem; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-border);
}

/* CTA form */
.cta-form { display: flex; gap: 0.6rem; max-width: 460px; }
.cta-input {
  flex: 1; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  color: var(--text); font-size: 1rem; font-family: inherit;
  padding: 0.85rem 1rem; border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s;
}
.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.cta-btn {
  white-space: nowrap; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, var(--blue-mid), var(--blue));
  color: #fff; font-size: 1rem; font-weight: 700;
  padding: 0.85rem 1.4rem; border: 0; border-radius: 12px;
  box-shadow: 0 8px 24px var(--blue-glow); transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.cta-btn:hover { filter: brightness(1.08); box-shadow: 0 10px 30px var(--blue-glow); }
.cta-btn:active { transform: translateY(1px); }
.cta-subline {
  margin-top: 0.55rem; font-size: 0.84rem; font-weight: 600;
  color: var(--blue-pale); letter-spacing: 0.01em;
}
.cta-note { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.35rem; }
.cta-note.is-error { color: var(--bad); }
.cta-note.is-success { color: var(--good); }

/* Twin-score teaser card */
.score-card {
  background: linear-gradient(165deg, rgba(11,21,56,0.9), rgba(7,13,36,0.7));
  border: 1px solid var(--blue-border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.score-card-head {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 0.98rem; margin-bottom: 1.2rem;
}
.score-tag {
  margin-left: auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid var(--gold-border); background: var(--gold-soft);
  padding: 0.18rem 0.5rem; border-radius: 999px;
}
.score-label, .twin-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.score-now { margin-bottom: 1.3rem; }
.score-bar {
  height: 10px; border-radius: 999px; margin: 0.55rem 0 0.5rem;
  background: rgba(255,255,255,0.07); overflow: hidden;
}
.score-fill {
  height: 100%; width: var(--w);
  background: linear-gradient(90deg, var(--good), var(--mid) 55%, var(--bad));
  border-radius: 999px;
}
.score-range { display: flex; align-items: baseline; gap: 0.5rem; }
.score-range strong { font-size: 1.5rem; font-weight: 800; }

.twin {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.6rem;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem; margin-bottom: 1rem;
}
.twin-col { display: flex; flex-direction: column; gap: 0.15rem; text-align: center; }
.twin-num { font-size: 1.9rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.twin-bad .twin-num { color: var(--bad); }
.twin-good .twin-num { color: var(--good); }
.twin-note { font-size: 0.72rem; color: var(--text-muted); }
.twin-arrow { color: var(--blue-bright); font-size: 1.4rem; font-weight: 700; }
.score-foot { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.score-foot em { color: var(--text-dim); font-style: normal; }
.score-foot a { color: var(--blue-bright); font-weight: 600; }
.score-foot a:hover { text-decoration: underline; }

/* ============ section shared ============ */
section { scroll-margin-top: 80px; }
.section-head {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1; text-align: center;
}
.section-sub {
  text-align: center; color: var(--text-dim); max-width: 56ch;
  margin: 0.9rem auto 0; font-size: 1.05rem;
}
.section-sub strong { color: var(--text); }
.section-sub em { color: var(--blue-bright); font-style: normal; font-weight: 600; }
.reframe-kicker {
  text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.5rem;
}

/* ============ REFRAME ============ */
.reframe { padding: 4rem 1.5rem; }
.reframe-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.reframe-head {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.12; margin: 0.5rem 0 1.2rem;
}
.reframe-body { color: var(--text-dim); font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }
.reframe-body em { color: var(--text); font-style: italic; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2.5rem;
}
.stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.3rem 1rem;
}
.stat-num {
  display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em;
  color: var(--blue-bright); margin-bottom: 0.3rem;
}
.stat-cap { font-size: 0.86rem; color: var(--text-dim); line-height: 1.4; }

/* ============ HOW ============ */
.how { max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem; }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 2.6rem;
}
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.step:hover { border-color: var(--blue-border); background: var(--bg-card-hover); transform: translateY(-3px); }
.step-n {
  display: inline-block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-border);
  padding: 0.2rem 0.6rem; border-radius: 8px; margin-bottom: 0.9rem;
  color: var(--blue-bright);
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.step p { color: var(--text-dim); font-size: 0.96rem; }
.step strong { color: var(--text); }
.step em { color: var(--blue-bright); font-style: normal; }

/* ============ WEDGE ============ */
.wedge { padding: 4rem 1.5rem; }
.wedge-inner { max-width: var(--maxw); margin: 0 auto; }
.lanes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.6rem;
}
.lane {
  background: linear-gradient(165deg, rgba(11,21,56,0.6), rgba(7,13,36,0.35));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; transition: border-color 0.18s, transform 0.18s;
}
.lane:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.lane-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; font-weight: 800;
  background: var(--gold-soft); color: var(--gold-bright); border: 1px solid var(--gold-border);
  margin-bottom: 1rem;
}
.lane h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.lane p { color: var(--text-dim); font-size: 0.96rem; }

/* primary lane = the upskill-in-place core; visually dominant */
.lane-primary {
  position: relative;
  background: linear-gradient(165deg, rgba(29,78,216,0.20), rgba(7,13,36,0.45));
  border-color: var(--blue-border);
  box-shadow: 0 24px 60px -34px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.05);
}
.lane-primary:hover { border-color: var(--blue-bright); }
.lane-primary .lane-icon {
  background: var(--blue-soft); color: var(--blue-bright); border-color: var(--blue-border);
}
.lane-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: #06112e; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  padding: 0.22rem 0.6rem; border-radius: 999px;
}
/* secondary lane = job-search, clearly subordinate */
.lane-secondary { opacity: 0.86; }
.lane-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0; text-transform: none;
}

/* ============ CREDIBILITY ============ */
.credibility { padding: 4rem 1.5rem; }
.cred-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
}
.cred-copy .section-head, .cred-copy .section-sub, .cred-copy .reframe-kicker { text-align: left; margin-left: 0; }
.cred-copy .section-sub { margin-top: 0.8rem; }
.cred-list { list-style: none; margin: 1.6rem 0; display: grid; gap: 0.7rem; }
.cred-list li {
  position: relative; padding-left: 1.6rem; color: var(--text-dim); font-size: 0.96rem;
}
.cred-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue-bright); font-weight: 800;
}
.cred-list strong { color: var(--text); }
.ghost-btn {
  display: inline-block; font-weight: 600; color: var(--blue-bright);
  border: 1px solid var(--blue-border); background: var(--blue-soft);
  padding: 0.6rem 1.1rem; border-radius: 11px; transition: background 0.15s, border-color 0.15s;
}
.ghost-btn:hover { background: rgba(37,99,235,0.2); border-color: var(--blue-bright); }
.cred-disclaimer { margin-top: 1.4rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; max-width: 56ch; }

.cred-aside {
  background: linear-gradient(165deg, rgba(11,21,56,0.9), rgba(7,13,36,0.7));
  border: 1px solid var(--blue-border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.cred-aside-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text-dim);
}
.cred-aside-row:last-child { border-bottom: 0; }
.cred-aside-total { margin-top: 0.3rem; font-weight: 700; color: var(--text); }
.pill {
  font-weight: 800; font-size: 0.92rem; padding: 0.22rem 0.7rem; border-radius: 999px;
  min-width: 56px; text-align: center;
}
.pill-mid  { background: rgba(251,191,36,0.14); color: var(--mid); border: 1px solid rgba(251,191,36,0.3); }
.pill-bad  { background: rgba(248,113,113,0.14); color: var(--bad); border: 1px solid rgba(248,113,113,0.3); }
.pill-ok   { background: rgba(52,211,153,0.12); color: var(--good); border: 1px solid rgba(52,211,153,0.25); }
.pill-good { background: rgba(52,211,153,0.18); color: var(--good); border: 1px solid rgba(52,211,153,0.4); }

/* ============ FINAL CTA ============ */
.final-cta { position: relative; padding: 5rem 1.5rem 5.5rem; overflow: hidden; }
.final-glow {
  position: absolute; bottom: -160px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 480px; pointer-events: none;
  background: radial-gradient(closest-side, var(--blue-glow), transparent 70%);
  filter: blur(50px); opacity: 0.5;
}
.final-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.final-mark { border-radius: 16px; margin-bottom: 1.2rem; box-shadow: 0 18px 50px -18px var(--blue-glow); }
.final-head { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; }
.final-sub { color: var(--text-dim); font-size: 1.1rem; margin: 0.9rem auto 1.8rem; max-width: 46ch; }
.cta-form-lg { margin: 0 auto; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal { width: 100%; color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px); text-align: center;
  background: var(--bg-3); border: 1px solid var(--blue-border); color: var(--text);
  padding: 0.85rem 1.3rem; border-radius: 12px; font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.85);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-success { border-color: rgba(52,211,153,0.5); }
.toast.is-error { border-color: rgba(248,113,113,0.5); }

/* ============ METHODOLOGY / DOC PAGE ============ */
.doc-hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 1rem; overflow: hidden; }
.doc-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.doc-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.03em; margin: 0.3rem 0 1.1rem;
}
.doc-lede { color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 62ch; }
.doc-lede strong { color: var(--text); }
.doc-lede em { color: var(--blue-bright); font-style: normal; font-weight: 600; }
.doc-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.doc-pill {
  font-size: 0.8rem; font-weight: 600; color: var(--blue-bright);
  background: var(--blue-soft); border: 1px solid var(--blue-border);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}

.doc-section { padding: 3rem 1.5rem; }
.doc-section-alt {
  background: linear-gradient(180deg, rgba(11,21,56,0.35), transparent);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.doc-wrap { max-width: 880px; margin: 0 auto; }
.doc-h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.8rem;
}
.doc-h2 em { font-style: normal; }
.doc-h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.5rem; letter-spacing: -0.01em; }
.doc-p { color: var(--text-dim); font-size: 1.02rem; max-width: 66ch; margin-bottom: 0.6rem; }
.doc-p strong { color: var(--text); }
.doc-p em { color: var(--blue-bright); font-style: normal; font-weight: 600; }
.doc-p code, .formula-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em; color: var(--blue-pale);
  background: rgba(37,99,235,0.14); border: 1px solid var(--blue-border);
  padding: 0.08em 0.4em; border-radius: 6px;
}

/* source cards */
.source-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 1.8rem;
}
.source-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.18s, background 0.18s;
}
.source-card:hover { border-color: var(--blue-border); background: var(--bg-card-hover); }
.source-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.source-card .source-lic {
  display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--gold-bright); margin: 0.3rem 0 0.8rem;
}
.source-card p { color: var(--text-dim); font-size: 0.94rem; }
.source-card strong { color: var(--text); }
.source-card em { color: var(--blue-bright); font-style: normal; }
.source-card-aux { grid-column: 1 / -1; }

/* formula steps */
.formula-list { list-style: none; display: grid; gap: 1rem; margin-top: 1.8rem; }
.formula-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem;
}
.formula-n {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem; color: var(--blue-bright);
  background: var(--blue-soft); border: 1px solid var(--blue-border);
}
.formula-list h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.35rem; }
.formula-list p { color: var(--text-dim); font-size: 0.95rem; }
.formula-list strong { color: var(--text); }

.doc-mitigator { margin: 1.8rem 0 0.5rem; }
.doc-mitigator .pill { min-width: 0; }
.doc-guardrails { margin: 1.4rem 0; gap: 0.9rem; }
.doc-guardrails li { font-size: 1rem; }
.doc-disclaimer {
  margin-top: 1.6rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
  max-width: 66ch; border-left: 2px solid var(--blue-border); padding-left: 1rem;
}
.doc-disclaimer strong { color: var(--text-dim); }
.doc-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.doc-cta-row .cta-btn { display: inline-block; text-decoration: none; }

/* ============ LIVE CHECKER ============ */
.checker-wrap { display: flex; flex-direction: column; gap: 0; }
.checker-input-row { display: flex; gap: 0.6rem; max-width: 460px; align-items: flex-start; }
.checker-field-wrap { flex: 1; min-width: 0; position: relative; }
.checker-input { width: 100%; }
.checker-btn { flex-shrink: 0; }
.checker-btn:disabled { opacity: 0.52; cursor: not-allowed; }

/* Autocomplete dropdown */
.checker-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
  background: var(--bg-3); border: 1px solid var(--blue-border); border-radius: 14px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.85);
  list-style: none; margin: 0; padding: 0.4rem 0; max-height: 280px; overflow-y: auto;
}
.checker-dropdown[hidden] { display: none; }
.checker-dropdown li {
  padding: 0.62rem 1rem; cursor: pointer; font-size: 0.95rem;
  color: var(--text-dim); transition: background 0.1s, color 0.1s;
}
.checker-dropdown li:hover,
.checker-dropdown li[aria-selected="true"] {
  background: var(--blue-soft); color: var(--text);
}
.checker-dropdown li mark {
  background: transparent; color: var(--blue-bright); font-weight: 700;
}
.checker-dropdown .dd-empty {
  padding: 0.85rem 1rem; color: var(--text-muted); font-size: 0.9rem; cursor: default;
}
.checker-dropdown .dd-empty:hover { background: transparent; }
.checker-waitlist { max-width: 460px; margin-top: 0.9rem; }

/* Score card states */
.score-state { display: block; }
.score-state[hidden] { display: none; }

/* Skeleton loading */
.score-skeleton { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.5rem; }
.skel-bar {
  height: 38px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%; animation: skel-shimmer 1.4s infinite;
}
.skel-twin {
  height: 80px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%; animation: skel-shimmer 1.4s 0.15s infinite;
}
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spin animation for loading beacon */
@keyframes spin-beacon {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.score-spin { animation: spin-beacon 1s linear infinite; transform-origin: center; }

/* Live tag variant */
.score-tag-live {
  color: var(--blue-bright);
  border-color: var(--blue-border); background: var(--blue-soft);
}

/* Wage row */
.score-wage {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.wage-val { font-size: 1.1rem; font-weight: 800; color: var(--text); }

/* Not-found / error states */
.notfound-msg {
  font-size: 0.93rem; color: var(--text-dim); line-height: 1.6; margin: 0.8rem 0;
}
.notfound-msg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em; color: var(--blue-pale);
  background: rgba(37,99,235,0.14); border: 1px solid var(--blue-border);
  padding: 0.08em 0.4em; border-radius: 6px;
}
.notfound-examples { font-size: 0.88rem; color: var(--text-muted); }
.notfound-suggest {
  background: none; border: none; color: var(--blue-bright); cursor: pointer;
  font-size: inherit; font-family: inherit; padding: 0; font-weight: 600;
  text-decoration: underline; text-decoration-style: dotted;
}
.notfound-suggest:hover { text-decoration-style: solid; }

/* ============================================================
   FORTIFY LOOP — Phase 2, Slice 1
   Fortify section, diagnostic, plan list, score tracker, kit
   ============================================================ */

/* ── Section wrapper ── */
.fortify-section {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(29,78,216,0.04) 40%, transparent 100%);
}
.fortify-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ── Step indicator ── */
.fortify-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.4rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}
.fstep {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid var(--border);
}
.fstep:last-child { border-right: none; }
.fstep-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.fstep-active {
  color: var(--blue-bright);
  background: var(--blue-soft);
}
.fstep-active .fstep-n {
  border-color: var(--blue-bright);
  background: var(--blue-soft);
  color: var(--blue-bright);
}
.fstep-done { color: var(--good); }
.fstep-done .fstep-n {
  border-color: var(--good);
  background: rgba(52,211,153,0.12);
  color: var(--good);
}

/* ── Phase blocks ── */
.fortify-phase { display: block; }
.fortify-head {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.fortify-sub {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 1.8rem;
}

/* ── Diagnostic blocks ── */
.diag-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1rem;
}
.diag-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

/* Task sliders */
.diag-task-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.diag-task-row:last-child { margin-bottom: 0; }
.diag-task-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.diag-task-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-align: right;
}
.diag-slider {
  width: 100%;
  margin-top: 0.3rem;
  accent-color: var(--blue-bright);
  cursor: pointer;
  display: block;
}

/* Goal doors */
.door-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.door {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.9rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.door:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.door-selected {
  border-color: var(--blue-mid);
  background: var(--blue-soft);
}
.door-primary.door-selected {
  border-color: var(--blue-bright);
  background: rgba(37,99,235,0.16);
}
.door-icon { font-size: 1.3rem; display: block; }
.door-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.door-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

/* Time / fluency chips */
.time-row, .fluency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.time-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.42rem 1rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.time-chip:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.time-chip-selected {
  border-color: var(--blue-mid);
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-weight: 600;
}

/* Wide fortify CTA button */
.fortify-btn-wide {
  width: 100%;
  margin-top: 1.2rem;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
}
.fortify-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.65rem;
}

/* ── Plan header ── */
.plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.plan-header-copy { flex: 1; min-width: 0; }

/* Plan score mini */
.plan-score-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  min-width: 170px;
  text-align: right;
  flex-shrink: 0;
}
.psm-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.psm-now {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.psm-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.psm-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}
.psm-target {
  display: block;
  font-size: 0.76rem;
  color: var(--good);
  font-weight: 600;
}

/* ── Bucket tabs ── */
.bucket-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.bucket-tab {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.bucket-tab:hover { color: var(--text); }
.bucket-tab-active {
  color: var(--blue-bright);
  border-bottom-color: var(--blue-bright);
  font-weight: 700;
}

/* ── Plan list & items ── */
.plan-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.plan-loading {
  color: var(--text-muted);
  font-size: 0.93rem;
  padding: 1.5rem 0;
  text-align: center;
}
.plan-empty {
  color: var(--text-muted);
  font-size: 0.93rem;
  padding: 1.5rem 0;
  text-align: center;
}

/* Graceful degraded state — shown when plan has zero items (Fix 2) */
.plan-degraded {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 0.75rem;
}
.plan-degraded-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.plan-degraded-body {
  font-size: 0.91rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.plan-degraded-tips {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.plan-degraded-tips li {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.plan-degraded-tips li strong {
  color: var(--text);
}
.plan-degraded-waitlist {
  font-size: 0.88rem;
  color: var(--blue-bright);
  margin: 0;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.plan-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  transition: border-color 0.2s, background 0.2s;
}
.plan-item:hover { border-color: var(--border-hover); }
.plan-item.is-done {
  opacity: 0.65;
  border-color: var(--good);
  background: rgba(52,211,153,0.05);
}
.plan-item-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.plan-item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
}
.plan-item-check:hover { border-color: var(--blue-bright); }
.plan-item.is-done .plan-item-check {
  background: var(--good);
  border-color: var(--good);
  color: #030611;
}
.plan-item-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  line-height: 1.35;
}
.plan-item-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.55rem;
  margin-left: 2.5rem;
  flex-wrap: wrap;
}
.plan-item-pts {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--good);
}
.plan-item-pts-intrinsic {
  color: var(--blue-pale);
  font-size: 0.82rem;
  font-weight: 600;
}
.plan-item-effort {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.plan-item-tool {
  font-size: 0.8rem;
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 600;
}
.plan-item-tool:hover { text-decoration: underline; }

/* Plan item expand */
.plan-item-expand-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  margin-left: 2.5rem;
  margin-top: 0.45rem;
}
.plan-item-expand-btn:hover { color: var(--text); }
.plan-item-detail {
  margin-top: 0.9rem;
  margin-left: 2.5rem;
  display: grid;
  gap: 0.8rem;
}
.plan-item-howto {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  background: var(--bg-2);
  border-left: 3px solid var(--blue-mid);
  padding: 0.7rem 0.9rem;
  border-radius: 0 8px 8px 0;
}
.plan-item-prompt-wrap { display: grid; gap: 0.4rem; }
.plan-item-prompt-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.plan-item-prompt {
  font-size: 0.82rem;
  color: var(--blue-pale);
  background: rgba(15,23,60,0.7);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  max-height: 200px;
  overflow-y: auto;
}
.plan-item-copy-btn {
  background: none;
  border: 1px solid var(--blue-border);
  border-radius: 7px;
  color: var(--blue-bright);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  align-self: flex-start;
}
.plan-item-copy-btn:hover { background: var(--blue-soft); border-color: var(--blue-mid); }

/* ── Score tracker ── */
.score-tracker {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.7rem;
}
.st-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}
.st-label { color: var(--text-muted); }
.st-val { font-weight: 700; color: var(--text); }
.st-progress { display: grid; gap: 0.45rem; }
.st-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: visible;
  position: relative;
}
.st-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 100%);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
  position: relative;
}
.st-bar-target {
  position: absolute;
  top: -3px;
  height: 14px;
  width: 2px;
  background: var(--good);
  border-radius: 2px;
  transition: left 0.4s;
}
.st-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}
#st-target-label { color: var(--good); font-weight: 600; }

/* Score drop celebration */
.score-drop-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(29,78,216,0.5);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
}
.score-drop-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Positioning kit ── */
.positioning-kit {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.5rem;
}
.kit-header { margin-bottom: 1.1rem; }
.kit-badge {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.kit-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.kit-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.kit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.kit-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.kit-card-icon { font-size: 1.3rem; }
.kit-card strong {
  font-size: 0.93rem;
  color: var(--text);
}
.kit-card p {
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.kit-expand-btn {
  background: none;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  color: var(--blue-bright);
  font-size: 0.82rem;
  font-family: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.2rem;
  transition: background 0.15s, border-color 0.15s;
}
.kit-expand-btn:hover { background: var(--blue-soft); border-color: var(--blue-mid); }
.kit-content {
  background: rgba(15,23,60,0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.5rem;
}
.kit-content-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.kit-script {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  display: grid;
  gap: 0.75rem;
}
.kit-script p { margin: 0; }

/* ── Plan save gate ── */
.plan-save-gate {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: grid;
  gap: 0.8rem;
}
.psg-text { font-size: 0.93rem; color: var(--text-dim); }
.psg-text strong { color: var(--text); }

/* ── Responsive additions ── */
@media (max-width: 880px) {
  .door-row { grid-template-columns: 1fr; }
  .kit-cards { grid-template-columns: 1fr; }
  .plan-header { flex-direction: column; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .score-card { max-width: 460px; }
  .cred-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cred-copy .section-head, .cred-copy .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .cred-copy .reframe-kicker { text-align: center; }
  .ghost-btn { display: block; text-align: center; }
  .steps, .lanes, .stat-row, .source-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 520px) {
  .cta-form { flex-direction: column; }
  .cta-btn { width: 100%; }
  .hero { padding-top: 3rem; }
  .twin { gap: 0.3rem; padding: 0.85rem; }
  .twin-num { font-size: 1.6rem; }
}

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

/* ============================================================
   SAFE HARBOR — UI Sprint Surface 1
   Third door: "Find a career AI won't touch"
   Sections: sh-section, sh-phase-intro, sh-phase-quiz, sh-phase-results
   ============================================================ */

/* ── Safe Harbor section wrapper ── */
.sh-section {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(212,167,44,0.04) 40%, transparent 100%);
  border-top: 1px solid var(--border);
}

.sh-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ── Section heading ── */
.sh-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.sh-sub {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 1.8rem;
  max-width: 66ch;
}

.sh-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

/* ── The four-door row (now 4 doors: offense + defense + reroute + safe-harbor) ── */
/* Handled by existing .door-row; safe-harbor door gets its own color treatment */
.door-harbor {
  border-color: var(--gold-border);
  background: var(--gold-soft);
}
.door-harbor:hover {
  border-color: var(--gold-bright);
  background: rgba(212,167,44,0.18);
}
.door-harbor.door-selected {
  border-color: var(--gold-bright);
  background: rgba(212,167,44,0.22);
}
.door-harbor .door-title { color: var(--gold-bright); }
.door-harbor .door-icon { color: var(--gold-bright); }
.door-harbor .door-desc { color: var(--text-muted); }

/* ── Phase blocks ── */
.sh-phase { display: block; }
.sh-phase[hidden] { display: none; }

/* ── Intro phase ── */
.sh-intro-card {
  background: linear-gradient(165deg, rgba(11,21,56,0.7), rgba(7,13,36,0.4));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

.sh-intro-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.sh-intro-body {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 68ch;
  margin-bottom: 1.2rem;
}

.sh-intro-body strong { color: var(--text); }
.sh-intro-body em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 600;
}

.sh-current-role-note {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.sh-current-role-note strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.sh-intro-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.sh-btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #0b1538;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
  white-space: nowrap;
}

.sh-btn-primary:hover { filter: brightness(1.1); }
.sh-btn-primary:active { transform: translateY(1px); }

.sh-btn-secondary {
  background: none;
  border: 1.5px solid var(--border-hover);
  border-radius: 12px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.78rem 1.3rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.sh-btn-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.sh-btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  align-self: center;
}

.sh-btn-ghost:hover { color: var(--text-dim); text-decoration-style: solid; }

/* ── Quiz phase ── */
.sh-quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sh-quiz-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.sh-quiz-note {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.sh-quiz-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.sh-quiz-progress-bar-bg {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.sh-quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 3px;
  transition: width 0.25s ease;
  width: 0%;
}

.sh-quiz-progress-label {
  font-size: 0.79rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

.sh-quiz-questions {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.sh-quiz-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.sh-quiz-stmt {
  font-size: 0.93rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.sh-quiz-opts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sh-quiz-opt {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sh-quiz-opt:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.sh-quiz-opt-selected {
  border-color: var(--gold-bright);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-weight: 600;
}

.sh-quiz-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.sh-quiz-find-btn {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #0b1538;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: filter 0.15s;
}

.sh-quiz-find-btn:hover:not(:disabled) { filter: brightness(1.1); }
.sh-quiz-find-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Results phase ── */
.sh-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.sh-results-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.sh-results-list {
  display: grid;
  gap: 1.1rem;
}

.sh-results-summary {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.sh-results-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.sh-results-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.sh-results-error { color: var(--bad); }

/* ── Loading spinner ── */
.sh-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sh-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: sh-spin 0.9s linear infinite;
}

@keyframes sh-spin {
  to { transform: rotate(360deg); }
}

/* ── Role cards ── */
.sh-role-card {
  background: linear-gradient(165deg, rgba(11,21,56,0.7), rgba(7,13,36,0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: border-color 0.2s, background 0.2s;
  display: grid;
  gap: 0.75rem;
}

.sh-role-card:hover {
  border-color: var(--gold-border);
  background: linear-gradient(165deg, rgba(11,21,56,0.85), rgba(7,13,36,0.55));
}

.sh-role-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sh-role-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sh-role-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
  letter-spacing: -0.01em;
  margin: 0;
}

.sh-res-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--good);
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ── Why safe row ── */
.sh-why-safe {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.18);
  border-radius: 9px;
  padding: 0.55rem 0.8rem;
}

.sh-why-icon {
  font-size: 0;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--good);
  border-radius: 3px;
  display: inline-block;
}

/* ── Reachability label ── */
.sh-reach-row {
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.sh-reach-row .sh-reach-prefix {
  color: var(--text-muted);
}

.sh-reach-good {
  background: rgba(52,211,153,0.08);
  border-left-color: var(--good);
}

.sh-reach-good strong { color: var(--good); }

.sh-reach-mid {
  background: rgba(251,191,36,0.08);
  border-left-color: var(--mid);
}

.sh-reach-mid strong { color: var(--mid); }

.sh-reach-hard {
  background: rgba(248,113,113,0.08);
  border-left-color: rgba(248,113,113,0.7);
}

.sh-reach-hard strong { color: var(--bad); }

.sh-reach-unknown {
  background: var(--bg-card);
}

.sh-reach-unknown strong { color: var(--text-dim); }

/* ── Wage row ── */
.sh-wage-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.sh-wage-val {
  color: var(--text);
  font-weight: 700;
}

.sh-pay-tradeoff {
  font-size: 0.82rem;
  font-weight: 600;
}

.sh-pay-up { color: var(--good); }
.sh-pay-down { color: var(--mid); }

/* ── Skills ── */
.sh-skills-block,
.sh-gap-block {
  display: grid;
  gap: 0.45rem;
}

.sh-skills-label,
.sh-gap-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sh-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sh-skill-chip {
  font-size: 0.8rem;
  color: var(--blue-bright);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
}

.sh-skill-chip-gap {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: var(--gold-border);
}

/* ── Card footer ── */
.sh-card-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.sh-card-soc,
.sh-card-jz {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── Score-plan-btn in result card: show it when Safe Harbor active ── */
.score-plan-btn {
  display: none;
  width: 100%;
  margin-top: 0.8rem;
  background: linear-gradient(180deg, var(--blue-mid), var(--blue));
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--blue-glow);
  transition: filter 0.15s;
}
.score-plan-btn[hidden] { display: none; }
.score-plan-btn:not([hidden]) { display: block; }
.score-plan-btn:hover { filter: brightness(1.08); }

/* ── 4-door grid (was 3) ── */
.door-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

@media (max-width: 1020px) {
  .door-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .door-row-4 {
    grid-template-columns: 1fr;
  }
}

/* Safe harbor section responsive */
@media (max-width: 880px) {
  .sh-intro-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .sh-quiz-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .sh-role-header {
    gap: 0.5rem;
  }
  .sh-res-badge {
    order: 3;
  }
}

/* ============================================================
   Phase 2 Slice 2 — AI-Training Tracks
   ============================================================ */

.tracks-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.tracks-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.tracks-heading-row {
  margin-bottom: 2rem;
}

.tracks-head {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.tracks-sub {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 560px;
}

.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tracks-loading,
.tracks-empty,
.tracks-error {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.tracks-error { color: var(--bad); }

.tracks-generic-note {
  padding: 0.85rem 1.1rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  color: var(--gold-bright);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* ── Track card ── */
.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.track-card:hover {
  border-color: var(--blue-border);
}

.track-card-done {
  border-color: var(--good);
  opacity: 0.85;
}

.track-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.track-status-icon {
  font-size: 1.1rem;
  color: var(--blue-bright);
  flex-shrink: 0;
  line-height: 1.4;
}

.track-card-done .track-status-icon {
  color: var(--good);
}

.track-title-wrap {
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.track-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.track-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.track-badge-level {
  background: var(--blue-soft);
  color: var(--blue-bright);
  border-color: var(--blue-border);
}

.track-badge-drop {
  background: rgba(52, 211, 153, 0.12);
  color: var(--good);
  border-color: rgba(52, 211, 153, 0.35);
  font-weight: 700;
}

.track-expand-btn {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.track-expand-btn:hover {
  background: var(--blue);
  color: #fff;
}

.track-description {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.55;
}

/* ── Track body (modules) ── */
.track-body {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.track-modules {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Module block ── */
.module-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.module-num {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.module-effort {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.module-description {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

.module-tool {
  font-size: 0.82rem;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.module-tool strong { color: var(--text-dim); font-weight: 500; }

/* ── Prompt box ── */
.module-prompt-section {
  margin: 0.75rem 0;
}

.module-prompt-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.module-prompt {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  white-space: pre-wrap;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: auto;
  max-height: 14rem;
  overflow-y: auto;
}

.module-copy-btn {
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.module-copy-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.module-outcome {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  border-left: 2px solid var(--blue-border);
  padding-left: 0.75rem;
}

.module-outcome strong { color: var(--text-dim); font-weight: 500; }

/* ── Complete button ── */
.track-complete-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.track-complete-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.track-complete-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}

.track-complete-btn:hover { background: var(--blue-mid); }
.track-complete-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.track-done-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--good);
  font-weight: 500;
}

/* ── Track toast ── */
.tracks-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(3rem);
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999;
}

.tracks-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tracks-toast-error { border-color: var(--bad); color: var(--bad); }


/* ============================================================
   Phase 2 Slice 2 — Progress Dashboard
   ============================================================ */

.dashboard-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
}

.dashboard-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dashboard-head {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0;
}

.dashboard-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
}

.db-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.db-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ── Score chart ── */
.score-chart-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
}

.score-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

/* ── Streak ── */
.streak-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.streak-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.streak-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blue-bright);
  line-height: 1;
}

.streak-num-muted {
  color: var(--text-muted);
  font-size: 1.75rem;
}

.streak-cap {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.streak-message {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ── Win log ── */
.win-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  max-height: 12rem;
  overflow-y: auto;
}

.win-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem;
}

.win-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.win-icon {
  font-size: 1.1rem;
  color: var(--gold-bright);
  flex-shrink: 0;
  line-height: 1.4;
}

.win-text {
  flex: 1;
  min-width: 0;
}

.win-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 0.15rem;
}

.win-detail {
  font-size: 0.88rem;
  color: var(--text);
  display: block;
}

.win-ts {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Win form ── */
.win-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.win-form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.win-select {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.win-value-input {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 0.88rem;
  width: 8rem;
}

.win-detail-input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 0.88rem;
}

.win-detail-input:focus, .win-select:focus, .win-value-input:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.win-submit-btn {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

/* ── Share card ── */
.share-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.share-card {
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3) 0%, #0e1b4a 100%);
  margin-bottom: 1rem;
}

.share-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--blue-border);
}

.share-card-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.share-card-logo strong { color: var(--blue-bright); }

.share-card-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.share-card-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-card-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.share-card-sub {
  font-size: 0.9rem;
  color: var(--blue-bright);
  font-weight: 600;
}

.share-card-cta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.35rem;
}

.share-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.share-text-area {
  /* Hidden — only shown when clipboard API fails */
  width: 100%;
  height: 5rem;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  resize: vertical;
}

.share-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.share-btn:hover {
  background: var(--blue);
  color: #fff;
}

.share-btn-native {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border-color: var(--gold-border);
}

.share-btn-native:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.share-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── AI Coach panel ── */
.coach-coming-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.coach-response-block {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.coach-meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.coach-streak {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coach-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.coach-response {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0;
}

.coach-upgrade {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

.coach-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.coach-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 0.9rem;
}

.coach-input::placeholder { color: var(--text-muted); }

.coach-input:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.coach-ask-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

/* ── Dashboard responsive ── */
@media (max-width: 640px) {
  .dashboard-block { padding: 1.25rem 1rem; }
  .streak-row { gap: 1rem; }
  .win-form-row { flex-direction: column; }
  .win-value-input { width: 100%; }
  .coach-form { flex-direction: column; }
  .share-actions { flex-direction: column; }
  .track-card { padding: 1rem; }
  .track-card-header { flex-wrap: wrap; }
}

/* ============================================================
   Job Finder — UI Sprint Surface 2
   Section: #jobs-section / .jf-section
   Form, listing cards, AI-resilience badges, states
   ============================================================ */

/* ── Section wrapper ── */
.jf-section {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(29,78,216,0.05) 40%, transparent 100%);
  border-top: 1px solid var(--border);
}

.jf-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ── Section heading ── */
.jf-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.jf-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.jf-sub {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 1.8rem;
  max-width: 66ch;
}

.jf-sub em {
  color: var(--blue-bright);
  font-style: normal;
  font-weight: 600;
}

/* ── Search form ── */
.jf-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.jf-form-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.jf-field-wrap {
  flex: 1;
  min-width: 180px;
}

.jf-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  color: var(--text);
  font-size: 0.97rem;
  font-family: inherit;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jf-input::placeholder { color: var(--text-muted); }

.jf-input:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.jf-search-btn {
  background: linear-gradient(180deg, var(--blue-mid), var(--blue));
  color: #fff;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 6px 20px var(--blue-glow);
  transition: filter 0.15s, transform 0.12s;
}

.jf-search-btn:hover { filter: brightness(1.08); }
.jf-search-btn:active { transform: translateY(1px); }
.jf-search-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Form controls row ── */
.jf-form-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Toggle switch */
.jf-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dim);
  user-select: none;
}

.jf-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.jf-toggle-track {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: var(--bg-3);
  border: 1.5px solid var(--border-hover);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.jf-toggle-track::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}

.jf-toggle:checked + .jf-toggle-track {
  background: var(--blue);
  border-color: var(--blue-mid);
}

.jf-toggle:checked + .jf-toggle-track::after {
  left: calc(100% - 16px);
  background: #fff;
}

.jf-toggle-label:hover .jf-toggle-track {
  border-color: var(--blue-bright);
}

/* Sort select */
.jf-sort-wrap { margin-left: auto; }

.jf-sort-select {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.jf-sort-select:focus {
  outline: none;
  border-color: var(--blue-bright);
}

/* Current-role note */
.jf-current-role-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 0.2rem;
}

/* ── Results area ── */
.jf-results-area {
  display: grid;
  gap: 0.75rem;
}

/* Sample-mode banner */
.jf-sample-banner {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 500;
}

/* State blocks (loading / empty / error) */
.jf-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.jf-state[hidden] { display: none; }

.jf-state-error { border-color: rgba(248,113,113,0.35); }
.jf-state-error p { color: var(--bad); }

/* Spinner */
.jf-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--blue-bright);
  border-radius: 50%;
  animation: jf-spin 0.85s linear infinite;
}

@keyframes jf-spin {
  to { transform: rotate(360deg); }
}

/* Results wrapper */
.jf-results-list[hidden] { display: none; }

.jf-results-summary {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.jf-results-disclaimer {
  font-size: 0.79rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  max-width: 66ch;
}

/* ── Listing cards ── */
.jf-card {
  background: linear-gradient(165deg, rgba(11,21,56,0.7), rgba(7,13,36,0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
  display: grid;
  gap: 0.7rem;
}

.jf-card:hover {
  border-color: var(--blue-border);
  background: linear-gradient(165deg, rgba(11,21,56,0.85), rgba(7,13,36,0.55));
}

/* Card header: title block + badge */
.jf-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.jf-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.jf-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.jf-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.jf-card-company { font-weight: 600; color: var(--text-dim); }

.jf-card-location {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.jf-card-salary {
  color: var(--good);
  font-weight: 700;
  font-size: 0.88rem;
}

/* AI-resilience badge */
.jf-res-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}

/* Badge color variants */
.jf-badge-green {
  color: var(--good);
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35);
}

.jf-badge-teal {
  color: #2dd4bf;
  background: rgba(45,212,191,0.10);
  border: 1px solid rgba(45,212,191,0.28);
}

.jf-badge-yellow {
  color: var(--mid);
  background: rgba(251,191,36,0.10);
  border: 1px solid rgba(251,191,36,0.28);
}

.jf-badge-orange {
  color: #fb923c;
  background: rgba(251,146,60,0.10);
  border: 1px solid rgba(251,146,60,0.28);
}

.jf-badge-red {
  color: var(--bad);
  background: rgba(248,113,113,0.10);
  border: 1px solid rgba(248,113,113,0.28);
}

.jf-badge-muted {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.jf-badge-unmatched {
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Description snippet */
.jf-card-snippet {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* vs_current comparison line */
.jf-vs-current {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  border-left: 3px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  align-self: flex-start;
}

.jf-vs-less {
  color: var(--good);
  background: rgba(52,211,153,0.07);
  border-left-color: var(--good);
}

.jf-vs-more {
  color: var(--mid);
  background: rgba(251,191,36,0.07);
  border-left-color: var(--mid);
}

/* Card footer */
.jf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jf-card-source {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.jf-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  color: var(--blue-bright);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.jf-apply-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── See live openings link (in safe-harbor results) ── */
.sh-jobs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  color: var(--blue-bright);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  margin-top: 1rem;
}

.sh-jobs-link:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .jf-form-row {
    flex-direction: column;
  }
  .jf-field-wrap {
    min-width: 0;
    width: 100%;
  }
  .jf-search-btn {
    width: 100%;
  }
  .jf-form-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .jf-sort-wrap {
    margin-left: 0;
  }
  .jf-card-header {
    flex-direction: column;
  }
  .jf-res-badge {
    align-self: flex-start;
  }
}

/* ============================================================
   AUTH MODULE — modal + header widget
   ============================================================ */

/* ── Overlay ── */
.cs-auth-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(3, 6, 17, 0.82);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1rem;
}

/* ── Modal panel ── */
.cs-auth-modal {
  position: relative;
  background: linear-gradient(165deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  padding: 2rem 2rem 1.5rem;
  width: 100%; max-width: 400px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.95),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Close button ── */
.cs-auth-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.5rem; line-height: 1;
  padding: 0.2rem 0.5rem; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.cs-auth-close:hover { color: var(--text); background: var(--bg-card-hover); }

/* ── Brand row ── */
.cs-auth-brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.05rem; margin-bottom: 1.2rem;
}

/* ── Title + subtitle ── */
.cs-auth-title {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 0.35rem;
}
.cs-auth-sub {
  font-size: 0.88rem; color: var(--text-dim); margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ── Tabs ── */
.cs-auth-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1.4rem;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.25rem;
}
.cs-auth-tab {
  flex: 1; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.88rem; font-weight: 600;
  font-family: inherit; padding: 0.45rem 0.6rem; border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.cs-auth-tab-active {
  background: var(--blue-soft); color: var(--blue-bright);
  border: 1px solid var(--blue-border);
}
.cs-auth-tab:hover:not(.cs-auth-tab-active) { color: var(--text); }

/* ── Form fields ── */
.cs-auth-form { display: flex; flex-direction: column; gap: 1rem; }
.cs-auth-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cs-auth-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.02em;
}
.cs-auth-input {
  background: var(--bg-card); border: 1px solid var(--border-hover);
  color: var(--text); font-size: 0.97rem; font-family: inherit;
  padding: 0.75rem 0.9rem; border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cs-auth-input::placeholder { color: var(--text-muted); }
.cs-auth-input:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

/* ── Error ── */
.cs-auth-error {
  font-size: 0.85rem; color: var(--bad); line-height: 1.4;
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px; padding: 0.5rem 0.75rem;
}

/* ── Submit ── */
.cs-auth-submit { width: 100%; margin-top: 0.25rem; }

/* ── Toggle note ── */
.cs-auth-toggle-note {
  margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center;
}
.cs-auth-toggle-link {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--blue-bright); font-size: inherit; font-weight: 600; padding: 0;
}
.cs-auth-toggle-link:hover { text-decoration: underline; }

/* ── Legal ── */
.cs-auth-legal {
  margin-top: 0.85rem; font-size: 0.76rem; color: var(--text-muted);
  text-align: center; line-height: 1.5;
}

/* ── Header auth button ── */
.cs-nav-auth { display: flex; align-items: center; }
.cs-nav-auth-btn {
  background: none; border: 1px solid var(--border-hover); cursor: pointer;
  color: var(--text-dim); font-size: 0.88rem; font-weight: 600; font-family: inherit;
  padding: 0.38rem 0.9rem; border-radius: 9px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.cs-nav-auth-btn:hover {
  color: var(--text); border-color: var(--blue-border); background: var(--blue-soft);
}
.cs-nav-auth-btn--signed-in {
  color: var(--blue-bright); border-color: var(--blue-border); background: var(--blue-soft);
}

/* ── Account dropdown ── */
.cs-account-dropdown {
  position: absolute; z-index: 9100;
  background: var(--bg-3); border: 1px solid var(--blue-border);
  border-radius: 12px; padding: 0.75rem;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.9);
  min-width: 200px;
}
.cs-account-email {
  font-size: 0.83rem; color: var(--text-dim); margin-bottom: 0.6rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
  word-break: break-all;
}
.cs-account-signout {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--bad); font-size: 0.88rem; font-weight: 600; padding: 0;
}
.cs-account-signout:hover { text-decoration: underline; }


/* ============================================================
   TRIAL CTA — score-reveal conversion card
   ============================================================ */

.cs-trial-cta {
  margin-top: 1.2rem;
  background: linear-gradient(165deg, rgba(29, 78, 216, 0.18), rgba(7, 13, 36, 0.6));
  border: 1px solid var(--blue-border);
  border-radius: 14px; padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 8px 32px -12px var(--blue-glow);
}
.cs-trial-inner { display: flex; flex-direction: column; gap: 0.75rem; }

.cs-trial-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--gold-bright);
  border: 1px solid var(--gold-border); background: var(--gold-soft);
  padding: 0.18rem 0.55rem; border-radius: 999px; align-self: flex-start;
}
.cs-trial-head {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
}
.cs-trial-sub {
  font-size: 0.83rem; color: var(--text-dim); line-height: 1.5;
}

/* ── Monthly / annual toggle ── */
.cs-trial-toggle {
  display: flex; gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.2rem;
}
.cs-trial-toggle-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
  font-family: inherit; padding: 0.4rem 0.5rem; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
.cs-trial-toggle-btn--active {
  background: var(--blue-soft); color: var(--blue-bright);
  border: 1px solid var(--blue-border);
}
.cs-trial-toggle-btn:hover:not(.cs-trial-toggle-btn--active) { color: var(--text); }
.cs-trial-save {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  color: var(--good); background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.1rem 0.35rem; border-radius: 999px; margin-left: 0.25rem;
  vertical-align: middle;
}

/* ── Checkout button ── */
.cs-trial-checkout-btn { width: 100%; font-size: 0.97rem; }

.cs-trial-legal {
  font-size: 0.73rem; color: var(--text-muted); line-height: 1.5;
}
.cs-trial-error-msg {
  font-size: 0.82rem; color: var(--bad); background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25); border-radius: 8px;
  padding: 0.45rem 0.7rem;
}


/* ============================================================
   AD SLOT — free-tier contextual / house ad
   ============================================================ */

.cs-ad-slot-placeholder { display: none; }

.cs-ad-slot {
  margin-top: 1.2rem;
  border-radius: 12px; overflow: hidden;
}

/* House ad */
.cs-ad-slot--house {
  background: linear-gradient(165deg, rgba(11, 21, 56, 0.7), rgba(7, 13, 36, 0.5));
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
}
.cs-ad-inner { display: flex; flex-direction: column; gap: 0.55rem; }
.cs-ad-eyebrow {
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.cs-ad-headline {
  font-size: 0.9rem; font-weight: 700; line-height: 1.25; color: var(--text);
}
.cs-ad-body {
  font-size: 0.8rem; color: var(--text-dim); line-height: 1.45;
}
.cs-ad-cta {
  font-size: 0.85rem; padding: 0.6rem 1rem;
  align-self: flex-start;
}
.cs-ad-legal {
  font-size: 0.7rem; color: var(--text-muted);
}

/* Network ad wrapper */
.cs-ad-slot--network {
  min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}


/* ============================================================
   RESPONSIVE — auth modal + trial CTA
   ============================================================ */

@media (max-width: 480px) {
  .cs-auth-modal {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 16px;
  }
  .cs-trial-toggle {
    flex-direction: column;
  }
  .cs-trial-toggle-btn {
    text-align: left;
  }
}
