/* ============================================================
   DealArena · /enterprise — "Franchise Mode"
   Ported from the design handoff (Enterprise.dc.html), re-synced
   against the 2026-08-20 bundle.
   Everything is namespaced under .p-enterprise so nothing leaks
   into the marketing shell.

   NOTE on --green: marketing-shell.css redefines --green as brand
   ORANGE for legacy template references, so anything sitting ON a
   var(--green) fill is sitting on orange and must use --on-brand
   (#201009), never #fff. Literal green is --ep-green-ok here.
   ============================================================ */

.p-enterprise {
  /* The marketing shell does not carry --on-brand. It is the brand
     spec's ink for anything on an orange fill. */
  --on-brand: #201009;
  --ep-surface-2: #faf9f4;
  --ep-surface-3: #fcfbf7;
  --ep-inset: #efeee8;
  --ep-line-soft: #e6e5de;
  --ep-line-dash: #cfceca;
  --ep-line-mid: #d8d7cf;
  --ep-orange-deep: #c4471a;
  --ep-orange-tint: rgba(239,89,32,0.07);
  --ep-orange-bd: rgba(239,89,32,0.3);
  --ep-gold: #ffd23f;
  --ep-gold-tint: #fff3c4;
  --ep-gold-bd: #f0dd8f;
  --ep-gold-ink: #7a6510;
  --ep-green-ok: #1f8a4c;
  --ep-red-err: #c02626;
  overflow-x: clip;
  color: var(--ink);
}
.p-enterprise ::selection { background: rgba(239,89,32,0.25); }
.p-enterprise a { text-decoration: none; }
.p-enterprise input, .p-enterprise select, .p-enterprise textarea { box-sizing: border-box; }
.p-enterprise input::placeholder, .p-enterprise textarea::placeholder { color: var(--ink-4); }

/* --- range slider (custom thumb) --- */
.p-enterprise input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
.p-enterprise input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: #e3e2db; }
.p-enterprise input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; background: var(--green); border: 3px solid #ffffff; box-shadow: 0 2px 10px rgba(239,89,32,0.45), 0 0 0 1px var(--line); margin-top: -8px; cursor: grab; }
.p-enterprise input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: #e3e2db; }
.p-enterprise input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ef5920, #ff8a4d); }
.p-enterprise input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--green); border: 3px solid #ffffff; box-shadow: 0 2px 10px rgba(239,89,32,0.45); cursor: grab; }

/* --- keyframes --- */
@keyframes epPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes epBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes epToast { 0% { transform: translateY(16px); opacity: 0; } 12% { transform: translateY(0); opacity: 1; } 86% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes epPopIn { 0% { transform: translateY(26px) scale(0.94); opacity: 0; } 60% { transform: translateY(-6px) scale(1.015); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes epFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes epRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes epWiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-2deg); } }

