/* Public marketing pages */

.marketing-page {
    overflow: hidden;
    background: var(--rg-surface-page);
}

/* Editorial homepage */
.front-page {
    overflow: hidden;
}

.front-feature {
    padding-block: clamp(72px, 10vw, 136px);
    background: var(--rg-surface-page);
}

.front-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
}

.front-feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rg-space-5);
}

.front-feature-copy .mud-typography-h1,
.update-article-header .mud-typography-h1 {
    max-width: 820px;
    font-size: clamp(3rem, 6.3vw, 6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.front-feature-copy .mud-typography-h6 {
    max-width: 680px;
    line-height: 1.65;
    font-weight: var(--rg-font-weight-regular);
}

.front-feature-visual {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 440px;
    padding: 0;
    overflow: visible;
    color: var(--mud-palette-text-primary);
    background: transparent;
    text-align: center;
}

.front-feature-visual > img {
    display: block;
    width: 112%;
    max-width: 540px;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.front-release-mark {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: var(--rg-space-6);
    border-radius: var(--m3-shape-xl);
    background: color-mix(in srgb, var(--mud-palette-primary-text) 14%, transparent);
}

.front-release-mark .mud-icon-root {
    font-size: 4rem;
}

.front-section {
    padding-block: clamp(72px, 9vw, 120px);
}

.front-section-surface {
    padding: clamp(28px, 5vw, 64px);
    border-radius: var(--m3-shape-xl);
    background: var(--rg-surface-container);
}

.front-product-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    overflow: hidden;
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container-nested);
}

.front-product-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--rg-space-5);
    padding: clamp(36px, 7vw, 88px);
}

.front-product-copy .mud-typography-body1 {
    max-width: 580px;
    line-height: 1.7;
}

.front-product-visual {
    display: grid;
    place-items: center;
    min-height: 460px;
    padding: clamp(40px, 8vw, 96px);
    background: transparent;
}

.front-product-visual .mud-image {
    width: min(100%, 320px);
    height: auto;
}

.front-updates {
    padding-top: 0;
}

.front-update-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rg-space-5);
}

.front-update-link {
    display: block;
    min-width: 0;
    color: inherit;
}

.front-update-card {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    min-height: 360px;
    height: 100%;
    padding: var(--rg-space-6);
    border-radius: var(--rg-shape-card);
    background: var(--rg-surface-container-nested);
    transition: background-color var(--m3-motion-duration-short) var(--m3-motion-easing-effects);
}

.front-update-link:hover .front-update-card {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, var(--rg-surface-container-nested));
}

.front-update-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--rg-space-3);
    border-radius: var(--rg-shape-control);
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface));
}

.front-update-image {
    display: grid;
    place-items: center;
    height: 168px;
    margin: calc(var(--rg-space-6) * -1) calc(var(--rg-space-6) * -1) var(--rg-space-3);
    overflow: hidden;
    border-radius: var(--rg-shape-card) var(--rg-shape-card) 0 0;
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.front-update-image img {
    width: 100%;
    height: 100%;
    padding: var(--rg-space-2);
    object-fit: contain;
}

.front-update-card .mud-typography-body2 {
    line-height: 1.65;
}

.front-update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rg-space-3);
    margin-top: auto;
    padding-top: var(--rg-space-4);
}

.front-introduction {
    text-align: left;
}

.front-introduction-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
    align-items: center;
    gap: clamp(40px, 7vw, 96px);
}

.front-introduction-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rg-space-5);
}

.front-introduction-copy .mud-typography-body1 {
    max-width: 680px;
    line-height: 1.75;
}

.marketing-editorial-image {
    display: block;
    width: 100%;
    height: auto;
}

.front-introduction-illustration {
    max-width: 720px;
    margin-inline: auto;
}

/* Individual homepage updates */
.update-article {
    padding-block: clamp(64px, 9vw, 112px);
}

.update-article-back.mud-button-root {
    margin-inline-start: calc(0px - var(--rg-space-10));
    margin-bottom: var(--rg-space-10);
}

