:root {
    --portal-ink: #14201c;
    --portal-muted: #596660;
    --portal-paper: #ffffff;
    --portal-surface: #f3f6f4;
    --portal-border: #d9e0dc;
    --portal-green: #147a5b;
    --portal-green-dark: #102d24;
    --portal-coral: #d85c41;
    --portal-yellow: #f3c969;
}

html {
    scroll-behavior: smooth;
}

body.portal-page {
    min-width: 320px;
    margin: 0;
    padding-top: 0 !important;
    overflow-x: hidden;
    color: var(--portal-ink);
    background: var(--portal-paper);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

.portal-page *,
.portal-page *::before,
.portal-page *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.portal-page h1,
.portal-page h2,
.portal-page h3,
.portal-page p,
.portal-page ul,
.portal-page ol,
.portal-page dl,
.portal-page figure {
    margin-top: 0;
}

.portal-page h1,
.portal-page h2,
.portal-page h3 {
    color: var(--portal-ink);
    font-weight: 700;
    line-height: 1.16;
}

.portal-page a {
    color: inherit;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.portal-page a:hover,
.portal-page a:focus {
    color: var(--portal-green);
    text-decoration: none;
}

.portal-container {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.portal-header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 72px;
    border-bottom: 1px solid rgba(20, 32, 28, .12);
    background: rgba(255, 255, 255, .96);
}

.portal-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 30px;
}

.portal-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: var(--portal-ink);
    font-weight: 700;
    text-decoration: none;
}

.portal-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #fff;
    background: var(--portal-green);
    font-size: 12px;
    font-weight: 800;
}

.portal-nav {
    display: flex;
    align-items: stretch;
    height: 100%;
    margin-left: auto;
    gap: 28px;
}

.portal-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #36433d;
    font-size: 14px;
    font-weight: 600;
}

.portal-nav a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: "";
    background: transparent;
}

.portal-nav a.is-active,
.portal-nav a:hover {
    color: var(--portal-green);
}

.portal-nav a.is-active::after {
    background: var(--portal-green);
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-text-action {
    font-size: 14px;
    font-weight: 600;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--portal-green);
    border-radius: 6px;
    color: #fff !important;
    background: var(--portal-green);
    font-weight: 700;
    text-decoration: none;
    gap: 9px;
}

.portal-button:hover,
.portal-button:focus {
    border-color: #0f6048;
    color: #fff !important;
    background: #0f6048;
    transform: translateY(-1px);
}

.portal-button-small {
    min-height: 38px;
    padding: 7px 16px;
    font-size: 14px;
}

.portal-button-secondary {
    border-color: rgba(255, 255, 255, .7);
    color: #fff !important;
    background: rgba(16, 45, 36, .58);
}

.portal-button-light {
    border-color: #fff;
    color: var(--portal-green-dark) !important;
    background: #fff;
}

.portal-button-light:hover,
.portal-button-light:focus {
    border-color: var(--portal-yellow);
    color: var(--portal-green-dark) !important;
    background: var(--portal-yellow);
}

.portal-button-outline-light {
    border-color: rgba(255, 255, 255, .72);
    color: #fff !important;
    background: transparent;
}

.portal-button-block {
    width: 100%;
}

.portal-mobile-menu {
    display: none;
    margin-left: auto;
}

.portal-mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--portal-border);
    border-radius: 6px;
    color: var(--portal-ink);
    cursor: pointer;
    list-style: none;
}

.portal-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.portal-mobile-menu nav {
    position: absolute;
    top: 71px;
    right: 0;
    left: 0;
    display: grid;
    padding: 14px 24px 20px;
    border-bottom: 1px solid var(--portal-border);
    background: #fff;
    box-shadow: 0 18px 30px rgba(20, 32, 28, .12);
    gap: 2px;
}

.portal-mobile-menu nav a {
    padding: 10px 4px;
    border-bottom: 1px solid #edf1ef;
    font-weight: 600;
}

.portal-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(100vh - 126px);
    min-height: 500px;
    max-height: 680px;
    overflow: hidden;
    color: #fff;
    background-color: var(--portal-green-dark);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.portal-hero-shade {
    position: absolute;
    inset: 0 auto 0 0;
    width: 54%;
    background: rgba(10, 35, 27, .92);
}

