.portal-body {
  background:
    radial-gradient(circle at 74% 6%,rgba(154,107,255,.2),transparent 29rem),
    var(--bg);
}
.portal-header { position: relative; top: 5px; }
.portal-nav { display: flex; align-items: center; gap: 26px; }
.portal-nav a { color: #d2cddd; text-decoration: none; font-size: .86rem; font-weight: 800; }
.portal-nav .nav-cta { padding: 12px 18px; border-radius: 999px; background: #fff; color: #171220; }

.portal-hero {
  width: min(var(--max),calc(100% - 40px));
  min-height: 690px;
  margin: 0 auto;
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: 1.12fr .72fr;
  gap: 85px;
  align-items: center;
}
.portal-hero h1 {
  margin: 17px 0 27px;
  font: 900 clamp(3.6rem,7vw,6.8rem)/.89 "Montserrat",sans-serif;
  letter-spacing: -.035em;
}
.portal-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg,#ff7b35,#ffd047,#55b84d,#43b7de,#b16cff);
  -webkit-background-clip: text;
  background-clip: text;
}
.portal-spotlight {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  text-align: center;
}
.spotlight-label { color: #cbb9ff; font-size: .66rem; font-weight: 900; letter-spacing: .055em; }
.portal-badge {
  width: 210px;
  height: 210px;
  margin: 27px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid #fff;
  outline: 2px solid #7b58c4;
  border-radius: 50%;
  background: radial-gradient(circle,#342553,#151021);
  box-shadow: 0 25px 55px rgba(0,0,0,.3);
}
.portal-badge span { font-size: 2.7rem; }
.portal-badge strong { margin: 9px 0 4px; font: 900 1.25rem/1 "Montserrat",sans-serif; letter-spacing: .03em; }
.portal-badge small { font-size: .64rem; font-weight: 900; letter-spacing: .04em; }
.portal-spotlight h2 { margin: 10px 0 14px; font: 900 2.2rem/1.02 "Montserrat",sans-serif; letter-spacing: -.025em; }
.portal-spotlight p { color: var(--muted); line-height: 1.62; }

.portal-proof {
  padding: 0 max(20px,calc((100% - var(--max))/2)) 90px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
}
.portal-proof div { padding: 25px 28px; display: grid; gap: 6px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); }
.portal-proof div:first-child { border-radius: 22px 0 0 22px; }
.portal-proof div:last-child { border-radius: 0 22px 22px 0; }
.portal-proof strong { font: 800 1rem/1.2 "Montserrat",sans-serif; }
.portal-proof span { color: #aaa4b5; font-size: .84rem; line-height: 1.45; }

.portal-section, .process-section {
  padding: 120px max(20px,calc((100% - var(--max))/2));
}
.section-heading { max-width: 850px; margin-bottom: 50px; }
.section-heading h2, .portal-app-copy h2, .participation-copy h2, .application-intro h2 {
  margin: 13px 0 19px;
  font: 900 clamp(2.55rem,5vw,4.8rem)/1 "Montserrat",sans-serif;
  letter-spacing: -.03em;
}
.section-heading > p:last-child, .portal-app-copy > p, .participation-copy > p, .application-intro > p {
  color: var(--muted);
  line-height: 1.7;
}
.type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.type-grid article {
  min-height: 575px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
}
.type-top { display: flex; align-items: center; justify-content: space-between; }
.type-icon { font-size: 2.25rem; }
.type-number { color: rgba(255,255,255,.13); font: 900 2.5rem/1 "Montserrat",sans-serif; }
.type-name { margin: auto 0 11px; color: #c4adff; font-size: .65rem; font-weight: 900; letter-spacing: .05em; }
.type-grid h3 { margin: 0 0 13px; font: 800 1.42rem/1.16 "Montserrat",sans-serif; }
.type-grid p, .type-grid li { color: var(--muted); line-height: 1.62; font-size: .91rem; }
.type-grid ul { padding-left: 19px; }
.type-grid li + li { margin-top: 8px; }
.fine-print { margin-top: auto; padding-top: 16px; color: #9690a2 !important; font-size: .76rem !important; }

.portal-app-callout {
  padding: 115px max(20px,calc((100% - var(--max))/2));
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--paper);
  color: #171322;
}
.portal-app-copy .eyebrow, .standards-section .eyebrow, .application-section .eyebrow { color: #7653c5; }
.portal-app-copy > p { color: #625c6c; }
.profile-checks { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-checks span { padding: 13px 14px; border-radius: 13px; background: #fff; color: #4d4658; font-size: .84rem; font-weight: 800; }
.profile-mockup { max-width: 520px; margin-left: auto; overflow: hidden; border: 1px solid rgba(31,25,44,.09); border-radius: 28px; background: #fff; box-shadow: 0 30px 70px rgba(35,27,49,.14); }
.profile-cover { height: 160px; padding: 20px; display: flex; align-items: end; background: linear-gradient(135deg,#442a72,#9a57a4 60%,#ec8274); color: #fff; }
.profile-cover span { font-size: .65rem; font-weight: 900; letter-spacing: .05em; }
.profile-content { padding: 0 24px 22px; display: grid; grid-template-columns: 88px 1fr; gap: 17px; align-items: center; }
.profile-logo { width: 88px; height: 88px; margin-top: -30px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 22px; background: #21182f; color: #fff; text-align: center; font: 900 .75rem/1.1 "Montserrat",sans-serif; }
.open-pill { color: #287e3e; font-size: .56rem; font-weight: 900; letter-spacing: .04em; }
.profile-content h3 { margin: 5px 0 4px; font: 900 1.3rem/1 "Montserrat",sans-serif; }
.profile-content p { margin: 0; color: #746d7d; font-size: .78rem; }
.profile-offer { margin: 0 24px 24px; padding: 18px; display: grid; gap: 5px; border-radius: 17px; background: #f2edf8; }
.profile-offer span { color: #7250b8; font-size: .58rem; font-weight: 900; letter-spacing: .045em; }
.profile-offer strong { font-size: .85rem; }

.standards-section {
  padding: 120px max(20px,calc((100% - var(--max))/2));
  background: #fff;
  color: #171322;
}
.standards-section .section-heading > p:last-child { color: #625b6d; }
.standard-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 17px; }
.standard-grid article { padding: 30px; border: 1px solid rgba(25,20,38,.09); border-radius: 24px; background: #faf8f4; }
.standard-grid article > span { color: #7b58c5; font-weight: 900; letter-spacing: .045em; }
.standard-grid h3 { margin: 19px 0 10px; font: 800 1.3rem/1.2 "Montserrat",sans-serif; }
.standard-grid p { margin: 0; color: #625b6d; line-height: 1.67; }

.participation-section {
  padding: 120px max(20px,calc((100% - var(--max))/2));
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 70px;
  background: linear-gradient(135deg,#7652c6,#aa5eaa 52%,#d87776);
}
.participation-copy .eyebrow { color: rgba(255,255,255,.72); }
.participation-copy > p { color: rgba(255,255,255,.82); }
.participation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.participation-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(24,14,37,.17); backdrop-filter: blur(12px); }
.participation-grid article > span { font-size: 1.8rem; }
.participation-grid h3 { margin: 17px 0 8px; font: 800 1.08rem/1.2 "Montserrat",sans-serif; }
.participation-grid p { margin: 0; color: rgba(255,255,255,.77); line-height: 1.55; font-size: .86rem; }

.process-section { background: #0f0c1a; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.process-grid > div { min-height: 230px; padding: 26px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: rgba(255,255,255,.035); }
.process-grid span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #171220; font-weight: 900; }
.process-grid strong { display: block; margin: 38px 0 11px; font: 800 1.15rem/1.2 "Montserrat",sans-serif; }
.process-grid p { margin: 0; color: var(--muted); line-height: 1.58; font-size: .88rem; }

.application-section { padding: 120px max(20px,calc((100% - 980px)/2)); background: var(--paper); color: #171322; }
.application-intro > p { max-width: 770px; color: #625b6d; }
.partner-form { position: relative; margin-top: 45px; display: grid; gap: 20px; }
.form-progress { height: 5px; overflow: hidden; border-radius: 99px; background: #ddd6e5; }
.form-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7652c6,#e15f9f,#f09a51); transition: width .25s ease; }
.partner-form fieldset { margin: 0; padding: 30px; border: 1px solid rgba(25,20,38,.1); border-radius: 26px; background: #fff; }
.partner-form legend { padding: 0 9px; font: 800 1.18rem/1.2 "Montserrat",sans-serif; }
.partner-form legend span { width: 30px; height: 30px; margin-right: 8px; display: inline-grid; place-items: center; border-radius: 50%; background: #21172f; color: #fff; font-size: .78rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label, .partner-form label { display: grid; gap: 8px; color: #3b3545; font-size: .9rem; font-weight: 800; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea, select { width: 100%; padding: 14px 15px; border: 1px solid #d9d3e0; border-radius: 14px; background: #fcfbfd; color: #171322; outline: none; font-weight: 500; }
input:focus, textarea:focus, select:focus { border-color: #8c69d4; box-shadow: 0 0 0 4px rgba(140,105,212,.12); }
input.invalid, textarea.invalid, select.invalid { border-color: #ba3049; box-shadow: 0 0 0 4px rgba(186,48,73,.1); }
.choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.choice { display: flex !important; gap: 11px !important; align-items: flex-start; padding: 17px; border: 1px solid #ddd7e4; border-radius: 17px; cursor: pointer; transition: border .2s ease, background .2s ease; }
.choice:has(input:checked) { border-color: #8561ce; background: #f3eefb; }
.choice input, .agreements input { width: auto; margin-top: 4px; accent-color: #7652c6; }
.choice span { display: grid; gap: 5px; }
.choice small { color: #756e81; font-weight: 500; line-height: 1.4; }
.field-help { margin-top: 0; color: #716a7d; }
.field-counter { justify-self: end; color: #898292; font-weight: 600; }
.agreements { display: grid; gap: 12px; }
.agreements label { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #faf8fc; font-weight: 700; line-height: 1.45; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-primary, .form-secondary { min-height: 54px; padding: 0 21px; border-radius: 999px; font-weight: 900; cursor: pointer; }
.form-primary { margin-left: auto; border: 0; background: #171220; color: #fff; }
.form-secondary { border: 1px solid #cbc4d4; background: #fff; color: #171322; }
.form-primary:hover, .form-secondary:hover { transform: translateY(-1px); }
.privacy-note { margin: -2px 0 0; color: #756e80; font-size: .8rem; line-height: 1.5; }
.form-status { min-height: 25px; margin: 0; color: #5c5367; font-weight: 800; }
.form-status.error { color: #a5263c; }
.form-status.success { color: #2c783e; }

@media (max-width: 950px) {
  .portal-hero { grid-template-columns: 1fr .7fr; gap: 40px; }
  .type-grid { grid-template-columns: 1fr; }
  .type-grid article { min-height: auto; }
  .type-name { margin-top: 40px; }
  .portal-app-callout, .participation-section { grid-template-columns: 1fr; }
  .profile-mockup { margin: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .portal-nav a:not(.nav-cta) { display: none; }
  .portal-hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .portal-hero .actions { justify-content: center; }
  .portal-spotlight { max-width: 480px; margin: auto; }
  .portal-proof { grid-template-columns: 1fr; gap: 8px; }
  .portal-proof div, .portal-proof div:first-child, .portal-proof div:last-child { border-radius: 18px; }
  .standard-grid, .participation-grid { grid-template-columns: 1fr; }
  .profile-checks { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .form-primary { margin-left: 0; }
}

@media (max-width: 560px) {
  .portal-hero { width: min(100% - 28px,var(--max)); }
  .portal-hero h1 { font-size: clamp(3rem,15vw,4.6rem); }
  .portal-section, .portal-app-callout, .standards-section, .participation-section, .process-section, .application-section { padding-block: 82px; }
  .process-grid { grid-template-columns: 1fr; }
  .partner-form fieldset { padding: 22px 18px; }
  .form-actions { display: grid; }
  .form-primary, .form-secondary { width: 100%; }
}


.portal-status { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #e4deeb; font-size: .8rem; }
.portal-status > span:last-child { color: #9c94aa; }
.portal-proof { grid-template-columns: repeat(4,1fr); }
.form-link-button { min-height: 50px; padding: 0 12px; border: 0; background: transparent; color: #8f8499; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.form-link-button:hover { color: #33263f; }
.privacy-note a { color: inherit; font-weight: 700; }
.form-status.saving::before { content: "●"; margin-right: 7px; color: #d39b2f; }
.form-status.success::before { content: "✓"; margin-right: 7px; }
.form-status.error::before { content: "!"; margin-right: 7px; }
@media (max-width: 1020px) { .portal-proof { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) { .portal-proof { grid-template-columns: 1fr; } .portal-status { justify-content: center; } }