/* ============ HERO · FRANCHISE MODE ============ */
.p-enterprise .ep-hero { max-width: 1240px; margin: 0 auto; padding: 58px 28px 26px; position: relative; }
.p-enterprise .ep-hero-tint { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(720px 380px at 78% 0%, rgba(239,89,32,0.07), transparent 65%); }
.p-enterprise .ep-watermark { position: absolute; top: 12px; right: -70px; width: 460px; height: 460px; pointer-events: none; opacity: 0.07; }
.p-enterprise .ep-watermark svg { width: 100%; height: 100%; display: block; }
.p-enterprise .ep-kicker { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; display: flex; align-items: center; gap: 12px; position: relative; }
.p-enterprise .ep-kicker .k-hl { color: var(--green); font-weight: 700; }
.p-enterprise .ep-kicker .k-rule { flex: 1 1 40px; height: 1px; background: linear-gradient(90deg, var(--ep-line-mid), transparent); }
.p-enterprise .ep-h1 { font-family: var(--display); font-size: clamp(46px, 6.8vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 0.97; margin: 24px 0 0; max-width: 1020px; text-wrap: balance; position: relative; }
.p-enterprise .ep-h1 .glow { color: var(--green); text-shadow: 0 0 22px rgba(239,89,32,0.28); }
.p-enterprise .ep-lead { font-size: 17px; color: var(--ink-2); line-height: 1.65; max-width: 660px; margin: 22px 0 0; position: relative; }
.p-enterprise .ep-lead strong { color: var(--ink); }

/* ============ DRAFT CONSOLE ============ */
.p-enterprise .ep-console { margin-top: 38px; max-width: 800px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(13,16,14,0.08); position: relative; }
.p-enterprise .ep-console-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--ep-surface-2); border-bottom: 1px solid var(--line); }
.p-enterprise .ep-step-chip { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--on-brand); background: var(--green); padding: 4px 10px; border-radius: 5px; letter-spacing: 0.12em; }
.p-enterprise .ep-console-title { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.p-enterprise .ep-console-page { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.p-enterprise .ep-console-body { padding: 24px 26px 26px; }
/* minmax(0,…) not 1.1fr/1fr: a grid item's auto minimum is its min-content,
   and .ep-tagbox input is a bare <input> whose intrinsic width is ~20
   characters at 24px display type (~350px). That blew the single-column
   phone track out to 350px inside a 266px body, and overflow-x:clip on the
   page root hid it by cutting the tier buttons off instead of scrolling. */
.p-enterprise .ep-console-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.p-enterprise .ep-lab { font-family: var(--mono); font-size: 11px; color: var(--ep-orange-deep); font-weight: 700; letter-spacing: 0.1em; display: block; }
.p-enterprise .ep-tagbox { margin-top: 10px; display: flex; align-items: center; gap: 5px; background: var(--ep-surface-2); border: 1px solid var(--line); border-bottom: 3px solid var(--green); border-radius: 10px 10px 4px 4px; padding: 12px 14px; }
.p-enterprise .ep-tagbox input { flex: 1; background: transparent; border: 0; outline: none; color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; min-width: 120px; }
.p-enterprise .ep-caret { width: 11px; height: 24px; background: var(--green); animation: epBlink 1.1s step-end infinite; flex: none; }
.p-enterprise .ep-hint { margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.p-enterprise .ep-tiers { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.p-enterprise .ep-tier { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; padding: 12px 6px 10px; border-radius: 10px; cursor: pointer; text-align: center; background: var(--ep-surface-2); border: 2px solid var(--line); color: var(--ink-3); transition: border-color 0.12s; }
.p-enterprise .ep-tier:hover { border-color: var(--green); }
.p-enterprise .ep-tier.active { background: var(--green); border-color: var(--green); color: var(--on-brand); }
.p-enterprise .ep-tier .t-range { display: block; font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; }
.p-enterprise .ep-tier .t-name { display: block; margin-top: 3px; }
.p-enterprise .ep-slider-wrap { margin-top: 24px; }
.p-enterprise .ep-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p-enterprise .ep-seats-val { color: var(--ink); font-family: var(--display); font-size: 21px; letter-spacing: 0; }
.p-enterprise .ep-seats-unit { color: var(--ink-3); font-weight: 400; }
.p-enterprise .ep-rate { font-family: var(--mono); font-size: 10.5px; color: var(--ep-green-ok); font-weight: 700; letter-spacing: 0.08em; }
.p-enterprise .ep-range { width: 100%; margin-top: 12px; cursor: grab; }
.p-enterprise .ep-console-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-enterprise .ep-micro { font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }
.p-enterprise .ep-lock { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--on-brand); background: var(--green); padding: 13px 20px; border-radius: 9px; display: inline-block; letter-spacing: 0.05em; transition: transform 0.12s, box-shadow 0.12s; }
.p-enterprise .ep-lock:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(239,89,32,0.35); }

/* ============ THE ARENA · LIVE SIM ============ */
.p-enterprise .ep-arena-sec { max-width: 1240px; margin: 0 auto; padding: 26px 28px 10px; }
.p-enterprise .ep-arena { background: var(--bg-1); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(13,16,14,0.09); }
.p-enterprise .ep-chrome { display: flex; align-items: center; gap: 10px; padding: 13px 20px; background: var(--ep-surface-2); border-bottom: 1px solid var(--line); }
.p-enterprise .ep-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ep-line-mid); flex: none; }
.p-enterprise .ep-chrome .dot.hot { background: var(--green); }
/* Design's own treatment on this span: the slug is typed by the visitor, so
   the URL truncates instead of stretching the chrome bar. */
