/* ============================================
   Fern · Production Styles
   All CSS custom properties defined at top.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Required brand tokens */
  --forest:        #2D5016;
  --forest-mid:    #3D6B20;
  --forest-light:  #5A8A35;
  --forest-deep:   #1F3A0E;
  --sage:          #C8D9B0;
  --sage-mid:      #A8C48A;
  --sage-pale:     #EBF2E0;
  --sage-whisper:  #F4F8EC;
  --cream:         #F5F0E8;
  --cream-soft:    #FAF6EF;
  --stone:         #E8E2D8;
  --stone-mid:     #D4CCBE;
  --paper:         #FFFFFF;
  --charcoal:      #1C1C1A;
  --warm-gray:     #7A7468;
  --warm-gray-mid: #A39C8E;
  --warm-gray-light:#C8C1B3;

  /* Semantic */
  --fg-1:          var(--charcoal);
  --fg-2:          var(--warm-gray);
  --fg-3:          var(--warm-gray-mid);
  --fg-on-dark:    var(--cream);
  --bg-app:        var(--cream);
  --bg-surface:    var(--paper);
  --border-1:      var(--stone);
  --border-2:      var(--stone-mid);
  --border-strong: var(--warm-gray-light);

  /* Status */
  --ok:            #4A7C2A;
  --ok-bg:         #E8F0DA;
  --warn:          #B07A1F;
  --warn-bg:       #F6ECD6;
  --danger:        #8C3A2A;
  --danger-bg:     #F4E1DB;

  /* Typography */
  --font-display:  'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --t-display: clamp(56px, 7vw, 96px);
  --t-h1:      clamp(40px, 5vw, 64px);
  --t-h2:      clamp(32px, 4vw, 48px);
  --t-h3:      28px;
  --t-h4:      22px;
  --t-lead:    20px;
  --t-body:    16px;
  --t-small:   14px;
  --t-micro:   12px;

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-body:   1.55;
  --lh-loose:  1.7;

  --ls-tight:  -0.02em;
  --ls-display:-0.01em;
  --ls-wide:    0.08em;
  --ls-label:   0.14em;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-pill:999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(28,28,26,0.04), 0 1px 1px rgba(28,28,26,0.03);
  --shadow-2: 0 2px 8px rgba(28,28,26,0.06), 0 1px 2px rgba(28,28,26,0.04);
  --shadow-3: 0 8px 24px rgba(28,28,26,0.08), 0 2px 6px rgba(28,28,26,0.04);
  --shadow-4: 0 18px 48px rgba(28,28,26,0.12), 0 4px 12px rgba(28,28,26,0.06);
  --shadow-focus: 0 0 0 3px rgba(90,138,53,0.30);

  /* Spacing */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-organic:cubic-bezier(0.34, 1.18, 0.64, 1);
  --dur-fast:  120ms;
  --dur-base:  220ms;
  --dur-slow:  400ms;
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
::selection { background: var(--sage); color: var(--forest-deep); }

/* ============================================
   01 · Layout
   ============================================ */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow{ max-width: 760px;  margin: 0 auto; padding: 0 40px; }
.container-wide  { max-width: 1340px; margin: 0 auto; padding: 0 40px; }

section { padding: 110px 0; position: relative; }
section.compact  { padding: 72px 0; }
section.cream    { background: var(--cream); }
section.paper    { background: var(--paper); }
section.sage     { background: var(--sage-pale); }
section.forest   { background: var(--forest); color: var(--cream); }
section.charcoal { background: var(--charcoal); color: var(--cream); }
section.forest .eyebrow, section.charcoal .eyebrow { color: rgba(245,240,232,0.55); }
section.forest .lead,    section.charcoal .lead    { color: rgba(245,240,232,0.72); }

/* ============================================
   02 · Typography
   ============================================ */
.eyebrow {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.eyebrow::before { content:''; width:18px; height:1px; background:var(--forest-light); flex-shrink:0; }
.eyebrow.no-rule::before { display: none; }
.eyebrow.no-rule { display: inline-block; }

.h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04;
  letter-spacing: -0.018em; color: var(--fg-1); text-wrap: balance;
}
.h2 em { font-weight: 400; font-style: italic; color: var(--forest-light); }
.h2.on-dark { color: var(--cream); }
.h2.on-dark em { color: var(--sage); }

.h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.18; letter-spacing: -0.005em; }
.h3 em { font-style: italic; font-weight: 400; color: var(--forest-light); }

.lead {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
  color: var(--fg-2); text-wrap: pretty;
}
.quote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.28;
  color: var(--fg-1); text-wrap: balance;
}
.marginalia {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.4; color: var(--warm-gray);
}

a {
  color: var(--forest); text-decoration: underline;
  text-decoration-color: rgba(45,80,22,0.35); text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease-out);
}
a:hover { text-decoration-color: var(--forest); }

/* ============================================
   03 · Nav
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 40px;
  background: rgba(245,240,232,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out),
              background var(--dur-base);
}
.nav.scrolled { border-bottom-color: var(--border-1); padding: 10px 40px; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: inherit;
}
.nav-brand img { width: 30px; height: 30px; }
.nav-brand .name {
  font-family: var(--font-display); font-weight: 500; font-size: 28px;
  color: var(--forest); letter-spacing: -0.01em; line-height: 1;
}
.nav-links { display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav-link {
  color: var(--fg-1); text-decoration: none; font-size: 14px; font-weight: 400;
  position: relative; padding: 6px 2px; transition: color var(--dur-fast);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--forest); transform: scaleX(0);
  transform-origin: center; transition: transform var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--forest); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--forest); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ============================================
   04 · Buttons
   ============================================ */
.btn {
  font-family: var(--font-body); font-weight: 500; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn .icon { width: 16px; height: 16px; stroke-width: 1.75; flex-shrink: 0; }
.btn-primary {
  background: var(--forest); color: var(--cream); border-radius: 999px;
  padding: 15px 28px; font-size: 15px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn-primary:hover { background: var(--forest-mid); box-shadow: var(--shadow-3); color: var(--cream); text-decoration: none; }
.btn-primary:active { background: var(--forest-deep); }
.btn-primary.on-dark { background: var(--cream); color: var(--forest); }
.btn-primary.on-dark:hover { background: var(--paper); color: var(--forest); }
.btn-primary.sage { background: var(--sage); color: var(--forest-deep); }
.btn-primary.sage:hover { background: var(--sage-mid); color: var(--forest-deep); }
.btn-secondary {
  background: var(--paper); color: var(--forest); border: 1px solid var(--forest);
  border-radius: 999px; padding: 14px 27px; font-size: 15px;
}
.btn-secondary:hover { background: var(--sage-pale); text-decoration: none; }
.btn-tertiary { background: transparent; color: var(--fg-1); padding: 14px 18px; font-size: 14px; border-radius: 8px; }
.btn-tertiary:hover { color: var(--forest); background: rgba(45,80,22,0.04); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--forest); padding: 12px 0; font-size: 15px;
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(45,80,22,.35); border-radius: 0;
}
.btn-ghost:hover { text-decoration-color: var(--forest); color: var(--forest); }
.btn-ghost-light {
  background: transparent; color: var(--cream); padding: 12px 0; font-size: 15px;
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(245,240,232,0.5); border-radius: 0;
  font-family: var(--font-body); font-weight: 500;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-ghost-light:hover { text-decoration-color: var(--cream); color: var(--cream); }
.btn-ghost-quiet {
  appearance: none; cursor: pointer;
  background: transparent; border: 1px solid var(--border-1);
  color: var(--danger); font-family: var(--font-body); font-weight: 500; font-size: 14px;
  padding: 11px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-ghost-quiet:hover { border-color: var(--danger); background: var(--danger-bg); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ============================================
   05 · Hero
   ============================================ */
.hero { padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(54px, 7.2vw, 100px); line-height: 0.96;
  letter-spacing: -0.022em; color: var(--forest); text-wrap: balance;
}
.hero-title em { font-weight: 400; font-style: italic; color: var(--forest-light); }
.hero-sub {
  font-family: var(--font-body); font-size: 19px; line-height: 1.55;
  color: var(--fg-2); margin: 28px 0 36px; max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 18px; margin-top: 40px;
  font-size: 13px; color: var(--fg-2); align-items: center; flex-wrap: wrap;
}
.hero-trust .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--fg-3); }
.hero-trust .leaf-tick { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .leaf-tick svg { width: 14px; height: 14px; color: var(--forest-light); }

.hero-video {
  padding: 0; height: auto;
  min-height: 100vh; max-height: 100vh;
  display: flex; align-items: center;
  color: var(--cream); background: #1a2614;
}
.hero-video > .container { position: relative; z-index: 2; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.hero-video-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 0%,
      rgba(15,24,12,0.78) 0%, rgba(15,24,12,0.55) 28%,
      rgba(15,24,12,0.20) 55%, rgba(15,24,12,0) 78%),
    linear-gradient(180deg, rgba(15,24,12,0.18), rgba(15,24,12,0) 30%);
}
.hero-copy { max-width: 640px; }
.hero-video .eyebrow { color: var(--sage-pale); }
.hero-video .hero-title { color: var(--cream); text-shadow: 0 1px 24px rgba(0,0,0,0.25); }
.hero-video .hero-title em { color: var(--sage-pale); }
.hero-video .hero-sub { color: rgba(245,240,232,0.86); text-shadow: 0 1px 18px rgba(0,0,0,0.30); max-width: 520px; }
.hero-video .hero-trust { color: rgba(245,240,232,0.78); }
.hero-video .hero-trust .dot { background: rgba(245,240,232,0.45); }
.hero-video .hero-trust .leaf-tick svg { color: var(--sage-pale); }
.hero-video .btn-primary { background: var(--cream); color: var(--forest-deep); box-shadow: var(--shadow-3); }
.hero-video .btn-primary:hover { background: var(--paper); color: var(--forest-deep); }

@media (max-width: 720px) {
  .hero-video { min-height: 640px; height: auto; }
  .hero-video > .container { padding-top: 96px; padding-bottom: 64px; }
}

/* ============================================
   06 · Cards
   ============================================ */
.card {
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px;
  padding: 28px; box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.card:hover { box-shadow: var(--shadow-3); border-color: var(--border-2); }
.card.tinted { background: var(--sage-pale); border-color: transparent; }

/* ============================================
   07 · How It Works steps
   ============================================ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.step {
  padding: 32px 28px 30px; background: var(--paper);
  border: 1px solid var(--border-1); border-radius: 18px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.step .num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 64px; line-height: 0.9; color: var(--forest-light);
  letter-spacing: -0.02em; display: block; margin-bottom: 6px;
}
.step .h { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 8px 0 10px; }
.step .p { font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* How it works header grid */
.hiw-header {
  display: grid; grid-template-columns: 1.3fr 1fr;
  align-items: end; gap: 48px; margin-top: 18px;
}

/* ============================================
   08 · Stat proof cards
   ============================================ */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px;
  padding: 36px 32px 28px; display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.stat-card:hover { box-shadow: var(--shadow-3); border-color: var(--border-2); transform: translateY(-2px); }
.stat-card-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 6.4vw, 84px); line-height: 1;
  letter-spacing: -0.025em; color: var(--forest-deep);
}
.stat-card-unit {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 17px; line-height: 1.3; color: var(--fg-2); margin-top: 10px; max-width: 220px;
  letter-spacing: 0.05em;
}
.stat-card-hook {
  margin-top: 22px; font-family: var(--font-display); font-weight: 500;
  font-size: 23px; line-height: 1.22; color: var(--forest); text-wrap: balance;
}
.stat-card-body { margin: 16px 0 24px; font-size: 15px; line-height: 1.6; color: var(--fg-1); }
.stat-card-src {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border-1);
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--fg-3);
}

