/* ============================================================
   PROV (aiprov.eu) — EU compliance provider directory
   Design spec: EU Commission style — neutral, data-first.
   primary #003399 · body text #333333 · accent #FFB81C (CTA only)
   Inter / IBM Plex Sans · max-width 1200 · no shadows, no gradients
   ============================================================ */

:root {
  --blue: #003399;
  --blue-dark: #00246b;
  --text: #333333;
  --text-dark: #1a1a1a;
  --accent: #FFB81C;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #d9d9d9;
  --s1: 16px; --s2: 24px; --s3: 32px; --s4: 48px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

h1, h2, h3 { color: var(--text-dark); font-weight: 700; }
h1 { font-size: 48px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.4; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 32px;
  text-align: center;
}
.btn-accent {
  background: var(--accent);
  color: var(--text-dark);
}
.btn-accent:hover { background: #e6a400; text-decoration: none; }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); text-decoration: none; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s1);
}
/* Accent variant — the "Platform preview" section's marker: yellow chip
   instead of the plain blue label, per the value/"what you get" color code
   used by price cards and transition-lines. */
.section-label-accent {
  display: inline-block;
  color: var(--text-dark);
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 3px;
}
section h2 { margin-bottom: var(--s2); max-width: 800px; }
.lead { font-size: 18px; max-width: 720px; }

/* ── Hero ───────────────────────────────────────────────── */
/* Compact: the search CTA must stay above the fold on 1280×720 and 390×844 */
.hero { padding: 44px 0 40px; }
.hero h1 { max-width: 900px; font-size: 42px; margin-bottom: var(--s1); }
.hero .subhead {
  font-size: 18px;
  max-width: 680px;
  margin-bottom: var(--s2);
}
.hero .hero-form { row-gap: 12px; }
.hero-form {
  display: flex;
  gap: var(--s1);
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: var(--s1);
}
.hero-form .field { display: flex; flex-direction: column; gap: 6px; }
.hero-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.hero-form select {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  padding: 12px 40px 12px 14px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 240px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23666' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hero-form select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.hero-form .field-wide { flex: 1 1 100%; }
.hero-form input[type="text"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  padding: 12px 14px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  background: #fff;
}
.hero-form input[type="text"]:focus { outline: 2px solid var(--blue); outline-offset: -1px; }

/* EU / non-EU / not-sure location toggle (hero + search forms) — a radio
   trio, not checkboxes: exactly one of the three is always selected
   (defaults to "Not sure"), so the exclusivity is native, no JS needed. */
.loc-toggle {
  display: flex;
  align-items: stretch;
  height: 47px; /* aligns with the selects (12px padding + 1px border) */
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.loc-toggle-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
.loc-toggle-option:last-child { border-right: none; }
.loc-toggle-option input { position: absolute; opacity: 0; pointer-events: none; }
.loc-toggle-option:has(input:checked) { background: var(--blue); color: #fff; }
.loc-toggle-option:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.hero-micro { font-size: 14px; }
.hero-micro .hl { color: var(--blue); font-weight: 700; }
.trust-row { font-size: 13px; color: var(--text); margin-top: 6px; }
.hero h1 .hl { color: var(--blue); }

/* ── Problem paths ──────────────────────────────────────── */
.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s4);
}
.path-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: var(--s3);
}
.path-card h3 { margin-bottom: var(--s1); }
.path-card p { margin-bottom: var(--s1); font-size: 15px; }
.path-card .verdict {
  font-style: italic;
  color: var(--text-dark);
  font-size: 15px;
  margin-bottom: 0;
}
.transition-line {
  margin-top: var(--s4);
  padding: var(--s2) var(--s3);
  border-left: 4px solid var(--accent);
  background: #fff;
  font-size: 20px;
  color: var(--text-dark);
  font-weight: 600;
  max-width: 860px;
}

/* ── Example applications (inside "Included with your access") ─
   .samples-row/.samples-label remain for the agent funnel pages
   (agent.html/prov/agent.html); the homepage uses the standalone
   accent-bordered .samples-block card below. */
.samples-row {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-top: var(--s2);
}
.samples-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.samples-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.samples-block {
  margin-top: var(--s3);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: var(--s2) var(--s3);
  max-width: 900px;
}
.samples-block-title {
  font-size: 20px;
  margin-bottom: 6px;
}
.samples-block-desc {
  font-size: 14px;
  color: var(--text);
  margin-bottom: var(--s2);
}
/* Neutralize main.css generic button styling (gradient, pill radius) */
.sample-btn,
.sample-btn:hover {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: #fff;
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.sample-btn:hover { border-color: var(--blue); background: var(--bg-alt); }

.sample-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sample-modal.open { display: flex; }
.sample-modal-box {
  position: relative;
  background: #fff;
  width: min(880px, 100%);
  height: min(85vh, 900px);
  border-top: 4px solid var(--blue);
}
/* Top strip hosts the close button, so it never overlaps the iframe scrollbar */
.sample-modal-box iframe {
  width: 100%;
  height: calc(100% - 46px);
  margin-top: 46px;
  border: 0;
  border-top: 1px solid var(--border);
  display: block;
}
.sample-modal-close,
.sample-modal-close:hover {
  position: absolute;
  top: 5px;
  right: 8px;
  z-index: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #e9e9e9;
  background-image: none;
  color: #555;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.sample-modal-close:hover { background: #dcdcdc; }

/* ── Funnel agent page (light restyle of /agent.html) ────── */
.agent-page { padding: 40px 0 64px; }
.agent-page .agent-head h1 { font-size: 32px; margin-bottom: 8px; }
.agent-page .agent-head .subhead { font-size: 17px; max-width: 680px; margin-bottom: var(--s2); color: var(--text); }
.agent-page .samples-row { margin: 0 0 var(--s2); }
.agent-sample-btn,
.agent-sample-btn:hover {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: #fff;
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.agent-sample-btn:hover { border-color: var(--blue); background: var(--bg-alt); }

.agent-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s2);
  align-items: start;
}

/* Chat card */
.agent-chat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: var(--s2);
  display: flex;
  flex-direction: column;
  min-height: 540px;
}
.agent-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: var(--s1); max-height: 60vh; }
.agent-msg { display: flex; gap: 10px; align-items: flex-start; }
.agent-msg-avatar {
  flex: 0 0 34px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}
