:root{--portal-ink:#202124;--portal-muted:#626765;--portal-taupe:#a8927b;--portal-line:rgba(80,80,80,.17);--portal-bg:#f7f6f3}
.flow-portal-page{margin:0;background:var(--portal-bg);color:var(--portal-ink)}
.flow-portal-page main{background:radial-gradient(circle at 50% 16%,#fff 0,#faf9f6 45%,#f3f3f0 100%)}
.portal-hero{position:relative;display:grid;width:min(calc(100% - 8vw),1720px);min-height:calc(100svh - 78px);margin:auto;padding:clamp(42px,5vw,78px) 0;grid-template-columns:minmax(360px,34%) minmax(0,66%);align-items:center}
.portal-copy{z-index:1;padding:20px clamp(34px,4vw,70px) 20px 0}
.portal-eyebrow{margin:0 0 22px;color:#766d64;font-size:14px;font-weight:600;letter-spacing:.2em}
.portal-copy h1{margin:0;font-size:clamp(54px,5.2vw,88px);font-weight:650;line-height:1;letter-spacing:-.045em}
.portal-rule{display:block;width:46px;height:3px;margin:28px 0;background:var(--portal-taupe)}
.portal-tagline{margin:0;color:var(--portal-ink);font-size:clamp(30px,2.5vw,43px);font-weight:500;line-height:1.35}
.portal-description{max-width:540px;margin:22px 0 0;color:var(--portal-muted);font-size:16px;line-height:1.75}
.portal-login{display:inline-flex;align-items:center;gap:13px;min-height:54px;margin-top:30px;padding:0 25px;border-radius:999px;background:#242526;color:#fff;font-size:14px;letter-spacing:.05em}
.portal-visual{min-width:0;margin:20px 0 0;align-self:start;border-radius:20px;overflow:hidden;box-shadow:0 24px 58px rgba(18,22,31,.16)}
.portal-visual img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:50% 50%}
.portal-features{display:grid;margin-top:58px;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--portal-line)}
.portal-features article{min-width:0;padding:20px 15px 0 0}
.portal-features article+article{padding-left:15px;border-left:1px solid var(--portal-line)}
.portal-features b{display:block;margin-bottom:14px;color:var(--portal-taupe);font-size:12px}
.portal-features small{display:block;color:#666c68;font-size:10px;font-weight:700;letter-spacing:.08em;white-space:nowrap}
.portal-features strong{display:block;margin-top:7px;font-size:13px;line-height:1.45}
@media(min-width:1101px){
 .portal-hero{align-items:start}
 .portal-visual{height:clamp(320px,30vw,420px)}
 .portal-visual img{height:100%;aspect-ratio:auto;object-position:50% 58%}
 .portal-features{position:absolute;top:calc(clamp(42px,5vw,78px) + clamp(320px,30vw,420px) + 46px);right:0;width:66%;margin-top:0}
}
.flow-page-footer{display:flex;align-items:center;justify-content:space-between;padding:30px 6vw;background:#292a28;color:#f5f2ec}.flow-page-footer>div{display:flex;align-items:center;gap:28px}.flow-page-footer a{color:#bcaf9f}.flow-page-footer p{margin:0;color:rgba(245,242,236,.68)}
.flow-page-footer a[href*="consult=1"]{display:none}
@media(max-width:1100px){.portal-hero{grid-template-columns:42% 58%}.portal-copy h1{font-size:clamp(48px,6vw,68px)}.portal-description{font-size:15px}.portal-features{grid-template-columns:repeat(2,1fr);margin-top:38px}.portal-features article:nth-child(3){border-left:0}}
@media(max-width:760px){.portal-hero{display:flex;width:calc(100% - 40px);min-height:0;padding:48px 0 64px;flex-direction:column}.portal-copy{padding:0}.portal-copy h1{font-size:clamp(46px,14vw,62px)}.portal-tagline{font-size:clamp(28px,8vw,38px)}.portal-description{font-size:16px}.portal-visual{order:-1;margin:0 0 38px;border-radius:14px}.portal-visual img{aspect-ratio:4/3;object-position:54% 50%}.portal-features{margin-top:42px}.portal-features article{padding:18px 12px 18px 0}.portal-features article:nth-child(even){padding-left:12px}.portal-features article:nth-child(n+3){border-top:1px solid var(--portal-line)}.flow-page-footer{align-items:flex-start;flex-direction:column;gap:22px}.flow-page-footer>div{align-items:flex-start;flex-direction:column;gap:14px}}

/* Use the same fixed 68px header component as the main public pages. */
.flow-portal-page main{padding-top:68px}
.flow-portal-page .site-header{background:#fff;color:var(--portal-ink);border-bottom:1px solid rgba(18,22,31,.08);box-shadow:none;backdrop-filter:none}
.flow-portal-page .site-header .logo-light{opacity:0}
.flow-portal-page .site-header .logo-dark{opacity:1}
.flow-portal-page .portal-hero{min-height:calc(100svh - 68px)}
@media(max-width:760px){.flow-portal-page main{padding-top:66px}.flow-portal-page .portal-hero{min-height:0}}

/* Optical correction for the light Portal canvas: slightly tighter than the
   nominal header so it reads at the same visual scale as other pages. */
@media(min-width:761px){
 .flow-portal-page .site-header{height:64px}
 .flow-portal-page .site-header .logo{width:137px;height:29px}
 .flow-portal-page .site-header .logo img{width:264px}
 .flow-portal-page .site-header .consult{padding-top:6px;padding-bottom:6px}
 .flow-portal-page main{padding-top:64px}
 .flow-portal-page .portal-hero{min-height:calc(100svh - 64px)}
}

/* Mobile: override intrinsic HTML height and show the whole tablet image. */
@media(max-width:760px){
 .flow-portal-page .portal-visual{width:100%;height:auto;min-height:0;aspect-ratio:auto;flex:none}
 .flow-portal-page .portal-visual img{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:auto;object-fit:contain;object-position:center;transform:none}
}