/* ============================================
   09 · Pricing
   ============================================ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 22px;
  padding: 36px 32px 32px; display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
}
.price-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-3); transform: translateY(-2px); }
.price-card.featured { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.price-card.featured .label, .price-card.featured .sub { color: rgba(245,240,232,0.7); }
.price-card.featured .price { color: var(--cream); }
.price-card.featured .per { color: rgba(245,240,232,0.55); }
.price-card .label {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
}
.price-card .name {
  font-family: var(--font-display); font-weight: 500; font-size: 30px;
  letter-spacing: -0.01em; margin-top: 6px;
}
.price-card .name em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.price-card.featured .name em { color: var(--sage); }
.price-card .sub { font-size: 13px; color: var(--fg-2); margin-top: 6px; min-height: 36px; line-height: 1.5; }
.price-card .price {
  font-family: var(--font-display); font-size: 64px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1; margin-top: 22px;
}
.price-card .per { font-size: 13px; color: var(--fg-2); margin-top: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.5; }
.price-card.featured li { color: rgba(245,240,232,0.92); }
.price-card li .check {
  width: 18px; height: 18px; border-radius: 999px; background: var(--sage-pale);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--forest); flex-shrink: 0; margin-top: 1px;
}
.price-card li .check svg { width: 11px; height: 11px; stroke-width: 2.5; }
.price-card.featured li .check { background: rgba(200,217,176,0.16); color: var(--sage); }
.price-card .btn { width: 100%; justify-content: center; }

.first-hire-seal {
  position: absolute; top: -18px; right: -14px;
  width: 86px; height: 86px; border-radius: 999px;
  background: var(--sage-pale); border: 1.5px solid var(--forest);
  color: var(--forest-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: rotate(8deg);
  box-shadow: 0 6px 18px rgba(45,80,22,0.20); z-index: 3;
  transition: transform var(--dur-base) var(--ease-organic); pointer-events: none;
}
.price-card:hover .first-hire-seal { transform: rotate(8deg) scale(1.04); }
.first-hire-spark { color: var(--forest); margin-bottom: 2px; }
.first-hire-eyebrow { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--forest-deep); }
.first-hire-strong {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 22px; line-height: 1; margin-top: 4px; color: var(--forest);
}
.price-card.featured .first-hire-seal { background: var(--cream); border-color: var(--sage-mid); box-shadow: 0 6px 18px rgba(0,0,0,0.30); }
.price-card.featured .first-hire-spark,
.price-card.featured .first-hire-strong { color: var(--forest); }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: var(--forest-deep);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em; box-shadow: var(--shadow-2);
}

/* ============================================
   10 · Comparison table
   ============================================ */
.compare-table {
  background: var(--cream); border: 1px solid var(--border-1);
  border-radius: 20px; overflow: hidden;
}
.compare-table .row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  padding: 20px 28px; border-bottom: 1px solid var(--border-1);
  align-items: center; font-size: 14px;
}
.compare-table .row:last-child { border-bottom: 0; }
.compare-table .row.head {
  background: var(--paper); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
}
.compare-table .row.head .fern-col { color: var(--forest); }
.compare-table .label { color: var(--fg-2); }
.compare-table .fern-col { color: var(--forest); font-weight: 500; }
.compare-table .other { color: var(--fg-2); }
.compare-table .row:not(.head) .fern-col { background: var(--sage-pale); margin: -20px 0; padding: 20px 16px; }

/* ============================================
   11 · FAQ accordion
   ============================================ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-1); }
.faq-item:first-child { border-top: 1px solid var(--border-1); }
.faq-q {
  width: 100%; background: transparent; border: 0; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  line-height: 1.3; color: var(--fg-1); letter-spacing: -0.005em;
}
.faq-q:hover { color: var(--forest); }
.faq-q .plus {
  width: 28px; height: 28px; flex-shrink: 0; position: relative;
  border: 1px solid var(--border-1); border-radius: 999px;
  transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--forest); transition: transform var(--dur-base) var(--ease-out);
}
.faq-q .plus::before { width: 10px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-q .plus::after  { width: 1.5px; height: 10px; transform: translate(-50%,-50%); }
.faq-item.open .faq-q .plus { background: var(--forest); border-color: var(--forest); }
.faq-item.open .faq-q .plus::before,
.faq-item.open .faq-q .plus::after { background: var(--cream); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { margin: 0 0 24px; padding-right: 60px; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 640px; }

/* ============================================
   12 · Founder's note
   ============================================ */
.founder-note {
  background: var(--cream-soft); border: 1px solid var(--border-1);
  border-radius: 22px; padding: 56px 56px 48px;
  max-width: 760px; margin: 0 auto; position: relative;
}
.founder-note .badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--cream-soft); padding: 0 14px;
  color: var(--fg-2); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.founder-note p {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.5; color: var(--fg-1); margin: 0 0 14px; text-wrap: pretty;
}
.founder-note .signoff { display: flex; align-items: flex-end; gap: 24px; margin-top: 28px; }
.founder-note .signature {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 36px; color: var(--forest); line-height: 1;
  transform: rotate(-3deg) translateX(8px);
}
.founder-note .sig-meta { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
.founder-note .sig-meta b { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--fg-1); display: block; }

/* ============================================
   13 · Sector strip
   ============================================ */
.sector-strip {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: space-between;
}
.sector-strip .label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.sector-strip .label::before { content: ''; width: 18px; height: 1px; background: var(--forest-light); }
.sector-strip .items { display: flex; gap: 36px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.sector-strip .items span {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  color: var(--forest); letter-spacing: -0.005em;
}

/* ============================================
   14 · Footer
   ============================================ */
footer { background: var(--charcoal); color: var(--cream); padding: 72px 0 32px; }
footer .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: flex-start; }
footer .brand-block { max-width: 360px; }
footer .brand-block .mark { display: flex; align-items: center; gap: 10px; }
footer .brand-block .mark img { width: 32px; height: 32px; filter: brightness(0) invert(1) sepia(0.1); }
footer .brand-block .name { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.01em; color: var(--cream); line-height: 1; }
footer .brand-block .tag { font-family: var(--font-display); font-style: italic; font-size: 19px; color: rgba(245,240,232,0.62); margin-top: 16px; line-height: 1.4; }
footer .col-h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,240,232,0.5); margin-bottom: 16px; }
footer a { display: block; color: rgba(245,240,232,0.82); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color var(--dur-fast); }
footer a:hover { color: var(--cream); }
footer .legal {
  border-top: 1px solid rgba(245,240,232,0.1); margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(245,240,232,0.5);
}
footer .legal .made-with { font-family: var(--font-display); font-style: italic; font-size: 14px; }

/* ============================================
   15 · Animations
   ============================================ */