.update-article-header {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-5);
    padding-bottom: var(--rg-space-10);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.update-article-header .mud-typography-h6 {
    max-width: 720px;
    line-height: 1.65;
    font-weight: var(--rg-font-weight-regular);
}

.update-article-body {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-5);
    max-width: 720px;
    padding-block: var(--rg-space-10);
}

.update-article-body .mud-typography-body1 {
    line-height: 1.8;
}

.update-article-prose {
    color: var(--mud-palette-text-primary);
}

.update-article-prose h2,
.update-article-prose h3 {
    margin-top: var(--rg-space-8);
    margin-bottom: 0;
    color: var(--mud-palette-text-primary);
    font-weight: var(--rg-font-weight-medium);
    letter-spacing: -0.025em;
}

.update-article-prose h2 {
    font-size: var(--mud-typography-h4-size);
    line-height: var(--mud-typography-h4-lineheight);
}

.update-article-prose h3 {
    font-size: var(--mud-typography-h5-size);
    line-height: var(--mud-typography-h5-lineheight);
}

.update-article-prose p,
.update-article-prose li {
    margin: 0;
    color: var(--mud-palette-text-secondary);
    font-size: var(--mud-typography-body1-size);
    line-height: 1.8;
}

.update-article-prose ul,
.update-article-prose ol {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-2);
    margin: 0;
    padding-left: var(--rg-space-6);
}

.update-article-prose img {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-block: var(--rg-space-4);
    padding: clamp(12px, 3vw, 28px);
    border-radius: var(--m3-shape-l);
    background: var(--mud-palette-surface);
    object-fit: contain;
}

.update-article-cta {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: var(--rg-space-6);
    padding: var(--rg-space-6);
    border-radius: var(--rg-shape-card);
    background: var(--rg-surface-container-nested);
}

.update-article-cta .mud-button-root {
    flex: 0 0 auto;
    margin-inline-start: 0;
    white-space: nowrap;
}

.update-article-cta > div {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-2);
}

.update-article-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rg-space-6);
}

/* Updates archive */
.updates-index-page {
    padding-block: clamp(64px, 9vw, 112px);
}

.updates-index-header {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    max-width: 760px;
    margin-bottom: var(--rg-space-10);
}

.updates-index-header .mud-typography-h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.updates-index-header .mud-typography-h6 {
    line-height: 1.65;
    font-weight: var(--rg-font-weight-regular);
}

.updates-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rg-space-6);
}

.updates-index-link {
    display: block;
    min-width: 0;
    color: inherit;
}

.updates-index-card {
    display: grid;
    grid-template-rows: 280px 1fr;
    height: 100%;
    overflow: hidden;
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
    transition: background-color var(--m3-motion-duration-short) var(--m3-motion-easing-effects);
}

.updates-index-link:hover .updates-index-card {
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--rg-surface-container));
}

.updates-index-image {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: var(--rg-space-3);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: var(--rg-surface-container-nested);
}

.updates-index-card .updates-index-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.updates-index-image > .mud-icon-root {
    font-size: 5rem;
    color: var(--mud-palette-primary);
}

.updates-index-copy {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    padding: var(--rg-space-6);
}

.updates-index-copy .mud-typography-body1 {
    line-height: 1.7;
}

.updates-index-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rg-space-3);
    margin-top: auto;
    padding-top: var(--rg-space-4);
}

.updates-index-meta > span {
    display: inline-flex;
    align-items: center;
    gap: var(--rg-space-2);
}

@media (max-width: 959px) {
    .front-feature-grid,
    .front-product-feature {
        grid-template-columns: 1fr;
    }

    .front-feature-visual,
    .front-product-visual {
        min-height: 360px;
    }

    .front-update-grid {
        grid-template-columns: 1fr;
    }

    .updates-index-grid {
        grid-template-columns: 1fr;
    }

    .front-update-card {
        min-height: 0;
    }
}