.portal-hero-content {
    position: relative;
    z-index: 1;
}

.portal-hero-content > * {
    max-width: 560px;
}

.portal-eyebrow {
    margin-bottom: 14px;
    color: var(--portal-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-hero .portal-eyebrow,
.portal-cta-band .portal-eyebrow {
    color: var(--portal-yellow);
}

.portal-hero h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 58px;
}

.portal-hero-copy {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
    line-height: 1.7;
}

.portal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-hero-facts {
    display: flex;
    margin: 34px 0 0;
    padding: 0;
    color: rgba(255, 255, 255, .78);
    list-style: none;
    gap: 22px;
    font-size: 13px;
}

.portal-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.portal-band {
    padding: 88px 0;
}

.portal-intro-band,
.portal-slot-band,
.portal-screenshot-band,
.portal-install-order-band {
    background: var(--portal-surface);
}

.portal-section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.portal-section-heading h2,
.portal-proof-grid h2,
.portal-contrast-grid h2,
.portal-slot-rule h2,
.portal-cta-inner h2 {
    margin-bottom: 16px;
    font-size: 36px;
}

.portal-section-heading p:last-child,
.portal-proof-grid > div > p,
.portal-contrast-grid > div > p,
.portal-slot-rule > div > p:last-child {
    color: var(--portal-muted);
}

.portal-section-heading-split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 70px;
}

.portal-flow,
.portal-feature-grid,
.portal-faq-grid,
.portal-install-order {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.portal-flow article,
.portal-feature-grid article,
.portal-faq-grid > div,
.portal-install-order > div {
    padding: 28px 0;
    border-top: 3px solid var(--portal-border);
}

.portal-flow article:nth-child(1),
.portal-feature-grid article:nth-child(1),
.portal-install-order > div:nth-child(1) {
    border-color: var(--portal-green);
}

.portal-flow article:nth-child(2),
.portal-feature-grid article:nth-child(2),
.portal-install-order > div:nth-child(2) {
    border-color: var(--portal-coral);
}

.portal-flow article:nth-child(3),
.portal-feature-grid article:nth-child(3),
.portal-install-order > div:nth-child(3) {
    border-color: var(--portal-yellow);
}

.portal-flow article > span,
.portal-install-order span {
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 800;
}

.portal-flow h3,
.portal-feature-grid h3,
.portal-install-order h3,
.portal-faq-grid h3 {
    margin: 14px 0 10px;
    font-size: 20px;
}

.portal-flow p,
.portal-feature-grid p,
.portal-faq-grid p,
.portal-install-order p {
    margin-bottom: 0;
    color: var(--portal-muted);
}

.portal-proof-band {
    background: #fff;
}

.portal-proof-grid,
.portal-contrast-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 96px;
}

.portal-inline-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--portal-green) !important;
    font-weight: 700;
    gap: 8px;
}

.portal-proof-list {
    margin: 0;
}

.portal-proof-list div {
    display: grid;
    padding: 20px 0;
    border-bottom: 1px solid var(--portal-border);
    grid-template-columns: 130px 1fr;
    gap: 24px;
}

.portal-proof-list dt {
    color: var(--portal-ink);
    font-weight: 800;
}

.portal-proof-list dd {
    margin: 0;
    color: var(--portal-muted);
}

.portal-cta-band {
    padding: 60px 0;
    color: #fff;
    background: var(--portal-green-dark);
}

.portal-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.portal-cta-inner h2 {
    margin-bottom: 0;
    color: #fff;
}

.portal-page-hero {
    padding: 96px 0 84px;
    border-bottom: 1px solid var(--portal-border);
    background: #fff;
}

.portal-page-hero .portal-container {
    max-width: 1180px;
}

.portal-page-hero h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: 52px;
}

.portal-page-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--portal-muted);
    font-size: 20px;
}

.portal-product-hero,
.portal-release-hero,
.portal-help-hero,
.portal-download-hero {
    box-shadow: inset 8px 0 0 var(--portal-green);
}

.portal-product-shot {
    margin: 0;
}