@keyframes rise { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
.rise  { opacity:0; animation: rise var(--dur-slow) var(--ease-out) forwards; }
.fade  { opacity:0; animation: fade var(--dur-slow) var(--ease-out) forwards; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 240ms; }
.delay-4 { animation-delay: 340ms; }
@media (prefers-reduced-motion: reduce) { .rise, .fade { animation: none; opacity:1; } html { scroll-behavior: auto; } }

/* ============================================
   16 · Icons
   ============================================ */
.icon { width: 18px; height: 18px; stroke-width: 1.5; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.btn .icon { width: 16px; height: 16px; stroke-width: 1.75; }
.btn-lg .icon { width: 18px; height: 18px; }

/* ============================================
   17 · Placeholder data marker + skeleton loaders
   ============================================ */

/* ---- Skeleton loaders ----
   While body.fern-loading is set, loading regions render as soft, on-brand
   blocks that gently pulse (lighten/dim). Nothing real is shown until the
   page finishes rendering and the class is removed — an atomic reveal.

   Two levels:
   • Every page: .placeholder-data nodes become pulsing blocks (used by the
     applicants/shortlist table + the sidebar footer bits).
   • Pages with bespoke content (body.full-skeleton: dashboard, applicant,
     account, roles): the WHOLE .app-content is blanked — text, numbers, icons
     and images are hidden and each content chunk becomes a pulsing block,
     while the card regions stay to show where the data will land. The
     persistent sidebar nav is left readable. */

:root { --fern-skeleton: #dce2d6; } /* soft sage-grey, on-brand */

@keyframes fern-skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* The shared block look. */
body.fern-loading .placeholder-data,
body.fern-loading.full-skeleton .app-content :is(
  h2, h3, h4, p, label, li, input, textarea, select, .btn, button,
  .role-banner-title, .role-banner-meta,
  .top-match-badge, .top-match-name, .top-match-score, .top-match-blurb,
  .check-chip, .cert-chip, .tag, .status-pill, .rank-pill,
  .side-card-title, .side-card-sub, .linkrow-stat,
  .kpi-num, .kpi-label, .kpi-sub, .strip-h2, .strip-link,
  .stat-cell-num, .stat-cell-label,
  .qual-section-title, .qual-section-sub,
  .profile-name, .profile-role, .profile-meta span,
  .score-row-label, .score-row-val,
  .cv-entry-role, .cv-entry-place, .cv-entry-dates, .cv-entry-desc,
  .doc-row-name, .doc-row-meta,
  .role-card-title, .role-card-meta, .roles-tab-count,
  .cand-name, .cand-score, .cand-note, .cand-chips
) {
  color: transparent !important;
  background: var(--fern-skeleton) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  min-height: 0.9em;
  animation: fern-skeleton-pulse 1.4s ease-in-out infinite;
  user-select: none;
}

/* Round blocks: avatars, score rings, circular icon badges. */
body.fern-loading.full-skeleton .app-content :is(
  .role-banner-icon, .side-card-icon, .side-card-iconlg, .kpi-icon,
  .role-card-icon, .profile-avatar, .donut, .profile-score-ring
) {
  color: transparent !important;
  background: var(--fern-skeleton) !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  animation: fern-skeleton-pulse 1.4s ease-in-out infinite;
}

/* On full-skeleton pages, blank ALL remaining text + icons in the content so
   nothing real peeks through (layout space is preserved, so blocks keep their
   natural size). */
body.fern-loading.full-skeleton .app-content,
body.fern-loading.full-skeleton .app-content * { color: transparent !important; }
body.fern-loading.full-skeleton .app-content :is([data-icon], svg, img, .dot, .score-dot, .cert-chip-dot) { visibility: hidden !important; }

/* Inline chunks need a minimum size so short/empty text still reads as a bar. */
body.fern-loading .placeholder-data,
body.fern-loading.full-skeleton .app-content :is(
  .top-match-badge, .top-match-score, .check-chip, .cert-chip, .tag,
  .status-pill, .rank-pill, .strip-link, .roles-tab-count, .cand-score,
  .stat-cell-num, .score-row-val, .profile-meta span
) {
  display: inline-block !important;
  min-width: 68px;
  min-height: 1em;
  vertical-align: middle;
}

/* Input placeholder text isn't affected by color:transparent — hide it too. */
body.fern-loading.full-skeleton .app-content :is(input, textarea, select)::placeholder { color: transparent !important; }

/* Hide decorative dots / status pips so the skeleton stays monochrome. */
body.fern-loading.full-skeleton .app-content :is(
  .cv-entry-dot, .profile-tier-badge, .role-status-dot, .cand-star, .top-match-badge > [data-icon]
) { visibility: hidden !important; }

/* Blank the page title + subtitle too (but keep the functional back link). */
body.fern-loading.full-skeleton .app-topbar-titles :is(h1, .app-title, .app-sub) {
  color: transparent !important;
  background: var(--fern-skeleton) !important;
  border-radius: 8px !important;
  animation: fern-skeleton-pulse 1.4s ease-in-out infinite;
  width: fit-content;
  max-width: 100%;
  min-height: 0.9em;
}
body.fern-loading.full-skeleton .app-topbar-titles :is(h1, .app-title, .app-sub) * { visibility: hidden !important; }

/* ---- Post-a-role edit mode ----
   While the saved role is being fetched (body.wizard-skeleton, set inline on
   post-a-role.html when ?edit= is present), the title step renders as pulsing
   blocks so the empty title input doesn't read as "start from scratch".
   main.js removes the classes once the prefill lands. */
body.fern-loading.wizard-skeleton #wizard-step-role :is(
  .wizard-step-eyebrow, h1, .wizard-sub, label, input, .help, .btn, .meta
) {
  color: transparent !important;
  background: var(--fern-skeleton) !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  border-radius: 8px !important;
  min-height: 0.9em;
  animation: fern-skeleton-pulse 1.4s ease-in-out infinite;
  user-select: none;
}
body.fern-loading.wizard-skeleton #wizard-step-role :is(h1, label, .btn) * { visibility: hidden !important; }
body.fern-loading.wizard-skeleton #wizard-step-role input::placeholder { color: transparent !important; }
body.fern-loading.wizard-skeleton #wizard-step-role [data-icon] { visibility: hidden !important; }

/* ============================================
   18 · Wizard (Post a role)
   ============================================ */
.wizard-shell {
  min-height: 100vh;
  background: url('assets/wizard-bg.jpg') center center / cover no-repeat fixed, var(--cream);
  padding: 24px 24px 60px; display: flex; flex-direction: column;
}
.wizard-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 16px;
}
.wizard-top .brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: rgba(245,240,232,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(45,80,22,0.10); box-shadow: 0 2px 10px rgba(45,80,22,0.06);
}
.wizard-top .brand img { width: 24px; height: 24px; }
.wizard-top .brand .name { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest); letter-spacing: -0.01em; }
.wizard-top .exit {
  color: var(--fg-2); text-decoration: none; font-size: 14px;
  background: rgba(245,240,232,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(45,80,22,0.10);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.wizard-top .exit:hover { color: var(--forest); background: var(--cream); }
.wizard-track { display: flex; gap: 8px; max-width: 720px; margin: 24px auto 36px; width: 100%; padding: 0 16px; }
.wizard-track .pip { flex: 1; height: 3px; background: var(--stone); border-radius: 999px; overflow: hidden; }
.wizard-track .pip span { display: block; height: 100%; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.wizard-track .pip.done span { transform: scaleX(1); }
.wizard-track .pip.active span { transform: scaleX(0.4); }
.wizard-stage { max-width: 720px; margin: 0 auto; width: 100%; flex: 1; display: flex; flex-direction: column; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-step-eyebrow { font-family: var(--font-display); font-style: italic; color: var(--forest-light); font-size: 18px; margin-bottom: 12px; }
.wizard-h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 4vw, 48px); line-height: 1.05;
  letter-spacing: -0.015em; color: var(--forest); margin: 0 0 16px; text-wrap: balance;
}
.wizard-h1 em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.wizard-sub { font-size: 18px; line-height: 1.55; color: var(--fg-2); margin: 0 0 32px; max-width: 560px; }

/* Wizard grids */
.wizard-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wizard-pay-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.field-2col       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-card-num   { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }

.role-template-btn {
  cursor: pointer; text-align: left; padding: 20px 22px;
  border: 1px solid var(--border-1); background: var(--paper);
  border-radius: 18px; box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: 14px;
  transition: all var(--dur-fast); font-family: inherit;
  color: var(--forest-deep);
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.role-template-btn:hover { border-color: var(--forest); background: var(--sage-whisper); }
.role-template-btn.selected { border: 1.5px solid var(--forest); background: var(--sage-pale); box-shadow: var(--shadow-2); }
.role-template-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--cream); color: var(--forest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.role-template-btn.selected .role-template-icon { background: var(--forest); color: var(--cream); }
.role-template-label { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.005em; color: var(--forest-deep); }

.plan-btn {
  cursor: pointer; text-align: left; padding: 20px 22px;
  border: 1px solid var(--border-1); background: var(--paper);
  border-radius: 18px; transition: all var(--dur-fast); font-family: inherit;
}
.plan-btn:hover { border-color: var(--forest); background: var(--sage-whisper); }
.plan-btn.selected { border: 1.5px solid var(--forest); background: var(--sage-pale); }
.plan-btn .plan-name { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.plan-btn .plan-price { font-family: var(--font-display); font-size: 36px; font-weight: 500; color: var(--forest); letter-spacing: -0.01em; margin-top: 8px; line-height: 1; }
.plan-btn .plan-sub { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.4; }

.order-total {
  padding: 20px 24px; background: var(--cream-soft); border: 1px solid var(--border-1);
  border-radius: 14px; display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 12px;
}
.order-total .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.order-total .v { font-family: var(--font-display); font-size: 36px; font-weight: 500; color: var(--forest); letter-spacing: -0.01em; line-height: 1; }
.order-total .sub { font-size: 12px; color: var(--fg-2); margin-top: 2px; }

/* Fields */
.field-group { display: flex; flex-direction: column; gap: 20px; }
.field       { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--fg-1); letter-spacing: 0.01em; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field .help { font-size: 13px; color: var(--fg-2); font-style: italic; font-family: var(--font-display); line-height: 1.4; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=number], .field textarea, .field select {
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  border: 1px solid var(--border-1); border-radius: 10px;
  background: var(--paper); color: var(--fg-1); padding: 14px 16px; outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--forest); box-shadow: var(--shadow-focus);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .req { color: var(--danger); font-weight: 600; margin-left: 2px; }
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}
.field-error { font-size: 13px; color: #C0392B; display: flex; align-items: center; gap: 6px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 14px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--border-1); background: var(--paper);
  cursor: pointer; color: var(--fg-1); display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.selected { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.chip .x { width: 14px; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

.wizard-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-1);
}
.wizard-actions .meta { font-size: 13px; color: var(--fg-2); font-style: italic; font-family: var(--font-display); }

.review-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.review-row {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 16px;
  padding: 16px 20px; background: var(--paper); border: 1px solid var(--border-1);
  border-radius: 12px; align-items: center;
}
.review-row .k { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); }
.review-row .v { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--fg-1); }
.review-row .v.muted { color: var(--fg-2); font-style: italic; font-weight: 400; }
.review-row .edit { background: transparent; border: 0; color: var(--forest); cursor: pointer; font-size: 13px; font-family: var(--font-body); }

.what-next-card { margin-top: 8px; }
.what-next-card .icon-circle {
  width: 32px; height: 32px; border-radius: 999px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--forest); flex-shrink: 0;
}

.done-stage { text-align: center; padding: 48px 0 24px; }
.done-stage .leafmark {
  width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 999px;
  background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.done-stage .leafmark .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.done-stage h1 { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; color: var(--forest); margin: 0 0 16px; }
.done-stage h1 em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.done-stage .lead { max-width: 540px; margin: 0 auto 36px; }
.done-stage .receipt {
  max-width: 480px; margin: 0 auto 36px; padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 14px;
  display: flex; flex-direction: column; gap: 18px; text-align: left;
}
.done-stage .receipt .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.done-stage .receipt .v { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--fg-1); }
.done-stage .done-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.done-stage .done-foot { margin-top: 28px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--warm-gray); }

/* ============================================
   19 · Auth (Sign in / Create account)
   ============================================ */
.auth-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245,240,232,0.0) 0%, rgba(245,240,232,0.45) 50%, rgba(245,240,232,0.85) 100%),
    url('assets/wizard-bg.jpg') center center / cover no-repeat fixed, var(--cream);
  display: flex; flex-direction: column; padding: 32px 0px 0;
}
.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 16px; max-width: 1200px; width: 100%; margin: 0 auto;
}
.auth-top .brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: rgba(245,240,232,0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(45,80,22,0.10); box-shadow: 0 2px 10px rgba(45,80,22,0.06);
}
.auth-top .brand img { width: 24px; height: 24px; }
.auth-top .brand .name { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest); }
.auth-top .back-home {
  color: var(--fg-2); text-decoration: none; font-size: 14px;
  background: rgba(245,240,232,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(45,80,22,0.10);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.auth-top .back-home:hover { color: var(--forest); background: var(--cream); }
.auth-stage {
  display: flex; justify-content: center; align-items: flex-start;
  max-width: 1000px; width: 100%; margin: 24px auto 64px; padding: 0 16px;
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--paper);
  border: 1px solid var(--border-1); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-4);
}
.auth-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--forest-light); margin-bottom: 12px; }
.auth-h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4vw, 44px); line-height: 1.05;
  letter-spacing: -0.015em; color: var(--forest); margin: 0 0 12px;
}
.auth-h1 em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.auth-sub { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 0 24px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--cream); border: 1px solid var(--border-1);
  border-radius: 999px; padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--fg-2); padding: 10px 16px; border-radius: 999px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.auth-tab:hover { color: var(--forest); }
.auth-tab.active { background: var(--forest); color: var(--cream); box-shadow: var(--shadow-1); }
.auth-social {
  appearance: none; cursor: pointer; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); color: var(--fg-1);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 16px; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.auth-social:hover { background: var(--cream-soft); border-color: var(--forest); }