@media (max-width: 599px) {
    .front-feature,
    .front-section,
    .update-article,
    .updates-index-page {
        padding-block: var(--rg-space-10);
    }

    .front-updates {
        padding-top: 0;
    }

    .front-section-surface {
        width: calc(100% - (2 * var(--page-gutter)));
        padding: var(--rg-space-5);
    }

    .front-feature-copy .mud-typography-h1,
    .update-article-header .mud-typography-h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .front-feature-visual,
    .front-product-visual {
        min-height: 280px;
        padding: var(--rg-space-8);
    }

    .marketing-section-heading--inline,
    .update-article-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .update-article-back.mud-button-root {
        margin-inline-start: 0;
    }

    .updates-index-card {
        grid-template-rows: 220px 1fr;
    }
}

.marketing-page .mud-typography-h1,
.marketing-page .mud-typography-h2,
.marketing-page .mud-typography-h3,
.marketing-page .mud-typography-h4,
.marketing-page .mud-typography-h5,
.marketing-page .mud-typography-h6 {
    text-wrap: balance;
}

.marketing-page .mud-typography-body1,
.marketing-page .mud-typography-body2 {
    text-wrap: pretty;
}

.marketing-align-center {
    align-items: center;
}

.marketing-section {
    padding-block: clamp(64px, 7vw, 96px);
}

.marketing-section-muted {
    background: var(--rg-surface-page);
}

.marketing-section-title {
    max-width: 760px;
    margin-top: var(--rg-space-3);
    letter-spacing: -0.035em;
}

.marketing-section-lead {
    max-width: 720px;
    margin-top: var(--rg-space-5);
    line-height: 1.75;
}

.marketing-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: var(--rg-space-12);
    margin-bottom: var(--rg-space-10);
}

.marketing-section-heading--inline {
    display: flex;
    justify-content: space-between;
    gap: var(--rg-space-6);
    margin-bottom: var(--rg-space-8);
}

.marketing-section-heading--inline .marketing-section-heading-copy {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-2);
}

.marketing-section-heading--inline .marketing-section-title {
    max-width: none;
    margin-top: 0;
}

.marketing-heading-copy {
    max-width: 520px;
    line-height: 1.7;
}

.marketing-actions {
    flex-wrap: wrap;
}

.marketing-actions .mud-button-root {
    min-height: var(--rg-control-height-lg);
    padding-inline: var(--rg-space-6);
}

.marketing-page .marketing-text-link {
    align-self: flex-start;
    margin: var(--rg-space-6) 0 0;
}

.marketing-feature-card {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    min-height: 260px;
    height: 100%;
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
}

.marketing-feature-card .mud-typography-body2 {
    line-height: 1.7;
}

.marketing-feature-icon,
.home-view-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--m3-shape-m);
    color: var(--mud-palette-text-primary);
    background: var(--rg-surface-raised);
}

.marketing-cta-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rg-space-5);
    padding: clamp(24px, 4vw, 48px) 0;
    text-align: center;
}

.marketing-cta-panel .mud-typography-body1 {
    max-width: 620px;
}

/* Home hero */

.page-stagger > .home-page {
    animation: none;
    margin-top: calc(0px - var(--mud-appbar-height));
}

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    overflow: hidden;
    padding: calc(var(--mud-appbar-height) + clamp(48px, 7svh, 96px)) 0 clamp(160px, 22svh, 260px);
    background: center bottom / cover no-repeat url("/images/rungard-hero-light.jpg");
}

