:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#172a2a;background:#f1f4ef;font-size:17px}*{box-sizing:border-box}body{margin:0}header{height:68px;padding:0 max(24px,calc((100% - 820px)/2));display:flex;align-items:center;justify-content:space-between;background:#153b39;color:white}.brand{font-weight:800;color:white;text-decoration:none;letter-spacing:-.03em}#status{font-size:.8rem;background:#ffffff18;padding:.4rem .7rem;border-radius:2rem}main{max-width:820px;margin:4rem auto;padding:0 24px}.panel{background:white;border:1px solid #dbe2dc;border-radius:18px;padding:clamp(24px,5vw,50px);box-shadow:0 12px 35px #183a3010}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1;letter-spacing:-.045em;margin:.4em 0}h2{font-size:2rem;letter-spacing:-.035em}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-size:.72rem;font-weight:800;color:#b5522d}.notice{background:#fff3df;border-left:4px solid #df8d3d;padding:1rem;margin:1.5rem 0}.progress{margin:0 0 1rem;font-size:.85rem;font-weight:700}.progress>div{height:5px;background:#dbe2dc;margin-top:.5rem;border-radius:4px}.progress i{display:block;background:#b5522d;height:100%;border-radius:4px}label{display:block;font-weight:700;margin:1.3rem 0}small,.help{font-weight:400;color:#5c6964}input,textarea,select{display:block;width:100%;margin-top:.45rem;padding:.85rem;border:1px solid #aebbb5;border-radius:8px;background:white;font:inherit}textarea{min-height:90px;resize:vertical}fieldset{border:0;padding:0;margin:1.5rem 0}legend{font-weight:800}.checks{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.checks label{margin:0;padding:.75rem;border:1px solid #dbe2dc;border-radius:8px;font-weight:500}.checks input{width:auto;display:inline;margin:0 .6rem 0 0}nav{display:flex;gap:.7rem;margin:1rem 0;flex-wrap:wrap}button{border:0;background:#b5522d;color:#fff;border-radius:8px;padding:.8rem 1.2rem;font:inherit;font-weight:800;cursor:pointer}.secondary{background:#e1e8e3;color:#183a38}#next,#submit{margin-left:auto}dl div{border-bottom:1px solid #e1e7e2;padding:1rem 0}dt{font-weight:800}dd{margin:.3rem 0;color:#485753;white-space:pre-wrap}#message{min-height:1.4rem;color:#35645f}@media(max-width:600px){main{margin:2rem auto}.checks{grid-template-columns:1fr}.panel{padding:24px}#next,#submit{margin-left:0}}
.material-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2rem}#material-list article{border:1px solid #dbe2dc;border-radius:8px;padding:1rem;margin:.75rem 0}#material-list article p{overflow-wrap:anywhere;margin:.5rem 0}#material-list article small{display:block;margin-bottom:.8rem}#materials-message{min-height:1.4rem;color:#35645f}
.discovery-intro{margin-bottom:1rem}.topics{display:flex;gap:.5rem;overflow:auto;margin:1rem 0;padding-bottom:.4rem}.topic{white-space:nowrap;border:1px solid #cbd6d0;border-radius:2rem;padding:.45rem .7rem;font-size:.78rem}.topic.current{background:#153b39;color:white}.topic.explored{background:#e1e8e3}.conversation{display:grid;gap:.8rem;margin:1rem 0}.message{max-width:82%;padding:1rem 1.1rem;border-radius:14px;background:white;border:1px solid #dbe2dc;white-space:pre-wrap}.message.you{justify-self:end;background:#f9e8d9}.message small{display:block;margin-bottom:.35rem;font-weight:800}#response-form button{margin:.35rem .35rem .35rem 0}#discovery-message{min-height:1.4rem;color:#35645f}

.reflection{margin:1rem 0;border-left:4px solid #b5522d}.reflection h2{font-size:1.5rem}.operator-card{margin:1rem 0}.operator-card small{display:block;margin:1rem 0}.operator-card textarea{min-height:60px}

.capability-card{border-top:1px solid #dbe2dc;padding:1.25rem 0}.capability-card h2{font-size:1.45rem;margin-bottom:.3rem}.capability-meta{display:inline-block;background:#e1e8e3;border-radius:2rem;padding:.4rem .7rem;font-weight:800}.capability-card .material-actions{margin-top:1rem}
.capability-details{display:grid;gap:.7rem;margin:1rem 0}.capability-detail{border-left:3px solid #dbe2dc;padding:.15rem 0 .15rem .85rem}.capability-detail strong{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#5c6964;margin-bottom:.2rem}.capability-detail p{margin:0;line-height:1.5}.capability-detail-specialist{border-left-color:#df8d3d;background:#fff3df;padding:.75rem .9rem;border-radius:0 8px 8px 0}.capability-hold{display:inline-block;margin:.1rem 0;background:#fff3df;border-left:4px solid #df8d3d;padding:.55rem .8rem;font-weight:800;color:#7a3c22}.capability-card-responded .capability-response-state{background:#f1f4ef;border-radius:8px;padding:.8rem 1rem;color:#35645f}

@media print { header, nav, button, #blueprint-actions, main > section:not(#blueprint) { display:none !important } #blueprint { display:block !important } .printable-report { border:0; box-shadow:none; max-width:none } }

.journey{margin-bottom:1rem;padding:24px}.journey-stages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.45rem;margin:.75rem 0 1rem}.journey-stage{border:1px solid #cbd6d0;border-radius:10px;padding:.65rem .55rem;font-size:.74rem;line-height:1.25;background:#fff;color:#5c6964}.journey-stage strong{display:block;color:#172a2a;margin-bottom:.25rem}.journey-stage.complete{background:#e1e8e3}.journey-stage.current{background:#153b39;color:#fff;border-color:#153b39}.journey-stage.current strong{color:#fff}.journey-stage.future{opacity:.65}.journey-context{font-weight:800;margin:.6rem 0 .25rem}@media(max-width:700px){.journey-stages{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Group 12D read-only founder notifications */
.notifications-panel{
  margin-bottom:1rem;
  padding:24px;
}
.notifications-panel h2{
  margin:.2rem 0 .4rem;
  font-size:1.45rem;
}
.notification-list{
  display:grid;
  gap:.75rem;
  margin-top:1rem;
}
.notification-card{
  border:1px solid #dbe2dc;
  border-radius:10px;
  padding:1rem;
  background:#fff;
}
.notification-card p{
  margin:.45rem 0;
}
.notification-card small{
  display:block;
}

/* H4 governed Blueprint help conversation */
.blueprint-help-response{
  border:1px solid #cbd6d0;
  border-radius:10px;
  padding:1rem;
  margin:1rem 0;
  background:#f1f4ef;
}
.blueprint-help-response strong{
  display:block;
  margin-bottom:.45rem;
}
.blueprint-help-response p{
  margin:0;
  white-space:pre-wrap;
}


/* H8-E6 dynamic Plan 3 client selection */
.plan3-decision-card{
  border-top:1px solid #dbe2dc;
  padding:1.75rem 0;
}
.plan3-decision-card:first-child{
  border-top:0;
}
.plan3-decision-card h2{
  font-size:1.55rem;
  margin:.35rem 0 1rem;
}
.plan3-recommendation{
  background:#f1f4ef;
  border-radius:10px;
  padding:1rem 1.1rem;
  margin:1rem 0;
}
.plan3-recommendation p{
  margin:.45rem 0 0;
}
.plan3-impacts{
  margin:1rem 0;
}
.plan3-impact{
  margin:.45rem 0;
}
.plan3-option{
  display:flex;
  gap:.8rem;
  align-items:flex-start;
  border:1px solid #dbe2dc;
  border-radius:10px;
  padding:1rem;
  margin:.65rem 0;
  font-weight:500;
}
.plan3-option input{
  width:auto;
  margin:.25rem 0 0;
  flex:0 0 auto;
}
.plan3-option span{
  display:grid;
  gap:.25rem;
}
.plan3-option strong{
  display:block;
}
.plan3-option small{
  display:block;
  line-height:1.45;
}
.plan3-saved-state{
  border-left:3px solid #153b39;
  padding-left:.75rem;
}
.plan3-unresolved{
  outline:2px solid #df8d3d;
  outline-offset:6px;
  border-radius:4px;
}
.plan3-review-row{
  border-bottom:1px solid #dbe2dc;
  padding:1rem 0;
}
.plan3-review-row p{
  margin:.35rem 0 0;
}
#plan3-selection-message{
  min-height:1.4rem;
  color:#35645f;
}

/* CP-07 notification history: compact by default, expandable on demand. */
.notifications-panel details > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  cursor:pointer;
  font-size:1.45rem;
  font-weight:800;
  list-style-position:inside;
}
.notifications-panel details > summary small{
  font-size:.8rem;
  font-weight:700;
  color:#5c6964;
  white-space:nowrap;
}
.notifications-panel details:not([open]) + *{
  margin-top:0;
}

/* Phase 4 upfront commercial disclosure; informative only, not checkout. */
.commercial-disclosure{border:1px solid #dbe2dc;border-radius:12px;background:#f7faf7;padding:1.25rem;margin:1.35rem 0;line-height:1.55}
.commercial-disclosure h2{font-size:clamp(1.25rem,3vw,1.65rem);margin:.4rem 0 .75rem}
.commercial-disclosure p{margin:.75rem 0}
.commercial-prices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}
.commercial-prices>div{display:flex;flex-direction:column;gap:.3rem;background:#fff;border:1px solid #dbe2dc;border-radius:10px;padding:1rem;min-width:0}
.commercial-price{font-size:1.75rem;font-weight:800;color:#153b39;line-height:1.2}
.commercial-prices small{line-height:1.4}
.commercial-disclosure details{margin-top:1rem;border-top:1px solid #dbe2dc;padding-top:.8rem}
.commercial-disclosure summary{cursor:pointer;font-weight:750}
@media(max-width:600px){.commercial-prices{grid-template-columns:1fr}.commercial-disclosure{padding:1rem}}


/* Phase 4E founder welcome and service presentation */
#auth-login{max-width:760px;margin-inline:auto}
#auth-login .login-intro{max-width:520px;margin-bottom:1.5rem}
#auth-login .login-intro h1{font-size:clamp(2.3rem,5vw,3.8rem);line-height:1.05}
#auth-login #auth-login-form{max-width:520px}
#auth-login .founder-offer{margin-top:3.5rem}
.founder-offer{border-top:1px solid #dce5df;padding-top:2rem;margin-top:2rem}
.founder-offer h2{font-size:clamp(1.55rem,3vw,2.1rem);line-height:1.18;margin:.5rem 0}
.founder-offer .offer-lead{max-width:64ch;color:#52615d;line-height:1.6}
.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.7rem 0}
.offer-grid article{border:1px solid #d9e3dc;border-radius:14px;background:#fff;padding:1.35rem;min-width:0}
.offer-grid article.offer-featured{background:#f0f5f0;border-color:#90ada1}
.offer-grid h3{font-size:1.15rem;line-height:1.3;margin:.65rem 0}
.offer-grid .offer-kicker{display:block;color:#536a62;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;font-weight:750}
.offer-grid .offer-price{display:block;color:#153b39;font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.045em;line-height:1.15}
.offer-grid p{font-size:.92rem;color:#51615c;line-height:1.5;margin:.75rem 0 0}
.offer-note{font-size:.9rem;line-height:1.6;color:#475a53}
.offer-terms{border-top:1px solid #dce5df;padding:1rem 0}
.offer-terms summary{cursor:pointer;font-weight:750}
.offer-terms p{font-size:.92rem;line-height:1.65;color:#52615d}
@media(max-width:600px){.offer-grid{grid-template-columns:1fr}#auth-login .founder-offer{margin-top:2rem}.offer-grid article{padding:1.1rem}}

[hidden]{display:none!important}


/* Founder workspace navigation; scoped to avoid journey navigation regressions. */
.founder-navigation{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  max-width:1100px;
  margin:1.25rem auto 0;
  padding:0 24px;
}
.founder-navigation[hidden]{display:none}
.founder-navigation button{
  padding:.65rem .9rem;
  font-size:.82rem;
  background:#e1e8e3;
  color:#183a38;
}
.founder-navigation button[aria-current="page"]{
  background:#153b39;
  color:white;
}
#founder-connections-list article{
  border:1px solid #dbe2dc;
  border-radius:10px;
  padding:1rem;
  margin:.75rem 0;
}
@media print{
  #founder-navigation{display:none!important}
}


.founder-support-form {
  display:grid;
  gap:12px;
  margin:20px 0;
}
.founder-support-form input,
.founder-support-form textarea {
  width:100%;
  box-sizing:border-box;
  padding:12px;
}
.founder-support-history article {
  border:1px solid var(--border, #ddd);
  border-radius:10px;
  padding:16px;
  margin:12px 0;
}


/* Founder desktop shell */
@media (min-width: 901px) {
  body:has(#founder-navigation:not([hidden])) {
    padding-left: 250px;
  }

  #founder-navigation:not([hidden]) {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    width: 250px;
    max-width: none;
    margin: 0;
    padding: 32px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-y: auto;
    background: #153b39;
    gap: 8px;
  }

  #founder-navigation button {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #e5efeb;
    border-radius: 9px;
  }

  #founder-navigation button:hover,
  #founder-navigation button[aria-current="page"] {
    background: #315955;
    color: white;
  }
}

.founder-project-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: white;
}

.founder-project-switcher label {
  font-size: 0.8rem;
  white-space: nowrap;
}

.founder-project-switcher select {
  max-width: 320px;
  padding: 9px 32px 9px 12px;
  border-radius: 9px;
  background: white;
  color: #153b39;
}

@media (max-width: 900px) {
  #founder-navigation:not([hidden]) {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: wrap;
  }

  .founder-project-switcher {
    margin: 12px 16px;
    flex-wrap: wrap;
  }

  .founder-project-switcher select {
    max-width: 100%;
  }
}

@media print {
  #founder-project-switcher {
    display: none !important;
  }
}

/* Founder workspace visual refinement v1 */
@media (min-width: 901px) {
  body:has(#founder-navigation:not([hidden])) {
    padding-left: 264px;
  }

  #founder-navigation:not([hidden]) {
    width: 264px;
    padding: 28px 14px;
    background: #153b39;
    gap: 5px;
    box-shadow: 1px 0 0 rgba(255,255,255,.08);
  }

  #founder-navigation::before {
    content: "BuildFoundry";
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.04em;
    padding: 12px 14px 25px;
    margin-bottom: 17px;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  #founder-navigation::after {
    content: "FOUNDER WORKSPACE";
    position: absolute;
    top: 98px;
    left: 28px;
    color: #a7c0b9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  #founder-navigation button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    min-height: 46px;
    font-size: 14px;
    font-weight: 550;
    border: 0;
    border-radius: 10px;
    transition: background .15s ease;
  }

  #founder-navigation button:hover {
    background: rgba(255,255,255,.09);
  }

  #founder-navigation button[aria-current="page"] {
    background: #315955;
    box-shadow: inset 3px 0 0 #d7b08a;
    font-weight: 700;
  }
}

.founder-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  font-size: 19px;
  font-weight: 400;
}

.founder-project-switcher:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 16px auto 22px;
  padding: 10px 14px;
  border: 1px solid #dce5df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(20,58,54,.05);
  color: #153b39;
}

.founder-project-switcher label {
  color: #667b74;
  font-size: 12px;
  font-weight: 700;
}

.founder-project-switcher select {
  max-width: min(440px, 60vw);
  min-width: 220px;
  border: 1px solid #dce5df;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  color: #153b39;
  background: #fff;
}

@media (max-width: 900px) {
  .founder-nav-icon {
    font-size: 17px;
  }
  .founder-project-switcher:not([hidden]) {
    margin: 12px 16px;
    max-width: calc(100% - 32px);
  }
}

/* Billing & Plan: scoped presentation, preserving existing responsive layout. */
#commercial-purchase-options{margin-top:2rem}
#commercial-purchase-options>.commercial-bundle{
  border:1px solid #dbe2dc;
  border-radius:14px;
  padding:1.4rem;
  margin:1.25rem 0 2rem;
}
#commercial-purchase-options .commercial-bundle-price{
  font-size:clamp(2rem,4vw,2.6rem);
  font-weight:800;
  color:#153b39;
  line-height:1.15;
  margin:.4rem 0;
}
#commercial-selection-form fieldset{margin:1.4rem 0 1rem}
#commercial-selection-form legend{margin-bottom:.75rem}
#commercial-selection-form .commercial-payment-option{
  display:flex;
  align-items:center;
  gap:.8rem;
  padding:1rem;
  margin:.55rem 0;
  border:1px solid #dbe2dc;
  border-radius:10px;
  cursor:pointer;
}
#commercial-selection-form input[type="radio"]{
  display:inline-block;
  width:1.15rem;
  height:1.15rem;
  flex:0 0 1.15rem;
  padding:0;
  margin:0;
  accent-color:#153b39;
}
#commercial-selection-form .commercial-payment-option:has(input:checked){
  border-color:#153b39;
  background:#f0f5f0;
}
#commercial-stage-options{margin:2rem 0}
#commercial-optional-services{
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid #dbe2dc;
}
@media(max-width:600px){
  #commercial-purchase-options>.commercial-bundle{padding:1rem}
  #commercial-selection-form .commercial-payment-option{padding:.8rem}
}

