/* ===============================================================
   LVRD — /for/<type> business-type template
   Rides colors_and_type.css + v3.css + v3-pages.css + v3-product.css
   (dark theme). Owns ONLY the per-template surfaces: the hero grid,
   the agent team cards, the agent→tool wiring view, the embeddable
   connection browser, the use-case checklist, and the FAQ.
   Everything else (nav, footer, pricing, approvals mock, close)
   is inherited from the shared v3 stylesheets.
   =============================================================== */

/* ============================================================
   HERO
   ============================================================ */
.for-hero { padding: 116px 0 96px; position: relative; overflow: hidden; }
.for-hero .glow { top: -260px; left: 50%; transform: translateX(-50%); width: 1180px; height: 760px; opacity: 0.85; }
.for-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 64px; align-items: center;
}
.for-hero-copy { max-width: 560px; }
.for-hero .crumb { margin-bottom: 22px; }
.for-hero h1 {
  font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  font-weight: 600; color: var(--fg-strong); margin: 22px 0 0; text-wrap: balance;
}
.for-hero h1 .turn { display: block; font-style: italic; font-weight: 500; font-family: var(--font-serif); color: var(--fg-strong); }
.for-hero-sub { font-size: 19px; line-height: 1.55; color: var(--fg-muted); margin: 24px 0 0; max-width: 46ch; text-wrap: pretty; }
.for-hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.for-hero-trust { margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-faint); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.for-hero-trust .sep { opacity: 0.45; }

/* hero approvals mock — built on the .frame + .od-* mock classes */
.for-hero-mock { position: relative; }
.for-hero-mock .glow { inset: 6% -8% 6% -8%; opacity: 0.5; }
.for-hero-mock .frame { position: relative; z-index: 2; }
.fa-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px 13px; border-bottom: 1px solid var(--border); }
.fa-head .fa-h5 { font-size: 14px; font-weight: 600; color: var(--fg-strong); margin: 0; }
/* three-hats labels run as h3 here (clean h2→h3 hierarchy); mirror the global .hat h4 look */
.hat h3 { font-size: 18px; font-weight: 600; color: var(--fg-strong); margin: 14px 0 8px; }
.hat h3 em { font-style: italic; }
.fa-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); }
.fa-head .grow { flex: 1; }
.fa-head .pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: 999px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 6px; }
.fa-cards { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }

/* Stack the hero on tablet/phone — the two-column grid never fit a small
   viewport, so the approvals mock used to overflow off the right edge. */
@media (max-width: 860px) {
  .for-hero { padding: 84px 0 64px; }
  .for-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .for-hero-copy { max-width: none; }
}

/* ============================================================
   PAIN — "where the week goes"
   ============================================================ */
.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 8px; padding: 0; list-style: none; }
.pain {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-size: 14.5px; line-height: 1.4; color: var(--fg);
  transition: border-color var(--duration-default) var(--easing-default), background var(--duration-default) var(--easing-default);
}
.pain:hover { border-color: var(--border-strong); background: var(--surface-2); }
.pain .x { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: var(--fg-faint); }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM — agent cards (the centerpiece)
   ============================================================ */
.team-band { margin-top: 36px; }
.team-band + .team-band { margin-top: 44px; }
.team-band-label {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
}
.team-band-label .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.team-band-label .d { font-size: 14px; color: var(--fg-muted); }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.team-grid.expand { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .team-grid, .team-grid.expand { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .team-grid, .team-grid.expand { grid-template-columns: 1fr; } }

.team-card {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--duration-default) var(--easing-default),
              background var(--duration-default) var(--easing-default),
              transform var(--duration-default) var(--easing-default);
}
.team-card:hover { border-color: color-mix(in oklab, var(--accent) 34%, var(--border-strong)); background: var(--surface-2); transform: translateY(-2px); }
.team-card.lite { padding: 20px 22px; gap: 13px; background: transparent; }
.team-card.lite:hover { background: var(--surface); transform: none; }