.p-enterprise .ep-url { flex: 1; min-width: 0; margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-enterprise .ep-url b { color: var(--ep-orange-deep); font-weight: 700; }
.p-enterprise .ep-chrome-right { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-4); }
.p-enterprise .ep-arena-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; }
.p-enterprise .ep-ladder { padding: 24px 26px 26px; border-right: 1px solid var(--ep-inset); min-width: 0; }
.p-enterprise .ep-ladder-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.p-enterprise .ep-ladder-title { min-width: 0; overflow-wrap: anywhere; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.p-enterprise .ep-ladder-sub { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; }
.p-enterprise .ep-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.p-enterprise .ep-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--bg-1); border: 1px solid var(--ep-line-soft); border-radius: 10px; padding: 10px 14px; }
.p-enterprise .ep-row.top { background: #fff7ef; border-color: rgba(239,89,32,0.4); }
.p-enterprise .ep-row .rank { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-4); }
.p-enterprise .ep-row.top .rank { color: var(--green); }
.p-enterprise .ep-row .rmain { min-width: 0; }
.p-enterprise .ep-row .rline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* nowrap + ellipsis is the design's own treatment on this span
   (Enterprise.dc.html ladder row): rows 01 and 04 carry the typed franchise
   tag, so ACME_SALES_ROOKIE_01 has to truncate rather than widen the row. */