.auth-rule {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: var(--ls-label);
  margin: 20px 0;
}
.auth-rule::before, .auth-rule::after { content: ''; flex: 1; height: 1px; background: var(--border-1); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .field label { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.auth-forgot { font-size: 12px; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(45,80,22,0.35); }
.auth-forgot:hover { text-decoration-color: var(--forest); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  appearance: none; background: transparent; border: 0; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--fg-2);
}
.pw-toggle:hover { color: var(--forest); background: var(--cream); }
.pw-toggle .icon { width: 16px; height: 16px; }
.auth-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fg-2); cursor: pointer; padding: 4px 0; }
.auth-checkbox input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--forest); }
.auth-submit { margin-top: 8px; justify-content: center; width: 100%; }
.auth-submit:disabled { opacity: 0.7; cursor: progress; }
.auth-fineprint { font-size: 13px; color: var(--fg-2); text-align: center; margin-top: 6px; }
.auth-legal { font-size: 12px; color: var(--fg-3); text-align: center; line-height: 1.55; font-family: var(--font-display); font-style: italic; }
.auth-foot {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 200000px; width: 100%; margin: auto auto 0;
  padding: 16px 16px 24px; font-size: 12px; color: var(--fg-2);
}
.auth-foot .links { display: flex; gap: 8px; }
.auth-foot a { color: var(--fg-2); text-decoration: none; }
.auth-foot a:hover { color: var(--forest); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ============================================
   20 · App shell (Dashboard, Shortlist, etc.)
   ============================================ */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--cream); }
.app-side {
  background: var(--forest-deep); color: var(--cream);
  padding: 28px 18px 24px; display: flex; flex-direction: column;
  position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
}
.app-side-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--cream);
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; letter-spacing: -0.015em; padding: 4px 8px 28px;
}
.app-side-mark {
  display: inline-block; flex: none; width: 28px; height: 28px;
  background-color: var(--sage-mid);
  -webkit-mask: url('assets/logo-mark.png') center / contain no-repeat;
          mask: url('assets/logo-mark.png') center / contain no-repeat;
}
.app-side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-side-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(245,240,232,0.78); text-decoration: none;
  font-size: 15px; font-weight: 400; padding: 12px 12px; border-radius: 10px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.app-side-link .icon { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }
.app-side-link:hover { background: rgba(245,240,232,0.06); color: var(--cream); text-decoration: none; }
.app-side-link.active { background: var(--forest-mid); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(245,240,232,0.08); }
.app-side-rule { height: 1px; background: rgba(245,240,232,0.10); margin: 16px 4px; }
.app-side-callout {
  position: relative; margin-top: 16px; padding: 18px 18px 60px;
  border-radius: 14px; background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.08); overflow: hidden;
}
.app-side-callout p { font-size: 14px; line-height: 1.45; color: var(--cream); margin: 0; }
.app-side-callout em { display: block; margin-top: 2px; font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--sage-mid); }
.app-side-callout-mark {
  position: absolute; right: -14px; bottom: -18px;
  width: 96px; height: 96px; background-color: var(--forest-light); opacity: 0.55;
  -webkit-mask: url('assets/logo-mark.png') center / contain no-repeat;
          mask: url('assets/logo-mark.png') center / contain no-repeat;
  transform: rotate(-8deg);
}
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: 36px 48px 8px;
}
.app-topbar-titles { min-width: 0; }
.app-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05;
  letter-spacing: -0.018em; color: var(--charcoal); margin: 0;
}
.app-title em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.app-sub { margin: 8px 0 0; color: var(--fg-2); font-size: 15px; }
.app-topbar-meta { display: inline-flex; align-items: center; gap: 16px; margin-top: 8px; }
.app-roles-pill { font-size: 13px; color: var(--fg-2); text-decoration: none; }
.app-roles-pill:hover { color: var(--forest); }
.app-user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--charcoal);
  padding: 4px 6px; border-radius: 999px;
  transition: background var(--dur-fast);
}
.app-user-chip:hover { background: rgba(45,80,22,0.05); text-decoration: none; }
.app-user-chip .avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--forest-deep); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
}
.app-user-chip .name { font-weight: 500; font-size: 14px; }
.app-user-chip .icon { width: 16px; height: 16px; color: var(--fg-3); }
.app-content { padding: 24px 48px 64px; min-width: 0; }
.app-content > section { padding: 0; position: static; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 76px 1fr; }
  .app-side { padding: 20px 12px; }
  .app-side-brand span, .app-side-link span { display: none; }
  .app-side-foot { display: none; }
  .app-side-brand { justify-content: center; padding: 4px 0 20px; }
  .app-side-link  { justify-content: center; padding: 12px 6px; }
  .app-topbar     { padding: 28px 28px 8px; }
  .app-content    { padding: 16px 28px 48px; }
}

/* ============================================
   21 · Dashboard
   ============================================ */
section.role-banner {
  display: flex; align-items: center; gap: 40px;
  background: var(--sage-pale); border: 1px solid var(--sage);
  border-radius: 18px; padding: 28px 32px; margin-bottom: 24px;
}
.role-banner-icon {
  flex: none; width: 56px; height: 56px; border-radius: 999px;
  background: var(--sage); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.role-banner-icon .icon { width: 26px; height: 26px; stroke-width: 1.5; }
.role-banner-body { flex: 1; min-width: 0; }
.role-banner-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.1; color: var(--forest-deep); margin: 0; }
.role-banner-meta { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); }
.role-banner-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--fg-3); }
.role-banner-actions { display: inline-flex; align-items: center; gap: 10px; }
.role-banner-more {
  width: 38px; height: 38px; border-radius: 999px;
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center;
}
.role-banner-more:hover { background: rgba(45,80,22,0.06); color: var(--forest); }
.role-banner-more .icon { width: 18px; height: 18px; }

.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 24px;
}
.dash-grid > .top-match-card  { grid-column: 1; }
.dash-grid > .dash-side       { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 16px; }
.dash-grid > .shortlist-strip { grid-column: 1; }
.dash-grid > .kpi-row         { grid-column: 1 / span 2; }

@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid > .top-match-card, .dash-grid > .dash-side,
  .dash-grid > .shortlist-strip, .dash-grid > .kpi-row { grid-column: 1; }
  .dash-grid > .dash-side { grid-row: auto; flex-direction: row; flex-wrap: wrap; }
  .dash-grid > .dash-side > * { flex: 1 1 280px; }
}

.top-match-card { background: var(--sage-pale); border: 1px solid var(--sage); border-radius: 22px; padding: 28px 32px; position: relative; }
.top-match-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--forest-deep); color: var(--cream);
  padding: 5px 12px 5px 9px; border-radius: 999px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.top-match-badge .icon { width: 13px; height: 13px; color: var(--sage); }
.top-match-row { margin-top: 18px; display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: start; }
.top-match-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px,4.5vw,56px); line-height: 1; letter-spacing: -0.015em; color: var(--forest-deep); margin: 0; }
.top-match-score { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--forest); margin: 10px 0 18px; }
.top-match-score span { font-size: 18px; color: var(--fg-2); font-weight: 400; font-style: italic; margin-left: 4px; }
.top-match-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--forest-deep); background: var(--paper); border: 1px solid var(--sage);
  border-radius: 999px; padding: 6px 12px;
}
.check-chip .icon { width: 13px; height: 13px; color: var(--forest); stroke-width: 2; }
.top-match-blurb { margin: 18px 0 0; color: var(--fg-1); font-size: 15px; line-height: 1.55; max-width: 460px; }
.top-match-right { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.top-match-cta { display: flex; flex-direction: column; gap: 8px; }
.top-match-cta .btn { justify-content: center; padding: 12px 18px; font-size: 14px; }

.donut { position: relative; align-self: center; }
.donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); }
.donut-num { font-size: 30px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.donut-sub { font-size: 11px; color: var(--fg-2); margin-top: 4px; font-style: italic; }

.side-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--fg-1); display: block; }
.side-card:hover { text-decoration: none; box-shadow: var(--shadow-2); }
.side-card-icon, .side-card-iconlg {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--sage-pale); color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.side-card-icon .icon { width: 20px; height: 20px; }
.side-card-iconlg { width: 52px; height: 52px; }
.side-card-iconlg .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.side-card-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest-deep); margin: 0; line-height: 1.2; }
.side-card-sub { font-size: 13px; color: var(--fg-2); margin: 6px 0 0; line-height: 1.5; }
.post-card .side-card-cta { width: 100%; justify-content: center; margin-top: 16px; }
.linkrow { display: flex; align-items: flex-start; gap: 16px; }
.linkrow .side-card-icon { margin-bottom: 0; }
.linkrow-body { flex: 1; min-width: 0; }
.linkrow-stat { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.linkrow-stat .num { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.linkrow-stat .lbl { font-size: 13px; color: var(--fg-2); }
.linkrow-chev { width: 18px; height: 18px; color: var(--fg-3); align-self: center; margin-left: auto; }
.linkrow:hover .linkrow-chev { color: var(--forest); }

.shortlist-strip { position: relative; }
.shortlist-strip-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.strip-h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--forest-deep); margin: 0; }
.strip-link { font-size: 13px; color: var(--forest); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.strip-link .icon { width: 14px; height: 14px; }
.strip-link:hover { text-decoration: underline; }

.shortlist-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1380px) { .shortlist-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) { .shortlist-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .shortlist-cards { grid-template-columns: 1fr; } }

.cand-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 16px; padding: 18px; }
.cand-card-head { display: flex; align-items: center; gap: 12px; }
.cand-star { width: 38px; height: 38px; border-radius: 999px; background: var(--sage-pale); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cand-star .icon { width: 18px; height: 18px; }
.cand-name { font-size: 15px; font-weight: 600; color: var(--charcoal); line-height: 1.2; }
.cand-score { font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.cand-bookmark { appearance: none; border: 0; background: transparent; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-3); margin-left: auto; }
.cand-bookmark:hover { color: var(--forest); background: var(--sage-pale); }
.cand-bookmark .icon { width: 17px; height: 17px; }
.cand-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cand-chips .tag { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--sage-pale); color: var(--forest-deep); border: 1px solid var(--sage); }
.cand-note { font-size: 13px; color: var(--fg-2); margin: 12px 0 0; line-height: 1.5; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi-card { display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px; padding: 22px; }
.kpi-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sage-pale); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.kpi-icon .icon { width: 24px; height: 24px; stroke-width: 1.5; }
.kpi-num { font-family: var(--font-display); font-size: 38px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.kpi-label { font-size: 14px; color: var(--fg-1); margin-top: 4px; font-weight: 500; }
.kpi-sub { font-size: 12px; color: var(--fg-2); margin-top: 2px; }

/* ============================================
   22 · Shortlist
   ============================================ */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--sage-pale); border: 1px solid var(--sage);
  border-radius: 18px; padding: 20px 8px; margin-bottom: 22px;
}
@media (max-width: 900px) { .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.stat-cell { display: flex; align-items: center; gap: 14px; padding: 6px 20px; border-right: 1px solid rgba(45,80,22,0.10); }
.stat-cell:last-child { border-right: 0; }
.stat-cell-icon { width: 46px; height: 46px; border-radius: 999px; background: var(--sage); color: var(--forest-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.stat-cell-icon .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.stat-cell-num { font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1; color: var(--forest-deep); }
.stat-cell-label { font-size: 13px; color: var(--fg-2); margin-top: 4px; }

.applicants-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 22px; border-bottom: 1px solid var(--border-1); background: var(--paper);
}
.search-input { position: relative; flex: 1 1 280px; max-width: 340px; }
.search-input .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-3); }
.search-input input {
  width: 100%; background: var(--paper); border: 1px solid var(--border-1); border-radius: 10px;
  padding: 11px 14px 11px 38px; font-family: var(--font-body); font-size: 14px; color: var(--fg-1);
}
.search-input input:focus { outline: none; border-color: var(--forest); box-shadow: var(--shadow-focus); }
.select-chip { position: relative; background: var(--paper); border: 1px solid var(--border-1); border-radius: 10px; }
.select-chip select {
  appearance: none; background: transparent; border: 0;
  padding: 11px 38px 11px 16px; font-family: var(--font-body); font-size: 14px; color: var(--fg-1); cursor: pointer;
}
.select-chip select:focus { outline: none; }
.select-chip .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--fg-3); pointer-events: none; }
.export-btn { margin-left: auto; padding: 11px 16px; font-size: 14px; }
.export-btn .icon { width: 16px; height: 16px; }

