/* static/site.css */

/* =========================================================
   Design tokens
   ========================================================= */

:root {
    --color-bg: #ffffff;
    --color-bg-subtle: #f7f8fb;
    --color-bg-muted: #f1f3f8;
    --color-surface: #ffffff;
    --color-surface-raised: #ffffff;

    --color-text: #111827;
    --color-text-strong: #0b1220;
    --color-text-muted: #667085;
    --color-text-soft: #8a94a6;

    --color-border: #e4e7ec;
    --color-border-strong: #d0d5dd;

    --color-primary: #087a45;
    --color-primary-hover: #066a3b;
    --color-primary-active: #055832;
    --color-primary-soft: #edf9f2;
    --color-primary-border: #b8e3c7;

    --color-success: #067647;
    --color-success-bg: #ecfdf3;
    --color-success-border: #abefc6;

    --color-warning: #b54708;
    --color-warning-bg: #fffaeb;
    --color-warning-border: #fedf89;

    --color-danger: #b42318;
    --color-danger-bg: #fef3f2;
    --color-danger-border: #fecdca;

    --color-info: #175cd3;
    --color-info-bg: #eff8ff;
    --color-info-border: #b2ddff;

    --shadow-xs: 0 1px 2px rgb(16 24 40 / 0.05);
    --shadow-sm:
        0 1px 3px rgb(16 24 40 / 0.08),
        0 1px 2px rgb(16 24 40 / 0.04);
    --shadow-md:
        0 10px 24px rgb(16 24 40 / 0.08),
        0 2px 6px rgb(16 24 40 / 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shell-width: 1180px;
    --content-width: 760px;
    --header-height: 72px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    --space-11: 80px;

    --font-sans:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        "Apple Color Emoji",
        "Segoe UI Emoji",
        sans-serif;

    --transition-fast: 140ms ease;
    --transition-base: 180ms ease;
}


/* =========================================================
   Reset / base
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(
            180deg,
            #fbfcff 0,
            var(--color-bg) 260px
        );
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.site-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    margin: 0;
    font: inherit;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--color-primary-hover);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-strong);
    font-weight: 650;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    line-height: 1.16;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.3;
}

::selection {
    background: var(--color-primary-border);
    color: var(--color-text-strong);
}

:focus-visible {
    outline: 3px solid rgb(8 122 69 / 0.28);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}


/* =========================================================
   Shared layout
   ========================================================= */

.site-shell {
    width: min(
        calc(100% - 40px),
        var(--shell-width)
    );
    margin-inline: auto;
}

.site-main {
    width: 100%;
    flex: 1 0 auto;
}

.content-shell {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );
    margin-inline: auto;
}

.section {
    padding-block: var(--space-10);
}

.section--compact {
    padding-block: var(--space-8);
}

.section--muted {
    background: var(--color-bg-subtle);
    border-block: 1px solid var(--color-border);
}

.section-heading {
    max-width: 720px;
    margin-bottom: var(--space-7);
}

.section-heading__eyebrow,
.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: var(--space-4);
}

.section-heading p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.stack--compact {
    gap: var(--space-3);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}


/* =========================================================
   Accessibility
   ========================================================= */

.skip-link {
    position: fixed;
    z-index: 1000;
    top: var(--space-3);
    left: var(--space-3);
    padding: 10px 14px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
    font-weight: 700;
    transform: translateY(-180%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}


/* =========================================================
   Header / brand / navigation
   ========================================================= */

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgb(228 231 236 / 0.82);
    background: rgb(255 255 255 / 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    gap: var(--space-6);
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--color-text-strong);
    font-weight: 780;
    letter-spacing: -0.025em;
}

.site-brand:hover {
    color: var(--color-text-strong);
}

.site-brand__mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #0b8f50 0%,
            #087a45 55%,
            #055832 100%
        );
    box-shadow:
        0 6px 18px rgb(8 122 69 / 0.22);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 850;
}

.site-brand__text {
    font-size: 1rem;
}

.site-nav--desktop {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.site-nav__link,
.site-header__signin,
.site-header__account {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding-inline: 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.94rem;
    font-weight: 620;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.site-nav__link:hover,
.site-header__signin:hover,
.site-header__account:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text-strong);
}

.site-nav__link.is-active,
.site-header__signin.is-active,
.site-header__account.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.site-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

.site-header__signout-form {
    margin: 0;
}

.site-header__signout {
    min-height: 40px;
    padding-inline: 12px;
}

.site-nav-mobile {
    position: relative;
    display: none;
    margin-left: auto;
}

.site-nav-mobile__summary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text-strong);
    font-size: 0.92rem;
    font-weight: 650;
    list-style: none;
    user-select: none;
}

.site-nav-mobile__summary::-webkit-details-marker {
    display: none;
}

.site-nav-mobile[open] .site-nav-mobile__summary {
    border-color: var(--color-primary-border);
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.site-nav-mobile__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 32px));
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
}

.site-nav-mobile__link {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-inline: 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 620;
}

.site-nav-mobile__link:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text-strong);
}

.site-nav-mobile__link.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.site-nav-mobile__signout-form {
    margin: 0;
}

.site-nav-mobile__signout {
    width: 100%;
}


/* =========================================================
   Buttons
   ========================================================= */

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    appearance: none;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.button:hover {
    text-decoration: none;
}

.button:active {
    transform: translateY(1px);
}

.button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: var(--shadow-xs);
    color: #ffffff;
}

.button--primary:hover {
    border-color: var(--color-primary-hover);
    background: var(--color-primary-hover);
    color: #ffffff;
}

.button--primary:active {
    border-color: var(--color-primary-active);
    background: var(--color-primary-active);
}

.button--secondary {
    border-color: var(--color-border-strong);
    background: var(--color-bg);
    color: var(--color-text-strong);
}

.button--secondary:hover {
    border-color: #b8c0cc;
    background: var(--color-bg-subtle);
    color: var(--color-text-strong);
}

.button--danger {
    border-color: #d92d20;
    background: #d92d20;
    color: #ffffff;
}

.button--danger:hover {
    border-color: #b42318;
    background: #b42318;
    color: #ffffff;
}

.button--ghost {
    border-color: transparent;
    background: transparent;
    color: var(--color-primary);
}

.button--ghost:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
}

.button--small {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 0.9rem;
}

.button--mobile {
    width: 100%;
    margin-top: var(--space-1);
}

.button--full {
    width: 100%;
}

.button[disabled],
.button.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}


/* =========================================================
   Generic cards / panels
   ========================================================= */

.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}

.card__header,
.card__body,
.card__footer {
    padding: var(--space-6);
}

.card__header {
    padding-bottom: var(--space-4);
}

.card__header + .card__body {
    padding-top: 0;
}

.card__footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card h2,
.card h3 {
    margin-bottom: var(--space-2);
}

.card p:last-child {
    margin-bottom: 0;
}

.panel-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}


/* =========================================================
   Notices / feedback
   ========================================================= */

.notice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 13px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    color: var(--color-text);
    font-size: 0.93rem;
}

.notice p {
    margin-bottom: 0;
}

.notice--success {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
    color: var(--color-success);
}

.notice--warning {
    border-color: var(--color-warning-border);
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.notice--danger,
.notice--error {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.notice--info {
    border-color: var(--color-info-border);
    background: var(--color-info-bg);
    color: var(--color-info);
}


/* =========================================================
   Forms
   ========================================================= */

.form {
    display: grid;
    gap: var(--space-5);
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-label {
    color: var(--color-text-strong);
    font-size: 0.9rem;
    font-weight: 680;
}

.form-required {
    color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: 10px;
    outline: none;
    background: var(--color-bg);
    color: var(--color-text-strong);
    box-shadow: 0 0 0 0 transparent;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #98a2b3;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #b7bec9;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgb(8 122 69 / 0.1);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
    border-color: #f04438;
}

.form-input[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 4px rgb(240 68 56 / 0.1);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    border-color: var(--color-border);
    background: var(--color-bg-muted);
    color: var(--color-text-soft);
}

.form-help,
.form-error {
    margin: 0;
    font-size: 0.82rem;
}

.form-help {
    color: var(--color-text-muted);
}

.form-error {
    color: var(--color-danger);
    font-weight: 600;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-soft);
    font-size: 0.82rem;
}

.form-divider::before,
.form-divider::after {
    height: 1px;
    flex: 1 1 auto;
    background: var(--color-border);
    content: "";
}


/* =========================================================
   Auth pages
   ========================================================= */

.auth-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgb(8 122 69 / 0.1),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0,
            #ffffff 72%
        );
}

.auth-main {
    display: grid;
    min-height: calc(
        100vh - var(--header-height)
    );
    place-items: center;
    padding: var(--space-9) 20px var(--space-10);
}

.auth-shell {
    width: min(100%, 460px);
}

.auth-card {
    padding: clamp(
        24px,
        4vw,
        36px
    );
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: rgb(255 255 255 / 0.96);
    box-shadow: var(--shadow-md);
}

.auth-heading {
    margin-bottom: var(--space-7);
    text-align: center;
}