/* Founder acceptance: avoid duplicate Profile control and surface first action. */
body:has(#founder-navigation:not([hidden])) #profile-toggle{display:none}
#foundation-start-action:not([hidden]){display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:15px 18px;margin:12px 0 16px;border:1px solid #b7d1c2;border-radius:12px;background:#edf5ef}
#foundation-start-action p{margin:0;flex:1 1 230px}
#foundation-start-action button{flex:0 1 auto}
@media(max-width:700px){#foundation-start-action button{width:100%}}


/* Legal onboarding: isolated presentation, no global responsive overrides. */
#founder-legal-gate{max-width:820px}
#founder-legal-gate h1{font-size:clamp(1.65rem,3vw,2.35rem);line-height:1.14}
#founder-legal-documents{display:grid;gap:1rem;margin:1.4rem 0}
#founder-legal-documents .legal-document-card{border:1px solid #d9e2de;border-radius:12px;padding:1.1rem 1.25rem;background:#fafcfb}
#founder-legal-documents .legal-document-card h2{font-size:1.15rem;line-height:1.3;margin:0 0 .7rem}
#founder-legal-documents .legal-document-detail{margin:0 0 .85rem;font-size:.9rem}
#founder-legal-documents .legal-document-detail summary{cursor:pointer;font-weight:500}
#founder-legal-documents .legal-document-detail pre{max-height:19rem;overflow:auto;padding:.8rem;background:white;border:1px solid #d9e2de;border-radius:8px;font:inherit;white-space:pre-wrap}
#founder-legal-documents .legal-acknowledgement{display:flex;align-items:flex-start;gap:.7rem;font-size:.91rem;font-weight:500;line-height:1.45;margin:0;cursor:pointer}
#founder-legal-documents .legal-acknowledgement input[type="checkbox"]{width:1.15rem;height:1.15rem;min-width:1.15rem;flex:none;margin:.12rem 0 0;position:static}
#founder-legal-documents .legal-acknowledgement:has(input:disabled){opacity:.6;cursor:not-allowed}
#founder-legal-gate #founder-legal-accept:disabled{background:#d7ddda;color:#536460;opacity:1;cursor:not-allowed;box-shadow:none}
#founder-legal-gate #founder-legal-message,#founder-legal-documents .legal-beta-note{font-size:.9rem;line-height:1.5}