.portal-product-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #bfc9c4;
    border-radius: 6px;
    box-shadow: 0 24px 50px rgba(20, 32, 28, .14);
}

.portal-product-shot figcaption {
    margin-top: 15px;
    color: var(--portal-muted);
    font-size: 13px;
    text-align: center;
}

.portal-feature-grid article > i {
    color: var(--portal-green);
    font-size: 24px;
}

.portal-contrast-band {
    color: #fff;
    background: #18221e;
}

.portal-contrast-band h2 {
    color: #fff;
}

.portal-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-check-list li {
    display: flex;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    gap: 12px;
}

.portal-check-list i {
    margin-top: 5px;
    color: var(--portal-yellow);
}

.portal-slot-rule {
    display: grid;
    align-items: center;
    grid-template-columns: 150px 1fr;
    gap: 54px;
}

.portal-slot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 2px solid var(--portal-green);
    border-radius: 50%;
    color: var(--portal-green);
    background: #fff;
    font-size: 70px;
    font-weight: 800;
}

.portal-pricing-grid {
    display: grid;
    max-width: 920px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.portal-plan-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #fff;
}

.portal-plan-card:nth-child(2) {
    border-top: 5px solid var(--portal-coral);
}

.portal-plan-head > span {
    color: var(--portal-green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-plan-head h2 {
    margin: 9px 0;
    font-size: 30px;
}

.portal-plan-head p,
.portal-plan-duration,
.portal-pricing-note {
    color: var(--portal-muted);
}

.portal-plan-slots {
    display: flex;
    align-items: baseline;
    margin: 26px 0 4px;
    gap: 13px;
}

.portal-plan-slots strong {
    color: var(--portal-ink);
    font-size: 54px;
    line-height: 1;
}

.portal-plan-slots span {
    font-weight: 700;
}

.portal-check-list-compact {
    margin: 18px 0 30px;
    color: var(--portal-ink);
}

.portal-check-list-compact li {
    border-bottom-color: var(--portal-border);
}

.portal-check-list-compact i {
    color: var(--portal-green);
}

.portal-plan-card .portal-button {
    margin-top: auto;
}

.portal-pricing-note {
    max-width: 920px;
    margin-top: 22px;
    margin-bottom: 0;
    font-size: 13px;
}

.portal-faq-band {
    border-top: 1px solid var(--portal-border);
}

.portal-release-list {
    max-width: 900px;
}

.portal-release-item {
    display: grid;
    padding: 38px 0;
    border-bottom: 1px solid var(--portal-border);
    grid-template-columns: 150px 1fr;
    gap: 46px;
}

.portal-release-version strong,
.portal-release-version span {
    display: block;
}

.portal-release-version strong {
    color: var(--portal-green);
    font-size: 42px;
}

.portal-release-version span {
    margin-top: 8px;
    color: var(--portal-coral);
    font-size: 13px;
    font-weight: 700;
}

.portal-release-item h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.portal-release-item p,
.portal-release-item li {
    color: var(--portal-muted);
}

.portal-release-item ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.portal-notice-band {
    padding: 34px 0;
    background: var(--portal-surface);
}

.portal-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.portal-notice i {
    margin-top: 5px;
    color: var(--portal-green);
    font-size: 20px;
}

.portal-notice p {
    margin-bottom: 0;
    color: var(--portal-muted);
}

.portal-help-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 70px;
}

.portal-help-nav {
    position: sticky;
    top: 100px;
    display: grid;
    padding-right: 24px;
    border-right: 1px solid var(--portal-border);
    gap: 2px;
}

.portal-help-nav strong {
    margin-bottom: 12px;
    font-size: 13px;
}

.portal-help-nav a {
    padding: 7px 0;
    color: var(--portal-muted);
    font-size: 14px;
}

.portal-help-topic {
    padding: 0 0 54px;
    scroll-margin-top: 94px;
}

.portal-help-topic + .portal-help-topic {
    padding-top: 52px;
    border-top: 1px solid var(--portal-border);
}

.portal-help-topic h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.portal-help-topic > p:not(.portal-eyebrow),
.portal-help-topic li {
    color: var(--portal-muted);
}

.portal-help-topic ol {
    padding-left: 22px;
}

.portal-help-topic li {
    padding: 5px 0;
}

.portal-download-list {
    display: grid;
    gap: 0;
}

.portal-download-item {
    display: grid;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--portal-border);
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 24px;
}