.applicants-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px; overflow: hidden; }
.applicants-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.applicants-table thead th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--fg-2);
  padding: 16px 14px; border-bottom: 1px solid var(--border-1);
  background: var(--cream-soft); letter-spacing: 0.02em;
}
.applicants-table thead th:first-child { padding-left: 22px; }
.applicants-table thead th:last-child  { padding-right: 22px; }
.applicants-table thead th.th-sort > * { display: inline-flex; align-items: center; gap: 4px; }
.applicants-table thead th.th-sort { white-space: nowrap; }
.applicants-table thead th.th-sort .icon { width: 12px; height: 12px; color: var(--forest); }
.applicants-table tbody tr { transition: background var(--dur-fast); }
.applicants-table tbody tr:hover { background: var(--cream-soft); }
.applicants-table tbody td { padding: 16px 14px; border-bottom: 1px solid var(--border-1); color: var(--fg-1); vertical-align: middle; }
.applicants-table tbody tr:last-child td { border-bottom: 0; }
.applicants-table tbody td:first-child { padding-left: 22px; }
.applicants-table tbody td:last-child  { padding-right: 22px; }
.applicants-table .td-name { font-weight: 600; color: var(--charcoal); }
.applicants-table .td-muted { color: var(--fg-2); }
.applicants-table .td-strengths { color: var(--fg-1); max-width: 280px; line-height: 1.4; }

.rank-pill { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border-1); font-size: 12px; font-weight: 500; color: var(--fg-2); }
.td-score { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.td-score.tier-top  { color: var(--forest-deep); }
.td-score.tier-high { color: var(--forest-light); }
.td-score.tier-mid  { color: var(--warn); }
.td-score.tier-low  { color: var(--danger); }

.ringchart .ring-track { stroke: var(--sage-pale); }
.ringchart .ring-fill  { stroke: var(--forest); }
.ringchart.tier-top  .ring-fill  { stroke: var(--forest-deep); }
.ringchart.tier-high .ring-fill  { stroke: var(--forest-light); }
.ringchart.tier-mid  .ring-track { stroke: var(--warn-bg); }
.ringchart.tier-mid  .ring-fill  { stroke: var(--warn); }
.ringchart.tier-low  .ring-track { stroke: var(--danger-bg); }
.ringchart.tier-low  .ring-fill  { stroke: var(--danger); }

.cert-row { display: flex; flex-direction: column; gap: 4px; }
.cert-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-1); }
.cert-chip-dot { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 999px; }
.cert-chip.ok   .cert-chip-dot { color: var(--ok); }
.cert-chip.warn .cert-chip-dot { color: var(--warn); }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid transparent; }
.status-pill.shortlisted { background: var(--sage-pale); color: var(--forest-deep); border-color: var(--sage); }
.status-pill.review      { background: var(--warn-bg);   color: var(--warn);       border-color: rgba(176,122,31,0.20); }
.status-pill.not         { background: var(--cream);     color: var(--fg-2);       border-color: var(--border-1); }

/* Estimated drive-to-work badge on the applicants / shortlist tables. */
.drive-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--sage-pale); color: var(--forest-deep); border: 1px solid var(--sage); }
.drive-pill.over { background: var(--warn-bg); color: var(--warn); border-color: rgba(176,122,31,0.20); }

.td-chev { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; color: var(--fg-3); text-decoration: none; }
.td-chev:hover { color: var(--forest); background: var(--sage-pale); text-decoration: none; }
.td-chev .icon { width: 16px; height: 16px; }
.applicants-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--border-1); background: var(--cream-soft); }
.applicants-foot .t-muted { color: var(--fg-2); font-size: 13px; }
.pagination { display: inline-flex; align-items: center; gap: 4px; }
.pg-btn { appearance: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; background: var(--paper); border: 1px solid var(--border-1); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: all var(--dur-fast); }
.pg-btn:hover:not(:disabled) { color: var(--forest); border-color: var(--forest); }
.pg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pg-btn.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pg-btn .icon { width: 14px; height: 14px; }
.pg-ellipsis { color: var(--fg-3); padding: 0 4px; font-size: 13px; }

@media (max-width: 1100px) { .applicants-table thead th:nth-child(5), .applicants-table tbody td:nth-child(5) { display: none; } }
@media (max-width: 860px)  { .applicants-table thead th:nth-child(4), .applicants-table tbody td:nth-child(4), .applicants-table thead th:nth-child(6), .applicants-table tbody td:nth-child(6) { display: none; } }

/* ============================================
   23 · Applicant detail
   ============================================ */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--forest); text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; }

.ap-header { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 16px 0 24px; border-bottom: 1px solid var(--border-1); margin-bottom: 24px; }
.ap-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px,6vw,80px); line-height: 1; letter-spacing: -0.02em; color: var(--charcoal); margin: 0; }
.ap-id-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.ap-role { font-size: 18px; color: var(--fg-1); font-weight: 500; }
.ap-applied { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-2); }
.ap-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--fg-3); }
.ap-header-right { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 16px; row-gap: 12px; justify-items: end; }
.ap-header-right .ap-ring { grid-row: 1 / span 2; }
.ap-status { font-size: 13px; padding: 8px 14px; }
.ap-actions { grid-column: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ap-actions .btn { padding: 11px 18px; font-size: 14px; }
.ap-icon-btn { appearance: none; cursor: pointer; width: 38px; height: 38px; border-radius: 999px; background: transparent; border: 0; color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; }
.ap-icon-btn:hover { background: rgba(45,80,22,0.06); color: var(--forest); }
.ap-icon-btn .icon { width: 18px; height: 18px; }

.ap-ring { position: relative; }
.ap-ring .ring-track { stroke: var(--sage-pale); }
.ap-ring .ring-fill  { stroke: var(--forest); }
.ap-ring.tier-top  .ring-fill  { stroke: var(--forest-deep); }
.ap-ring.tier-high .ring-fill  { stroke: var(--forest-light); }
.ap-ring.tier-mid  .ring-track { stroke: var(--warn-bg); }
.ap-ring.tier-mid  .ring-fill  { stroke: var(--warn); }
.ap-ring.tier-low  .ring-track { stroke: var(--danger-bg); }
.ap-ring.tier-low  .ring-fill  { stroke: var(--danger); }
.ap-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); pointer-events: none; }
.ap-ring-num { font-size: 22px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.ap-ring-sub { font-size: 10px; color: var(--fg-2); font-style: italic; margin-top: 3px; }

.ap-glance { margin-bottom: 28px; }
.ap-tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-pale); color: var(--forest-deep); border: 1px solid var(--sage); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.ap-tag .icon { width: 14px; height: 14px; color: var(--forest); stroke-width: 1.6; }
.ap-summary { margin: 18px 0 0; font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--charcoal); }

.ap-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 20px; align-items: start; }
@media (max-width: 1180px) { .ap-grid { grid-template-columns: 1fr; } }
.ap-col-main, .ap-col-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ap-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px; padding: 24px 26px; }
.ap-h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; color: var(--charcoal); margin: 0 0 16px; }

.qual-list { display: flex; flex-direction: column; }
.qual-row { display: grid; grid-template-columns: 44px minmax(140px,1.1fr) 110px minmax(140px,1.2fr) minmax(180px,1.3fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-1); align-items: center; }
.qual-row:first-child { border-top: 0; padding-top: 4px; }
.qual-icon { width: 38px; height: 38px; border-radius: 999px; background: var(--sage-pale); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; }
.qual-icon .icon { width: 18px; height: 18px; stroke-width: 1.7; }
.qual-name { font-weight: 600; font-size: 14px; color: var(--charcoal); line-height: 1.25; }
.qual-priority { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); margin-top: 4px; }
.qual-score { display: inline-flex; align-items: center; gap: 8px; }
.qual-score-text { font-size: 12px; color: var(--fg-2); }
.qual-reason { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.qual-evidence { background: var(--sage-pale); border-left: 2px solid var(--sage); padding: 10px 12px; border-radius: 6px; }
.qual-evidence-text { font-style: italic; font-size: 12.5px; line-height: 1.45; color: var(--forest-deep); }

.dot-score { display: inline-flex; gap: 4px; }
.dot-score .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--stone); }
.dot-score .dot.on { background: var(--forest-deep); }

.ap-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
@media (max-width: 720px) { .ap-answers { grid-template-columns: 1fr; } }
.ap-answer-q { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); margin-bottom: 6px; }
.ap-answer-a { font-size: 14px; line-height: 1.55; color: var(--charcoal); margin: 0; }

.ap-notes { width: 100%; min-height: 110px; resize: vertical; background: var(--cream); border: 1px solid var(--border-1); border-radius: 12px; padding: 14px 16px; font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--fg-1); }
.ap-notes:focus { outline: none; border-color: var(--forest); box-shadow: var(--shadow-focus); }
.ap-notes::placeholder { color: var(--fg-3); }
.ap-notes-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.ap-notes-hint { font-size: 12px; color: var(--fg-3); font-style: italic; font-family: var(--font-display); }