/* Bot avatar: ECP logo on the brand-blue square */
.agent-msg:not(.user) .agent-msg-avatar {
  background: var(--blue) url('/images/logo_transparent.png') center / 28px 28px no-repeat;
}
.agent-msg.user .agent-msg-avatar { background: var(--bg-alt); }
.agent-msg-bubble {
  background: var(--bg-alt);
  color: var(--text-dark);
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
}
.agent-msg.user .agent-msg-bubble { background: var(--blue); color: #fff; }
.agent-msg.typing .agent-msg-bubble { color: var(--text); font-style: italic; }

.agent-input-row { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: var(--s1); }
.agent-input {
  flex: 1;
  box-sizing: border-box;
  margin: 0; /* main.css gives textarea a bottom margin — breaks row alignment */
  font-family: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-dark);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  resize: none;
  min-height: 44px;
}
.agent-input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
/* Input, Restart and Send share one 44px baseline row */
.agent-restart-btn,
.agent-restart-btn:hover {
  box-sizing: border-box;
  height: 44px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.agent-restart-btn:hover { border-color: var(--blue); color: var(--blue); }
.agent-page .agent-send-btn,
.agent-page .agent-send-btn:hover {
  box-sizing: border-box;
  height: 44px;
  padding: 0 20px;
  border-radius: 0 !important;
  box-shadow: none;
  transform: none;
  white-space: nowrap;
}

#agentThinkingOverlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-thinking-inner { display: flex; gap: 10px; align-items: center; color: var(--text-dark); font-weight: 600; }

/* Draft panel */
.agent-draft-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: var(--s2);
  margin-bottom: var(--s1);
}
.agent-draft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: var(--s1);
}
.agent-type-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  padding: 3px 8px;
  white-space: nowrap;
}
.agent-progress-wrap { margin-bottom: var(--s1); }
.agent-progress-label { font-size: 12px; color: var(--text); margin-bottom: 6px; }
.agent-progress-bar { height: 6px; background: var(--bg-alt); }
.agent-progress-fill { height: 100%; background: var(--blue); transition: width 0.3s; }

.agent-draft-preview ul { margin: 0 0 var(--s1) 18px; padding: 0; font-size: 14px; color: var(--text-dark); }
.agent-draft-preview li { margin-bottom: 6px; }
.agent-preview-note { font-size: 12px; color: var(--text); }

.agent-field-row { padding: 7px 0; border-bottom: 1px solid var(--bg-alt); }
.agent-field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
.agent-field-value { font-size: 14px; color: var(--text-dark); }
.agent-field-star { font-style: normal; }
.agent-field-star-red { color: #c62828; }
.agent-field-star-green { color: #2e7d32; }
.agent-draft-empty { font-size: 13px; color: var(--text); }

.agent-done-notice { margin-top: var(--s1); font-size: 14px; font-weight: 600; color: #2e7d32; }

.agent-save-btn,
.agent-save-btn:hover {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  background: #fff;
  background-image: none;
  border: 1px solid var(--blue);
  border-radius: 0;
  padding: 11px 16px;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: none;
  transform: none;
}
.agent-save-btn:hover { background: var(--bg-alt); }
.agent-save-btn:disabled { color: var(--text); border-color: var(--border); cursor: default; background: #fff; }
.agent-create-btn { width: 100%; padding: 12px 16px; margin-bottom: 8px; }
.agent-another-btn,
.agent-another-btn:hover {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-dark);
  background: #fff;
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.agent-another-btn:hover { border-color: var(--blue); color: var(--blue); }

/* agent.js renders chips/buttons with inline indigo styles (shared with the
   dark cabinet, which stays untouched) — override them here, page-scoped. */
.agent-page #agentQuickStarts button,
.agent-page #agentGoalStep button {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  color: var(--blue) !important;
}
.agent-page #agentQuickStarts button:hover,
.agent-page #agentGoalStep button:hover { background: var(--bg-alt) !important; border-color: var(--blue) !important; }
.agent-page #agentOptions button {
  background: #fff !important;
  border: 1px solid var(--blue) !important;
  border-radius: 0 !important;
  color: var(--blue) !important;
}
.agent-page #agentOptions button:hover { background: var(--blue) !important; color: #fff !important; }
.agent-page #agentRelatedBtn button {
  background: var(--blue) !important;
  border-radius: 0 !important;
}
.agent-page .agent-skip-btn,
.agent-page .agent-skip-btn:hover {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  background-image: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}
.agent-page .agent-skip-btn:hover { border-color: var(--blue); color: var(--blue); }
.agent-skip-btn-wrap { padding: 4px 0 4px 40px; }

@media (max-width: 900px) {
  .agent-cols { grid-template-columns: 1fr; }
  .agent-chat-card { min-height: 420px; }
}

/* ── Buyer cabinet, light restyle (body.funnel-light on appdash) ─
   dashboard.css is shared with provider pages and stays dark; this layer
   repaints the applicant dashboard to the funnel landing style. */
body.funnel-light {
  background: #fff !important;
  background-attachment: initial !important;
  color: var(--text) !important;
  font-family: 'Inter', 'IBM Plex Sans', system-ui, sans-serif !important;
}

/* Inside the applicant SPA shell the content lives in the fixed #scrollArea, so
   <body>'s own white box paints nothing behind it and the dark <html> token
   background shows through — light page text then lands on a dark backdrop.
   Paint the surface on the scroll container itself. */
body.funnel-light #scrollArea {
  background: #fff !important;
}
body.funnel-light #appdash-layout { padding: 24px 24px 48px; max-width: 1280px; margin: 0 auto; }