.p-enterprise .ep-row .rname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.p-enterprise .ep-row .rbadge { flex: none; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); border: 1px solid var(--ep-line-mid); padding: 2px 7px; border-radius: 4px; letter-spacing: 0.08em; }
.p-enterprise .ep-row.top .rbadge { color: var(--ep-orange-deep); border-color: rgba(239,89,32,0.4); }
.p-enterprise .ep-row .rbar { margin-top: 6px; height: 6px; background: var(--ep-inset); border-radius: 999px; overflow: hidden; max-width: 320px; }
.p-enterprise .ep-row .rbar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #ef5920, #ff8a4d); border-radius: 999px; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.p-enterprise .ep-row .rright { text-align: right; }
.p-enterprise .ep-row .rxp { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.p-enterprise .ep-row .rdeals { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.p-enterprise .ep-bench { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed var(--ep-line-dash); border-radius: 10px; padding: 11px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.p-enterprise .ep-bench a { color: var(--ep-orange-deep); font-weight: 700; }
.p-enterprise .ep-bench a:hover { color: var(--green); }
.p-enterprise .ep-coach { padding: 24px 26px 26px; background: var(--ep-surface-3); min-width: 0; }
.p-enterprise .ep-coach-kicker { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.12em; }
.p-enterprise .ep-coach-h { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 10px 0 0; }
.p-enterprise .ep-coach-h .hl { color: var(--green); }
.p-enterprise .ep-feed { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.p-enterprise .ep-fcard { background: var(--bg-1); border: 1px solid var(--ep-line-soft); border-radius: 10px; padding: 12px 14px; }
.p-enterprise .ep-fcard .fmeta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.p-enterprise .ep-fcard .fagent { font-weight: 700; }
.p-enterprise .ep-fcard .fagent.ag-csm { color: var(--ep-gold-ink); }
.p-enterprise .ep-fcard .fagent.ag-origin { color: var(--ep-green-ok); }
.p-enterprise .ep-fcard .fagent.ag-sauce { color: #5a4fcf; }
.p-enterprise .ep-fcard .fwhen { color: #b9bfba; }
.p-enterprise .ep-fcard .fline { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.p-enterprise .ep-fcard .fcite { margin-top: 7px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; color: var(--ep-gold-ink); background: var(--ep-gold-tint); border: 1px solid var(--ep-gold-bd); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.p-enterprise .ep-coach-note { margin-top: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); line-height: 1.7; }
.p-enterprise .ep-sim-note { margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }

/* ============ FRONT OFFICE ============ */
.p-enterprise .ep-front-sec { max-width: 1240px; margin: 0 auto; padding: 48px 28px 8px; }
.p-enterprise .ep-kicker2 { font-family: var(--mono); font-size: 11px; color: var(--ep-orange-deep); letter-spacing: 0.14em; font-weight: 700; }
.p-enterprise .ep-h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 12px 0 0; max-width: 820px; text-wrap: balance; }
.p-enterprise .ep-h2 .hl { color: var(--green); }
.p-enterprise .ep-cards3 { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-enterprise .ep-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.p-enterprise .ep-chipbadge { font-family: var(--mono); font-size: 10.5px; display: inline-block; padding: 4px 10px; border-radius: 5px; letter-spacing: 0.1em; font-weight: 700; }
.p-enterprise .ep-chipbadge.gold { color: var(--ep-gold-ink); background: var(--ep-gold-tint); border: 1px solid var(--ep-gold-bd); }
.p-enterprise .ep-chipbadge.orange { color: var(--ep-orange-deep); background: var(--ep-orange-tint); border: 1px solid var(--ep-orange-bd); }
.p-enterprise .ep-chipbadge.green { color: var(--ep-green-ok); background: rgba(31,138,76,0.07); border: 1px solid rgba(31,138,76,0.3); }
.p-enterprise .ep-card h3 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 14px 0 0; line-height: 1.2; }
.p-enterprise .ep-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 10px 0 0; }

/* ============ QUESTLINE ============ */
.p-enterprise .ep-quest-sec { max-width: 1240px; margin: 0 auto; padding: 52px 28px 16px; }
.p-enterprise .ep-quest-lead { font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 680px; margin: 14px 0 0; }
.p-enterprise .ep-quest-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.p-enterprise .ep-quest-rail { position: absolute; top: 21px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, #ef5920 0 8px, transparent 8px 16px); opacity: 0.5; }
.p-enterprise .ep-qcol { position: relative; }
.p-enterprise .ep-qnode { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-1); border: 2px solid var(--ep-line-dash); color: var(--ink-3); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 15px; position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(13,16,14,0.1); }
.p-enterprise .ep-qcol.done .ep-qnode { background: var(--green); border-color: var(--green); color: var(--on-brand); }
.p-enterprise .ep-qcard { margin-top: 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 18px; min-height: 250px; }
.p-enterprise .ep-qwhen { font-family: var(--mono); font-size: 9.5px; color: var(--ep-orange-deep); letter-spacing: 0.1em; font-weight: 700; }
.p-enterprise .ep-qtitle { font-family: var(--display); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 8px 0 0; }
.p-enterprise .ep-qitems { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.p-enterprise .ep-qitems li { font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); line-height: 1.5; padding-left: 12px; position: relative; }
.p-enterprise .ep-qitems li::before { content: '·'; position: absolute; left: 0; color: var(--green); }
.p-enterprise .ep-qboss { margin-top: 12px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); background: var(--ep-surface-2); border: 1px solid var(--line); display: inline-block; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; }
.p-enterprise .ep-qcol.done .ep-qboss { color: var(--ep-orange-deep); background: var(--ep-orange-tint); border-color: rgba(239,89,32,0.35); }
.p-enterprise .ep-quest-foot { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ============ READY CHECK · DEMO FORM ============ */
.p-enterprise .ep-ready-sec { max-width: 1240px; margin: 0 auto; padding: 52px 28px 64px; }
.p-enterprise .ep-ready { background: var(--bg-1); border: 2px solid var(--green); border-radius: 20px; overflow: hidden; box-shadow: 0 28px 70px rgba(239,89,32,0.12); }
.p-enterprise .ep-ready-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; }
.p-enterprise .ep-ready-left { padding: 34px 32px; background: linear-gradient(160deg, #fff7ef, #ffffff 60%); border-right: 1px solid #f3e3d5; }
.p-enterprise .ep-ready-h { overflow-wrap: anywhere; font-family: var(--display); font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 12px 0 0; }
.p-enterprise .ep-ready-h .hl { color: var(--green); }
.p-enterprise .ep-ready-p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 14px 0 0; }
.p-enterprise .ep-draftcard { margin-top: 22px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.p-enterprise .ep-draftcard .dc-lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; }
.p-enterprise .ep-draftcard .dc-rows { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; }
.p-enterprise .ep-draftcard .dc-row { display: flex; justify-content: space-between; gap: 12px; }
.p-enterprise .ep-draftcard .dc-k { flex: none; color: var(--ink-3); }
/* flex:1 + min-width:0 is the design's own sizing on this span; the break
   guard is ours, because "franchise" carries the 16-character tag the
   visitor typed and DM Mono gives it no break opportunity. */
.p-enterprise .ep-draftcard .dc-v { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.p-enterprise .ep-ready-fine { margin-top: 18px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); line-height: 1.8; }
.p-enterprise .ep-ready-form { padding: 34px 32px; }
.p-enterprise .ep-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-enterprise .ep-frow { margin-top: 14px; }
.p-enterprise .ep-flabel { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; display: block; margin-bottom: 7px; }
.p-enterprise .ep-flabel .hot { color: var(--ep-orange-deep); }
.p-enterprise .ep-input { width: 100%; background: var(--ep-surface-2); border: 1px solid var(--ep-line-mid); border-radius: 9px; padding: 12px 14px; color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.p-enterprise .ep-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(239,89,32,0.12); }
.p-enterprise textarea.ep-input { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; resize: vertical; min-height: 104px; }
.p-enterprise .ep-actions { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-enterprise .ep-submit { flex: 1 1 260px; background: var(--green); color: var(--on-brand); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 0; border-radius: 10px; padding: 15px 20px; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.p-enterprise .ep-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(239,89,32,0.35); }
.p-enterprise .ep-status { display: none; margin-top: 14px; font-family: var(--mono); font-size: 12px; border-radius: 8px; padding: 12px 14px; }
.p-enterprise .ep-status.ok { display: block; color: var(--ep-green-ok); background: rgba(31,138,76,0.07); border: 1px solid var(--ep-green-ok); }
.p-enterprise .ep-status.err { display: block; color: var(--ep-red-err); background: rgba(192,38,38,0.06); border: 1px solid var(--ep-red-err); }

/* Sent state — the card that replaces the form on a successful submit.
   Literal green (rgb(31,138,91)), not var(--green), which is orange here. */
.p-enterprise .ep-sent { display: none; gap: 12px; margin-top: 16px; padding: 16px 15px; border: 1px solid #1f8a5b; border-radius: 14px; background: rgba(31,138,91,0.07); }
.p-enterprise .ep-sent.show { display: flex; }
.p-enterprise .ep-sent-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(31,138,91,0.14); color: #1f8a5b; }
.p-enterprise .ep-sent-icon svg { width: 20px; height: 20px; display: block; }
.p-enterprise .ep-sent-body { flex: 1; min-width: 0; }
.p-enterprise .ep-sent-h { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.p-enterprise .ep-sent-p { display: block; font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }

/* ============ DEMO POPUP ============ */
.p-enterprise .ep-popup { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; }
.p-enterprise .ep-popup.open { display: flex; }
.p-enterprise .ep-popup-backdrop { position: absolute; inset: 0; background: rgba(13,16,14,0.45); backdrop-filter: blur(3px); animation: epFadeIn 0.25s ease; }
.p-enterprise .ep-popup-dialog { position: relative; width: min(520px, 100%); background: var(--bg-1); border: 2px solid var(--green); border-radius: 20px; padding: 34px 32px 30px; box-shadow: 0 40px 90px rgba(13,16,14,0.35), 0 0 0 6px rgba(239,89,32,0.12); animation: epPopIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.p-enterprise .ep-popup-badge { position: absolute; top: -18px; left: 26px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink); background: var(--ep-gold); border: 1px solid var(--ink); padding: 7px 14px; border-radius: 999px; letter-spacing: 0.1em; box-shadow: 0 6px 16px rgba(13,16,14,0.18); animation: epWiggle 2.2s ease-in-out infinite; }
.p-enterprise .ep-popup-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--ep-surface-2); color: var(--ink-3); font-size: 15px; cursor: pointer; line-height: 1; }
.p-enterprise .ep-popup-close:hover { border-color: var(--green); color: var(--green); }
.p-enterprise .ep-popup-head { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.p-enterprise .ep-tilewrap { position: relative; width: 52px; height: 52px; flex: none; }
.p-enterprise .ep-tilewrap .ring { position: absolute; inset: 0; border-radius: 14px; background: rgba(239,89,32,0.25); animation: epRing 1.8s ease-out infinite; }
.p-enterprise .ep-tile { position: relative; width: 52px; height: 52px; border-radius: 14px; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(239,89,32,0.4); }
.p-enterprise .ep-tile svg { width: 28px; height: 28px; }
.p-enterprise .ep-popup-h { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.p-enterprise .ep-popup-h .hl { color: var(--green); }
.p-enterprise .ep-popup-p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 16px 0 0; }
.p-enterprise .ep-popup-chips { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; }
.p-enterprise .ep-pchip { padding: 4px 10px; border-radius: 5px; letter-spacing: 0.06em; }
.p-enterprise .ep-pchip.orange { color: var(--ep-orange-deep); background: var(--ep-orange-tint); border: 1px solid var(--ep-orange-bd); }
.p-enterprise .ep-pchip.gold { color: var(--ep-gold-ink); background: var(--ep-gold-tint); border: 1px solid var(--ep-gold-bd); }
.p-enterprise .ep-pchip.green { color: var(--ep-green-ok); background: rgba(31,138,76,0.07); border: 1px solid rgba(31,138,76,0.3); }
.p-enterprise .ep-popup-ctas { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.p-enterprise .ep-popup-go { flex: 1 1 220px; background: var(--green); color: var(--on-brand); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 0; border-radius: 10px; padding: 15px 20px; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.p-enterprise .ep-popup-go:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(239,89,32,0.4); }
.p-enterprise .ep-popup-scout { flex: 0 1 auto; background: var(--bg-1); color: var(--ink-3); font-family: var(--mono); font-size: 12px; font-weight: 600; border: 1px solid var(--ep-line-mid); border-radius: 10px; padding: 15px 18px; cursor: pointer; }
.p-enterprise .ep-popup-scout:hover { border-color: var(--green); color: var(--green); }
.p-enterprise .ep-popup-fine { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-4); }

/* ============ XP TOAST ============ */
.p-enterprise .ep-toast { position: fixed; right: 20px; bottom: 20px; z-index: 500; background: var(--ink); color: var(--ep-gold); font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--ep-gold); box-shadow: 0 12px 32px rgba(13,16,14,0.35); display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .p-enterprise .ep-quest-grid { grid-template-columns: repeat(2, 1fr); }
  .p-enterprise .ep-quest-rail { display: none; }
  .p-enterprise .ep-qcard { min-height: 0; }
  .p-enterprise .ep-watermark { width: 300px; height: 300px; right: -60px; }
}
@media (max-width: 900px) {
  .p-enterprise .ep-arena-grid { grid-template-columns: minmax(0, 1fr); }
  .p-enterprise .ep-ladder { border-right: 0; border-bottom: 1px solid var(--ep-inset); }
  .p-enterprise .ep-cards3 { grid-template-columns: minmax(0, 1fr); }
  .p-enterprise .ep-ready-grid { grid-template-columns: minmax(0, 1fr); }
  .p-enterprise .ep-ready-left { border-right: 0; border-bottom: 1px solid #f3e3d5; }
}
@media (max-width: 700px) {
  .p-enterprise .ep-console-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .p-enterprise .ep-watermark { display: none; }
}
@media (max-width: 600px) {
  .p-enterprise .ep-quest-grid { grid-template-columns: minmax(0, 1fr); }
  .p-enterprise .ep-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .p-enterprise .ep-tiers { grid-template-columns: repeat(2, 1fr); }
}