.ap-card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.ap-split-pane { padding: 24px 26px; }
.ap-split-divider { border-left: 1px solid var(--border-1); }
.ap-prosons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ap-prosons li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--fg-1); }
.prosons-icon { flex: none; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.prosons-icon.ok { border-radius: 999px; background: var(--sage-pale); color: var(--forest); }
.prosons-icon.dash { color: var(--fg-3); font-weight: 600; }

.ap-cv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ap-cv-name { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--charcoal); line-height: 1.1; }
.ap-cv-title { font-size: 14px; color: var(--fg-2); margin-top: 2px; }
.ap-cv-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--fg-2); padding: 10px 0 16px; border-bottom: 1px solid var(--border-1); }
.ap-cv-contact span { display: inline-flex; align-items: center; gap: 8px; }
.ap-cv-contact .icon { width: 14px; height: 14px; color: var(--forest-light); }
.ap-cv-section { margin-top: 18px; }
.ap-cv-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fg-2); margin-bottom: 10px; }
.ap-cv-body { font-size: 14px; line-height: 1.55; color: var(--fg-1); margin: 0; }
.ap-cv-job { margin-bottom: 14px; }
.ap-cv-job:last-child { margin-bottom: 0; }
.ap-cv-job-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--charcoal); margin-bottom: 6px; flex-wrap: wrap; }
.ap-cv-place { color: var(--fg-2); font-weight: 400; }
.ap-cv-dates { font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.ap-cv-bullets { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.ap-cv-bullets li { font-size: 13.5px; line-height: 1.5; color: var(--fg-1); padding-left: 14px; position: relative; }
.ap-cv-bullets li::before { content: ''; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 999px; background: var(--forest-light); }

.ap-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px 0 0; margin-top: 24px; border-top: 1px solid var(--border-1); }
.ap-foot-nav { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--forest); font-size: 14px; padding: 12px 16px; border-radius: 12px; }
.ap-foot-nav:hover { background: var(--sage-pale); text-decoration: none; }
.ap-foot-nav.prev { justify-self: start; }
.ap-foot-nav.next { justify-self: end; }
.ap-foot-nav .lbl { color: var(--forest); }
.ap-foot-nav .who { display: inline-flex; flex-direction: column; text-align: left; font-size: 13px; }
.ap-foot-nav.next .who { text-align: right; }
.ap-foot-nav .who strong { color: var(--charcoal); font-weight: 600; }
.ap-foot-nav .who em { color: var(--fg-2); font-style: italic; font-family: var(--font-display); font-size: 12px; }
.ap-foot-counter { font-size: 13px; color: var(--fg-2); text-align: center; }
.ap-foot-nav .icon { width: 16px; height: 16px; }

@media (max-width: 860px) { .ap-header { grid-template-columns: 1fr; } .ap-header-right { justify-items: start; } }
@media (max-width: 560px) { .ap-card-split { grid-template-columns: 1fr; } .ap-split-divider { border-left: 0; border-top: 1px solid var(--border-1); } }
@media (max-width: 980px) { .qual-row { grid-template-columns: 44px 1fr; row-gap: 8px; } }

/* ============================================
   24 · Roles page
   ============================================ */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .roles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .roles-grid { grid-template-columns: 1fr; } }

.role-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.role-card:hover { box-shadow: var(--shadow-2); border-color: var(--border-2); }
.role-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.role-card-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--forest-deep); margin: 0; line-height: 1.2; }
.role-card-meta { font-size: 13px; color: var(--fg-2); display: flex; gap: 12px; flex-wrap: wrap; }
.role-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.role-card-meta .icon { width: 13px; height: 13px; }
.role-card-stat { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border-1); }
.role-card-stat .s { display: flex; flex-direction: column; }
.role-card-stat .s-num { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.role-card-stat .s-label { font-size: 12px; color: var(--fg-2); margin-top: 2px; }
.role-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.role-action-error { flex-basis: 100%; font-size: 12px; color: #C0392B; }

.role-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid transparent; }
.role-status-pill.active  { background: var(--sage-pale); color: var(--forest-deep); border-color: var(--sage); }
.role-status-pill.closed  { background: var(--cream); color: var(--fg-2); border-color: var(--border-1); }
.role-status-pill.draft   { background: var(--warn-bg); color: var(--warn); border-color: rgba(176,122,31,0.20); }
.role-status-dot { width: 5px; height: 5px; border-radius: 999px; background: currentColor; }

/* ============================================
   25 · Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero-grid, .pricing, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-table { display: none; }
  .container, .container-narrow, .container-wide { padding: 0 24px; }
  section { padding: 72px 0; }
  .hiw-header { grid-template-columns: 1fr; gap: 16px; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .wizard-role-grid, .wizard-pay-grid { grid-template-columns: 1fr; }
  .field-2col { grid-template-columns: 1fr; }
}

/* ============================================
   26 · Wizard card shell + labeled field helpers
   ============================================ */
.wizard-wrap { max-width: 720px; margin: 0 auto; width: 100%; }
.wizard-card {
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-2);
}
.wizard-card-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 4vw, 38px); color: var(--forest); margin: 0 0 8px; }
.wizard-card-sub { font-size: 16px; color: var(--fg-2); margin: 0 0 28px; }
.wizard-fields { display: flex; flex-direction: column; gap: 20px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--fg-1); letter-spacing: 0.01em; }
.field-input {
  font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  border: 1.5px solid var(--border-1); border-radius: 10px;
  background: var(--paper); color: var(--fg-1); padding: 12px 14px; outline: none; width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field-input:focus { border-color: var(--forest); box-shadow: var(--shadow-focus); }
.field-textarea { min-height: 110px; resize: vertical; }
.role-template-name { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--forest-deep); }
.role-template-btn.selected .role-template-name { color: var(--forest); }

/* ============================================
   26b · Wizard progress pips (labeled)
   ============================================ */
.wizard-track { display: flex; gap: 8px; max-width: 720px; margin: 24px auto 36px; width: 100%; padding: 0 16px; }
.wizard-track-inner { display: flex; align-items: center; width: 100%; gap: 0; }
.wizard-pip { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; position: relative; }
.wizard-pip-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--stone);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.wizard-pip.active .wizard-pip-dot { background: var(--forest); border-color: var(--forest); }
.wizard-pip.done .wizard-pip-dot { background: var(--sage); border-color: var(--sage); }
.wizard-pip-label { font-size: 11px; color: var(--fg-2); white-space: nowrap; }
.wizard-pip.active .wizard-pip-label { color: var(--forest); font-weight: 500; }
.wizard-pip-line { flex: 1; height: 2px; background: var(--stone); margin: 0 4px; margin-bottom: 24px; }

/* ============================================
   27 · Wizard chip toggles
   ============================================ */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  appearance: none; background: var(--cream); border: 1.5px solid var(--border-1);
  border-radius: 999px; padding: 8px 16px; font-family: var(--font-body); font-size: 13px;
  font-weight: 500; color: var(--fg-2); cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip-toggle:hover { border-color: var(--forest); color: var(--forest); }
.chip-toggle.selected { background: var(--sage-pale); border-color: var(--forest); color: var(--forest-deep); }
.custom-cert-add-row { display: flex; gap: 8px; }
.custom-cert-add-row .field-input { flex: 1; }
.custom-cert-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 0; }

/* ============================================
   28 · Wizard review step
   ============================================ */
.review-block { background: var(--cream); border: 1px solid var(--border-1); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.review-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-1); }
.review-row:last-child { border-bottom: 0; }
.review-label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); min-width: 140px; flex: none; }
.review-val { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--fg-1); }
.review-fern-note { display: flex; align-items: flex-start; gap: 12px; background: var(--sage-pale); border: 1px solid var(--sage); border-radius: 14px; padding: 16px 18px; margin-bottom: 24px; font-size: 14px; color: var(--forest-deep); line-height: 1.5; }
.review-fern-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ============================================
   29 · Wizard pay step extras
   ============================================ */
.plan-btn-name { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; }
.plan-btn-price { font-family: var(--font-display); font-size: 36px; font-weight: 500; color: var(--forest); letter-spacing: -0.01em; margin-top: 8px; line-height: 1; }
.plan-btn-desc { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.4; }
.order-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--border-1); margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.order-total-price { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--forest); }
.pay-trust-note { font-size: 12px; color: var(--fg-3); text-align: center; margin-top: 16px; }

/* ============================================
   30 · Wizard done step
   ============================================ */
.done-stage { text-align: center; padding: 48px 0 24px; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-pale); border: 1px solid var(--sage); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: var(--forest); }
.done-icon .icon { width: 28px; height: 28px; }
.done-title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 52px); font-weight: 500; color: var(--forest); margin: 0 0 12px; }
.done-sub { font-size: 16px; color: var(--fg-2); line-height: 1.55; max-width: 480px; margin: 0 auto 32px; }
.done-details { background: var(--cream); border: 1px solid var(--border-1); border-radius: 14px; overflow: hidden; max-width: 480px; margin: 0 auto 32px; text-align: left; }
.done-detail-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-1); }
.done-detail-row:last-child { border-bottom: 0; }
.done-detail-label { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); min-width: 140px; flex: none; }
.done-detail-val { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--fg-1); }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   31 · (reserved)
   ============================================ */

/* ============================================
   32 · Roles page extras
   ============================================ */