.portal-download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    color: #fff;
    background: var(--portal-green-dark);
    font-size: 26px;
}

.portal-download-copy .portal-eyebrow {
    margin-bottom: 5px;
}

.portal-download-copy h2 {
    margin-bottom: 5px;
    font-size: 25px;
}

.portal-download-copy p:last-child {
    margin-bottom: 0;
    color: var(--portal-muted);
}

.portal-footer {
    padding: 62px 0 24px;
    color: rgba(255, 255, 255, .66);
    background: #121a17;
}

.portal-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 60px;
}

.portal-brand-footer {
    margin-bottom: 18px;
    color: #fff !important;
}

.portal-footer-grid p {
    max-width: 560px;
    margin-bottom: 0;
    font-size: 14px;
}

.portal-footer-grid nav {
    display: grid;
    align-content: start;
    gap: 9px;
}

.portal-footer-grid nav a {
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.portal-footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
}

@media (max-width: 991px) {
    .portal-nav,
    .portal-header-actions {
        display: none;
    }

    .portal-mobile-menu {
        display: block;
    }

    .portal-hero-shade {
        width: 68%;
    }

    .portal-section-heading-split,
    .portal-proof-grid,
    .portal-contrast-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .portal-help-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .portal-container {
        width: calc(100% - 32px);
    }

    .portal-header {
        height: 64px;
    }

    .portal-brand {
        min-width: 0;
        font-size: 14px;
    }

    .portal-brand-mark {
        width: 32px;
        height: 32px;
    }

    .portal-mobile-menu nav {
        top: 63px;
    }

    .portal-hero {
        height: calc(100vh - 110px);
        min-height: 500px;
        max-height: 640px;
        background-position: 58% center;
    }

    .portal-hero-shade {
        width: 100%;
        background: rgba(10, 35, 27, .84);
    }

    .portal-hero h1 {
        font-size: 38px;
    }

    .portal-hero-copy {
        font-size: 17px;
    }

    .portal-hero-facts {
        flex-wrap: wrap;
        margin-top: 26px;
        gap: 10px 18px;
    }

    .portal-band {
        padding: 62px 0;
    }

    .portal-section-heading h2,
    .portal-proof-grid h2,
    .portal-contrast-grid h2,
    .portal-slot-rule h2,
    .portal-cta-inner h2 {
        font-size: 29px;
    }

    .portal-flow,
    .portal-feature-grid,
    .portal-faq-grid,
    .portal-install-order,
    .portal-pricing-grid,
    .portal-footer-grid {
        grid-template-columns: 1fr;
    }

    .portal-flow article,
    .portal-feature-grid article,
    .portal-faq-grid > div,
    .portal-install-order > div {
        padding: 22px 0;
    }

    .portal-proof-list div {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .portal-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-page-hero {
        padding: 68px 0 60px;
    }

    .portal-page-hero h1 {
        font-size: 38px;
    }

    .portal-page-hero p:last-child {
        font-size: 17px;
    }

    .portal-slot-rule {
        grid-template-columns: 88px 1fr;
        gap: 24px;
    }

    .portal-slot-number {
        width: 88px;
        height: 88px;
        font-size: 42px;
    }

    .portal-plan-card {
        min-height: 0;
        padding: 26px;
    }

    .portal-release-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portal-release-version {
        display: flex;
        align-items: baseline;
        gap: 14px;
    }

    .portal-release-version span {
        margin-top: 0;
    }

    .portal-help-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .portal-help-nav {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 1px solid var(--portal-border);
        gap: 3px 16px;
    }

    .portal-help-nav strong {
        grid-column: 1 / -1;
    }

    .portal-download-item {
        align-items: start;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
    }

    .portal-download-icon {
        width: 52px;
        height: 52px;
    }

    .portal-download-item .portal-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .portal-footer-grid {
        gap: 32px;
    }

    .portal-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .portal-brand > span:last-child {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-actions .portal-button {
        width: 100%;
    }

    .portal-slot-rule {
        grid-template-columns: 1fr;
    }
}