/* Ambient animation layer. Sized and positioned from JS to match the hero background box. */
.home-hero-canvas {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.home-hero::after {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: clamp(var(--rg-space-6), 3vw, var(--rg-space-12));
    background: var(--rg-surface-page);
    content: "";
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30C110 18 170 38 280 31C390 24 455 9 585 22C740 38 810 41 930 29C1060 15 1150 12 1245 26C1335 39 1384 33 1440 24V56H0Z' fill='black'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30C110 18 170 38 280 31C390 24 455 9 585 22C740 38 810 41 930 29C1060 15 1150 12 1245 26C1335 39 1384 33 1440 24V56H0Z' fill='black'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

body.dark-mode .home-hero {
    background-image: url("/images/rungard-hero-dark.jpg");
}

.home-hero > .mud-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-hero-copy {
    align-items: center;
    gap: clamp(16px, 3.5svh, 40px) !important;
    min-width: 0;
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.home-hero-title {
    font-size: clamp(2.75rem, min(5vw, 7.5svh), 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-hero-title:lang(de) {
    overflow-wrap: break-word;
    hyphens: manual;
}

.home-hero-summary,
.about-hero-summary {
    max-width: 660px;
    font-weight: var(--rg-font-weight-regular);
    line-height: 1.65;
}

.home-hero-summary {
    text-wrap: balance;
}

/* Always one point per row. Wrapping put two on one line and one on the next, which
   read as a broken grid. fit-content keeps the check marks on a shared left edge while
   the block itself stays centred under the hero copy, and collapses to the full width
   once a label has to wrap. */
.home-hero-points {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--rg-space-3);
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: start;
}

.home-hero-point {
    display: flex;
    align-items: flex-start;
    gap: var(--rg-space-2);
}

.home-hero-point .mud-icon-root {
    flex: 0 0 auto;
}

/* Home content */

.home-intro {
    padding-top: clamp(64px, 8vw, 96px);
}

.home-intro-layout,
.home-how-layout,
.home-views-story {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
}

.home-how-layout {
    grid-template-columns: minmax(420px, 1.18fr) minmax(0, 0.82fr);
}

.home-intro-title-line {
    display: block;
}

.home-intro-illustration,
.home-how-illustration {
    max-width: 760px;
    margin-inline: auto;
}

.home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--rg-space-2);
    margin-top: var(--rg-space-8);
}

.home-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: var(--rg-space-5);
    padding-block: var(--rg-space-3);
}

.home-step:nth-child(2) {
    margin-left: var(--rg-space-3);
}

.home-step:nth-child(3) {
    margin-left: var(--rg-space-6);
}

.home-step-number {
    color: var(--mud-palette-primary);
    font-size: var(--mud-typography-h3-size);
    font-weight: var(--rg-font-weight-bold);
    line-height: 1;
    letter-spacing: -0.06em;
}

.home-step .mud-typography-h5 {
    margin-bottom: var(--rg-space-1);
}

.home-step .mud-typography-body2 {
    line-height: 1.7;
}

.home-local-note {
    display: flex;
    align-items: flex-start;
    gap: var(--rg-space-4);
    max-width: 720px;
    margin-top: var(--rg-space-8);
    padding-top: var(--rg-space-5);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.home-view-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rg-space-4);
    max-width: 920px;
    margin: var(--rg-space-10) auto 0;
}

.home-view-card {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
}

.home-view-list {
    padding-top: var(--rg-space-2);
}

.home-view-list > div {
    display: flex;
    align-items: flex-start;
    gap: var(--rg-space-2);
    color: var(--mud-palette-text-secondary);
    font-size: 0.86rem;
}

.home-views-illustration {
    max-width: 760px;
    margin-inline: auto;
}

.home-final-cta,
.about-final-cta {
    padding-top: 0;
}

.marketing-cta-actions {
    justify-content: center;
}

/* About page */

.about-hero {
    padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px);
}

.about-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: var(--rg-space-8) clamp(40px, 6vw, 88px);
}

