/* Scoped styles for the REV project and application portal service pages. */
.hi-portal-page {
    --portal-ink: #1f2430;
    --portal-muted: #55556a;
    --portal-line: #e6e4e8;
    --portal-paper: #fcfaf9;
    --portal-pink: #E24781;
    --portal-coral: #ED5064;
    --portal-orange: #EF7849;
    --portal-gradient: linear-gradient(135deg, #E24781 0%, #ED5064 50%, #EF7849 100%);
    color: var(--portal-ink);
    font-size: 17px;
    line-height: 1.7;
}
.hi-portal-page *, .hi-portal-page *::before, .hi-portal-page *::after { box-sizing: border-box; }
.hi-portal-page .hp-container { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.hi-portal-page h1, .hi-portal-page h2, .hi-portal-page h3 { color: var(--portal-ink); font-family: 'Nunito Sans', sans-serif; letter-spacing: -.035em; }
.hi-portal-page h1 { max-width: 760px; margin: 0 0 24px; font-size: clamp(36px, 4.5vw, 58px); font-weight: 800; line-height: 1.1; }
.hi-portal-page h2 { margin: 0 0 20px; font-size: clamp(29px, 3.1vw, 40px); font-weight: 800; line-height: 1.2; }
.hi-portal-page h3 { margin: 0 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.hi-portal-page p { margin: 0 0 20px; color: var(--portal-muted); }
.hi-portal-page a { color: #393757; }
.hi-portal-page a:focus-visible, .hi-portal-page summary:focus-visible { outline: 3px solid #393757; outline-offset: 5px; border-radius: 3px; }
.hi-portal-page .hp-hero { position: relative; padding: 34px 0 0; background: var(--portal-paper); border-bottom: 1px solid var(--portal-line); }
.hi-portal-page .hp-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; font-size: 13px; }
.hi-portal-page .hp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; color: var(--portal-muted); }
.hi-portal-page .hp-breadcrumb a { text-decoration: none; }
.hi-portal-page .hp-return { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 4px; }
.hi-portal-page .hp-hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 64px; align-items: center; padding: 68px 0 72px; }
.hi-portal-page .hp-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #393757; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hi-portal-page .hp-kicker::before { content: ''; width: 26px; height: 3px; background: var(--portal-gradient); }
.hi-portal-page .hp-lead { max-width: 590px; font-size: 19px; line-height: 1.65; }
.hi-portal-page .hp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 24px; margin-top: 30px; }
.hi-portal-page .hp-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 52px; padding: 14px 23px; border: 1px solid #393757; border-radius: 8px; background: #393757; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.hi-portal-page .hp-button:hover { background: #1f2430; border-color: #1f2430; transform: translateY(-1px); }
.hi-portal-page .hp-text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.hi-portal-page .hp-arrow { flex: 0 0 auto; width: 18px; height: 18px; }
.hi-portal-page .hp-flow { position: relative; margin: 0; padding: 28px; border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 15px 45px rgba(31, 36, 48, .045); }
.hi-portal-page .hp-flow::before { content: ''; position: absolute; top: -1px; left: 25px; right: 25px; height: 3px; background: var(--portal-gradient); border-radius: 3px; }
.hi-portal-page .hp-flow-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 26px; padding-bottom: 21px; border-bottom: 1px solid var(--portal-line); }
.hi-portal-page .hp-flow-header strong { display: block; margin-bottom: 4px; font-size: 18px; line-height: 1.3; }
.hi-portal-page .hp-flow-header small { display: block; color: var(--portal-muted); font-size: 12px; line-height: 1.5; }
.hi-portal-page .hp-flow-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #fcf0f3; color: #393757; }
.hi-portal-page .hp-flow-mark svg { width: 22px; height: 22px; }
.hi-portal-page .hp-flow-list { list-style: none; margin: 0; padding: 0; }
.hi-portal-page .hp-flow-list li { position: relative; display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 16px; margin: 0; padding: 0 0 25px; }
.hi-portal-page .hp-flow-list li:last-child { padding-bottom: 0; }
.hi-portal-page .hp-flow-list li:not(:last-child)::after { content: ''; position: absolute; top: 42px; bottom: 6px; left: 17px; width: 1px; background: var(--portal-line); }
.hi-portal-page .hp-step-number { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #e7d2d9; border-radius: 50%; color: #393757; background: #fff7f9; font-size: 12px; font-weight: 800; }
.hi-portal-page .hp-flow-list strong { display: block; margin: 3px 0 4px; font-size: 16px; line-height: 1.3; }
.hi-portal-page .hp-flow-list p { margin: 0; font-size: 14px; line-height: 1.55; }
.hi-portal-page .hp-flow figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 12px; line-height: 1.6; }
.hi-portal-page .hp-project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 25px 0 29px; border-top: 1px solid var(--portal-line); }
.hi-portal-page .hp-project-facts dt { margin-bottom: 5px; color: var(--portal-muted); font-size: 12px; }
.hi-portal-page .hp-project-facts dd { margin: 0; color: var(--portal-ink); font-size: 15px; font-weight: 800; }
.hi-portal-page .hp-section { padding: 82px 0; }
.hi-portal-page .hp-section-tint { background: var(--portal-paper); border-top: 1px solid var(--portal-line); border-bottom: 1px solid var(--portal-line); }
.hi-portal-page .hp-section-intro { max-width: 680px; margin-bottom: 36px; }
.hi-portal-page .hp-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.hi-portal-page .hp-note { padding: 24px 28px; border-left: 3px solid var(--portal-pink); background: var(--portal-paper); border-radius: 0 8px 8px 0; }
.hi-portal-page .hp-note h3 { font-size: 19px; }
.hi-portal-page .hp-note p { margin: 0; font-size: 15px; }
.hi-portal-page .hp-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hi-portal-page .hp-card { padding: 28px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.hi-portal-page .hp-card-index { display: inline-block; margin-bottom: 27px; color: #393757; font-size: 12px; font-weight: 800; letter-spacing: .1em; border-bottom: 2px solid var(--portal-pink); padding-bottom: 5px; }
.hi-portal-page .hp-card h3 { font-size: 21px; }
.hi-portal-page .hp-card p { margin: 0; font-size: 15px; line-height: 1.7; }
.hi-portal-page .hp-card .hp-text-link { margin-top: 22px; }
.hi-portal-page .hp-case-teaser { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 40px; padding: 38px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; }
.hi-portal-page .hp-case-teaser h2 { font-size: 31px; }
.hi-portal-page .hp-case-teaser p { margin-bottom: 0; }
.hi-portal-page .hp-case-teaser .hp-actions { justify-content: flex-end; margin: 0; }
.hi-portal-page .hp-cta { position: relative; overflow: hidden; padding: 52px; border: 1px solid var(--portal-line); border-radius: 16px; background: var(--portal-paper); }
.hi-portal-page .hp-cta::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--portal-gradient); }
.hi-portal-page .hp-cta h2 { max-width: 720px; }
.hi-portal-page .hp-cta p { max-width: 700px; }
.hi-portal-page .hp-help-note { margin: 28px 0 0; font-size: 13px; line-height: 1.7; }
.hi-portal-page .hp-help-note a { text-decoration: underline; text-underline-offset: 3px; }
.hi-portal-page .hp-faq { border-top: 1px solid var(--portal-line); }
.hi-portal-page .hp-faq details { border-bottom: 1px solid var(--portal-line); }
.hi-portal-page .hp-faq summary { position: relative; list-style: none; padding: 22px 35px 22px 0; color: var(--portal-ink); font-size: 18px; font-weight: 800; line-height: 1.5; cursor: pointer; }
.hi-portal-page .hp-faq summary::-webkit-details-marker { display: none; }
.hi-portal-page .hp-faq summary::after { content: '+'; position: absolute; top: 22px; right: 4px; font-size: 22px; font-weight: 400; }
.hi-portal-page .hp-faq details[open] summary::after { content: '−'; }
.hi-portal-page .hp-faq details p { max-width: 850px; margin: 0; padding-bottom: 22px; font-size: 16px; }
@media (max-width: 1023px) {
    .hi-portal-page .hp-hero-grid { gap: 35px; }
    .hi-portal-page .hp-two-columns { gap: 40px; }
    .hi-portal-page .hp-card-grid { gap: 16px; }
    .hi-portal-page .hp-card { padding: 23px; }
}
@media (max-width: 767px) {
    .hi-portal-page { font-size: 16px; }
    .hi-portal-page .hp-container { width: calc(100% - 40px); }
    .hi-portal-page .hp-hero { padding-top: 24px; }
    .hi-portal-page .hp-hero-grid { grid-template-columns: 1fr; padding: 44px 0 38px; gap: 36px; }
    .hi-portal-page .hp-lead { font-size: 18px; }
    .hi-portal-page .hp-project-facts { gap: 16px; }
    .hi-portal-page .hp-project-facts dd { font-size: 13px; }
    .hi-portal-page .hp-section { padding: 54px 0; }
    .hi-portal-page .hp-two-columns, .hi-portal-page .hp-card-grid, .hi-portal-page .hp-case-teaser { grid-template-columns: 1fr; gap: 24px; }
    .hi-portal-page .hp-section-intro { margin-bottom: 27px; }
    .hi-portal-page .hp-flow { padding: 24px; }
    .hi-portal-page .hp-card-index { margin-bottom: 18px; }
    .hi-portal-page .hp-case-teaser, .hi-portal-page .hp-cta { padding: 28px; }
    .hi-portal-page .hp-case-teaser .hp-actions { justify-content: flex-start; }
    .hi-portal-page .hp-note { padding: 22px; }
}
@media (max-width: 390px) {
    .hi-portal-page h1 { font-size: 34px; }
    .hi-portal-page .hp-button { width: 100%; }
    .hi-portal-page .hp-flow { padding: 20px; }
    .hi-portal-page .hp-project-facts { grid-template-columns: 1fr; gap: 13px; }
    .hi-portal-page .hp-project-facts div { display: grid; grid-template-columns: 95px 1fr; gap: 12px; }
    .hi-portal-page .hp-project-facts dt { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hi-portal-page .hp-button { transition: none; }
    .hi-portal-page .hp-button:hover { transform: none; }
}