.roles-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.roles-tab {
  appearance: none; background: transparent; border: 1.5px solid var(--border-1);
  border-radius: 999px; padding: 8px 16px; font-family: var(--font-body);
  font-size: 13px; font-weight: 500; color: var(--fg-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.roles-tab:hover { border-color: var(--forest); color: var(--forest); }
.roles-tab.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.roles-tab-count {
  background: rgba(255,255,255,0.2); color: inherit;
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
}
.roles-tab:not(.active) .roles-tab-count { background: var(--stone); color: var(--fg-2); }
.role-card-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--sage-pale);
  border: 1px solid var(--sage); display: flex; align-items: center; justify-content: center;
  flex: none; color: var(--forest);
}
.role-card-icon .icon { width: 20px; height: 20px; }
.role-card-info { flex: 1; min-width: 0; }
.role-card-stats { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border-1); }
.role-stat { display: flex; flex-direction: column; }
.role-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--forest-deep); line-height: 1; }
.role-stat-lbl { font-size: 12px; color: var(--fg-2); margin-top: 2px; }
.role-card-closed { opacity: 0.75; }
.role-card-closed:hover { opacity: 1; }
.role-card-saved { border-style: dashed; }
.role-card-reviewing { border-color: var(--warn); }
.role-card-reviewing-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--forest-deep); background: var(--sage-pale); border-radius: 10px; padding: 10px 14px; }
.role-card-reviewing-note .icon { width: 16px; height: 16px; flex: none; }
.role-card-more { padding: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.role-card-new {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest-mid) 100%);
  color: var(--cream); border-color: transparent;
}
.role-card-new:hover { box-shadow: var(--shadow-3); border-color: transparent; }
.role-card-new-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.role-card-new-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(200,217,176,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--sage); margin-bottom: 4px;
}
.role-card-new-icon .icon { width: 22px; height: 22px; }
.role-card-new-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--cream); margin: 0; }
.role-card-new-sub { font-size: 14px; color: rgba(200,217,176,0.8); margin: 0; }
.status-active { background: var(--sage-pale); color: var(--forest-deep); border-color: var(--sage); }
.status-closed { background: var(--cream); color: var(--fg-2); border-color: var(--border-1); }
.status-saved { background: var(--warn-bg, #FEF3C7); color: var(--warn, #B07A1F); border-color: rgba(176,122,31,0.20); }
.status-reviewing { background: var(--cream); color: var(--forest-mid); border-color: var(--sage); }

/* ============================================
   33 · Applicant detail page
   ============================================ */
.applicant-nav-strip {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding: 12px 0;
}
.appl-nav-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: var(--fg-2); text-decoration: none; padding: 8px 14px; border-radius: 10px;
  border: 1.5px solid var(--border-1); background: var(--paper);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.appl-nav-btn:hover { color: var(--forest); border-color: var(--forest); }
.appl-nav-btn .icon { width: 14px; height: 14px; }
.appl-nav-pos { font-size: 13px; color: var(--fg-2); }
.applicant-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .applicant-grid { grid-template-columns: 1fr; } }
.applicant-left, .applicant-right { display: flex; flex-direction: column; gap: 16px; }
.profile-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px; padding: 28px; }
.profile-card-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.profile-avatar-wrap { position: relative; flex: none; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--forest-mid); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
}
.profile-tier-badge {
  position: absolute; bottom: -4px; right: -4px;
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--cream);
}
.profile-tier-badge .icon { width: 12px; height: 12px; }
.profile-intro { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--forest-deep); margin: 0 0 4px; }
.profile-role { font-size: 14px; color: var(--fg-2); margin-bottom: 10px; }
.profile-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--fg-2); }
.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-meta .icon { width: 13px; height: 13px; }
.profile-score-ring { position: relative; flex: none; }
.profile-score-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.profile-score-num { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--forest); line-height: 1; }
.profile-score-sub { font-size: 11px; color: var(--fg-2); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--border-1); margin-bottom: 16px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px; padding: 24px; }
.summary-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--forest-deep); }
.summary-card-head .icon { width: 18px; height: 18px; color: var(--forest-light); }
.proscons-card {
  background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px;
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 700px) { .proscons-card { grid-template-columns: 1fr; } }
.proscons-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.proscons-col.pros .proscons-head { color: var(--forest); }
.proscons-col.cons .proscons-head { color: var(--fg-2); }
.proscons-head .icon { width: 14px; height: 14px; }
.proscons-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proscons-list li { font-size: 14px; color: var(--fg-1); line-height: 1.4; padding-left: 0; }
.score-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px; padding: 24px; }
.score-card-title { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest-deep); margin: 0 0 16px; }
.score-rows { display: flex; flex-direction: column; gap: 12px; }
.score-row { display: flex; align-items: center; gap: 12px; }
.score-row-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-1); flex: 1; min-width: 0; }
.score-row-label .icon { width: 15px; height: 15px; color: var(--forest-light); flex: none; }
.score-dots { display: flex; gap: 4px; }
.score-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stone); }
.score-dot.filled { background: var(--forest); }
.score-row-val { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--fg-2); min-width: 28px; text-align: right; }
.score-total { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border-1); font-size: 14px; font-weight: 500; color: var(--fg-2); }
.score-total-num { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.score-total-num.tier-top { color: var(--forest); }
.cv-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px; padding: 24px; }
.cv-card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest-deep); margin: 0 0 20px; }
.cv-card-title .icon { width: 18px; height: 18px; color: var(--forest-light); }
.cv-entries { display: flex; flex-direction: column; gap: 0; }
.cv-entry { display: flex; gap: 16px; padding-bottom: 20px; position: relative; }
.cv-entry:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--border-1); }
.cv-entry-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--sage); border: 2px solid var(--forest-light); flex: none; margin-top: 4px; }
.cv-entry-body { flex: 1; }
.cv-entry-role { font-weight: 600; font-size: 15px; color: var(--fg-1); margin-bottom: 2px; }
.cv-entry-place { font-size: 14px; color: var(--forest-mid); margin-bottom: 2px; }
.cv-entry-dates { font-size: 12px; color: var(--fg-2); margin-bottom: 8px; }
.cv-entry-desc { font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.docs-card { background: var(--paper); border: 1px solid var(--border-1); border-radius: 20px; padding: 24px; }
.docs-card-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--forest-deep); margin: 0 0 16px; }
.docs-card-title .icon { width: 18px; height: 18px; color: var(--forest-light); }
.docs-list { display: flex; flex-direction: column; gap: 0; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-1); }
.doc-row:last-child { border-bottom: 0; }
.doc-row > .icon { width: 20px; height: 20px; color: var(--forest-light); flex: none; }
.doc-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-row-name { font-size: 14px; font-weight: 500; color: var(--fg-1); }
.doc-row-meta { font-size: 12px; color: var(--fg-2); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* ============================================
   34 · Cert chip cells (wizard step 3)
   ============================================ */
.cert-chip-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.cert-chip-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  position: relative;
}

.cert-chip-toggle {
  appearance: none; border: 1.5px solid var(--border-1);
  border-radius: 999px; padding: 8px 16px;
  background: var(--paper); color: var(--fg-2);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.cert-chip-toggle:hover { border-color: var(--forest); color: var(--forest); }
.cert-chip-toggle.selected {
  background: var(--forest); border-color: var(--forest); color: var(--cream);
}

.cert-chip-remove {
  appearance: none; border: 0; background: transparent;
  color: var(--fg-3); font-size: 16px; cursor: pointer;
  position: absolute; top: 2px; right: -4px;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color var(--dur-fast);
}
.cert-chip-remove:hover { color: var(--fg-1); }

.cert-weight {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 14px; margin-top: 6px;
  background: var(--cream); border: 1px solid var(--border-1);
  border-radius: 14px; min-width: 180px;
}

.cert-weight-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--warm-gray);
}

.cert-weight-row { display: flex; gap: 4px; }

.cert-weight-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--stone); background: var(--stone);
  color: var(--warm-gray); font-size: 12px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.cert-weight-dot:hover { border-color: var(--forest-light); color: var(--forest); background: var(--sage-pale); }
.cert-weight-dot.on { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.cert-weight-caption {
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; color: var(--forest);
}

.cert-hint { font-size: 12px; color: var(--fg-3); font-family: var(--font-display); font-style: italic; margin-top: 10px; }


/* ===== Page loader ===== */
#fern-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity .4s ease;
}
#fern-loader.hide {
  opacity: 0;
  pointer-events: none;
}
.fern-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--sage-pale);
  border-top-color: var(--forest);
  animation: fern-spin .8s linear infinite;
}
@keyframes fern-spin {
  to { transform: rotate(360deg); }
}
.fern-loader-text {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 18px;
  letter-spacing: .01em;
}


/* ===== Clerk sign-in widget ===== */
#clerk-auth {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
#clerk-auth .cl-rootBox {
  width: 100%;
  display: flex;
  justify-content: center;
}
#clerk-auth .cl-cardBox,
#clerk-auth .cl-card {
  width: 100% !important;
  max-width: 380px;
  margin: 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

#clerk-auth .cl-badge {
  display: none !important;
}


/* ============================================
   27 · Mobile — drawer nav + phone refinements
   (append to the very end of styles.css)
   ============================================ */

/* Hamburger button — injected by mobile-nav.js, hidden until mobile */
.app-hamburger {
  display: none;
  width: 42px; height: 42px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-1); border-radius: 12px;
  background: var(--paper); color: var(--forest); cursor: pointer;
}

/* Backdrop behind the open drawer */
.app-nav-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20, 30, 12, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}

@media (max-width: 768px) {
  /* Sidebar becomes an off-canvas drawer */
  .app-shell { grid-template-columns: 1fr; }

  .app-side {
    position: fixed; top: 0; left: 0; z-index: 90;
    width: 264px; max-width: 82vw; height: 100vh; max-height: 100vh;
    padding: 24px 18px;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  .app-shell.nav-open .app-side { transform: translateX(0); }
  .app-shell.nav-open .app-nav-backdrop { opacity: 1; pointer-events: auto; }

  /* Restore full labels inside the drawer (override the 1100px icon-rail rules) */
  .app-side-brand span,
  .app-side-link span { display: block !important; }
  .app-side-foot { display: flex !important; }
  .app-side-brand { justify-content: flex-start; padding: 4px 8px 24px; }
  .app-side-link  { justify-content: flex-start; padding: 12px 12px; }

  /* Topbar: show hamburger, tighten spacing */
  .app-hamburger { display: inline-flex; }
  .app-topbar {
    padding: 16px 20px 4px; gap: 12px;
    align-items: center; flex-wrap: wrap;
  }
  .app-title { font-size: 26px; }
  .app-sub { font-size: 14px; }
  .app-topbar-meta { gap: 10px; margin-top: 0; }
  .app-user-chip .name { display: none; } /* avatar only on phone */
  .app-content { padding: 16px 20px 56px; }

  /* Dashboard: stack the main grid + banner */
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  section.role-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .role-banner-actions { width: 100%; flex-wrap: wrap; }
  .top-match-row { grid-template-columns: 1fr; gap: 20px; }
  .top-match-card { padding: 22px; }
  .wizard-role-grid { grid-template-columns: repeat(2, 1fr); }
  .role-template-btn { min-width: 0; padding: 16px; }
}

/* Phone: trim the applicants table to name + score + star + open arrow.
   (columns 4/5/6 are already hidden by the earlier 860px / 1100px rules) */
@media (max-width: 640px) {
  .applicants-table thead th:nth-child(1),
  .applicants-table tbody td:nth-child(1),
  .applicants-table thead th:nth-child(7),
  .applicants-table tbody td:nth-child(7) { display: none; }

  .applicants-head { flex-wrap: wrap; }
  .applicants-head .search-input { flex: 1 1 100%; }
  .applicants-head .select-chip { flex: 1 1 auto; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }

  /* Applicant profile: let action buttons wrap */
  .profile-actions { flex-wrap: wrap; }
  .profile-actions .btn { flex: 1 1 auto; }
}

/* Phone: wizard + auth padding, stack inline grids */
@media (max-width: 560px) {
  .wizard-top { padding: 16px 20px; }
  .wizard-stage { padding: 0 20px 40px; }
  .auth-card { padding: 28px 22px; }
  .auth-top { padding: 16px 20px; }

  /* inline-styled grids inside the post-a-role wizard */
  #wizard-step-details div[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  #wizard-step-pay div[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .wizard-role-grid { grid-template-columns: 1fr; }
}

/* ── Sidebar footer: app form link + roles + account ── */
.app-side-foot { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.side-copy-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer; border: none;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--forest-deep); background: var(--sage-mid);
  transition: background var(--dur-fast), opacity var(--dur-fast);
}
.side-copy-btn:hover { background: var(--sage); }
.side-copy-btn:disabled { opacity: 0.45; cursor: default; }
.side-copy-btn.copied { background: var(--cream); }
.side-copy-btn .icon { width: 17px; height: 17px; flex: none; }
.side-copy-label { flex: 1; }

.side-roles-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  color: rgba(245,240,232,0.78); font-size: 14px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.side-roles-pill:hover { background: rgba(245,240,232,0.06); color: var(--cream); text-decoration: none; }
.side-roles-pill .icon { width: 17px; height: 17px; flex: none; }