/* Top bar */
body.funnel-light .appdash-topbar {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-left: 4px solid var(--blue) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
}
body.funnel-light .appdash-title { color: var(--text-dark) !important; }
body.funnel-light .appdash-topbar .btn-new-app,
body.funnel-light .appdash-topbar .btn-new-app:hover {
  background: var(--blue) !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.funnel-light .appdash-topbar .btn-new-app:hover { background: var(--blue-dark) !important; }
/* The AI entry is the primary action — accent yellow */
body.funnel-light .appdash-topbar [data-action="openNewAppWithAI"],
body.funnel-light .appdash-topbar [data-action="openNewAppWithAI"]:hover {
  background: var(--accent) !important;
  color: #1a1a1a !important;
}
body.funnel-light .btn-ghost-action,
body.funnel-light .btn-ghost-action:hover {
  background: #fff !important;
  background-image: none !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.funnel-light .btn-ghost-action:hover { border-color: var(--blue) !important; color: var(--blue) !important; }

/* Applications table */
body.funnel-light .table-wrapper {
  background: #fff !important;
  backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.funnel-light .appdash-table thead th {
  background: var(--bg-alt) !important;
  color: var(--text-dark) !important;
  border-bottom: 2px solid var(--blue) !important;
  text-shadow: none !important;
  position: sticky !important;
  top: 0;
  z-index: 2;
}
body.funnel-light .appdash-table thead th * { color: var(--text-dark) !important; }
body.funnel-light .appdash-table td {
  background: transparent !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid #ececec !important;
}
body.funnel-light .appdash-table tbody tr { background: #fff !important; }
body.funnel-light .appdash-table tbody tr:hover { background: var(--bg-alt) !important; }

/* dashboard.css's generic `main` rule (min-height:80vh, padding:4rem 2rem,
   centered content) is meant for other centered dashboard pages — it fights
   #appdash-layout's own fixed-height, internally-scrolling layout, adding a
   large gap under the header and a second (outer) scrollbar on top of the
   table's own scroll. Neutralize it here so only the table scrolls. */
body.funnel-light main {
  min-height: 0 !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  text-align: left !important;
}
/* Only appdash's fixed-height cabinet layout wants the outer scrollArea
   locked (its table scrolls internally instead) — other funnel-light pages
   (e.g. applicant_profile.html) are normal-length pages and must still
   scroll the whole page. */
body.funnel-light:has(#appdash-layout) #scrollArea { overflow: hidden !important; }

/* Summary bar KPIs (Applications / Draft / Sent / Responses): built for the
   dark shell topbar (white text) — needs dark text on the light chrome. */
body.funnel-light .appdash-kpi__num { color: var(--text-dark) !important; }
body.funnel-light .appdash-kpi__label { color: #6b7280 !important; }
body.funnel-light .appdash-kpi--muted .appdash-kpi__num { color: #9ca3af !important; }
body.funnel-light .appdash-summary-divider { background: var(--border) !important; }

/* ── prodash.html: same light restyle, provider dashboard's own class names ── */
/* width:100% is required here — main's flex-direction:column + align-items:stretch
   would otherwise fill this, but an auto cross-axis margin (for centering) makes
   flexbox disable stretch and shrink the item to content width instead. */
body.funnel-light .prodash-header { width: 100%; padding: 24px 24px 0; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
body.funnel-light .prodash-topbar,
body.funnel-light .prodash-filter-row {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.funnel-light .prodash-topbar { border-left: 4px solid var(--blue) !important; }
body.funnel-light .prodash-title { color: var(--text-dark) !important; }
body.funnel-light .prodash-refresh-btn.btn-ghost-action { background: #fff !important; }
body.funnel-light .prodash-kpi__num { color: var(--text-dark) !important; }
body.funnel-light .prodash-kpi__label { color: #6b7280 !important; }
body.funnel-light .prodash-kpi--muted .prodash-kpi__label { color: #9ca3af !important; }
body.funnel-light .prodash-tag {
  color: var(--text-dark) !important;
  background: var(--bg-alt) !important;
  border-color: var(--border) !important;
}
body.funnel-light .prodash-tag.ok {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}
body.funnel-light .prodash-tag.warn {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}
body.funnel-light .prodash-table thead th {
  background: var(--bg-alt) !important;
  color: var(--text-dark) !important;
  border-bottom: 2px solid var(--blue) !important;
  text-shadow: none !important;
}
body.funnel-light .prodash-table thead th * { color: var(--text-dark) !important; }
body.funnel-light .prodash-table td {
  background: transparent !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid #ececec !important;
}
body.funnel-light .prodash-table tbody tr { background: #fff !important; }
body.funnel-light .prodash-table tbody tr:hover { background: var(--bg-alt) !important; }
body.funnel-light .status-pill {
  background: var(--bg-alt) !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
}
body.funnel-light .status-pill.active { background: var(--blue) !important; color: #fff !important; }
body.funnel-light .prodash-empty__title,
body.funnel-light .prodash-empty__desc,
body.funnel-light .table-wrapper h2,
body.funnel-light .table-wrapper p { color: var(--text-dark) !important; }

/* ── *-edit-profile.html (nb/cb/lab/ear/con): title sits outside .form-container
   as a bare <h2>, so it stretches full-bleed (main's align-items:stretch) while
   .form-container centers itself via its own width/max-width/margin — align the
   title to the same column instead of adding a wrapper to all 5 HTML files. */
body.funnel-light main > h2 {
  max-width: 960px;
  width: 92%;
  margin: 24px auto 0;
  box-sizing: border-box;
  color: var(--text-dark);
}

/* ── applicant_profile.html: migrated to the light chrome ──────────────────
   dashboard.css's .form-container / label / input / select / textarea are
   built for a dark glass page background (light text, translucent fields) —
   same light-card treatment provider-profile.css already gives
   .provider-section on white backgrounds, applied here to the whole page. */
body.funnel-light .applicant-profile-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
body.funnel-light .applicant-profile-page h2,
body.funnel-light.edit-profile-page main > h2 {
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}
/* Same dark-glass-on-light-body problem as applicant_profile.html, on the 5
   provider *-edit-profile.html pages (added body.edit-profile-page) — they
   share the same dashboard.css .form-container/.form-label/logo-widget
   markup but were missed when applicant_profile.html got this fix. */
body.funnel-light .applicant-profile-page .form-container,
body.funnel-light.edit-profile-page .form-container {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
body.funnel-light .applicant-profile-page .form-container .form-label,
body.funnel-light .applicant-profile-page .form-container label,
body.funnel-light.edit-profile-page .form-container .form-label,
body.funnel-light.edit-profile-page .form-container label {
  color: #475569 !important;
}
body.funnel-light .applicant-profile-page .form-container input,
body.funnel-light .applicant-profile-page .form-container select,
body.funnel-light .applicant-profile-page .form-container textarea,
body.funnel-light.edit-profile-page .form-container input,
body.funnel-light.edit-profile-page .form-container select,
body.funnel-light.edit-profile-page .form-container textarea {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-dark) !important;
}
/* dashboard.css also darkens the native <option> list itself (dark dropdown
   popup) — separately from the <select> box, which is why the box fix above
   doesn't cover it. */
body.funnel-light .applicant-profile-page .form-container select option,
body.funnel-light.edit-profile-page .form-container select option {
  background: #fff !important;
  color: var(--text-dark) !important;
}
body.funnel-light .applicant-profile-page .provider-section,
body.funnel-light.edit-profile-page .provider-section {
  background: var(--bg-alt) !important;
}
body.funnel-light .applicant-profile-page .notification-desc,
body.funnel-light.edit-profile-page .notification-desc {
  color: #64748b !important;
}
/* Logo widget (logo-widget.js): also built for the dark glass page — the
   upload button and placeholder caption render near-white-on-white here. */
body.funnel-light .applicant-profile-page .logo-placeholder-text,
body.funnel-light.edit-profile-page .logo-placeholder-text {
  color: #94a3b8 !important;
}
body.funnel-light .applicant-profile-page .btn-logo-upload,
body.funnel-light .applicant-profile-page .btn-logo-cancel,
body.funnel-light.edit-profile-page .btn-logo-upload,
body.funnel-light.edit-profile-page .btn-logo-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
}
body.funnel-light .applicant-profile-page .btn-logo-upload:hover,
body.funnel-light .applicant-profile-page .btn-logo-cancel:hover,
body.funnel-light.edit-profile-page .btn-logo-upload:hover,
body.funnel-light.edit-profile-page .btn-logo-cancel:hover {
  background: #e2e8f0 !important;
}
/* Delete-account buttons: the blanket .main-button rule above (blue, for
   wizard/save buttons) also matches these — restore ghost/danger styling
   for a destructive-action row instead of Save-button blue. */
body.funnel-light .applicant-profile-page #btnDeleteAccount,
body.funnel-light .applicant-profile-page #btnDeleteCancel {
  background: #fff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
body.funnel-light .applicant-profile-page #btnDeleteAccount:hover,
body.funnel-light .applicant-profile-page #btnDeleteCancel:hover {
  background: #f1f5f9 !important;
}
body.funnel-light .applicant-profile-page #btnDeleteConfirm {
  background: #dc2626 !important;
  color: #fff !important;
}
body.funnel-light .applicant-profile-page #btnDeleteConfirm:hover {
  background: #b91c1c !important;
}

/* ── Application forms (NB/CB/LAB/EAR/CONapp.html): migrated to the light
   chrome — style_form2.css/dashboard.css build a dark glass card on a dark
   navy gradient body. Reuse the light-card treatment for all app types via
   the shared .app-form-page wrapper each *.html adds around its .container. */
body.funnel-light .app-form-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  /* <main> is a column flex container (main.css) — as its flex item, wide
     unwrapped content (e.g. the step progress bar) can force it past
     align-items:stretch's 100% target instead of scrolling/clipping
     internally. width:100% + min-width:0 pins it to the container. */
  min-width: 0;
  box-sizing: border-box;
}
body.funnel-light .app-form-page .container {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
  /* prov.css's own generic .container rule above (max-width/margin/padding,
     meant for marketing pages) has equal specificity and loads later, so it
     silently zeroed out style_form2.css's card padding — restore it here. */
  padding: 28px 32px !important;
}
/* style_form2.css was built for the dark navy standalone background, so
   nearly every text color in it is a shade of white — and several elements
   (e.g. .directive-group-header) have no color rule at all and fall back to
   the generic light-theme --text gray. Rather than patch shades one at a
   time, default everything inside the form to near-black, then carve out
   the few elements that sit on a solid blue background and need to stay
   white (specific selectors below beat this universal rule on specificity
   alone, regardless of source order). */
body.funnel-light .app-form-page,
body.funnel-light .app-form-page * {
  color: #1a1a1a !important;
}
body.funnel-light .app-form-page .header h1,
body.funnel-light .app-form-page .section-title,
body.funnel-light .app-form-page .section-title * {
  color: #003399 !important;
  text-shadow: none !important;
}
body.funnel-light .app-form-page .header p { color: #64748b !important; }
body.funnel-light .app-form-page .form-section + .form-section::before {
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent) !important;
}
body.funnel-light .app-form-page .form-group label { color: #334155 !important; }
/* Elements on a solid/blue fill — must stay white, not the catch-all black. */
body.funnel-light .app-form-page .section-icon,
body.funnel-light .app-form-page .submit-btn,
body.funnel-light .app-form-page .standard-tag,
body.funnel-light .app-form-page .standard-tag *,
body.funnel-light .app-form-page .fpb-step.fpb-active .fpb-dot,
body.funnel-light .app-form-page .fpb-step.fpb-done .fpb-dot {
  color: #fff !important;
}
/* Semantic legend colors (required/recommended) — keep, don't blacken. */
body.funnel-light .app-form-page .fib-req { color: #dc2626 !important; }
body.funnel-light .app-form-page .fib-rec { color: #16a34a !important; }
body.funnel-light .app-form-page .checkbox-group .checkbox-item {
  background: var(--bg-alt) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-dark) !important;
}
body.funnel-light .app-form-page .checkbox-group .checkbox-item:hover {
  background: #eef2f7 !important;
  border-color: #cbd5e1 !important;
}
body.funnel-light .app-form-page input[type="checkbox"]:not(:checked) {
  border: 1.5px solid #94a3b8 !important;
  background: #fff !important;
}
body.funnel-light .app-form-page .tags-input-container {
  background: #fff !important;
  border: 1px solid var(--border) !important;
}
body.funnel-light .app-form-page .tags-input-container input[type="text"],
body.funnel-light .app-form-page .tags-input-container input:not([type]) {
  color: var(--text-dark) !important;
}
body.funnel-light .app-form-page .tags-input-container input::placeholder { color: #94a3b8 !important; }
body.funnel-light .app-form-page .standard-tag {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}
body.funnel-light .app-form-page .file-upload-label {
  background: var(--bg-alt) !important;
  border: 1.5px dashed #cbd5e1 !important;
  color: #64748b !important;
}
body.funnel-light .app-form-page .file-upload-label:hover {
  background: #eef2f7 !important;
  border-color: var(--blue) !important;
}
body.funnel-light .app-form-page .submit-section { border-top: 1px solid var(--border) !important; }
body.funnel-light .app-form-page .help-text { color: #475569 !important; }
body.funnel-light .app-form-page .form-progress-bar { border-bottom: 1px solid var(--border) !important; }
/* Pre-existing gap (not theme-specific): the step bar never had a mobile
   layout and just clips past ~5 steps on narrow screens. Let it scroll
   horizontally instead of cutting steps off entirely. */
@media (max-width: 640px) {
  body.funnel-light .app-form-page .form-progress-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  body.funnel-light .app-form-page .fpb-step { flex: 0 0 auto !important; min-width: 64px; }
  body.funnel-light .app-form-page .fpb-line { flex: 0 0 24px !important; }
}
body.funnel-light .app-form-page .fpb-dot {
  border: 2px solid #cbd5e1 !important;
  background: #fff !important;
  color: #94a3b8 !important;
}
body.funnel-light .app-form-page .fpb-step.fpb-done .fpb-dot { color: #2563eb !important; }
body.funnel-light .app-form-page .fpb-label { color: #94a3b8 !important; }
body.funnel-light .app-form-page .fpb-step.fpb-active .fpb-label { color: var(--text-dark) !important; }
body.funnel-light .app-form-page .fpb-step.fpb-done .fpb-label { color: #475569 !important; }
body.funnel-light .app-form-page .fpb-line { background: var(--border) !important; }
body.funnel-light .app-form-page .form-info-bar { color: var(--text-dark) !important; }
body.funnel-light .app-form-page .fib-sep { background: var(--border) !important; }

/* Row action buttons: keep the palette (blue = AI, green stays for "select") */
body.funnel-light .next-step-btn--ai,
body.funnel-light .next-step-btn--ai:hover {
  background: var(--blue) !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.funnel-light .next-step-btn--ai:hover { background: var(--blue-dark) !important; }
body.funnel-light .next-step-btn { border-radius: 0 !important; box-shadow: none !important; }
body.funnel-light .appdash-table thead th { white-space: nowrap; }

/* Empty state */
body.funnel-light .appdash-empty-state { color: var(--text) !important; background: #fff !important; border: 1px solid var(--border) !important; border-radius: 0 !important; box-shadow: none !important; }
body.funnel-light .appdash-empty-title { color: var(--text-dark) !important; }

/* Modals (application wizard, provider select, dispatches, chats, support) */
body.funnel-light .modal-overlay,
body.funnel-light .provider-modal { background: rgba(0, 0, 0, 0.5) !important; backdrop-filter: none !important; }
body.funnel-light .modal-content,
body.funnel-light .provider-modal-content {
  background: #fff !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
  border-top: 4px solid var(--blue) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.funnel-light .modal-content h3,
body.funnel-light .modal-title,
body.funnel-light .provider-modal-content h3 { color: var(--text-dark) !important; text-shadow: none !important; }
body.funnel-light .modal-content label { color: var(--text-dark) !important; }
body.funnel-light .modal-content input,
body.funnel-light .modal-content select,
body.funnel-light .modal-content textarea,
body.funnel-light .provider-modal-content input,
body.funnel-light .provider-modal-content select {
  background: #fff !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
}
body.funnel-light .modal-btn.primary,
body.funnel-light .main-button {
  background: var(--blue) !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.funnel-light .modal-btn.primary:hover,
body.funnel-light .main-button:hover { background: var(--blue-dark) !important; transform: none !important; }
body.funnel-light .modal-btn.secondary {
  background: #fff !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 0 !important;
}

/* Wizard-form action buttons (Save draft / Check my application / Export
   /Import). These classes are shared with the dark provider dashboard
   (style_form2.css, ai-qualify.js's injected <style>) — their original
   translucent-on-dark-gradient treatment reads as illegible pale text on
   the flat white funnel-light background (e.g. .draft-io-btn's ~3:1
   contrast blue-on-white). Repainted here to the same primary/secondary/
   accent hierarchy as the rest of funnel-light, matching modal-btn above. */
body.funnel-light .submit-btn {
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
body.funnel-light .submit-btn:hover { background: var(--blue-dark) !important; }
/* AI-powered actions read as gold across the whole funnel — same rule the
   cabinet's "New Application with AI" button already follows. */
body.funnel-light .ai-qualify-btn {
  background: var(--accent) !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 6px !important;
}
body.funnel-light .ai-qualify-btn:hover:not(:disabled) { background: #e6a400 !important; }
body.funnel-light .ai-qualify-btn:disabled { background: #d1d5db !important; color: #6b7280 !important; }
body.funnel-light .draft-io-btn {
  background: #fff !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}
body.funnel-light .draft-io-btn:hover {
  background: var(--bg-alt) !important;
  border-color: var(--blue) !important;
  color: var(--blue) !important;
  transform: none !important;
  box-shadow: none !important;
}
/* Floating scroll-to-top/bottom/back nav panel (draft-io.js, inline-styled) —
   same pale-blue-on-white contrast issue, fixed via its own class hook. */
body.funnel-light .draft-io-nav-btn {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-dark) !important;
  backdrop-filter: none !important;
}
body.funnel-light .draft-io-nav-btn:hover {
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

/* Wizard step indicator: horizontal, like the dark original */
body.funnel-light .wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text) !important;
}
body.funnel-light .wizard-progress * { color: var(--text) !important; }

/* Provider-select table inside the modal */
body.funnel-light .provider-select-table th {
  background: var(--bg-alt) !important;
  color: var(--text-dark) !important;
  border-bottom: 2px solid var(--blue) !important;
}
body.funnel-light .provider-select-table td { color: var(--text-dark) !important; border-bottom: 1px solid #ececec !important; }
body.funnel-light .pst-modal-title,
body.funnel-light .pst-modal-subtitle,
body.funnel-light .dispatches-modal-title { color: var(--text-dark) !important; }
body.funnel-light .pst-search-input { background: #fff !important; color: var(--text-dark) !important; border: 1px solid var(--border) !important; border-radius: 0 !important; }

/* ── Stats ──────────────────────────────────────────────── */
.stats-primary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
  border-top: 4px solid var(--blue);
  padding-top: var(--s1);
  margin-top: var(--s4);
}
.stats-primary .stat-hero { border-top: none; padding-top: 0; min-width: 200px; }
.stats-breakdown-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #4b5563;
  margin: 0 0 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}
.stat {
  border-top: 4px solid var(--blue);
  padding-top: var(--s1);
}
.stat .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  display: block;
  margin-bottom: 8px;
}
.stat .desc { font-size: 15px; }
.stats-breakdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
}
.stats-breakdown-item {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.stats-breakdown-item .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
  display: block;
  margin-bottom: 8px;
}
.stats-breakdown-item .desc { font-size: 15px; color: #4b5563; }
@media (max-width: 900px) {
  .stats-primary { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats-breakdown { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
}
.stats-footer {
  margin-top: var(--s4);
  font-size: 14px;
  max-width: 720px;
}
.stats-last-updated {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text);
}

/* ── Result example (before/after unlock) ──────────────────── */
.result-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin: var(--s3) 0;
}
.result-example-col {
  display: flex;
  flex-direction: column;
}
.result-example-col .result-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.result-example-col .contacts-locked {
  margin-top: auto;
}
.result-example-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}
.result-example-note {
  font-size: 13px;
  color: var(--text);
  margin-bottom: var(--s3);
}

/* ── Free vs paid ───────────────────────────────────────── */
.freepaid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s3);
}
.freepaid-copy p { margin-bottom: var(--s2); font-size: 17px; }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: var(--s4);
  text-align: left;
}
/* Arrived via a plan-specific link (?plan=6m/12m from the homepage cards) —
   highlight the matching card so the choice made on the previous page reads
   as carried through, not lost. */
.price-card--selected {
  border-color: var(--blue);
  border-left-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
}
.price-card .price {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}
.price-card .price-terms {
  color: var(--text-dark);
  font-weight: 600;
  margin: 8px 0 var(--s3);
}
.price-card .btn { width: 100%; }
.price-pilot-badge, .price-pilot-badge-sub6m, .price-pilot-badge-sub12m {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #fff4da;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: var(--s2);
}
.price-was, .price-was-sub6m, .price-was-sub12m {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 2px;
}
.price-was span, .price-was-sub6m span, .price-was-sub12m span {
  text-decoration: line-through;
}
.price-permonth-sub6m, .price-permonth-sub12m {
  font-size: 13px;
  color: var(--text);
}
.price-save-sub12m {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}
/* Invisible twin of .price-save-sub12m on the 6-month card — keeps the
   terms/until/features rows aligned across both cards even though only
   the 12-month card actually has a savings line. */
.price-save-placeholder {
  font-size: 13px;
  font-weight: 700;
  visibility: hidden;
}
.price-security-note {
  font-size: 12px;
  color: var(--text);
  opacity: 0.75;
}
.price-until, .price-until-sub6m, .price-until-sub12m {
  font-size: 13px;
  color: var(--text);
  margin-top: var(--s3);
}
.anti-pricing {
  margin-top: var(--s2);
  font-size: 14px;
}
.anti-pricing span + span::before { content: "· "; margin: 0 6px; }

/* Subscription plans (6/12-month) — the only purchasable plans (the former
   one-time lifetime card is gone). Full .price-card styling (accent border,
   48px price) applies via the shared class on the element; this block only
   adds the plan-name label and stacks two cards side by side. */
.price-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s4);
}
.price-card-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.price-card-sub .btn { padding: 10px 32px; font-size: 15px; }
.price-card-sub > * { margin: 0; }
.price-card-sub .price-terms { margin: 0; }
.price-card-sub .price-plan-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-dark);
}
.price-card-sub .price {
  display: block;
}

/* ── Explorer ───────────────────────────────────────────── */
.guide-search-form {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  max-width: 640px;
}
.guide-search-form input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.guide-search-form input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.guide-search-form .btn { flex-shrink: 0; white-space: nowrap; margin: 0; padding: 11px 32px; font-size: 15px; }
.guide-search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.guide-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.guide-search-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.guide-search-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--text-dark);
  cursor: pointer;
}
.guide-search-modal-content h3 { margin: 0 0 var(--s3); padding-right: 24px; font-size: 18px; }
.guide-search-results { list-style: none; margin: 0; padding: 0; }
.guide-search-results li + li { margin-top: var(--s2); }
.guide-search-results a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  color: var(--text);
}
.guide-search-results a:hover { text-decoration: none; border-left-color: var(--accent); background: var(--bg-alt); }
.guide-search-results .gsr-title { display: block; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.guide-search-results .gsr-desc { display: block; font-size: 14px; color: var(--text-dark); }
.guide-search-empty { color: var(--text-dark); }
.guide-search-fallback-note { color: var(--text-dark); font-size: 14px; margin-bottom: var(--s2); }

.guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s4);
}
.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: var(--s3);
  display: block;
  color: var(--text);
}
.guide-card:hover { text-decoration: none; border-left-color: var(--accent); }
.guide-card .tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}
.guide-card h3 { margin-bottom: 8px; font-size: 18px; }
.guide-card p { font-size: 14px; }
.browse-all { display: inline-block; margin-top: var(--s3); font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin-top: var(--s3); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s2) 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 24px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 0 var(--s2); max-width: 720px; }

/* ── CTA footer ─────────────────────────────────────────── */
.cta-footer { text-align: center; background: var(--blue); }
.cta-footer h2 { color: #fff; margin: 0 auto var(--s3); }

/* ── Pricing page ───────────────────────────────────────── */
.pricing-hero { padding: 44px 0 40px; }
.pricing-hero h1 { max-width: 760px; margin-bottom: var(--s1); }
.pricing-hero .subhead { font-size: 18px; max-width: 680px; margin-bottom: var(--s3); color: var(--text); }
.pricing-body { max-width: 720px; }
.pricing-body p { margin-bottom: var(--s2); font-size: 17px; }
.pricing-faq { max-width: 720px; margin: var(--s3) 0; }
.pricing-faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--s1) 0;
}
.pricing-faq details:first-child { border-top: 1px solid var(--border); }
.pricing-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  list-style: none;
}
.pricing-faq summary::-webkit-details-marker { display: none; }
.pricing-faq summary::before { content: "+ "; color: var(--blue); font-weight: 700; }
.pricing-faq details[open] summary::before { content: "− "; }
.pricing-faq details p { margin: 8px 0 0; color: var(--text); font-size: 15px; }
.objection {
  border-left: 4px solid var(--blue);
  padding: var(--s1) var(--s2);
  background: var(--bg-alt);
  font-style: italic;
  margin: var(--s3) 0;
  max-width: 720px;
}
.free-search-teaser {
  border-left: 4px solid var(--accent);
  padding: var(--s2);
  background: var(--bg-alt);
  margin: var(--s4) 0 var(--s3);
  max-width: 720px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}
.free-search-teaser p { margin: 0; font-size: 16px; }
.free-search-teaser .btn { padding: 10px 22px; font-size: 15px; white-space: nowrap; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Search page ────────────────────────────────────────── */
.search-page { padding: 64px 0; min-height: 60vh; }
.search-page h1 { font-size: 32px; margin-bottom: var(--s3); }
.search-form {
  display: flex;
  gap: var(--s1);
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: var(--s4);
}
.search-form .field { display: flex; flex-direction: column; gap: 6px; }
.search-form .field-wide { flex: 1 1 100%; }
.search-form .field-wide input { width: 100%; }
.search-form label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.search-form select, .search-form input[type="text"] {
  font-family: inherit;
  font-size: 16px;
  color: var(--text-dark);
  padding: 12px 14px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  background: #fff;
}
.search-form input[type="text"] { min-width: 320px; }
.results-placeholder {
  border: 1px dashed var(--border);
  padding: var(--s4);
  text-align: center;
  color: var(--text);
  max-width: 800px;
}

/* ── Search results ─────────────────────────────────────── */
.search-status {
  display: none;
  align-items: center;
  gap: var(--s1);
  padding: var(--s2) 0;
  color: var(--text-dark);
  font-weight: 600;
}
.search-status.on { display: flex; }
.spinner {
  width: 20px; height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results-list { display: flex; flex-direction: column; gap: var(--s2); max-width: 900px; }
.results-meta { font-size: 14px; margin-bottom: var(--s2); }

.result-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: var(--s2) var(--s3);
}
.result-head {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.type-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--blue);
  padding: 3px 8px;
  flex: none;
}
.result-head h3 { font-size: 18px; }
.result-country { font-size: 14px; }
.match-score {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.result-desc { font-size: 15px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s1); }
.chip {
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 2px 8px;
  background: var(--bg-alt);
}

.contacts-locked {
  display: flex;
  align-items: center;
  gap: var(--s1);
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 14px;
}
.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.contacts-locked .unlock-link {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}
.results-error {
  border-left: 4px solid #c0392b;
  background: var(--bg-alt);
  padding: var(--s2);
  color: var(--text-dark);
  max-width: 800px;
}

/* ── Request-to-providers (unlocked) ────────────────────── */
.result-card .select-provider {
  float: right;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  margin-left: var(--s1);
}
.select-provider input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.select-provider.off { opacity: 0.4; cursor: not-allowed; }
.select-provider.off input { cursor: not-allowed; }

.request-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--blue);
  color: #fff;
  padding: 14px 0;
  display: none;
  z-index: 50;
}
.request-bar.on { display: block; }
.request-bar .container { display: flex; align-items: center; gap: var(--s2); }
.request-bar .count { font-weight: 600; }
.request-bar .btn { padding: 10px 24px; }

/* ── Screenshot frame — browser-chrome wrapper around illustrative mockups,
   so they read as "this is a real screen" rather than a floating content block. ── */
.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

/* ── Mock tabs — switches the screenshot-frame between three illustrative
   screens (agent chat, cabinet table, unlock before/after). ── */
.mock-tabs-wrap { margin: var(--s3) 0; }
.mock-tabs-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.mock-tab-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: background .15s ease, color .15s ease;
}
.mock-tab-btn:hover { background: #e9e9e9; color: var(--text-dark); }
.mock-tab-btn.active {
  background: #fff;
  color: var(--blue);
  position: relative;
  z-index: 1;
  box-shadow: 0 -2px 0 var(--blue) inset;
}
.mock-tabs-nav + .screenshot-frame { border-top-left-radius: 0; }
.mock-tab-panel { display: none; padding: var(--s2) var(--s3); }
.mock-tab-panel.active { display: block; }
@media (max-width: 640px) {
  .mock-tab-btn { font-size: 13px; padding: 9px 12px; }
}
.screenshot-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
}
.screenshot-frame-dot { width: 9px; height: 9px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; }
.screenshot-frame-url {
  margin-left: 10px;
  font-family: 'IBM Plex Sans', monospace;
  font-size: 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 12px;
}

/* ── AI assistant + draft mockup (illustrative — "Included with your access") ──
   Colors/layout mirror the real agent.html two-column chat (public/css/agent.css)
   and appdash.html's My Applications table (public/css/dashboard.css) — these
   are NOT imported wholesale (dashboard.css sets a dark body background meant
   for the cabinet SPA shell, which would break this public marketing page), so
   the relevant rules are reproduced here under their own scoped class names. */
.agent-mock-wrap { margin: var(--s3) 0; }
.agent-mock-body {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  padding: var(--s2);
  background: var(--bg-alt);
}
.agent-mock-chat {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  padding: var(--s2) var(--s3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-mock-msg { display: flex; gap: 10px; max-width: 88%; }
.agent-mock-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.agent-mock-msg.bot { align-self: flex-start; }
.agent-mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.agent-mock-msg.bot .agent-mock-avatar {
  background-color: #0e2247;
  background-image: url('/images/logo_transparent.png');
  background-repeat: no-repeat;
  background-size: auto 20px;
  background-position: center;
}
.agent-mock-msg.user .agent-mock-avatar { background: #dbeafe; color: #1d4ed8; }
.agent-mock-bubble { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.agent-mock-msg.bot .agent-mock-bubble { background: #f8fafc; border: 1px solid #e2e8f0; color: #1e293b; border-top-left-radius: 4px; }
.agent-mock-msg.user .agent-mock-bubble { background: #4f46e5; color: #fff; border-top-right-radius: 4px; }

.agent-mock-draft-col { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.agent-mock-draft-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.agent-mock-draft-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-mock-type-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
  letter-spacing: .03em;
  white-space: nowrap;
}
.agent-mock-progress-wrap { padding: 10px 16px 6px; }
.agent-mock-progress-label { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.agent-mock-progress-bar { height: 4px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.agent-mock-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 4px; }
.agent-mock-fields { padding: 12px 16px; }
.agent-mock-field-row { margin-bottom: 10px; }
.agent-mock-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.agent-mock-field-value { font-size: 13px; color: #1e293b; line-height: 1.4; }
.agent-mock-done-notice {
  padding: 12px 16px;
  background: #f0fdf4;
  border-top: 1px solid #dcfce7;
  font-size: 13px;
  color: #15803d;
  font-weight: 600;
}
.agent-mock-save-btn {
  width: 100%;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 10px;
  opacity: .5;
  cursor: default;
  font-family: inherit;
}
@media (max-width: 900px) {
  .agent-mock-body { flex-direction: column; }
  .agent-mock-draft-col { width: 100%; }
}

/* ── "My Applications" cabinet mockup (illustrative) ── */
.appdash-mock-wrap { margin: var(--s3) 0; }
.appdash-mock-card { background: #fff; overflow: hidden; }
.appdash-mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.appdash-mock-title { font-size: 18px; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.appdash-mock-kpis { display: flex; align-items: center; gap: var(--s2); }
.appdash-mock-kpi { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.appdash-mock-kpi-num { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.appdash-mock-kpi.muted .appdash-mock-kpi-num { color: #cbd5e1; }
.appdash-mock-kpi-label { font-size: 11px; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.appdash-mock-kpi-divider { width: 1px; height: 28px; background: var(--border); }
.appdash-mock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.appdash-mock-actions .btn { padding: 8px 16px; font-size: 13px; cursor: default; opacity: .92; }

.appdash-mock-table-wrap { overflow-x: auto; }
.appdash-mock-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.appdash-mock-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.appdash-mock-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--border); }
.appdash-mock-app-name { font-weight: 600; color: var(--text-dark); }
.appdash-mock-app-type { font-size: 12px; color: var(--text); margin-top: 2px; }
.appdash-mock-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.appdash-mock-status.approved { background: #d1fae5; color: #065f46; }
.appdash-mock-ai-score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.appdash-mock-ai-pct { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.appdash-mock-ai-bar { display: block; width: 52px; height: 5px; border-radius: 3px; overflow: hidden; background: #e2e8f0; }
.appdash-mock-ai-bar span { display: block; height: 100%; background: #22c55e; }
.appdash-mock-ai-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #16a34a; }
.appdash-mock-reply-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; white-space: nowrap; }
.appdash-mock-reply-row + .appdash-mock-reply-row { border-top: 1px solid #f1f5f9; }
.appdash-mock-provider { font-size: 13px; font-weight: 600; color: var(--text-dark); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.appdash-mock-reply-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.appdash-mock-reply-badge.accepted { background: #d1fae5; color: #065f46; }
.appdash-mock-reply-badge.review { background: #dbeafe; color: #1d4ed8; }
.appdash-mock-reply-badge.declined { background: #fee2e2; color: #dc2626; }
.appdash-mock-reply-date { font-size: 12px; color: var(--text); opacity: .8; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  section { padding: 56px 0; }
  /* !important: mobile.css (platform static pages) forces .hero
     { padding: 1.5rem 1.2rem; border-radius: 14px } !important — override it,
     the funnel hero manages its own geometry (side padding lives in .container). */
  .hero { padding: 16px 0 22px !important; border-radius: 0 !important; }
  .hero h1 { font-size: 24px !important; margin-bottom: 10px; }
  .hero .subhead { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
  /* Selects stack full-width on mobile: option texts must never clip
     ("Not sure — AI decides", "Certification Body (ISO / product certification)").
     The fold budget is already won by compact paddings + the inline location row. */
  .hero .hero-form { flex-direction: column; gap: 8px; }
  .hero .hero-form .field { gap: 4px; }
  /* Location toggle: compact row (label + segmented control inline) */
  .hero .hero-form .field-loc { flex-direction: row; align-items: center; gap: 10px; }
  .hero .hero-form .field-loc .loc-toggle { height: auto; }
  .hero-form select { padding: 9px 32px 9px 10px; background-position: right 10px center; }
  .hero-form input[type="text"] { padding: 9px 12px; }
  .hero-form label { font-size: 12px; }
  .loc-toggle { height: auto; }
  .loc-toggle-option { padding: 8px 10px; font-size: 13px; }
  .paths, .stats, .guides { grid-template-columns: 1fr; }
  .freepaid-grid { grid-template-columns: minmax(0,1fr); }
  .price-cards-row { grid-template-columns: minmax(0,1fr); }
  .result-example-grid { grid-template-columns: minmax(0,1fr); }
  .guide-search-form { flex-direction: column; max-width: none; }
  .hero-form { flex-direction: column; align-items: stretch; }
  .hero-form select { min-width: 0; width: 100%; }
}

/* Public content pages (about/faq/how-it-works/news/legal): the fixed
   "Back" button uses a purple gradient meant for the dashboard/admin
   context — swap to the funnel's blue/yellow palette here. */
body.funnel-light .back-btn-fixed {
  background: var(--blue) !important;
  box-shadow: 0 2px 12px rgba(0,51,153,0.35) !important;
}