.tc-head { display: flex; align-items: center; gap: 14px; }
.tc-mono {
  width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  color: var(--marian-bright); font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center;
}
.team-card.lite .tc-mono { width: 38px; height: 38px; font-size: 12px; border-radius: 10px; }
.tc-id { min-width: 0; }
.tc-id .name { font-size: 17px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.01em; line-height: 1.2; }
.team-card.lite .tc-id .name { font-size: 15px; }
.tc-id .dept { margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.tc-role { margin-left: auto; flex: 0 0 auto; align-self: flex-start; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 480px) { .tc-role { display: none; } }

.tc-does { font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.team-card.lite .tc-does { font-size: 13.5px; line-height: 1.5; }

.tc-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-card.lite .tc-foot { padding-top: 13px; }
.tc-tools { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: wrap; }
.tc-tools .n { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-faint); white-space: nowrap; }

/* a single tool — either a logo chip or a name fallback chip */
.tool-chip {
  width: 28px; height: 28px; border-radius: 7px; background: #fff; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(22,22,24,0.06);
  display: inline-flex; align-items: center; justify-content: center;
}
.tool-chip img { width: 19px; height: 19px; display: block; }
.tool-chip.name {
  width: auto; height: 24px; padding: 0 10px; background: color-mix(in oklab, var(--accent) 12%, transparent);
  box-shadow: none; border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--fg-muted); white-space: nowrap;
}

/* trust state pill — Supervised / Trusted / Autonomous */
.trust {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-subtle); border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 11px 5px 9px;
}
.trust .d { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); }
.trust[data-state="supervised"] .d { background: var(--accent); box-shadow: 0 0 8px color-mix(in oklab, var(--accent) 75%, transparent); }
.trust[data-state="trusted"] { color: var(--fg-muted); border-color: color-mix(in oklab, var(--accent) 35%, var(--border-strong)); }
.trust[data-state="trusted"] .d { background: var(--accent); }

/* ============================================================
   CONNECTIONS — agent→tool wiring
   ============================================================ */
.wire { display: flex; flex-direction: column; gap: 12px; }
.wire-row {
  display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 22px 24px;
}
.wire-agent { display: flex; align-items: center; gap: 13px; }
.wire-agent .tc-mono { width: 40px; height: 40px; font-size: 13px; }
.wire-agent .name { font-size: 15.5px; font-weight: 600; color: var(--fg-strong); line-height: 1.2; }
.wire-agent .dept { margin-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.wire-tools { display: flex; flex-direction: column; gap: 2px; }
.wire-tool { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed color-mix(in oklab, var(--border) 75%, transparent); }
.wire-tool:first-child { border-top: 0; }
.wire-logo {
  width: 32px; height: 32px; border-radius: 8px; background: #fff; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(22,22,24,0.06); display: inline-flex; align-items: center; justify-content: center;
}
.wire-logo img { width: 21px; height: 21px; display: block; }
.wire-logo.name { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border-strong); color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.wire-tool .nm { font-size: 14px; font-weight: 500; color: var(--fg-strong); flex: 1 1 auto; min-width: 0; }
.wire-tool .verb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted); }
.wire-tool .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.wire-tool .live .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px color-mix(in oklab, var(--accent) 75%, transparent); }
@media (max-width: 720px) {
  .wire-row { grid-template-columns: 1fr; gap: 14px; }
  .wire-tool .verb { display: none; }
}

/* ============================================================
   CONNECTION BROWSER (embeddable, searchable)
   ============================================================ */
.cb { border: 1px solid var(--border-strong); border-radius: 20px; background: var(--surface); overflow: hidden; }
.cb-top { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cb-search {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg); padding: 0 13px; height: 44px; min-width: 0;
  transition: border-color var(--duration-fast) var(--easing-default);
}
.cb-search:focus-within { border-color: color-mix(in oklab, var(--accent) 55%, var(--border-strong)); }
.cb-search svg { width: 17px; height: 17px; color: var(--fg-faint); flex: 0 0 auto; }
.cb-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-sans); font-size: 15px; color: var(--fg); height: 100%; }
.cb-search input::placeholder { color: var(--fg-faint); }
.cb-search input:focus { outline: none; box-shadow: none; }
.cb-search .clr { width: 19px; height: 19px; border-radius: 50%; border: 0; background: var(--smoke-700); color: var(--fg-muted); cursor: pointer; display: none; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; }
.cb-search.has-val .clr { display: inline-flex; }
.cb-count { font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); white-space: nowrap; }
@media (max-width: 560px) { .cb-top { grid-template-columns: 1fr; } .cb-count { display: none; } }

