/* portal-p6.css — portal-index.html's own landing-page system ("p6").
   Not shared with any other page — extracted from an inline <style> block
   purely for cleanliness (no duplication to remove here). */

.reg-type-selector { margin-bottom: 1rem; }
.reg-type-label { font-size: .82rem; font-weight: 700; color: #64748b; margin-bottom: .45rem; text-transform: uppercase; letter-spacing: .04em; }
.reg-type-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem; }
.reg-type-btn { padding: .38rem .9rem; border-radius: 999px; border: 1.5px solid #cbd5e1; background: #f8fafc; color: #334155; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; line-height: 1.4; }
.reg-type-btn:hover { border-color: #3b82f6; color: #1e40af; background: #eff6ff; }
.reg-type-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.reg-type-error { color: #dc2626; font-size: .82rem; margin-top: .1rem; display: none; }
.reg-type-error.visible { display: block; }
.email-avail-hint { font-size: .8rem; margin-top: .25rem; min-height: 1rem; }
.email-avail-hint.taken { color: #dc2626; font-weight: 600; }
.email-avail-hint.ok { color: #16a34a; }
.email-avail-hint.checking { color: #94a3b8; }
.pw-field { position: relative; margin-bottom: 0; }
.pw-field input { padding-right: 42px !important; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 15px; color: #94a3b8; padding: 2px 4px; line-height: 1; }
.pw-toggle:hover { color: #1e3a8a; }
.field-hint { font-size: .78rem; color: #94a3b8; margin: -8px 0 8px; }
.terms-label { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: .82rem; color: #334155; margin: 8px 0 2px; cursor: pointer; }
.terms-label input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; }
.terms-label a { color: #2563eb; text-decoration: underline; }
.reg-switch-link { text-align: center; font-size: .82rem; color: #64748b; margin-top: 10px; }
.reg-switch-link a { color: #2563eb; text-decoration: underline; cursor: pointer; }
html, body { overflow: hidden; height: 100%; }
/* Scoped to .p6-page (this page's own content, not html/body) — portal-index.html
   is served as the persistent shell for every portal-zone page (see server.js's
   zone==='portal' dispatcher), so an unscoped html/body override here would leak
   this white theme onto every other spliced-in portal page's own background. */
#scrollArea.p6-page, .p6-page { background: #ffffff !important; color: #10284f; }
/* Portal header is 61px (not the 80px main.css's generic #scrollArea assumes),
   leaving a gap where body's own dark background (main.css, no static-pages.css
   on this page) shows through. Self-scoping via :has() so it only applies while
   this page's own #scrollArea.p6-page is live (see main.js #scrollArea class sync). */
body:has(> #scrollArea.p6-page) { background: #ffffff !important; }
#scrollArea, main { background: transparent !important; }
#scrollArea .header-container, #scrollArea header, #pageContainer .header-container, #pageContainer header { display: none !important; }
:root { --p6-card-bg: #f8fafc; --p6-card-bg-hover: #eef2f7; --p6-card-border: #dbe5ef; --p6-gold: #facc15; --p6-gold-dim: rgba(10,52,136,0.10); }
.p6-page { position: relative; z-index: 1; overflow-x: hidden; }
.p6-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.p6-hero { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(370px, 0.72fr); gap: 28px 36px; align-items: start; align-content: start; padding: 30px 0 40px; }
.p6-hero > div:first-child { display: contents; }
.p6-kicker, .p6-hero h1, .p6-lead, .p6-actions { grid-column: 1; }
.p6-kicker { width: fit-content; margin: 0 0 18px; padding: 7px 12px; border: 1px solid rgba(10,52,136,0.28); border-radius: 999px; background: rgba(10,52,136,0.06); color: #0a3488; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.p6-hero h1 { max-width: 820px; margin: 0 0 18px; color: #10284f; font-size: clamp(1.75rem, 2.6vw, 2.8rem); line-height: 1.08; letter-spacing: 0; }
.p6-hero h1 span { color: #0a3488; }
.p6-lead { max-width: 760px; margin: 0 0 24px; color: #4e6177; font-size: clamp(1.04rem,1.8vw,1.32rem); line-height: 1.58; }
.p6-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.p6-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 900; cursor: pointer; text-decoration: none; transition: transform .18s, filter .18s, border-color .18s, background .18s; }
.p6-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.p6-btn-primary { background: #facc15 !important; color: #0f172a !important; }
button.p6-btn-primary:hover, a.p6-btn-primary:hover { background: #eab308 !important; color: #0f172a !important; }
.p6-btn-secondary { background: #f1f5f9; color: #10284f; border-color: #dbe5ef; }
.p6-types-wrap { padding: 26px 0 32px; }
.p6-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: 100%; }
.p6-type-card { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-radius: 16px; border: 1px solid var(--p6-card-border); background: var(--p6-card-bg); color: #10284f; text-decoration: none; transition: transform .18s, background .18s, border-color .18s; cursor: pointer; }
.p6-type-card:hover { transform: translateY(-2px); background: var(--p6-card-bg-hover); border-color: rgba(10,52,136,0.4); }
.p6-type-card.is-active { border-color: rgba(10,52,136,0.6); background: var(--p6-card-bg-hover); }
.p6-type-badge { width: fit-content; margin-bottom: 10px; padding: 4px 8px; border-radius: 999px; background: var(--p6-gold-dim); color: #0a3488; font-size: 0.72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.p6-type-q { margin: 0 0 8px; color: #10284f; font-size: 0.9rem; font-weight: 850; line-height: 1.26; }
.p6-type-desc { margin: 0; color: #4e6177; font-size: 0.78rem; line-height: 1.35; }
.p6-type-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: #0a3488; font-size: 0.86rem; font-weight: 900; }
.p6-panel { grid-column: 2; grid-row: 1 / 4; margin-top: 0; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #dbe5ef; color: #0f244b; }
.p6-panel-cta { margin-top: 16px; width: 100%; font-size: 1rem; }
.p6-section { padding: 54px 0; background: transparent; color: #10284f; }
#p6-benefits { background: #f5f5f5; }
#p6-process { background: #ffffff; }
#portal-agent-section { background: #f5f5f5; }
#p6-final-cta { background: #ffffff; }
.p6-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.p6-section-head h2 { max-width: 780px; margin: 0; font-size: clamp(1.9rem,4vw,3.05rem); line-height: 1.08; letter-spacing: 0; }
.p6-section-head p { max-width: 420px; margin: 0; color: #4e6177; font-size: 1rem; }
.p6-section-kicker { font-size: 0.8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #0a3488; }
.p6-benefits-router { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 20px; }
.p6-benefits-tabs { display: grid; gap: 10px; align-content: start; }
.p6-tab { width: 100%; min-height: 60px; padding: 10px 15px; border-radius: 14px; border: 1px solid var(--p6-card-border); border-left: 5px solid transparent; background: var(--p6-card-bg); color: #10284f; text-align: left; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.p6-tab:hover { transform: translateY(-1px); background: var(--p6-card-bg-hover); }
.p6-tab.is-active { transform: translateY(-1px); background: var(--p6-card-bg); border-left-color: #0a3488; }
.p6-tab b, .p6-tab span { display: block; }
.p6-tab b { margin-bottom: 3px; font-size: 0.95rem; }
.p6-tab span { color: #4e6177; font-size: 0.82rem; }
.p6-benefits-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid #dbe5ef; color: #102033; }
.p6-card-kicker { color: #0a3488; font-size: 0.8rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.p6-benefits-card h3 { margin: 9px 0 11px; font-size: clamp(1.7rem,3vw,2.2rem); line-height: 1.08; letter-spacing: 0; color: #10284f; }
.p6-benefits-card > p { margin: 0 0 20px; color: #4e6177; font-size: 1.02rem; line-height: 1.58; }
.p6-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p6-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: #253d5e; line-height: 1.48; }
.p6-check-icon { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #e8f8ee; color: #16a34a; margin-top: 1px; }
.p6-card-cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.p6-card-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .18s, filter .18s; font-size: 0.94rem; }
.p6-card-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.p6-card-btn-primary { background: linear-gradient(135deg, #eab308 0%, #facc15 62%, #fde047 100%); color: #0f172a; }
.p6-card-btn-secondary { background: #f1f5f9; color: #0f244b; border-color: #dbe5ef; }
.p6-process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.p6-process-card { min-height: 242px; padding: 22px; border-radius: 16px; background: var(--p6-card-bg); border: 1px solid var(--p6-card-border); }
.p6-process-num { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--p6-gold-dim); border: 1px solid rgba(10,52,136,0.3); color: #0a3488; font-size: 1.25rem; font-weight: 900; }
.p6-process-card h3 { margin: 0 0 12px; color: #10284f; font-size: 1.05rem; line-height: 1.24; letter-spacing: 0; }
.p6-process-card p { margin: 0; color: #4e6177; font-size: 0.94rem; line-height: 1.5; }
.p6-pilot { padding: 36px 40px; border-radius: 22px; background: linear-gradient(135deg, #eff6ff 0%, #e0eaf7 100%); border: 1px solid rgba(10,52,136,0.24); box-shadow: 0 0 0 1px rgba(10,52,136,0.06); }
.p6-pilot-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.p6-pilot h2 { margin: 0 0 10px; color: #10284f; font-size: clamp(1.7rem,3.5vw,2.5rem); line-height: 1.1; }
.p6-pilot h2 span { color: #0a3488; }
.p6-pilot p { margin: 0 0 20px; color: #4e6177; font-size: 1rem; line-height: 1.58; max-width: 640px; }
.p6-pilot-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.p6-pilot-badge { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(10,52,136,0.24); color: #0a3488; font-size: 0.82rem; font-weight: 700; letter-spacing: .04em; }
.p6-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.p6-trust-card { min-height: 220px; padding: 22px; border-radius: 16px; background: var(--p6-card-bg); border: 1px solid var(--p6-card-border); box-shadow: 0 8px 20px rgba(15,36,75,0.06); }
.p6-trust-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; }
.p6-trust-icon.green { background: #e8f8ee; color: #16a34a; }
.p6-trust-icon.blue  { background: #e9f1fb; color: #2563eb; }
.p6-trust-icon.amber { background: #fbf4d2; color: #a16207; }
.p6-trust-card h3 { margin: 0 0 10px; color: #10284f; font-size: 1.02rem; line-height: 1.26; letter-spacing: 0; }
.p6-trust-card p { margin: 0; color: #4e6177; font-size: 0.94rem; line-height: 1.5; }
.p6-final { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: 32px; border-radius: 22px; background: var(--p6-card-bg); border: 1px solid var(--p6-card-border); color: #10284f; }
.p6-final h2 { margin: 0 0 8px; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.08; letter-spacing: 0; }
.p6-final p { max-width: 720px; margin: 0; color: #4e6177; }
.p6-type-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.p6-type-pill { padding: 5px 11px; border-radius: 999px; background: rgba(10,52,136,0.10); border: 1px solid #dbe5ef; color: #0a3488; font-size: 0.78rem; font-weight: 700; }
.p6-panel-title { margin: 0 0 16px; color: #10284f; font-size: 1.25rem; line-height: 1.18; letter-spacing: 0; font-weight: 800; }
.p6-panel-link { display: block; text-align: center; margin-top: 18px; color: #0a3488; font-weight: 700; font-size: 0.92rem; text-decoration: none !important; }
.p6-panel-link:hover { text-decoration: none !important; }
.p6-checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 11px; }
.p6-checks li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 9px; color: #43566f; line-height: 1.45; font-size: .94rem; align-items: start; }
.p6-checks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: #e8f8ee; border: 1px solid #bbf7d0; flex-shrink: 0; display: block; margin-top: 1px; color: #16a34a; font-size: 13px; font-weight: 900; line-height: 22px; text-align: center; }
@media (max-width: 980px) {
  .p6-hero > div:first-child { display: block; }
  .p6-hero, .p6-final, .p6-pilot-inner { grid-template-columns: 1fr; }
  .p6-kicker, .p6-hero h1, .p6-lead, .p6-actions, .p6-panel { grid-column: auto; grid-row: auto; margin-top: 0; }
  .p6-types { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .p6-process { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .p6-trust-grid { grid-template-columns: 1fr; }
  .p6-benefits-router { grid-template-columns: 1fr; }
  .p6-section-head { display: block; }
  .p6-section-head p { margin-top: 12px; }
}
@media (max-width: 768px) {
  .p6-wrap { width: min(100% - 24px, 1180px); }
  .p6-hero { padding-top: 30px; }
  .p6-hero h1 { font-size: 1.65rem; }
  .p6-types, .p6-process, .p6-trust-grid { grid-template-columns: 1fr; }
  .p6-actions { flex-direction: column; }
  .p6-btn, .p6-actions button { width: 100% !important; box-sizing: border-box !important; max-width: 100% !important; }
  .p6-panel, .p6-benefits-card, .p6-final, .p6-pilot { padding: 19px; border-radius: 18px; }
  .p6-pilot { padding: 20px 18px; }
}

/* ── Agent embed section ── */
#portal-agent-section { padding: 32px 0 54px; }
#agent-samples-block {
  margin-top: 20px;
  padding: 18px 24px 20px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 18px;
}
#agent-samples-block .samples-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a3488;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  text-align: left;
}
#agent-samples-block .agent-samples-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
#portal-agent-section .sample-tab-btn {
  padding: 9px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #10284f;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
}
#portal-agent-section .sample-tab-btn:hover {
  background: #eef2f7;
  border-color: #0a3488;
  transform: translateY(-2px);
  color: #10284f;
}
#portal-agent-section .sample-tab-btn.active {
  background: #0a3488;
  border-color: #0a3488;
  color: #fff;
  transform: none;
}
#portal-agent-section .sample-preview {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  overflow: hidden;
}
#portal-agent-section .sample-preview-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}
#portal-agent-section .sample-preview-frame {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}
@media (max-width: 700px) {
  #portal-agent-section .agent-wrap { height: auto !important; }
  #portal-agent-section .agent-chat-col { min-height: 280px; }
  #agent-samples-block .agent-samples-btns { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  #agent-samples-block .sample-tab-btn { flex-shrink: 0; }
  #portal-agent-section .sample-preview-frame { height: 420px; }
}
@media (max-width: 480px) {
  #zone-hint { display: none !important; }
}