.about-hero-title {
    max-width: 15ch;
    font-size: clamp(3rem, 5.4vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.about-page .about-hero-summary {
    max-width: 42ch;
    padding-bottom: var(--rg-space-2);
}

.about-section-alt {
    background: var(--rg-surface-container);
}

/* Purpose */

.about-purpose-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: var(--rg-space-8) clamp(40px, 6vw, 96px);
}

.about-purpose-illustration {
    max-width: 460px;
    margin-inline: auto;
}

.about-statement {
    max-width: 16ch;
    font-size: clamp(2.25rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-purpose-copy {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-5);
    max-width: 56ch;
}

.about-page .about-purpose-lead {
    font-weight: var(--rg-font-weight-regular);
    line-height: 1.6;
}

.about-purpose-copy .mud-typography-body1 {
    line-height: 1.75;
}

/* System layers */

.about-layers {
    display: grid;
    gap: var(--rg-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-layer {
    display: grid;
    grid-template-columns: 48px minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: var(--rg-space-4) clamp(24px, 4vw, 56px);
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
}

.about-layer-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--m3-shape-m);
    color: var(--mud-palette-text-primary);
    background: var(--rg-surface-raised);
}

.about-layer-copy {
    max-width: 62ch;
    line-height: 1.7;
}

/* Principles */

.about-principle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 80px);
}

.about-principle {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-3);
}

.about-principle .mud-typography-body1 {
    max-width: 52ch;
    line-height: 1.75;
}

/* Company */

.about-company-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

.about-company-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rg-space-5);
    max-width: 58ch;
}

.about-company-copy .marketing-section-title {
    margin-top: 0;
}

.about-company-copy .mud-typography-body1 {
    line-height: 1.75;
}

.about-colophon {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-2);
    margin-top: var(--rg-space-8);
}

.about-wordmark {
    display: block;
    width: min(180px, 100%);
    height: auto;
}

.about-company-illustration {
    max-width: 520px;
    margin-inline: auto;
}

/* Products and contact */

.support-page,
.contact-page {
    min-height: 100%;
    padding-block: clamp(48px, 7vw, 88px);
    background: var(--rg-surface-page);
}

.products-page {
    padding-block: clamp(32px, 4vw, 56px);
}

.support-page-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: var(--rg-space-6);
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: var(--rg-space-10);
    text-align: center;
}

.products-header,
.contact-header {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
    align-items: center;
    gap: clamp(40px, 7vw, 96px);
    max-width: none;
    text-align: left;
}

.products-header-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rg-space-4);
}

.products-header {
    grid-template-columns: 1fr;
    gap: var(--rg-space-4);
    width: min(100%, 760px);
    margin-inline: auto;
    margin-bottom: var(--rg-space-8);
    text-align: center;
}

.products-header-illustration {
    max-width: 320px;
    margin-inline: auto;
}

.contact-header-illustration {
    max-width: 480px;
    margin-inline: auto;
}

.support-page-header .mud-typography-h2,
.contact-header .mud-typography-h2 {
    margin-bottom: var(--rg-space-3);
    letter-spacing: -0.035em;
}

.support-page-header .mud-typography-body1,
.contact-header .mud-typography-body1 {
    max-width: 760px;
    line-height: 1.7;
}

.products-header .products-currency {
    flex: 0 0 auto;
    margin-inline: auto;
    width: 116px;
}

.product-picker {
    width: min(100%, 410px);
    margin-inline: auto;
}

.products-loading {
    display: grid;
    justify-items: center;
    gap: var(--rg-space-5);
}

.product-card.products-loading-card {
    width: 100%;
    border: 0;
}

.products-loading-period,
.products-loading-heading,
.products-loading-price,
.products-loading-copy {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.products-loading-period {
    gap: var(--rg-space-2);
}

.products-loading-tabs {
    display: flex;
    gap: var(--rg-space-3);
}

.products-loading-tabs .mud-skeleton,
.products-loading-actions .mud-skeleton {
    border-radius: var(--rg-shape-control);
}

.products-loading-content {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-5);
    padding: calc(var(--rg-space-12) + var(--rg-space-3)) var(--rg-space-6) var(--rg-space-6);
}

.products-loading-heading {
    gap: var(--rg-space-4);
}

.products-loading-image {
    border-radius: var(--rg-shape-app-tile);
}

.products-loading-price,
.products-loading-copy {
    gap: var(--rg-space-1);
}

.products-loading-specs {
    display: grid;
    gap: var(--rg-space-3);
}