.cb-chips { display: flex; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.cb-chips::-webkit-scrollbar { display: none; }
.cb-chip {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  color: var(--fg-muted); cursor: pointer; white-space: nowrap;
  transition: border-color var(--duration-fast) var(--easing-default), color var(--duration-fast) var(--easing-default), background var(--duration-fast) var(--easing-default);
}
.cb-chip:hover { color: var(--fg-strong); border-color: var(--border-strong); }
.cb-chip.on { background: color-mix(in oklab, var(--accent) 18%, var(--surface)); border-color: color-mix(in oklab, var(--accent) 42%, var(--border)); color: var(--fg-strong); }

.cb-featured-label, .cb-all-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); padding: 18px 22px 0; display: flex; align-items: center; gap: 8px;
}
.cb-featured-label .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px color-mix(in oklab, var(--accent) 75%, transparent); }

.cb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 22px; }
.cb-grid.featured { padding-bottom: 4px; }
@media (max-width: 860px) { .cb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cb-grid { grid-template-columns: repeat(2, 1fr); } }

.cb-tile {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg); min-width: 0;
  transition: border-color var(--duration-fast) var(--easing-default), background var(--duration-fast) var(--easing-default);
}
.cb-tile:hover { border-color: var(--border-strong); background: var(--surface-2); }
.cb-tile.feat { border-color: color-mix(in oklab, var(--accent) 30%, var(--border)); }
.cb-logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(22,22,24,0.06); display: inline-flex; align-items: center; justify-content: center; }
.cb-logo img { width: 23px; height: 23px; display: block; }
.cb-logo.name { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border-strong); color: var(--fg-muted); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.cb-tile .ci { min-width: 0; }
.cb-tile .ci .nm { display: block; font-size: 13.5px; font-weight: 600; color: var(--fg-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.cb-tile .ci .ct { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }

.cb-empty { grid-column: 1 / -1; text-align: center; padding: 28px 20px; color: var(--fg-muted); }
.cb-empty .nm { font-size: 14px; font-weight: 600; color: var(--fg-strong); }
.cb-foot { border-top: 1px solid var(--border); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface-2); }
.cb-foot p { font-size: 13.5px; color: var(--fg-muted); margin: 0; }
.cb-foot p b { color: var(--fg-strong); font-weight: 600; }
.cb-foot a { font-size: 13.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cb-foot a svg { width: 14px; height: 14px; }

/* ============================================================
   USE-CASE CHECKLIST
   ============================================================ */
.uc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 40px; }
.uc-list li { display: flex; align-items: center; gap: 13px; padding: 15px 4px; border-top: 1px solid var(--border); font-size: 16px; color: var(--fg-strong); }
.uc-list .ck { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.uc-list .ck svg { width: 14px; height: 14px; }
@media (max-width: 680px) { .uc-list { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 8px 24px 0; display: flex; align-items: center; gap: 20px;
  font-size: 18px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { flex: 1; }
.faq-item summary .ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--fg-faint); transition: transform var(--duration-default) var(--easing-default); }
.faq-item[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq-item .a { padding: 0 56px 26px 0; margin: -6px 0 0; font-size: 16px; line-height: 1.6; color: var(--fg-muted); max-width: 64ch; }
.faq-item .a em { font-style: italic; color: var(--fg-strong); }

/* ============================================================
   APPROVALS & CONTROL (shared block)
   ============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.ctl-note { margin-top: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 20px 24px; display: flex; gap: 14px; align-items: flex-start; }
.ctl-note svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.ctl-note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-muted); max-width: 84ch; }
.ctl-note p em { font-style: italic; color: var(--fg-strong); }

/* ============================================================
   INDUSTRIES MEGA MENU (reuses .mega / .mega-card from v3-pages)
   ============================================================ */
.mega-industries .mega-grid { grid-template-columns: 1fr 1fr; }
.mega-industries .mega-ico .mono { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.mega-industries .mega-card.feat { background: color-mix(in oklab, var(--accent) 9%, transparent); }
.mega-industries .mega-card.feat:hover { background: color-mix(in oklab, var(--accent) 14%, transparent); }
.mega-industries .mega-card .nw { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: 999px; padding: 1px 6px; margin-left: 7px; vertical-align: middle; }
@media (max-width: 980px) { .mega-industries { width: 600px; } }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.for-section { padding: 104px 0; }
.for-section.tight { padding: 64px 0 104px; }
.section-surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .for-section { padding: 72px 0; } }