.auth-heading h1 {
    margin-bottom: var(--space-3);
    font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.auth-heading p {
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.auth-form {
    display: grid;
    gap: var(--space-5);
}

.auth-submit {
    width: 100%;
    margin-top: var(--space-1);
}

.auth-switch {
    margin: var(--space-6) 0 0;
    color: var(--color-text-muted);
    font-size: 0.91rem;
    text-align: center;
}

.auth-switch a {
    font-weight: 700;
}

.auth-meta {
    margin-top: var(--space-5);
    color: var(--color-text-soft);
    font-size: 0.8rem;
    text-align: center;
}


/* Add Existing License */

.license-link-main {
    min-height: 0;
    place-items: center;
    padding: var(--space-10) 20px;
}

.license-link-main .auth-shell {
    width: min(100%, 540px);
}


/* =========================================================
   Account
   ========================================================= */

.account-main {
    padding-block: var(--space-9) var(--space-10);
}

.account-shell {
    display: grid;
    gap: var(--space-6);
}

.account-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

.account-header__copy h1 {
    margin-bottom: var(--space-2);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.account-header__copy p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.account-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

.account-card {
    min-width: 0;
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}

.account-card--wide {
    grid-column: 1 / -1;
}

.account-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.account-card__heading h2 {
    margin-bottom: 0;
    font-size: 1.08rem;
}

.account-card__heading p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.account-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.account-meta__row {
    display: grid;
    grid-template-columns:
        minmax(120px, 0.42fr)
        minmax(0, 1fr);
    gap: var(--space-5);
    padding-block: 13px;
    border-top: 1px solid var(--color-border);
}

.account-meta__row:first-child {
    padding-top: 0;
    border-top: 0;
}

.account-meta__row:last-child {
    padding-bottom: 0;
}

.account-meta dt {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.account-meta dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--color-text-strong);
    font-weight: 620;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.logout-form {
    margin: 0;
}

.account-services {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.account-service-card {
    display: flex;
    min-width: 0;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}

.account-service-card__content {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-5);
}

.account-service-card h2 {
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.account-service-card p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.account-service-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.account-service-card__actions .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.88rem;
}

.account-orders,
.account-license-center,
.account-download-center {
    border-color: var(--color-border);
    background: var(--color-surface);
}

.account-products {
    overflow: hidden;
}

.account-product-list {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.account-product-row {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.account-product-row:first-child {
    border-top: 0;
}

.account-product-row:hover {
    background: var(--color-bg-subtle);
}

.account-product-row__body {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.account-product-row__identity {
    min-width: 0;
}

.account-product-row__identity h3 {
    margin: 0;
    font-size: 1rem;
}

.account-product-row__title {
    color: var(--color-text-strong);
    font-weight: 680;
    overflow-wrap: anywhere;
}

a.account-product-row__title:hover {
    color: var(--color-primary);
}

.account-product-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: 9px;
}

.account-product-edition {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding-inline: 9px;
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
}

.account-product-code {
    color: var(--color-text-soft);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.75rem;
    font-weight: 620;
    letter-spacing: 0.025em;
    overflow-wrap: anywhere;
}

.account-products-empty {
    padding: var(--space-5);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.account-products-empty > p:first-child {
    margin-bottom: var(--space-4);
}

.account-products-empty .form-help {
    margin-top: var(--space-4);
}


/* =========================================================
   Product / marketing-ready utilities
   ========================================================= */

.hero {
    padding-block: var(--space-11);
}

.hero__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, 0.92fr);
    align-items: center;
    gap: clamp(40px, 7vw, 84px);
}

.hero__copy {
    max-width: 680px;
}

.hero__copy h1 {
    margin-bottom: var(--space-5);
}

.hero__copy p {
    max-width: 620px;
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
    font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hero__visual {
    min-height: 360px;
    overflow: hidden;
    border: 1px solid #232a3b;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            160deg,
            #0d1320 0%,
            #151d2d 62%,
            #0e1420 100%
        );
    box-shadow:
        0 24px 60px rgb(15 23 42 / 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.feature-card {
    padding: var(--space-6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.feature-card h3 {
    margin-bottom: var(--space-3);
}

.feature-card p {
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding-inline: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.badge--primary {
    border-color: var(--color-primary-border);
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.badge--success {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
    color: var(--color-success);
}


/* =========================================================
   F4 Storefront
   ========================================================= */

.storefront-main {
    overflow: clip;
}

.storefront-hero {
    background:
        radial-gradient(
            circle at 82% 18%,
            rgb(8 122 69 / 0.1),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0%,
            #ffffff 100%
        );
}

.storefront-hero__visual {
    display: grid;
    min-height: 380px;
    place-items: center;
    padding: clamp(24px, 4vw, 40px);
}

.storefront-hero-panel {
    display: grid;
    width: min(100%, 440px);
    gap: var(--space-6);
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            180deg,
            rgb(255 255 255 / 0.08),
            rgb(255 255 255 / 0.03)
        );
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.08),
        0 18px 44px rgb(0 0 0 / 0.18);
}

.storefront-hero-panel__eyebrow {
    margin: 0;
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.storefront-hero-platforms {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.storefront-hero-platform {
    display: grid;
    gap: 6px;
    padding: var(--space-5);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 0.05);
}

.storefront-hero-platform__name {
    color: #ffffff;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.storefront-hero-platform__meta {
    color: #b8c2d4;
    font-size: 0.85rem;
}

.storefront-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.storefront-hero-proof .badge {
    border-color: rgb(255 255 255 / 0.14);
    background: rgb(255 255 255 / 0.07);
    color: #dcfce7;
}

.storefront-product-grid {
    align-items: stretch;
}

.storefront-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-5);
    box-shadow: var(--shadow-xs);
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.storefront-product-card:hover {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.storefront-product-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.storefront-product-card__top h3 {
    margin: var(--space-3) 0 0;
}

.storefront-product-card__top h3 a {
    color: var(--color-text-strong);
}

.storefront-product-card__top h3 a:hover {
    color: var(--color-primary);
}

.storefront-product-card__badges,
.storefront-product-detail__badges,
.storefront-license-card__badges {
    gap: var(--space-2);
}

.storefront-product-card__summary {
    flex: 1 1 auto;
    margin: 0;
    line-height: 1.65;
}

.storefront-product-card__code {
    margin: 7px 0 0;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
}

.storefront-product-card__cover {
    display: block;
    overflow: hidden;
    margin:
        calc(var(--space-6) * -1)
        calc(var(--space-6) * -1)
        0;
    border-bottom: 1px solid var(--color-border);
    border-radius:
        var(--radius-lg)
        var(--radius-lg)
        0
        0;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-muted);
}

.storefront-product-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.storefront-product-card:hover .storefront-product-card__cover img {
    transform: scale(1.025);
}

.storefront-product-card__facts {
    display: grid;
    gap: 0;
    margin: 0;
    border-block:
        1px solid
        var(--color-border);
}

.storefront-product-card__fact {
    display: grid;
    grid-template-columns:
        minmax(100px, 0.45fr)
        minmax(0, 1fr);
    gap: var(--space-4);
    padding-block: 10px;
    border-top: 1px solid var(--color-border);
}

.storefront-product-card__fact:first-child {
    border-top: 0;
}

.storefront-product-card__fact dt {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.storefront-product-card__fact dd {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 0.86rem;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.storefront-product-card__meta {
    display: grid;
    gap: var(--space-2);
}

.storefront-product-card__meta p {
    margin: 0;
    font-size: 0.9rem;
}

.storefront-product-card__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.storefront-product-card__price strong {
    color: var(--color-text-strong);
    font-size: 1.12rem;
}

.storefront-product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-1);
}

.storefront-badge--warning {
    border-color: var(--color-warning-border);
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.storefront-badge--danger {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.storefront-section-action {
    display: flex;
    justify-content: center;
    margin-top: var(--space-7);
}

.storefront-empty-state {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.storefront-home-page .storefront-empty-state,
.storefront-products-page .storefront-empty-state {
    max-width: 100%;
}

.storefront-empty-state .card__body {
    padding: clamp(28px, 5vw, 48px);
}

.storefront-empty-state h2,
.storefront-empty-state h3 {
    margin-bottom: var(--space-3);
}

.storefront-catalog-header .site-shell,
.storefront-catalog-help .site-shell {
    display: grid;
    gap: var(--space-5);
}

.storefront-catalog-actions {
    align-self: start;
}

/* Products catalog only (Home and Product Detail stay unchanged) */

.storefront-products-page .storefront-catalog-header {
    padding-block: var(--space-9) var(--space-7);
}

.storefront-products-page .storefront-catalog-header .section-heading {
    max-width: 760px;
    margin-bottom: 0;
}

.storefront-products-page .storefront-catalog-header .section-heading h1 {
    margin-bottom: var(--space-3);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.storefront-products-page .storefront-catalog-header .section-heading p {
    font-size: 1rem;
    line-height: 1.6;
}

.storefront-products-page .storefront-catalog-section {
    padding-block: var(--space-7) var(--space-9);
}

.storefront-products-page .storefront-product-card--catalog {
    width: 100%;
    max-width: 380px;
    gap: var(--space-4);
}

.storefront-products-page .storefront-product-card__top > div {
    min-width: 0;
}

.storefront-products-page .storefront-product-card__title {
    margin: var(--space-3) 0 0;
    font-size: 1.17rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.storefront-products-page .storefront-product-card__title a {
    color: var(--color-text-strong);
}

.storefront-products-page .storefront-product-card__title a:hover {
    color: var(--color-primary);
}

.storefront-products-page .storefront-product-card__bottom {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__meta {
    min-width: 0;
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__price {
    display: grid;
    justify-content: start;
    gap: 2px;
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__price .text-muted {
    font-size: 0.78rem;
    line-height: 1.4;
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__price strong {
    font-size: 1.22rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__availability {
    font-size: 0.82rem;
    line-height: 1.5;
}

.storefront-products-page .storefront-product-card__bottom .storefront-product-card__actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.storefront-products-page .storefront-product-card__bottom .button {
    white-space: nowrap;
}

.storefront-products-page .storefront-catalog-help {
    padding-block: var(--space-8);
}

.storefront-split {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: clamp(28px, 6vw, 72px);
}

.storefront-split__copy {
    margin-bottom: 0;
}

.storefront-split__action {
    display: flex;
    justify-content: flex-end;
}

.storefront-article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-3);
}

.storefront-article-card .eyebrow {
    margin-bottom: 0;
}

.storefront-article-card h3 {
    margin: 0;
}

.storefront-article-card h3 a {
    color: var(--color-text-strong);
}

.storefront-article-card h3 a:hover {
    color: var(--color-primary);
}

.storefront-article-card__action {
    margin-top: auto;
    padding-top: var(--space-2);
}

.storefront-final-cta__card {
    overflow: hidden;
    border-color: var(--color-primary-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-primary-soft) 100%
        );
}

.storefront-final-cta__body {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: clamp(28px, 5vw, 44px);
}

.storefront-final-cta__body h2 {
    margin-bottom: var(--space-3);
}

.storefront-final-cta__body p:last-child {
    max-width: 720px;
}


/* Product detail */

.storefront-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-7);
    color: var(--color-text-soft);
    font-size: 0.86rem;
}

.storefront-breadcrumbs a {
    color: var(--color-text-muted);
    font-weight: 620;
}

.storefront-breadcrumbs a:hover {
    color: var(--color-primary);
}

.storefront-breadcrumbs [aria-current="page"] {
    min-width: 0;
    color: var(--color-text-strong);
    font-weight: 620;
    overflow-wrap: anywhere;
}

.storefront-product-detail-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(36px, 7vw, 84px);
}

.storefront-product-detail-hero__copy {
    min-width: 0;
}

.storefront-product-detail-hero__copy .eyebrow {
    margin-top: var(--space-5);
}

.storefront-product-detail-hero__copy h1 {
    margin-bottom: var(--space-5);
}

.storefront-product-detail__summary {
    max-width: 700px;
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
    font-size: clamp(1.02rem, 2vw, 1.17rem);
    line-height: 1.7;
}

.storefront-product-detail__code {
    margin-bottom: var(--space-6);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.82rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.storefront-product-detail__actions {
    gap: var(--space-3);
}

.storefront-product-detail-hero__media {
    display: grid;
    min-height: 360px;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            145deg,
            #f7fcf9 0%,
            #edf9f2 100%
        );
    box-shadow: var(--shadow-md);
}

.storefront-product-detail-hero__media > img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.storefront-product-detail-placeholder {
    display: grid;
    width: min(82%, 380px);
    min-height: 230px;
    place-items: center;
    align-content: center;
    gap: var(--space-4);
    padding: var(--space-7);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 0.76);
    text-align: center;
}

.storefront-product-detail-placeholder__platform {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.storefront-product-detail-placeholder__title {
    color: var(--color-text-strong);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.storefront-product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 360px);
    align-items: start;
    gap: clamp(28px, 5vw, 56px);
}

.storefront-product-detail-layout__main,
.storefront-product-detail-layout__aside {
    min-width: 0;
}

.storefront-product-detail-layout__aside {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
}

.storefront-product-content {
    overflow: hidden;
}

.storefront-product-content__body,
.storefront-article-content__body {
    color: var(--color-text);
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.storefront-product-summary-card {
    box-shadow: var(--shadow-sm);
}

.storefront-product-summary {
    display: grid;
    gap: 0;
    margin: 0;
}

.storefront-product-summary__row {
    display: grid;
    grid-template-columns:
        minmax(112px, 0.46fr)
        minmax(0, 1fr);
    gap: var(--space-4);
    padding-block: 13px;
    border-top: 1px solid var(--color-border);
}

.storefront-product-summary__row:first-child {
    padding-top: 0;
    border-top: 0;
}

.storefront-product-summary__row:last-child {
    padding-bottom: 0;
}

.storefront-product-summary__row dt {
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.storefront-product-summary__row dd {
    min-width: 0;
    margin: 0;
    color: var(--color-text-strong);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.storefront-license-grid {
    align-items: stretch;
}

.storefront-license-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-5);
    box-shadow: var(--shadow-xs);
}

.storefront-license-card h3 {
    margin: 0;
}

.storefront-license-card__price {
    margin: 0;
}

.storefront-license-card__price strong {
    color: var(--color-text-strong);
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.storefront-license-card__facts {
    display: grid;
    gap: 0;
    margin: auto 0 0;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.storefront-license-card__facts > div {
    display: grid;
    grid-template-columns:
        minmax(90px, 0.42fr)
        minmax(0, 1fr);
    gap: var(--space-4);
    padding-block: 9px;
    border-top: 1px solid var(--color-border);
}

.storefront-license-card__facts > div:first-child {
    border-top: 0;
}

.storefront-license-card__facts dt {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.storefront-license-card__facts dd {
    min-width: 0;
    margin: 0;
    color: var(--color-text-strong);
    font-size: 0.86rem;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.storefront-license-card__actions {
    display: grid;
    gap: var(--space-3);
    padding-top: var(--space-1);
}

.storefront-license-card__actions .button {
    width: 100%;
}

.storefront-license-card__actions .form-help {
    margin: 0;
    line-height: 1.55;
}

.storefront-access-card {
    max-width: 820px;
    box-shadow: var(--shadow-sm);
}

.storefront-access-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}


/* Product detail redesign: purchase first, with scoped rules only. */

.storefront-product-detail-page .storefront-product-detail-header {
    padding-block: clamp(28px, 4.5vw, 54px) clamp(36px, 5vw, 60px);
}

.storefront-product-detail-page .storefront-product-detail-hero {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
}

.storefront-product-detail-page .storefront-product-detail-hero__copy {
    min-width: 0;
}

.storefront-product-detail-page .storefront-product-detail__badges {
    margin-bottom: var(--space-4);
}

.storefront-product-detail-page .storefront-product-detail-hero__copy h1 {
    margin: 0 0 var(--space-4);
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.storefront-product-detail-page .storefront-product-detail__summary {
    max-width: 600px;
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.67;
}

.storefront-product-detail-page .storefront-product-detail__purchase {
    width: min(100%, 490px);
    margin-top: var(--space-6);
    padding: clamp(20px, 2.5vw, 24px);
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #f5fbf7);
    box-shadow: var(--shadow-xs);
}

.storefront-product-detail-page .storefront-product-detail__license-label,
.storefront-product-detail-page .storefront-product-detail__price-label {
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.5;
}

.storefront-product-detail-page .storefront-product-detail__price {
    margin: 0 0 var(--space-4);
    line-height: 1.2;
}

.storefront-product-detail-page .storefront-product-detail__price strong {
    color: var(--color-text-strong);
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.storefront-product-detail-page .storefront-product-detail__actions {
    display: flex;
    width: 100%;
    gap: var(--space-3);
}

.storefront-product-detail-page .storefront-product-detail__actions .button {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
}

.storefront-product-detail-page .storefront-product-detail__availability {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.storefront-product-detail-page .storefront-product-detail__secondary-actions {
    gap: 10px 22px;
    margin-top: var(--space-4);
    font-size: 0.88rem;
    line-height: 1.55;
}

.storefront-product-detail-page .storefront-product-detail__secondary-actions a {
    font-weight: 620;
}

.storefront-product-detail-page .storefront-product-detail-hero__media {
    min-width: 0;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.storefront-product-detail-page .storefront-product-detail-hero__media > img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.storefront-product-detail-page .storefront-license-options {
    padding-block: var(--space-9);
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.storefront-product-detail-page #license-options-title {
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.storefront-product-detail-page .storefront-license-options .section-heading {
    margin-bottom: var(--space-6);
}

.storefront-product-detail-page .storefront-license-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-4);
}

.storefront-product-detail-page .storefront-license-card {
    gap: var(--space-4);
    padding: var(--space-6);
}

.storefront-product-detail-page .storefront-license-card h3 {
    font-size: 1.08rem;
    line-height: 1.4;
}

.storefront-product-detail-page .storefront-license-card__price strong {
    font-size: 1.65rem;
    font-variant-numeric: tabular-nums;
}

.storefront-product-detail-page .storefront-license-card__actions {
    margin-top: auto;
}

.storefront-product-detail-page .storefront-product-overview {
    padding-block: var(--space-9);
}

.storefront-product-detail-page .storefront-product-overview .site-shell {
    max-width: 1000px;
}

.storefront-product-detail-page .storefront-product-overview .section-heading {
    margin-bottom: var(--space-5);
}

.storefront-product-detail-page .storefront-product-content {
    box-shadow: none;
}

.storefront-product-detail-page .storefront-product-content .card__body {
    padding: clamp(22px, 3.5vw, 36px);
}

@media (max-width: 960px) {
    .storefront-product-detail-page .storefront-product-detail-hero {
        grid-template-columns: 1fr;
        gap: var(--space-7);
    }

    .storefront-product-detail-page .storefront-product-detail-hero__media {
        width: min(100%, 720px);
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 520px) {
    .storefront-product-detail-page .storefront-product-detail-header {
        padding-block: var(--space-7) var(--space-8);
    }

    .storefront-product-detail-page .storefront-product-detail-hero {
        gap: var(--space-6);
    }

    .storefront-product-detail-page .storefront-product-detail__purchase {
        padding: var(--space-4);
        margin-top: var(--space-5);
    }

    .storefront-product-detail-page .storefront-product-detail__actions .button {
        width: 100%;
    }

    .storefront-product-detail-page .storefront-product-detail-hero__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .storefront-product-detail-page .storefront-product-detail-placeholder {
        min-height: 170px;
    }

    .storefront-product-detail-page .storefront-license-options,
    .storefront-product-detail-page .storefront-product-overview {
        padding-block: var(--space-7);
    }
}

/* Article detail */

.storefront-article-header {
    padding-bottom: var(--space-8);
}

.storefront-article-header .storefront-breadcrumbs {
    margin-bottom: var(--space-6);
}

.storefront-article-header h1 {
    margin-bottom: var(--space-5);
}

.storefront-article-detail__summary {
    max-width: 700px;
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
    font-size: clamp(1.04rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.storefront-article-detail__actions {
    gap: var(--space-2);
}

.storefront-article-cover {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg-muted);
    box-shadow: var(--shadow-sm);
}

.storefront-article-cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.storefront-article-content {
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.storefront-article-content .card__body {
    padding: clamp(24px, 5vw, 42px);
}

.storefront-article-content__body {
    font-size: 1.02rem;
}

.storefront-article-content__body::first-line {
    color: var(--color-text-strong);
}

.storefront-article-footer .storefront-final-cta__card {
    margin-inline: auto;
}




/* =========================================================
   F5 License Center
   ========================================================= */

.license-center-page,
.license-detail-page,
.license-binding-release-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgb(8 122 69 / 0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0,
            #ffffff 360px
        );
}

.license-center-shell,
.license-detail-shell,
.license-binding-release-shell {
    gap: var(--space-7);
}

 .license-binding-release-shell {
    max-width: 1000px;
}


/* License Center */

.license-center-notice,
.license-detail-notice,
.license-binding-release-notice {
    width: 100%;
}

.license-center-section {
    min-width: 0;
}

.license-center-groups {
    display: grid;
    gap: var(--space-6);
}

.license-product-group {
    min-width: 0;
}

.license-product-group__header {
    margin-bottom: var(--space-3);
}

.license-product-group__header h2 {
    margin: 0;
    font-size: 1.08rem;
}

.license-product-group__title-link {
    color: var(--color-text-strong);
}

.license-product-group__title-link:hover {
    color: var(--color-primary);
}

.license-center-list {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-xs);
}

.license-center-row {
    display: grid;
    grid-template-columns:
        minmax(72px, auto)
        minmax(250px, 1.65fr)
        minmax(150px, 0.9fr)
        minmax(90px, 0.55fr)
        minmax(96px, auto)
        auto;
    min-width: 0;
    align-items: center;
    gap: var(--space-4);
    padding: 14px var(--space-5);
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-bg);
    box-shadow: none;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.license-center-row:first-child {
    border-top: 0;
}

.license-center-row:hover {
    background: var(--color-bg-subtle);
}

.license-center-row__edition {
    min-width: 0;
}

.license-center-row__field {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.license-center-row__label {
    color: var(--color-text-soft);
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.3;
}

.license-center-row__field > span:last-child,
.license-center-row__field > strong {
    min-width: 0;
    color: var(--color-text-strong);
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.license-center-row__id strong {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    font-weight: 620;
    letter-spacing: 0.015em;
}

.license-center-row__status {
    display: flex;
    min-width: 0;
    align-items: center;
}

.license-center-row__action {
    display: flex;
    justify-content: flex-end;
}

.license-center-row__action .button {
    white-space: nowrap;
}

.license-center-badge--warning {
    border-color: var(--color-warning-border);
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.license-center-badge--danger {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.license-center-empty {
    overflow: hidden;
    border-color: var(--color-primary-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-primary-soft) 100%
        );
}


/* License detail */

.license-detail-grid {
    align-items: stretch;
}

.license-detail-product-link {
    color: var(--color-text-strong);
}

.license-detail-product-link:hover {
    color: var(--color-primary);
}

.license-detail-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: var(--space-2);
}

.license-detail-header__meta p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.license-detail-header__meta strong {
    color: var(--color-text-strong);
    font-weight: 650;
}

.license-detail-header__meta span {
    color: var(--color-text-soft);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.8rem;
    font-weight: 620;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
}

.license-detail-meta dd,
.license-binding-meta dd,
.license-renewal-meta dd,
.license-binding-release-meta dd {
    overflow-wrap: anywhere;
}

.license-detail-status-help {
    margin-top: var(--space-4);
    line-height: 1.6;
}

.license-key-reveal-form {
    margin-top: var(--space-5);
}

.license-key-reveal-form + .form-help {
    margin-top: var(--space-3);
}

.license-detail-allowance {
    min-width: 0;
}

.license-detail-allowance .account-card__heading {
    margin-bottom: var(--space-4);
}

.license-detail-allowance-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.license-detail-allowance__item {
    min-width: 0;
    padding: var(--space-4);
    border-left: 1px solid var(--color-border);
}

.license-detail-allowance__item:first-child {
    border-left: 0;
}

.license-detail-allowance__item dt {
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.license-detail-allowance__item dd {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 1rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.license-detail-allowance__warning {
    margin-top: var(--space-4);
    line-height: 1.6;
}

.license-detail-section-heading {
    margin-bottom: var(--space-4);
}

.license-detail-section-heading > div {
    min-width: 0;
}

.license-binding-list,
.license-renewal-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.license-binding-card,
.license-renewal-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.license-binding-card__heading,
.license-renewal-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.license-binding-card__heading > div,
.license-renewal-card__heading > div {
    min-width: 0;
}

.license-binding-card__heading .eyebrow,
.license-renewal-card__heading .eyebrow {
    margin-bottom: var(--space-2);
}

.license-binding-card__heading h3,
.license-renewal-card__heading h3 {
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.license-binding-card__heading p:last-child,
.license-renewal-card__heading p:last-child {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.license-binding-meta,
.license-renewal-meta {
    margin-bottom: var(--space-4);
}

.license-binding-card__actions {
    margin-top: auto;
    padding-top: var(--space-2);
}

.license-binding-card__actions + .form-help {
    margin-top: var(--space-3);
}

.license-detail-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}


/* License Key Reveal dialog */

body.license-key-dialog-open {
    overflow: hidden;
}

.license-key-dialog {
    position: fixed;
    z-index: 400;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--space-6);
}

.license-key-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(11 18 32 / 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.license-key-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 32px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    outline: none;
    background: var(--color-surface-raised);
    box-shadow:
        0 28px 80px rgb(15 23 42 / 0.28),
        0 8px 24px rgb(15 23 42 / 0.12);
}

.license-key-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.license-key-dialog__header > div {
    min-width: 0;
}

.license-key-dialog__header .eyebrow {
    margin-bottom: var(--space-2);
}

.license-key-dialog__header h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.license-key-dialog__warning {
    margin: 0 0 var(--space-5);
    padding: 12px 14px;
    border: 1px solid var(--color-warning-border);
    border-radius: var(--radius-sm);
    background: var(--color-warning-bg);
    color: var(--color-warning);
    font-size: 0.88rem;
    line-height: 1.6;
}

.license-key-dialog__secret {
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid #263244;
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            #0b1220 0%,
            #111c2e 100%
        );
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.05);
}

.license-key-dialog__secret-label {
    margin-bottom: var(--space-3);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.license-key-dialog__secret-value {
    display: block;
    color: #ffffff;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: clamp(1rem, 2.3vw, 1.22rem);
    font-weight: 720;
    letter-spacing: 0.035em;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: all;
}

.license-key-dialog__secret-value:focus-visible {
    border-radius: 4px;
    outline-color: rgb(134 239 172 / 0.72);
}

.license-key-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}


/* Binding release confirmation */

.license-binding-release-binding {
    border-color: var(--color-primary-border);
}

.license-binding-release-copy {
    max-width: 820px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.license-binding-release-copy p:last-child {
    margin-bottom: 0;
}

.license-binding-release-confirm {
    border-color: var(--color-warning-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-warning-bg) 100%
        );
}

.license-binding-release-form {
    margin: 0;
}

.license-binding-release-actions {
    margin-top: 0;
}


/* =========================================================
   F6 Protected Download
   ========================================================= */

.download-center-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgb(23 92 211 / 0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0,
            #ffffff 380px
        );
}

.download-center-shell {
    gap: var(--space-6);
}

.download-center-notice {
    width: 100%;
}

.download-center-section {
    min-width: 0;
}

.download-center-products {
    display: grid;
    gap: var(--space-5);
}

.download-product-card {
    min-width: 0;
}

.download-product-card__heading {
    margin-bottom: var(--space-4);
}

.download-product-card__heading h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.download-artifact-list {
    display: grid;
    gap: var(--space-3);
}

.download-artifact {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    min-width: 0;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
}

.download-artifact__main {
    min-width: 0;
}

.download-artifact__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.download-artifact__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.download-artifact__details span {
    white-space: nowrap;
}

.download-artifact__filename {
    margin: var(--space-1) 0 0;
    color: var(--color-text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.download-artifact__status {
    margin: var(--space-3) 0 0;
    color: var(--color-danger);
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.download-artifact__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
}

.download-artifact__actions .button {
    min-width: 124px;
    white-space: nowrap;
}

.download-product-card__empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.download-center-empty {
    border-color: var(--color-info-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-info-bg) 100%
        );
}

.download-center-empty h2 {
    margin-bottom: var(--space-3);
    font-size: 1.1rem;
}

.download-center-empty > p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.download-center-empty__actions {
    margin-top: var(--space-5);
}


/* =========================================================
   F7 Checkout / Orders
   ========================================================= */

/* Checkout */

.checkout-page,
.orders-page,
.order-detail-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgb(8 122 69 / 0.065),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0,
            #ffffff 400px
        );
}

.checkout-shell,
.orders-shell,
.order-detail-shell {
    gap: var(--space-7);
}

.checkout-header__actions {
    justify-content: flex-end;
}

.checkout-notice,
.order-detail-notice {
    width: 100%;
}

.checkout-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(300px, 0.65fr);
    align-items: start;
    gap: var(--space-5);
}

.checkout-product-card {
    grid-column: auto;
    min-width: 0;
}

.checkout-product-card__heading > div,
.checkout-summary-card .account-card__heading > div {
    min-width: 0;
}

.checkout-product-card__heading .eyebrow,
.checkout-summary-card .eyebrow {
    margin-bottom: var(--space-2);
}

.checkout-product-card__heading h2,
.checkout-summary-card h2 {
    margin-bottom: 0;
}

.checkout-product-meta,
.checkout-summary-meta {
    margin-bottom: var(--space-5);
}

.checkout-license-note {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
}

.checkout-license-note .form-help {
    margin: 0;
    line-height: 1.6;
}

.checkout-summary-card {
    position: sticky;
    top: calc(
        var(--header-height)
        + var(--space-5)
    );
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-sm);
}

.checkout-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-strong);
}

.checkout-total span {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    font-weight: 650;
}

.checkout-total strong {
    color: var(--color-text-strong);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
    text-align: right;
}

.checkout-confirm-form {
    margin-top: var(--space-5);
}

.checkout-confirm-button {
    width: 100%;
}

.checkout-confirm-help {
    margin-top: var(--space-3);
    line-height: 1.55;
}

.checkout-security-card {
    background: var(--color-bg-subtle);
}


/* My Orders */

.orders-shell {
    gap: var(--space-6);
}

.orders-section {
    display: grid;
    gap: var(--space-4);
}

.orders-section__heading {
    margin-bottom: 0;
}

.orders-list {
    display: grid;
    gap: var(--space-3);
}

.order-card {
    min-width: 0;
    padding: var(--space-5);
}

.order-card__summary {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

.order-card__identity {
    min-width: 0;
}

.order-card__identity h3 {
    margin: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.order-card__reference {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.order-card__total {
    flex: 0 0 auto;
    margin: 0;
    color: var(--color-text-strong);
    font-size: 1.05rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.order-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.order-card__statuses {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.order-card__action {
    flex: 0 0 auto;
}

.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-2);
}

.orders-pagination .form-help {
    text-align: center;
}

.orders-empty {
    border-color: var(--color-primary-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-primary-soft) 100%
        );
}


/* Order Detail */

.order-detail-status-card {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-xs);
}

.order-detail-status-summary {
    min-width: 0;
}

.order-detail-status-summary > div:first-child {
    min-width: 0;
}

.order-detail-status-summary .eyebrow {
    margin-bottom: var(--space-2);
}

.order-detail-status-summary h2 {
    margin-bottom: 0;
    font-size: 1.08rem;
    overflow-wrap: anywhere;
}

.order-detail-timeline {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.order-detail-timeline__item {
    min-width: 0;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
}

.order-detail-timeline__item dt {
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.order-detail-timeline__item dd {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 0.88rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.order-detail-section {
    display: grid;
    gap: var(--space-4);
}

.order-detail-section__heading {
    margin-bottom: 0;
}

.order-detail-section__heading > div {
    min-width: 0;
}

.order-detail-items {
    display: grid;
    gap: var(--space-3);
}

.order-item-card {
    min-width: 0;
}

.order-item-card--compact {
    padding: var(--space-5);
}

.order-item-card__summary {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
}

.order-item-card__identity {
    min-width: 0;
}

.order-item-card__identity .eyebrow {
    margin-bottom: var(--space-2);
}

.order-item-card__identity h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.order-item-card__details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 12px;
    margin-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.order-item-chip {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding-inline: 9px;
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-pill);
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 720;
    line-height: 1;
    white-space: nowrap;
}

.order-item-card__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: var(--space-2) 0 0;
    color: var(--color-text-soft);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.74rem;
    font-weight: 620;
    letter-spacing: 0.02em;
}

.order-item-card__codes span {
    overflow-wrap: anywhere;
}

.order-item-card__aside {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: var(--space-2);
}

.order-item-card__price {
    margin: 0;
    color: var(--color-text-strong);
    font-size: 1.05rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.order-item-card__unit-price {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.order-detail-empty-items {
    border-style: dashed;
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
}

.order-detail-empty-items p {
    margin-bottom: 0;
}

.order-detail-summary-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.72fr);
    align-items: start;
    gap: var(--space-4);
}

.order-detail-totals-card,
.order-access-card {
    min-width: 0;
}

.order-detail-totals-card {
    grid-column: auto;
}

.order-detail-totals-card .account-card__heading,
.order-access-card .account-card__heading {
    margin-bottom: var(--space-4);
}

.order-detail-totals-meta {
    margin-bottom: var(--space-4);
}

.order-detail-total {
    margin-top: 0;
}

.order-access-card {
    border-color: var(--color-primary-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-primary-soft) 100%
        );
}

.order-access-card--payment {
    border-color: var(--color-info-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-info-bg) 100%
        );
}

.order-access-status {
    display: grid;
    gap: 0;
    margin: 0;
}

.order-access-status__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: 11px;
    border-top: 1px solid var(--color-border);
}

.order-access-status__row:first-child {
    padding-top: 0;
    border-top: 0;
}

.order-access-status__row:last-child {
    padding-bottom: 0;
}

.order-access-status__row dt {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.order-access-status__row dd {
    margin: 0;
}

.order-access-amount {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.order-access-amount span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.order-access-amount strong {
    color: var(--color-text-strong);
    font-size: 1.12rem;
    font-variant-numeric: tabular-nums;
}

.order-payment-status {
    width: 100%;
}

.order-payment-slot {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border: 1px dashed var(--color-info-border);
    border-radius: var(--radius-sm);
    background: rgb(255 255 255 / 0.72);
}

.order-payment-slot .form-help {
    margin: 0;
    line-height: 1.6;
}

.order-access-card__actions {
    margin-top: var(--space-5);
}

.order-access-help {
    margin-top: var(--space-4);
    line-height: 1.6;
}


/* =========================================================
   F8 PayPal Payment
   ========================================================= */

/* Order Detail PayPal action */

.paypal-payment-form {
    margin: 0;
}

.paypal-payment-button {
    width: 100%;
}

.order-payment-slot .paypal-payment-help {
    margin-top: var(--space-3);
    line-height: 1.6;
}


/* PayPal Return */

.paypal-return-page {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgb(23 92 211 / 0.065),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fbfcff 0,
            #ffffff 400px
        );
}

.paypal-return-shell {
    gap: var(--space-7);
}

.paypal-return-header__actions {
    justify-content: flex-end;
}

.paypal-return-notice {
    width: 100%;
}

.paypal-return-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(300px, 0.62fr);
    align-items: start;
    gap: var(--space-5);
}

.paypal-return-order-card,
.paypal-return-payment-card {
    min-width: 0;
}

.paypal-return-order-card {
    grid-column: auto;
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-xs);
}

.paypal-return-payment-card {
    border-color: var(--color-info-border);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--color-info-bg) 100%
        );
}

.paypal-return-order-card .account-card__heading > div,
.paypal-return-payment-card .account-card__heading > div {
    min-width: 0;
}

.paypal-return-order-meta,
.paypal-return-payment-meta {
    margin-bottom: var(--space-5);
}

.paypal-return-confirm-form {
    margin: 0;
}

.paypal-return-confirm-button {
    width: 100%;
}

.paypal-return-help {
    margin-top: var(--space-3);
    line-height: 1.6;
}

.paypal-return-actions {
    margin-top: var(--space-5);
}

.paypal-return-security-card {
    background: var(--color-bg-subtle);
}


/* =========================================================
   F9 Product Discussion
   ========================================================= */

/* Product forum fragment navigation preserves the current content while fetching.
   aria-busy is toggled by the same-origin site_discussion.js controller. */
.storefront-product-discussion-host {
    min-width: 0;
}

.storefront-product-discussion-host[aria-busy="true"] {
    cursor: progress;
}

/* Fixed loading indicator does not change the height of the discussion section. */
.storefront-product-discussion-host[aria-busy="true"]::before {
    position: fixed;
    z-index: 110;
    top: calc(var(--header-height) + var(--space-3));
    right: max(var(--space-4), env(safe-area-inset-right));
    padding: 9px 13px;
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    content: "Loading discussion…";
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
}

/* The controller restores the viewport while aria-busy is still true.
   Do not animate that programmatic scroll even though the site uses smooth scroll. */
html:has(.storefront-product-discussion-host[aria-busy="true"]) {
    scroll-behavior: auto;
}

.product-discussion {
    scroll-margin-top:
        calc(
            var(--header-height)
            + var(--space-4)
        );
}

.product-discussion > .site-shell {
    display: grid;
    gap: var(--space-6);
}

.product-discussion > .site-shell > .section-heading {
    margin-bottom: 0;
}

.product-discussion__boards {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--space-6);
}

.product-discussion-board {
    min-width: 0;
    padding: clamp(22px, 4vw, 30px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
}

.product-discussion-board--support {
    border-color: var(--color-success-border);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfffd 100%
        );
}

.product-discussion-board__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.product-discussion-board__header > div {
    min-width: 0;
}

.product-discussion-board__header h3 {
    margin: var(--space-3) 0 var(--space-2);
    font-size: clamp(1.2rem, 2vw, 1.42rem);
}

.product-discussion-board__header p:last-child {
    margin-bottom: 0;
    line-height: 1.65;
}

.product-discussion-board__badges,
.product-discussion-thread__badges {
    gap: var(--space-2);
}

.product-discussion-board > .notice {
    margin-bottom: var(--space-5);
}

.product-discussion-composer {
    margin-bottom: var(--space-5);
    overflow: hidden;
    border: 1px solid var(--color-primary-border);
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
}

.product-discussion-board--support .product-discussion-composer {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
}

.product-discussion-composer__summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 12px var(--space-4);
    color: var(--color-text-strong);
    font-size: 0.94rem;
    font-weight: 720;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.product-discussion-composer__summary::-webkit-details-marker {
    display: none;
}

.product-discussion-composer__summary::after {
    color: var(--color-primary);
    content: "+";
    font-size: 1.2rem;
    font-weight: 760;
    line-height: 1;
}

.product-discussion-composer[open] .product-discussion-composer__summary {
    border-bottom: 1px solid var(--color-primary-border);
    background: rgb(255 255 255 / 0.55);
}

.product-discussion-board--support
.product-discussion-composer[open]
.product-discussion-composer__summary {
    border-bottom-color: var(--color-success-border);
}

.product-discussion-composer[open]
.product-discussion-composer__summary::after {
    content: "−";
}

.product-discussion-form {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--color-bg);
}

.product-discussion-form--reply {
    margin-top: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg-subtle);
}

.product-discussion-form .form-field > label {
    color: var(--color-text-strong);
    font-size: 0.9rem;
    font-weight: 680;
}

.product-discussion-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: 10px;
    outline: none;
    background: var(--color-bg);
    color: var(--color-text-strong);
    box-shadow: 0 0 0 0 transparent;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.product-discussion-form textarea.form-control {
    min-height: 118px;
    resize: vertical;
    line-height: 1.6;
}

.product-discussion-form .form-control:hover {
    border-color: #b7bec9;
}

.product-discussion-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow:
        0 0 0 4px
        rgb(8 122 69 / 0.1);
}

.product-discussion-thread-list {
    display: grid;
    gap: var(--space-5);
}

.product-discussion-thread {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.product-discussion-thread--locked {
    border-style: dashed;
    background: var(--color-bg-subtle);
}

.product-discussion-thread__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
}

.product-discussion-thread--locked
.product-discussion-thread__header {
    border-bottom: 0;
}

.product-discussion-thread__header > div {
    min-width: 0;
}

.product-discussion-thread__header h4 {
    margin: var(--space-3) 0 var(--space-2);
    font-size: 1.05rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-discussion-thread__meta {
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: 0.8rem;
}

.product-discussion-comments {
    display: grid;
}

.product-discussion-comment {
    position: relative;
    min-width: 0;
    padding: var(--space-5);
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.product-discussion-comment:first-child {
    border-top: 0;
}

.product-discussion-comment--depth-1,
.product-discussion-comment--depth-2,
.product-discussion-comment--depth-3,
.product-discussion-comment--depth-4,
.product-discussion-comment--depth-5,
.product-discussion-comment--depth-6 {
    border-left: 3px solid var(--color-primary-border);
}

.product-discussion-comment--depth-1 {
    margin-left: 22px;
}

.product-discussion-comment--depth-2 {
    margin-left: 44px;
}

.product-discussion-comment--depth-3 {
    margin-left: 66px;
}

.product-discussion-comment--depth-4 {
    margin-left: 88px;
}

.product-discussion-comment--depth-5 {
    margin-left: 110px;
}

.product-discussion-comment--depth-6 {
    margin-left: 132px;
}

.product-discussion-comment__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.product-discussion-comment__header > .cluster {
    min-width: 0;
    gap: var(--space-2);
}

.product-discussion-comment__header strong {
    overflow-wrap: anywhere;
}

.product-discussion-comment__time {
    flex: 0 0 auto;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    white-space: nowrap;
}

.product-discussion-comment__content {
    color: var(--color-text);
    line-height: 1.72;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.product-discussion-reply {
    margin-top: var(--space-4);
}

.product-discussion-reply > summary {
    width: fit-content;
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 680;
    cursor: pointer;
    user-select: none;
}

.product-discussion-reply > summary:hover {
    color: var(--color-primary-hover);
}

.product-discussion-thread > .notice,
.product-discussion-thread > .form-help {
    margin:
        0
        var(--space-5)
        var(--space-5);
}

.product-discussion-empty {
    border-style: dashed;
    box-shadow: none;
}

.product-discussion-empty .card__body {
    padding: var(--space-5);
}

.product-discussion-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

.product-discussion-pagination__status {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 620;
    text-align: center;
}

/* F9 forum redesign: one category at a time, compact topic rows. */

.storefront-product-detail-page .product-discussion {
    padding-block: var(--space-9);
}

.product-discussion__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
    border-bottom: 1px solid var(--color-border);
}

.product-discussion__tab {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 3px solid transparent;
    color: var(--color-text-muted);
    font-size: 0.94rem;
    font-weight: 650;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.product-discussion__tab:hover,
.product-discussion__tab.is-active {
    color: var(--color-primary);
}

.product-discussion__tab.is-active {
    border-bottom-color: var(--color-primary);
}

.product-discussion-board--single {
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-color: var(--color-border);
    background: var(--color-bg);
}

.product-discussion-board--single .product-discussion__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 0;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.product-discussion__toolbar-copy {
    flex: 1 1 270px;
    min-width: 0;
}

.product-discussion-board--single .product-discussion__toolbar-copy h3 {
    margin: 0 0 var(--space-2);
    font-size: 1.15rem;
}

.product-discussion-board--single .product-discussion__toolbar-copy p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* The single-column New Topic CTA uses the same primary treatment in both boards.
   Keep this selector as specific as the legacy Customer Support composer rule. */
.product-discussion-board--single .product-discussion-composer--new-topic {
    flex: 0 0 auto;
    min-width: 150px;
    margin: 0;
    border-color: var(--color-primary);
    border-radius: var(--radius-sm);
    background: var(--color-primary);
}

.product-discussion-composer--new-topic > .product-discussion-composer__summary {
    min-height: 42px;
    justify-content: center;
    gap: var(--space-3);
    padding: 9px 15px;
    color: #ffffff;
    font-size: 0.9rem;
}

.product-discussion-composer--new-topic > .product-discussion-composer__summary::after {
    color: inherit;
}

.product-discussion-board--single .product-discussion-composer--new-topic:not([open]):hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.product-discussion-board--single .product-discussion-composer--new-topic[open] {
    order: 2;
    flex: 0 0 100%;
    min-width: 0;
    border-color: var(--color-primary-border);
    background: var(--color-primary-soft);
}

.product-discussion-composer--new-topic[open] > .product-discussion-composer__summary {
    justify-content: space-between;
    color: var(--color-text-strong);
    background: var(--color-primary-soft);
}

.product-discussion-composer--new-topic .product-discussion-form {
    gap: var(--space-4);
}

.product-discussion-board--single > .notice {
    margin: var(--space-5) var(--space-6);
}

.product-discussion__sign-in,
.product-discussion__access-link {
    margin: 0;
    padding: var(--space-3) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
    line-height: 1.55;
}

.product-discussion__list-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 14px var(--space-6);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-subtle);
    color: var(--color-text-strong);
    font-size: 0.88rem;
    font-weight: 680;
}

.product-discussion__topic-count {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.product-discussion-topic-list {
    display: grid;
    gap: 0;
}

.product-discussion-topic {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-5);
    padding: 14px var(--space-6);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: background-color var(--transition-fast);
}

.product-discussion-topic:last-child {
    border-bottom: 0;
}

.product-discussion-topic:hover {
    background: var(--color-bg-subtle);
}

.product-discussion-topic__main {
    min-width: 0;
    flex: 1 1 auto;
}

.product-discussion-topic__title {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-discussion-topic__title a {
    color: var(--color-text-strong);
    font-weight: 690;
}

.product-discussion-topic__title a:hover {
    color: var(--color-primary);
}

.product-discussion-topic__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    margin-top: var(--space-2);
    color: var(--color-text-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.product-discussion-topic__meta .badge {
    min-height: 23px;
    padding-inline: 8px;
    font-size: 0.7rem;
}

.product-discussion-topic__replies {
    display: grid;
    flex: 0 0 80px;
    justify-items: end;
    align-content: start;
    gap: 3px;
    padding-top: 2px;
    color: var(--color-text-muted);
}

.product-discussion-topic__reply-count {
    color: var(--color-text-strong);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.product-discussion-topic__reply-label {
    font-size: 0.75rem;
}

.product-discussion-board--single .product-discussion-empty {
    margin: var(--space-5) var(--space-6);
}

.product-discussion-board--single .product-discussion-pagination {
    margin: 0;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* Unified topic reader: the standalone SSR and in-product fragment use the same
   full-width forum shell and single-board card as the topic list. */

.product-thread {
    padding-block: var(--space-9);
}

/* Legacy shell selector must never shrink a thread below the shared 1180px shell. */
.product-thread__shell {
    display: grid;
    max-width: none;
    gap: var(--space-5);
}

/* Board and thread render through the same .site-shell and .product-discussion-board--single.
   Scope the new rules to the thread view so list widths, prices and purchase UI stay intact. */
.product-thread__board {
    width: 100%;
    min-width: 0;
}

.product-thread__board .product-discussion__toolbar-copy h1,
.product-thread__board .product-discussion__toolbar-copy h2 {
    max-width: none;
    margin: 0 0 var(--space-2);
    font-size: 1.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-thread__board .product-discussion__toolbar-copy .product-thread__toolbar-meta {
    margin: 0 0 var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.product-thread__board .product-thread__badges {
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.product-thread__board .product-thread__back {
    width: fit-content;
    max-width: 100%;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

/* Same toolbar action position and visual dimensions as New Topic; one reply form only. */
.product-thread__board .product-thread__reply-shortcut {
    flex: 0 0 auto;
    min-width: 150px;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    white-space: nowrap;
}

.product-thread__navigation,
.product-thread__footer-navigation {
    font-size: 0.9rem;
}

.product-thread__back,
.product-thread__footer-navigation a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 650;
}

.product-thread__heading h1,
.product-thread__heading h2 {
    max-width: 900px;
    margin: var(--space-3) 0;
    font-size: clamp(1.8rem, 3.3vw, 2.7rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.product-thread__badges {
    gap: var(--space-2);
}

.product-thread__product {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.product-thread__topic {
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

/* The original post now occupies the first area inside the shared forum card. */
.product-thread__topic .card__body {
    padding: var(--space-6);
}

.product-thread__post-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
}

.product-thread__author {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
}

.product-thread__author strong {
    overflow-wrap: anywhere;
}

.product-thread__time {
    color: var(--color-text-soft);
    font-size: 0.79rem;
}

.product-thread__post-content {
    color: var(--color-text);
    font-size: 0.97rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.product-thread__post-note,
.product-thread__sign-in {
    margin-top: var(--space-4);
    line-height: 1.6;
}

.product-thread__reply-composer {
    margin-top: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Avoid hiding the expanded reply form behind the sticky site header. */
.product-thread__reply-composer#reply-to-topic {
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.product-thread__reply-composer > summary {
    padding: 12px var(--space-4);
    background: var(--color-bg-subtle);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 680;
    cursor: pointer;
}

.product-thread__reply-composer[open] > summary {
    border-bottom: 1px solid var(--color-border);
}

.product-thread__reply-form {
    margin: 0;
    padding: var(--space-4);
}

.product-thread__replies {
    min-width: 0;
    scroll-margin-top: calc(var(--header-height) + var(--space-5));
}

.product-thread__replies-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.product-thread__replies-heading h2 {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin: 0;
    font-size: 1.3rem;
}

/* Replies uses the same slim tinted heading strip as Latest topics. */
.product-thread__replies--in-board .product-thread__replies-heading {
    margin: 0;
}

.product-thread__replies--in-board .product-thread__replies-heading h2 {
    font-size: 0.88rem;
    font-weight: 680;
    line-height: 1.5;
}

.product-thread__replies--in-board .product-thread__replies-count {
    font-size: 0.82rem;
    font-weight: 500;
}

.product-thread__replies-count {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
}

.product-thread__page-summary,
.product-thread__pagination-status {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.product-thread__reply-list {
    display: grid;
    gap: 0;
}

.product-thread__reply {
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.product-thread__reply:last-child {
    border-bottom: 0;
}

.product-thread__reply .card__body {
    padding: var(--space-5) var(--space-6);
}

.product-thread__reply--depth-2,
.product-thread__reply--depth-3,
.product-thread__reply--depth-4,
.product-thread__reply--depth-5,
.product-thread__reply--depth-6 {
    border-left: 3px solid var(--color-primary-border);
}

.product-thread__reply--depth-2 { margin-left: 16px; }
.product-thread__reply--depth-3 { margin-left: 32px; }
.product-thread__reply--depth-4 { margin-left: 48px; }
.product-thread__reply--depth-5 { margin-left: 64px; }
.product-thread__reply--depth-6 { margin-left: 80px; }

.product-thread__empty {
    margin: var(--space-5) var(--space-6);
    padding: var(--space-5);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    color: var(--color-text-muted);
}

.product-thread__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
}

.product-thread__footer-navigation {
    margin: 0;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

@media (max-width: 720px) {
    .storefront-product-detail-page .product-discussion {
        padding-block: var(--space-7);
    }

    .product-discussion-board--single .product-discussion__toolbar {
        padding: var(--space-4);
    }

    .product-discussion__tabs {
        gap: 4px 16px;
    }

    .product-discussion__tab {
        font-size: 0.88rem;
    }

    .product-discussion-topic,
    .product-discussion__list-heading {
        padding-inline: var(--space-4);
    }

    .product-discussion-board--single .product-discussion-pagination {
        padding-inline: var(--space-4);
    }

    .product-discussion-board--single > .notice,
    .product-discussion-board--single .product-discussion-empty {
        margin-inline: var(--space-4);
    }

    .product-discussion__sign-in,
    .product-discussion__access-link {
        padding-inline: var(--space-4);
    }

    .product-discussion-topic__replies {
        flex-basis: 55px;
    }

    /* Thread subareas retain the same gutters as the compact topic-list rows. */
    .product-thread__replies--in-board .product-thread__replies-heading,
    .product-thread__pagination,
    .product-thread__footer-navigation {
        padding-inline: var(--space-4);
    }

    .product-thread__empty {
        margin-inline: var(--space-4);
    }

    .product-thread__topic .card__body,
    .product-thread__reply .card__body {
        padding: var(--space-4);
    }

    .product-thread__reply--depth-2 { margin-left: 8px; }
    .product-thread__reply--depth-3 { margin-left: 16px; }
    .product-thread__reply--depth-4 { margin-left: 24px; }
    .product-thread__reply--depth-5 { margin-left: 32px; }
    .product-thread__reply--depth-6 { margin-left: 40px; }
}

@media (max-width: 520px) {
    .product-discussion__tabs {
        flex-wrap: nowrap;
        gap: var(--space-3);
    }

    .product-discussion__tab {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 0;
        font-size: 0.79rem;
        text-align: center;
    }

    .product-discussion-board--single .product-discussion__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-discussion__toolbar-copy {
        flex-basis: auto;
    }

    .product-discussion-composer--new-topic {
        width: 100%;
        flex-basis: auto;
    }

    .product-discussion-composer--new-topic[open] {
        flex-basis: auto;
    }

    /* Match the full-width New Topic action when the forum toolbar stacks. */
    .product-thread__board .product-thread__reply-shortcut {
        width: 100%;
        min-width: 0;
    }

    .product-discussion-topic {
        gap: var(--space-2);
        padding-block: var(--space-4);
    }

    .product-discussion-topic__replies {
        flex-basis: 45px;
    }

    .product-discussion-topic__reply-label {
        font-size: 0.69rem;
    }

    .product-thread__reply .card__body,
    .product-thread__topic .card__body {
        padding: var(--space-4);
    }

    .product-thread__reply-composer > summary {
        padding-inline: var(--space-3);
    }

    .product-thread__post-header {
        align-items: flex-start;
    }

    .product-thread__reply--depth-2 { margin-left: 5px; }
    .product-thread__reply--depth-3 { margin-left: 10px; }
    .product-thread__reply--depth-4 { margin-left: 15px; }
    .product-thread__reply--depth-5 { margin-left: 20px; }
    .product-thread__reply--depth-6 { margin-left: 25px; }

    .product-thread__pagination {
        justify-content: center;
    }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: #fbfcfe;
}

.site-footer__inner {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        minmax(420px, 1.45fr);
    gap: clamp(40px, 7vw, 90px);
    padding-block: var(--space-9);
}

.site-footer__brand {
    min-width: 0;
}

.site-brand--footer .site-brand__mark {
    width: 32px;
    height: 32px;
}

.site-footer__summary {
    max-width: 420px;
    margin: var(--space-4) 0 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}

.site-footer__nav {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.site-footer__group {
    display: grid;
    align-content: start;
    gap: 10px;
}

.site-footer__heading {
    margin-bottom: 2px;
    color: var(--color-text-strong);
    font-size: 0.82rem;
    font-weight: 750;
}

.site-footer__group a {
    width: fit-content;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.site-footer__group a:hover {
    color: var(--color-text-strong);
}

.site-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-5);
    border-top: 1px solid var(--color-border);
}

.site-footer__legal p {
    margin-bottom: 0;
    color: var(--color-text-soft);
    font-size: 0.79rem;
}


/* =========================================================
   Utilities
   ========================================================= */

.text-muted {
    color: var(--color-text-muted);
}

.text-soft {
    color: var(--color-text-soft);
}

.text-danger {
    color: var(--color-danger);
}

.text-success {
    color: var(--color-success);
}

.text-center {
    text-align: center;
}

.font-semibold {
    font-weight: 650;
}

.font-bold {
    font-weight: 750;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.w-full {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
    .site-nav--desktop,
    .site-header__actions {
        display: none;
    }

    .site-nav-mobile {
        display: block;
    }

    .hero {
        padding-block: var(--space-9);
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 320px;
    }

    .feature-grid,
    .panel-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .site-shell,
    .content-shell {
        width: min(
            calc(100% - 28px),
            var(--shell-width)
        );
    }

    .site-header__inner {
        gap: var(--space-3);
    }

    .section {
        padding-block: var(--space-9);
    }

    .section--compact {
        padding-block: var(--space-7);
    }

    .panel-grid,
    .feature-grid,
    .account-grid,
    .account-services {
        grid-template-columns: 1fr;
    }

    .account-card--wide {
        grid-column: auto;
    }

    .account-header {
        flex-direction: column;
    }

    .account-meta__row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .account-product-row__body {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-3);
    }

    .site-footer__nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .site-footer__legal {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .site-brand__text {
        font-size: 0.95rem;
    }

    .site-brand__mark {
        width: 32px;
        height: 32px;
    }

    .auth-main {
        align-items: start;
        padding-top: var(--space-7);
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: var(--radius-lg);
    }

    .form-actions,
    .hero__actions,
    .account-actions,
    .account-service-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button,
    .hero__actions .button,
    .account-actions .button,
    .account-service-card__actions .button {
        width: 100%;
    }

    .account-service-card,
    .account-product-row,
    .account-products-empty {
        padding: var(--space-4);
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   F4 Storefront responsive
   ========================================================= */

@media (max-width: 960px) {
    .storefront-product-detail-hero,
    .storefront-product-detail-layout {
        grid-template-columns: 1fr;
    }

    .storefront-product-detail-hero__media {
        width: min(100%, 720px);
        min-height: 320px;
    }

    .storefront-product-detail-hero__media > img {
        min-height: 320px;
    }

    .storefront-product-detail-layout__aside {
        position: static;
    }

    .storefront-split,
    .storefront-final-cta__body {
        grid-template-columns: 1fr;
    }

    .storefront-split__action {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .storefront-products-page .storefront-catalog-header {
        padding-block: var(--space-7) var(--space-5);
    }

    .storefront-products-page .storefront-catalog-section {
        padding-block: var(--space-5) var(--space-8);
    }

    .storefront-products-page .storefront-catalog-help {
        padding-block: var(--space-7);
    }
}

@media (max-width: 720px) {
    .storefront-hero-platforms {
        grid-template-columns: 1fr;
    }

    .storefront-product-card__fact,
    .storefront-product-summary__row,
    .storefront-license-card__facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .storefront-product-card__fact dd,
    .storefront-product-summary__row dd,
    .storefront-license-card__facts dd {
        text-align: left;
    }

    .storefront-product-detail-hero__media,
    .storefront-product-detail-hero__media > img {
        min-height: 280px;
    }

    .storefront-access-card__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .storefront-products-page .storefront-catalog-header {
        padding-block: var(--space-7) var(--space-4);
    }

    .storefront-products-page .storefront-product-card__bottom {
        align-items: stretch;
        flex-direction: column;
        gap: var(--space-3);
    }

    .storefront-products-page .storefront-product-card__bottom .storefront-product-card__actions,
    .storefront-products-page .storefront-product-card__bottom .button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .storefront-hero__visual {
        min-height: 300px;
        padding: 18px;
    }

    .storefront-hero-panel {
        padding: var(--space-5);
    }

    .storefront-catalog-actions,
    .storefront-product-card__actions,
    .storefront-product-detail__actions,
    .storefront-article-detail__actions,
    .storefront-final-cta__body > .cluster {
        align-items: stretch;
        flex-direction: column;
    }

    .storefront-catalog-actions .button,
    .storefront-product-card__actions .button,
    .storefront-product-detail__actions .button,
    .storefront-article-detail__actions .button,
    .storefront-final-cta__body > .cluster .button,
    .storefront-split__action .button,
    .storefront-access-card__header .button {
        width: 100%;
    }

    .storefront-product-card__cover {
        margin:
            calc(var(--space-6) * -1)
            calc(var(--space-6) * -1)
            0;
    }

    .storefront-product-card__price {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .storefront-breadcrumbs {
        margin-bottom: var(--space-6);
        font-size: 0.8rem;
    }

    .storefront-product-detail-hero__media,
    .storefront-product-detail-hero__media > img {
        min-height: 240px;
    }

    .storefront-product-detail-placeholder {
        width: calc(100% - 32px);
        min-height: 200px;
        padding: var(--space-5);
    }

    .storefront-final-cta__body {
        padding: 24px 20px;
    }
}




/* =========================================================
   F5 License Center responsive
   ========================================================= */

@media (max-width: 960px) {
    .license-center-row {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
        grid-template-areas:
            "edition license action"
            "expires bindings status";
        row-gap: var(--space-3);
    }

    .license-center-row__edition {
        grid-area: edition;
        align-self: start;
    }

    .license-center-row__id {
        grid-area: license;
    }

    .license-center-row__field:nth-child(3) {
        grid-area: expires;
    }

    .license-center-row__field:nth-child(4) {
        grid-area: bindings;
    }

    .license-center-row__status {
        grid-area: status;
        justify-content: flex-end;
    }

    .license-center-row__action {
        grid-area: action;
        align-self: start;
    }

    .license-binding-release-shell {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .license-center-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        grid-template-areas:
            "edition status"
            "license license"
            "expires bindings"
            "action action";
        padding: var(--space-4);
    }

    .license-center-row__edition,
    .license-center-row__status {
        align-self: center;
    }

    .license-center-row__status {
        justify-content: flex-end;
    }

    .license-center-row__action {
        justify-content: flex-start;
    }

    .license-binding-list,
    .license-renewal-list {
        grid-template-columns: 1fr;
    }

    .license-binding-card__heading,
    .license-renewal-card__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .license-key-dialog {
        padding: var(--space-4);
    }

    .license-key-dialog__panel {
        max-height: calc(100vh - 32px);
    }

    .license-key-dialog__secret {
        padding: var(--space-5);
    }
}

@media (max-width: 520px) {
    .license-center-shell,
    .license-detail-shell,
    .license-binding-release-shell {
        gap: var(--space-6);
    }

    .license-center-groups {
        gap: var(--space-5);
    }

    .license-product-group__header {
        margin-bottom: var(--space-2);
    }

    .license-center-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "edition"
            "license"
            "expires"
            "bindings"
            "status"
            "action";
        gap: var(--space-3);
    }

    .license-center-row__status {
        justify-content: flex-start;
    }

    .license-center-row__action,
    .license-center-row__action .button {
        width: 100%;
    }

    .license-binding-card,
    .license-renewal-card {
        padding: var(--space-5);
    }

    .license-binding-card__heading,
    .license-renewal-card__heading {
        gap: var(--space-3);
    }

    .license-key-dialog {
        align-items: end;
        padding:
            var(--space-3)
            var(--space-3)
            max(var(--space-3), env(safe-area-inset-bottom));
    }

    .license-key-dialog__panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: var(--space-5);
        border-radius: var(--radius-lg);
    }

    .license-key-dialog__header {
        flex-direction: column;
        gap: var(--space-3);
    }

    .license-key-dialog__secret {
        padding: var(--space-4);
    }

    .license-key-dialog__secret-value {
        font-size: 0.95rem;
        letter-spacing: 0.02em;
    }

    .license-key-dialog__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .license-key-dialog__actions .button {
        width: 100%;
    }

    .license-detail-header__meta {
        display: grid;
        gap: 5px;
    }

    .license-detail-allowance-grid {
        grid-template-columns: 1fr;
    }

    .license-detail-allowance__item {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .license-detail-allowance__item:first-child {
        border-top: 0;
    }
}


/* =========================================================
   F6 Protected Download responsive
   ========================================================= */

@media (max-width: 720px) {
    .download-artifact {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: var(--space-4);
    }

    .download-artifact__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .download-center-shell {
        gap: var(--space-5);
    }

    .download-product-card,
    .download-center-empty {
        padding: var(--space-5);
    }

    .download-artifact {
        padding: var(--space-4);
    }

    .download-artifact__actions,
    .download-artifact__actions .button {
        width: 100%;
    }
}


/* =========================================================
   F7 Checkout / Orders responsive
   ========================================================= */

@media (max-width: 960px) {
    .checkout-grid,
    .order-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-card {
        position: static;
    }

    .checkout-header__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .checkout-product-card__heading,
    .orders-section__heading,
    .order-detail-section__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-card__summary,
    .order-card__footer,
    .order-item-card__summary {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-3);
    }

    .order-detail-timeline {
        grid-template-columns: 1fr;
    }

    .order-item-card__aside {
        width: 100%;
        justify-items: start;
    }

    .orders-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .orders-pagination .form-help {
        order: -1;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .checkout-shell,
    .orders-shell,
    .order-detail-shell {
        gap: var(--space-6);
    }

    .checkout-header__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-header__actions .button,
    .orders-pagination .button,
    .storefront-license-card__actions .button {
        width: 100%;
    }

    .order-card__action,
    .order-item-card__aside .button,
    .order-access-card__actions .button {
        width: 100%;
    }

    .checkout-total,
    .order-access-amount {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-2);
    }

    .checkout-total strong {
        text-align: left;
    }

    .checkout-product-card,
    .checkout-summary-card,
    .checkout-security-card,
    .orders-empty,
    .order-detail-status-card,
    .order-item-card,
    .order-detail-empty-items,
    .order-detail-totals-card,
    .order-access-card {
        padding: var(--space-5);
    }

    .order-card {
        padding: var(--space-4);
    }

    .order-item-card__codes {
        gap: 4px 8px;
    }

    .order-access-status__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   F8 PayPal Payment responsive
   ========================================================= */

@media (max-width: 960px) {
    .paypal-return-grid {
        grid-template-columns: 1fr;
    }

    .paypal-return-header__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .paypal-return-order-card .account-card__heading,
    .paypal-return-payment-card .account-card__heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .paypal-return-shell {
        gap: var(--space-6);
    }

    .paypal-return-header__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .paypal-return-header__actions .button,
    .paypal-return-actions .button {
        width: 100%;
    }

    .paypal-return-order-card,
    .paypal-return-payment-card,
    .paypal-return-security-card {
        padding: var(--space-5);
    }
}


/* =========================================================
   F9 Product Discussion responsive
   ========================================================= */

@media (max-width: 960px) {
    .product-discussion__boards {
        grid-template-columns: 1fr;
    }

    .product-discussion-comment--depth-4 {
        margin-left: 66px;
    }

    .product-discussion-comment--depth-5 {
        margin-left: 77px;
    }

    .product-discussion-comment--depth-6 {
        margin-left: 88px;
    }
}

@media (max-width: 720px) {
    .product-discussion-board {
        padding: var(--space-5);
    }

    /* The new forum board is flush; its internal sections own their padding. */
    .product-discussion-board--single {
        padding: 0;
    }

    .product-discussion-thread__header,
    .product-discussion-comment__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-discussion-comment__time {
        white-space: normal;
    }

    .product-discussion-comment--depth-1 {
        margin-left: 10px;
    }

    .product-discussion-comment--depth-2 {
        margin-left: 20px;
    }

    .product-discussion-comment--depth-3 {
        margin-left: 30px;
    }

    .product-discussion-comment--depth-4 {
        margin-left: 40px;
    }

    .product-discussion-comment--depth-5 {
        margin-left: 50px;
    }

    .product-discussion-comment--depth-6 {
        margin-left: 60px;
    }

    .product-discussion-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .product-discussion-pagination__status {
        order: -1;
        text-align: left;
    }
}

@media (max-width: 520px) {
    .product-discussion > .site-shell {
        gap: var(--space-5);
    }

    .product-discussion-board {
        padding: var(--space-4);
        border-radius: var(--radius-md);
    }

    /* Keep the forum toolbar, rows and pagination edge-aligned on mobile. */
    .product-discussion-board--single {
        padding: 0;
    }

    .product-discussion-form {
        padding: var(--space-4);
    }

    .product-discussion-thread__header,
    .product-discussion-comment {
        padding: var(--space-4);
    }

    .product-discussion-comment--depth-1 {
        margin-left: 6px;
    }

    .product-discussion-comment--depth-2 {
        margin-left: 12px;
    }

    .product-discussion-comment--depth-3 {
        margin-left: 18px;
    }

    .product-discussion-comment--depth-4 {
        margin-left: 24px;
    }

    .product-discussion-comment--depth-5 {
        margin-left: 30px;
    }

    .product-discussion-comment--depth-6 {
        margin-left: 36px;
    }

    .product-discussion-thread > .notice,
    .product-discussion-thread > .form-help {
        margin:
            0
            var(--space-4)
            var(--space-4);
    }

    .product-discussion-pagination .button,
    .product-discussion-form > .button,
    .product-discussion-form > .cluster .button {
        width: 100%;
    }
}


/* =========================================================
   Motion preferences
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