.products-loading-spec {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--rg-space-2);
}

.products-loading-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rg-space-3);
    padding: 0 var(--rg-space-6) var(--rg-space-6);
}

.products-load-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 520px);
    margin-inline: auto;
    padding: var(--rg-space-5);
    border-radius: var(--rg-shape-card);
}

.product-period-selector {
    width: 100%;
    margin: 0;
    text-align: center;
}

.product-period-tabs .mud-tabs-tabbar,
.product-period-tabs .mud-tabs-tabbar-wrapper,
.product-period-tabs .mud-tabs-tabbar-content {
    width: 100%;
}

.product-period-tabs {
    width: 50%;
    margin-inline: auto;
}

.product-period-tabs.mud-tabs .mud-tab {
    width: 100%;
    justify-content: center;
}

.product-period-tabs .mud-tabs-tabbar-wrapper > .mud-tooltip-root {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 599.98px) {
    .product-period-tabs {
        width: 100%;
    }
}

.product-pricing-controls {
    display: grid;
    gap: var(--rg-space-3);
    margin-bottom: var(--rg-space-5);
}

.product-customer-type {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 50%;
    margin-inline: auto;
    padding: var(--rg-space-1);
    border-radius: var(--rg-shape-pill);
    background: var(--rg-surface-control);
}

.product-customer-type .mud-button-root {
    width: 100%;
    border-radius: var(--rg-shape-pill);
}

@media (max-width: 599.98px) {
    .product-customer-type {
        width: 100%;
    }
}

.contact-layout {
    align-items: stretch;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.product-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--rg-space-5);
    padding: calc(var(--rg-space-12) + var(--rg-space-3)) var(--rg-space-6) var(--rg-space-6);
    text-align: center;
}

.product-card-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rg-space-4);
}

.product-card-image {
    width: 96px;
    height: 96px;
}

.product-price {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: var(--rg-space-1);
}

.product-price .mud-typography-h3 {
    font-size: var(--rg-type-display-medium-size);
    line-height: var(--rg-type-display-medium-line-height);
}

.product-description {
    min-height: 64px;
    line-height: 1.65;
}

.product-specs {
    width: 100%;
    max-width: 360px;
    margin-top: auto;
    margin-inline: auto;
    text-align: left;
}

.product-spec-row {
    display: grid;
    grid-template-columns: 24px minmax(72px, auto) minmax(0, 1fr);
    align-items: start;
    gap: var(--rg-space-2);
}

.product-spec-row > :last-child {
    text-align: right;
    overflow-wrap: anywhere;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rg-space-3);
    padding: 0 var(--rg-space-6) var(--rg-space-6);
}

.product-details-back {
    margin-bottom: var(--rg-space-6);
}

.product-details-loading {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.product-details-hero {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: var(--rg-space-12);
    padding-block: var(--rg-space-6) var(--rg-space-12);
}

.product-details-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--rg-space-4);
}

.product-details-copy .mud-typography-h1 {
    letter-spacing: -0.04em;
}

.product-details-visual {
    display: grid;
    place-items: center;
    min-height: 460px;
    border-radius: var(--rg-shape-card);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.product-details-visual .mud-image {
    width: min(100%, 480px);
    height: 400px;
}

.product-details-glance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rg-space-4) var(--rg-space-8);
    width: 100%;
    margin: var(--rg-space-4) 0 0;
}

.product-details-glance-item > dt,
.product-details-glance-item > dd {
    margin: 0;
}

.product-details-overview {
    max-width: 760px;
    margin: clamp(56px, 7vw, 88px) auto 0;
    text-align: center;
}

.product-details-overview .mud-typography-h2 {
    margin-bottom: var(--rg-space-3);
    letter-spacing: -0.035em;
}

.product-details-overview .mud-typography-body1 {
    line-height: 1.75;
}

.product-details-specifications {
    margin-top: clamp(56px, 7vw, 88px);
}