/* When the roles pill is a <button> (dashboard job switcher), strip the
   browser's default button chrome so it matches the <a> version and doesn't
   flash white before hover. */
button.side-roles-pill {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}
button.side-roles-pill[data-count="1"] { cursor: default; }

/* Job switcher dropdown panel (dashboard) */
.job-switcher-wrap { position: relative; }
.job-switcher-panel {
  position: absolute; bottom: calc(100% + 6px); left: 0; right: 0;
  background: #192a0f; border: 1px solid rgba(245,240,232,0.12);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  z-index: 100;
}
.job-switcher-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 11px 14px;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: rgba(245,240,232,0.78);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.job-switcher-item + .job-switcher-item { border-top: 1px solid rgba(245,240,232,0.07); }
.job-switcher-item:hover { background: rgba(245,240,232,0.06); color: var(--cream); }
.job-switcher-item.current { color: var(--cream); }
.job-switcher-name { flex: 1; }
.job-switcher-tick { width: 14px; height: 14px; flex: none; color: rgba(245,240,232,0.5); }

.side-account {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--cream);
  border: 1px solid rgba(245,240,232,0.10); transition: background var(--dur-fast);
}
.side-account:hover { background: rgba(245,240,232,0.06); text-decoration: none; }
.side-avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  background: var(--sage-mid); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.side-account-name { flex: 1; font-weight: 500; font-size: 14px; }
.side-account .icon { width: 16px; height: 16px; color: rgba(245,240,232,0.5); flex: none; }


/* ── Qualifications step: two weighted sections ── */
.qual-section { margin-top: 30px; }
.qual-section:first-of-type { margin-top: 6px; }
.qual-section-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--forest-deep); letter-spacing: -0.01em; margin: 0 0 4px; }
.qual-section-sub { font-size: 14px; color: var(--fg-2); line-height: 1.5; margin: 0 0 16px; }

/* Subtle divider between required qualifications and optional nice-to-haves */
.qual-divider { display: flex; align-items: center; gap: 14px; margin: 36px 0 6px; }
.qual-divider::before, .qual-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-1); }
.qual-divider span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; white-space: nowrap; }

/* Large, prominent job-title input on the first wizard step */
.field input.wizard-title-input { font-family: var(--font-display); font-size: 26px; line-height: 1.3; padding: 18px 20px; }
.field input.wizard-title-input::placeholder { font-size: 22px; color: var(--fg-2); opacity: 0.6; }


.fern-analysis { margin-top: 20px; }

.fern-analysis-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(45, 80, 22, 0.12);
}
.fern-analysis-section:last-child { border-bottom: none; }

.fern-analysis-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: #2D5016;
  margin: 0 0 8px;
}

.fern-analysis-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fern-analysis-list li {
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.5;
}

.fern-analysis-body p {
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.6;
  margin: 0 0 6px;
}

.fern-analysis-pending {
  font-size: 14px;
  color: #888;
  font-style: italic;
}


.fern-analysis-list { margin: 0; padding-left: 20px; list-style: disc; }
.fern-analysis-list li {
  font-size: 14px; line-height: 1.5; color: #1A1A1A; margin-bottom: 14px;
}
.fern-li-main { display: block; }
.fern-sub {
  display: block; font-size: 13px; line-height: 1.45;
  color: #555; margin-top: 4px;
}
.fern-para { font-size: 14px; line-height: 1.55; color: #1A1A1A; margin: 0 0 10px; }

/* ============================================
   33 · Locked applicant state (paywall)
   ============================================ */
section.unlock-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--sage-pale); border: 1px solid var(--sage);
  border-radius: 18px; padding: 28px 32px; margin-bottom: 24px;
}
/* The dashboard toggles this static banner via the [hidden] attribute; the
   display:flex above outranks the browser's default [hidden] rule, so hiding
   needs an explicit, higher-specificity rule or the banner never clears. */
section.unlock-banner[hidden] { display: none; }
.unlock-banner-icon {
  width: 56px; height: 56px; border-radius: 999px; flex: none;
  background: var(--cream); border: 1px solid var(--sage);
  display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.unlock-banner-icon .icon { width: 26px; height: 26px; }
.unlock-banner-body { flex: 1; min-width: 200px; }
.unlock-banner-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--forest-deep); margin: 0; line-height: 1.2; }
.unlock-banner-sub { font-size: 14px; color: var(--fg-1); margin: 6px 0 0; line-height: 1.5; }
.unlock-banner .btn { flex: none; }

/* Locked contact row on the top-match card */
.locked-contact {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--stone); color: var(--fg-2);
  font-size: 13px; font-weight: 500;
}
.locked-contact .icon { width: 14px; height: 14px; }

/* Locked (disabled) action button, e.g. the CV button */
.btn.is-locked {
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn.is-locked .icon { width: 15px; height: 15px; }

/* ============================================
   30 · How It Works — detailed explainer page
   ============================================ */

/* Page hero */
.hiw-page-hero {
  padding: 128px 0 104px;
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hiw-page-hero .frond {
  position: absolute; right: -140px; bottom: -200px; width: 620px;
  opacity: 0.06; pointer-events: none; filter: brightness(0) invert(1);
}
.hiw-page-hero .container { position: relative; z-index: 1; }
.hiw-page-hero .eyebrow { color: var(--sage-mid); }
.hiw-page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 6vw, 76px); line-height: 1.0;
  letter-spacing: -0.02em; color: var(--cream); text-wrap: balance;
  margin: 20px 0 0; max-width: 900px;
}
.hiw-page-hero h1 em { font-style: italic; font-weight: 400; color: var(--sage); }
.hiw-page-hero .lead {
  color: rgba(245,240,232,0.78); margin-top: 26px; max-width: 620px;
}
.hiw-page-hero .hero-actions {
  margin-top: 40px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

/* Numbered step section */
.hiw-detail { padding: 96px 0; }
.hiw-detail.cream { background: var(--cream); }
.hiw-detail.paper { background: var(--paper); }
.hiw-step-block {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  gap: 56px; align-items: start; max-width: 1040px; margin: 0 auto;
}
.hiw-step-marker { position: relative; }
.hiw-step-marker .num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(96px, 12vw, 148px); line-height: 0.82;
  color: var(--forest-light); letter-spacing: -0.03em; display: block;
}
.hiw-step-marker .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
}
.hiw-step-marker .kicker::before {
  content: ''; width: 18px; height: 1px; background: var(--forest-light);
}
.hiw-step-body { padding-top: 8px; }
.hiw-step-body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--fg-1); text-wrap: balance; margin: 0;
}
.hiw-step-body h2 em { font-style: italic; font-weight: 400; color: var(--forest-light); }
.hiw-step-body p {
  font-size: 18px; line-height: 1.7; color: var(--fg-2);
  margin: 22px 0 0; max-width: 620px; text-wrap: pretty;
}
.hiw-step-body p strong { color: var(--fg-1); font-weight: 600; }

/* Emphasis callout (used inside a step, e.g. AI fairness) */
.hiw-callout {
  margin-top: 28px; max-width: 620px;
  background: var(--sage-pale); border: 1px solid var(--sage);
  border-radius: var(--r-lg); padding: 24px 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.hiw-callout .callout-icon {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  background: var(--paper); border: 1px solid var(--sage);
  display: flex; align-items: center; justify-content: center; color: var(--forest);
}
.hiw-callout .callout-icon .icon { width: 20px; height: 20px; }
.hiw-callout p {
  margin: 0; font-size: 16px; line-height: 1.6; color: var(--forest-deep);
  font-family: var(--font-body);
}
.hiw-callout p strong { color: var(--forest-deep); }

/* Pricing highlight (step 7) */
.hiw-price-note {
  margin-top: 26px; max-width: 620px;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hiw-price-note .chip-fact {
  flex: 1; min-width: 200px;
  background: var(--cream-soft); border: 1px solid var(--border-1);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.hiw-detail.paper .hiw-price-note .chip-fact { background: var(--cream); }
.hiw-price-note .chip-fact .k {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2);
}
.hiw-price-note .chip-fact .v {
  font-family: var(--font-display); font-weight: 500;
  font-size: 34px; line-height: 1.05; color: var(--forest); margin-top: 8px;
}
.hiw-price-note .chip-fact .v em { font-style: italic; font-weight: 400; }
.hiw-price-note .chip-fact .d { font-size: 13px; color: var(--fg-2); margin-top: 8px; line-height: 1.5; }

@media (max-width: 860px) {
  .hiw-step-block { grid-template-columns: 1fr; gap: 20px; }
  .hiw-step-marker .num { font-size: clamp(72px, 22vw, 96px); }
  .hiw-step-marker .kicker { margin-top: 8px; }
  .hiw-detail { padding: 64px 0; }
  .hiw-page-hero { padding: 96px 0 72px; }
  .hiw-step-body p { font-size: 17px; }
}

/* ============================================
   31 · Legal / policy pages (privacy, terms)
   Simple single-column readable document layout.
   ============================================ */
.legal-page { background: var(--cream); }
.legal-doc {
  max-width: 760px; margin: 0 auto;
  padding: 96px 40px 112px;
}
.legal-doc .eyebrow { color: var(--fg-2); }
.legal-doc h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.2vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; color: var(--forest); text-wrap: balance;
  margin: 18px 0 0;
}
.legal-doc .legal-updated {
  margin-top: 18px; font-size: 14px; color: var(--fg-2);
  font-family: var(--font-display); font-style: italic;
}
.legal-doc .legal-intro {
  margin-top: 28px; padding-bottom: 8px;
  font-size: 17px; line-height: 1.7; color: var(--fg-2);
}
.legal-doc .legal-rule {
  border: 0; border-top: 1px solid var(--border-1);
  margin: 36px 0 8px;
}
.legal-doc h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15;
  letter-spacing: -0.01em; color: var(--fg-1);
  margin: 48px 0 0; scroll-margin-top: 90px;
}
.legal-doc h2:first-of-type { margin-top: 40px; }
.legal-doc h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; line-height: 1.3; color: var(--forest-deep);
  margin: 28px 0 0;
}
.legal-doc p {
  font-size: 16px; line-height: 1.72; color: var(--fg-1);
  margin: 16px 0 0; text-wrap: pretty;
}
.legal-doc ul {
  margin: 14px 0 0; padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-doc ul li {
  position: relative; padding-left: 26px;
  font-size: 16px; line-height: 1.65; color: var(--fg-1);
}
.legal-doc ul li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--forest-light);
}
.legal-doc a { color: var(--forest); word-break: break-word; }
.legal-doc strong { font-weight: 600; color: var(--fg-1); }
.legal-doc .legal-callout {
  margin-top: 18px; padding: 20px 24px;
  background: var(--sage-pale); border: 1px solid var(--sage);
  border-radius: var(--r-lg);
}
.legal-doc .legal-callout p { margin: 0; color: var(--forest-deep); }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 56px; font-size: 15px;
}

@media (max-width: 640px) {
  .legal-doc { padding: 72px 24px 88px; }
}