.product-details-specifications > .mud-typography-h3 {
    margin-bottom: var(--rg-space-6);
    letter-spacing: -0.03em;
}

.product-details-spec-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--rg-space-4);
}

.product-details-spec-group {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-4);
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.product-details-spec-group-head {
    display: flex;
    align-items: center;
    gap: var(--rg-space-3);
    color: var(--mud-palette-primary);
}

.product-details-spec-group-head .mud-typography-h6 {
    color: var(--mud-palette-text-primary);
}

.product-details-spec-rows {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-3);
    margin: 0;
}

.product-details-spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--rg-space-6);
}

.product-details-spec-label,
.product-details-spec-value {
    margin: 0;
}

.product-details-spec-label {
    flex: 0 0 auto;
}

.product-details-spec-value {
    overflow-wrap: anywhere;
    text-align: right;
}

.product-details-specs-note {
    margin-top: var(--rg-space-5);
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rg-space-4);
    margin-top: clamp(56px, 7vw, 88px);
}

.product-details-panel {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-3);
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.product-details-panel-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--rg-space-2);
    border-radius: var(--m3-shape-m);
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.product-details-panel .mud-typography-body2 {
    line-height: 1.7;
}

.products-section,
.product-faq-section {
    width: min(100%, 760px);
    margin-inline: auto;
}

.subscription-includes {
    width: min(100%, 1040px);
}

.products-section {
    padding-top: clamp(80px, 9vw, 120px);
}

.product-faq-section {
    margin-top: clamp(80px, 9vw, 120px);
}

.support-section-heading {
    margin-bottom: var(--rg-space-10);
    text-align: center;
}

.support-section-heading .mud-typography-h4 {
    margin-bottom: var(--rg-space-3);
}

.support-section-heading .mud-typography-h3 {
    margin-bottom: var(--rg-space-2);
    letter-spacing: -0.025em;
}

.product-faq-surface {
    overflow: hidden;
    padding: var(--rg-space-6);
    border-radius: var(--rg-shape-card);
}

.product-faq-surface .mud-expand-panel.mud-panel-expanded,
.product-faq-surface .mud-expand-panel.mud-panel-next-expanded {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.product-faq-surface .mud-expand-panel:last-child {
    border-bottom: none;
}

.subscription-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--rg-space-4);
}

.subscription-card {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-3);
    padding: var(--rg-space-6);
    border-radius: var(--m3-shape-l);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.subscription-card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--rg-space-2);
    border-radius: var(--m3-shape-m);
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.subscription-card .mud-typography-body2 {
    line-height: 1.7;
}

.subscription-note {
    display: block;
    margin-top: var(--rg-space-5);
    text-align: center;
}

.contact-header {
    max-width: none;
    margin-bottom: var(--rg-space-10);
}

.contact-form-surface,
.contact-info-surface,
.contact-interest-surface {
    padding: var(--rg-space-6);
    border-radius: var(--rg-shape-card);
    background: var(--rg-surface-container);
    box-shadow: var(--rg-shadow-workspace-panel);
}

.contact-form-surface {
    height: 100%;
}

.contact-form-intro {
    margin: var(--rg-space-3) 0 var(--rg-space-10);
}

.contact-alert {
    margin-bottom: var(--rg-space-8);
}

.contact-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: var(--rg-space-4);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 64px);
    height: 100%;
}

.contact-info-surface,
.contact-interest-surface {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-6);
}

.contact-info-surface .mud-typography-h5,
.contact-interest-surface .mud-typography-h5 {
    margin-bottom: calc(var(--rg-space-2) * -1);
}

.contact-interest-surface {
    flex: 1 1 auto;
}

.contact-interest-surface .contact-form-actions {
    margin-top: var(--rg-space-2);
}

.contact-email-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: var(--rg-space-4);
}

.contact-email-row > div:last-child {
    display: flex;
    flex-direction: column;
    gap: var(--rg-space-1);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--m3-shape-m);
    background: var(--rg-surface-container-nested);
}

/* Responsive behavior */

@media (max-width: 959.98px) {
    .marketing-section-heading {
        grid-template-columns: 1fr;
        gap: var(--rg-space-5);
    }

    .front-introduction-layout {
        grid-template-columns: 1fr;
    }

    .home-intro-layout,
    .home-how-layout,
    .home-views-story,
    .products-header,
    .contact-header {
        grid-template-columns: 1fr;
    }

    .products-header,
    .contact-header {
        text-align: center;
    }

    .products-header-copy {
        align-items: center;
    }

    .product-details-hero {
        grid-template-columns: 1fr;
    }

    .product-details-visual {
        min-height: 240px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: 800px;
    }

    .about-hero-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .about-purpose-layout {
        grid-template-columns: 1fr;
    }

    .about-statement {
        max-width: 20ch;
    }

    .about-purpose-copy {
        max-width: none;
    }

    .about-purpose-illustration {
        max-width: 420px;
    }

    .about-layer {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .about-layer-copy {
        grid-column: 2;
    }

    .about-company-layout {
        grid-template-columns: 1fr;
    }

    .about-company-copy {
        max-width: none;
    }

    .about-company-illustration {
        order: -1;
        max-width: 420px;
    }
}

@media (max-width: 767.98px) {
    .marketing-section {
        padding-block: 64px;
    }

    .home-hero {
        min-height: 100svh;
        padding: calc(var(--mud-appbar-height) + 28px) 0 72px;
    }

    .about-hero {
        padding-block: 48px 72px;
    }

    .home-hero-title,
    .about-hero-title {
        font-size: clamp(2.8rem, 13vw, 4.3rem);
    }

    .home-view-comparison,
    .subscription-cards {
        grid-template-columns: 1fr;
    }

    .home-view-card {
        min-height: 0;
    }

    .home-page {
        text-align: center;
    }

    /* The hero points are deliberately left-aligned as a centred block. Centring the
       text inside them strands the check mark at the far left of a wrapped row, so they
       are excluded here. See .home-hero-points above. */
    .home-page .home-view-list > div {
        justify-content: flex-start;
        text-align: left;
    }

    .home-page .home-local-note {
        justify-content: flex-start;
        text-align: left;
    }

    .home-page .marketing-feature-card,
    .home-page .home-view-card {
        align-items: flex-start;
        text-align: left;
    }

    .home-page .home-view-list {
        width: 100%;
    }

    .home-page .marketing-text-link {
        align-self: center;
    }

    .home-page .home-step {
        text-align: left;
    }

    .about-principle-grid,
    .product-details-spec-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599.98px) {
    .page-stagger > .home-page {
        margin-top: calc(0px - var(--mud-appbar-height) + var(--rg-space-2));
    }

    .support-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card-image {
        width: 80px;
        height: 80px;
    }

    .products-loading-image {
        width: 80px !important;
        height: 80px !important;
    }

    .product-actions,
    .products-loading-actions {
        grid-template-columns: 1fr;
    }

    .product-details-hero {
        padding-block: var(--rg-space-6);
    }

    .product-details-visual .mud-image {
        height: 220px;
    }

    .product-details-glance {
        grid-template-columns: 1fr;
    }

    .product-details-spec {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--rg-space-2);
    }

    .product-details-spec-value {
        text-align: left;
    }

    .product-faq-surface {
        padding: var(--rg-space-4);
    }

    .subscription-card {
        padding: var(--rg-space-5);
    }

    .marketing-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .marketing-actions .mud-button-root {
        width: 100%;
    }

    .about-layer {
        grid-template-columns: 1fr;
        gap: var(--rg-space-3);
    }

    .about-layer-copy {
        grid-column: 1;
    }

    .marketing-cta-panel {
        align-items: stretch;
        padding-block: var(--rg-space-5);
        text-align: left;
    }

    .marketing-cta-panel .marketing-actions {
        align-items: stretch;
    }

    .home-page .marketing-cta-panel {
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketing-page *,
    .marketing-page *::before,
    .marketing-page *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
