:root {
    --stone-950: #0c0a09;
    --stone-925: #15110f;
    --stone-900: #1c1917;
    --stone-850: #231f1c;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --red-900: #7f1d1d;
    --red-800: #991b1b;
    --red-700: #b91c1c;
    --red-600: #dc2626;
    --red-500: #ef4444;
    --success: #6ee7b7;
    --warning: #fbbf24;
    --header-height: 78px;
    --content-width: 1180px;
    --radius: 1rem;
    --font-display: "Cinzel", Georgia, serif;
    --font-body: "Lora", Georgia, serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--stone-200);
    background:
        radial-gradient(circle at 12% 0%, rgba(127, 29, 29, .16), transparent 28rem),
        linear-gradient(180deg, #100d0c 0, var(--stone-950) 36rem);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

main {
    min-height: calc(100vh - var(--header-height) - 250px);
}

a {
    color: var(--stone-200);
    text-decoration-color: rgba(239, 68, 68, .65);
    text-underline-offset: .22em;
}

a:hover {
    color: #fff;
    text-decoration-color: var(--red-500);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--red-500);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: #fafaf9;
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: .015em;
}

h1 {
    max-width: 18ch;
    margin-bottom: 1.1rem;
    font-size: clamp(2.25rem, 7vw, 4.75rem);
    font-weight: 800;
    text-wrap: balance;
}

h2 {
    margin-bottom: .8rem;
    font-size: clamp(1.6rem, 4vw, 2.45rem);
    font-weight: 700;
}

h3 {
    margin-bottom: .55rem;
    font-size: 1.3rem;
}

.shell {
    width: min(calc(100% - 2.25rem), var(--content-width));
    margin-inline: auto;
}

.narrow-shell {
    max-width: 760px;
}

.page-section {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.compact-section {
    padding-top: 5rem;
}

.panel {
    border: 1px solid var(--stone-800);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(41, 37, 36, .48), transparent 55%),
        rgba(28, 25, 23, .93);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .025);
}

.eyebrow {
    margin-bottom: .8rem;
    color: var(--red-500);
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    border-radius: .25rem;
    background: #fff;
    color: #000;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(127, 29, 29, .72);
    background: rgba(12, 10, 9, .9);
    box-shadow: 0 4px 28px rgba(127, 29, 29, .14);
    backdrop-filter: blur(16px);
}

.nav-shell {
    position: relative;
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, .32));
}

.brand-mark img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.brand-name span {
    color: var(--red-500);
}

.brand-subtitle {
    margin-top: .25rem;
    color: var(--stone-400);
    font-size: .63rem;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-links > a,
.nav-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .55rem .78rem;
    border: 0;
    border-radius: .25rem;
    color: var(--stone-300);
    background: transparent;
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.nav-links > a:hover,
.nav-button:hover {
    color: #fff;
    background: rgba(127, 29, 29, .24);
}

.nav-links .nav-cta {
    margin-left: .35rem;
    padding-inline: 1rem;
    border: 1px solid var(--red-800);
    background: linear-gradient(135deg, var(--red-900), var(--red-800));
    color: #fff;
    box-shadow: 0 7px 20px rgba(127, 29, 29, .2);
}

.nav-links .nav-cta:hover {
    background: linear-gradient(135deg, var(--red-800), var(--red-700));
}

.nav-form {
    margin: 0;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--stone-700);
    border-radius: .25rem;
    background: var(--stone-900);
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--stone-200);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.button:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.primary-button {
    border-color: var(--red-800);
    background: linear-gradient(135deg, var(--red-900), var(--red-800));
    color: #fff;
    box-shadow: 0 10px 26px rgba(127, 29, 29, .26);
}

.primary-button:hover:not(:disabled) {
    border-color: var(--red-600);
    background: linear-gradient(135deg, var(--red-800), var(--red-700));
    box-shadow: 0 13px 32px rgba(185, 28, 28, .3);
}

.secondary-button {
    border-color: var(--stone-700);
    background: rgba(41, 37, 36, .72);
    color: var(--stone-200);
}

.secondary-button:hover:not(:disabled) {
    border-color: var(--stone-500);
    background: var(--stone-800);
}

.full-button {
    width: 100%;
}

.owned-button {
    width: 100%;
    border-color: rgba(110, 231, 183, .36);
    background: rgba(6, 78, 59, .28);
    color: var(--success);
    cursor: default;
}

.store-hero,
.account-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--stone-800);
}

.store-hero::after,
.account-hero::after {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(153, 27, 27, .22), transparent 22rem),
        linear-gradient(110deg, transparent 52%, rgba(127, 29, 29, .08));
    content: "";
    pointer-events: none;
}

.hero-content,
.account-hero .shell {
    position: relative;
    z-index: 1;
    padding-top: clamp(4.6rem, 10vw, 8.5rem);
    padding-bottom: clamp(4.2rem, 9vw, 7.5rem);
}

.account-hero .shell {
    padding-top: clamp(3.8rem, 8vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.compact-hero .shell {
    padding-top: 3.75rem;
    padding-bottom: 3.25rem;
}

.hero-copy {
    max-width: 690px;
    margin-bottom: 0;
    color: var(--stone-300);
    font-size: clamp(1.05rem, 2.1vw, 1.25rem);
}

.store-section {
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.application-section + .application-section {
    margin-top: 7rem;
    padding-top: 6rem;
    border-top: 1px solid var(--stone-800);
}

.section-heading {
    max-width: 750px;
    margin-bottom: 2.2rem;
}

.section-heading > p:last-child {
    color: var(--stone-400);
    font-size: 1.05rem;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 295px), 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.offer-card {
    position: relative;
    display: flex;
    min-height: 500px;
    flex-direction: column;
    padding: clamp(1.4rem, 3vw, 2rem);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.offer-card:hover {
    border-color: var(--stone-700);
    transform: translateY(-3px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .36), 0 0 34px rgba(127, 29, 29, .08);
}

.bundle-card {
    border-color: rgba(153, 27, 27, .7);
    background:
        linear-gradient(145deg, rgba(127, 29, 29, .17), transparent 54%),
        rgba(28, 25, 23, .96);
}

.bundle-label {
    align-self: flex-start;
    margin: -.25rem 0 1.1rem;
    padding: .3rem .58rem;
    border: 1px solid rgba(239, 68, 68, .35);
    border-radius: 99px;
    color: #fca5a5;
    background: rgba(127, 29, 29, .2);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.offer-heading {
    min-height: 132px;
}

.offer-heading p {
    color: var(--stone-400);
}

.price-block {
    display: flex;
    min-height: 94px;
    flex-direction: column;
    justify-content: center;
    margin: .5rem 0 1.4rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--stone-800);
    border-bottom: 1px solid var(--stone-800);
}

.price-value,
.price-unavailable {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
}

.price-value[data-price-state="loading"] {
    color: var(--stone-400);
    font-size: 1rem;
}

.price-unavailable {
    color: var(--stone-400);
    font-size: 1rem;
}

.price-note {
    color: var(--stone-500);
    font-size: .82rem;
}

.included-block {
    flex: 1;
    margin-bottom: 1.5rem;
}

.included-block h4 {
    margin-bottom: .7rem;
    color: var(--stone-300);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.included-list {
    display: grid;
    gap: .58rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.included-list li {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    color: var(--stone-300);
}

.included-list li > span:first-child {
    color: var(--red-500);
    font-weight: 700;
}

.notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--stone-700);
    border-radius: .5rem;
    background: rgba(41, 37, 36, .8);
}

.error-notice,
.validation-summary:not(:empty) {
    border-color: rgba(239, 68, 68, .55);
    color: #fecaca;
    background: rgba(127, 29, 29, .2);
}

.warning-notice {
    border-color: rgba(251, 191, 36, .35);
    color: #fde68a;
    background: rgba(120, 53, 15, .18);
}

.empty-state,
.status-panel {
    padding: clamp(2rem, 6vw, 4rem);
    text-align: center;
}

.empty-state h2,
.status-panel h1 {
    max-width: none;
}

.empty-state p,
.status-panel p {
    max-width: 590px;
    margin-right: auto;
    margin-left: auto;
    color: var(--stone-400);
}

.auth-section {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    align-items: center;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(2.5rem, 8vw, 7rem);
    align-items: center;
}

.auth-intro p:last-child {
    max-width: 530px;
    color: var(--stone-400);
    font-size: 1.08rem;
}

.email-confirmation-section {
    padding-block: clamp(1.5rem, 6vh, 4rem);
}

.confirmation-shell {
    max-width: 640px;
}

.confirmation-panel {
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}

.confirmation-panel h1 {
    max-width: none;
    font-size: clamp(1.8rem, 5vw, 2.65rem);
}

.confirmation-panel > p:not(.eyebrow) {
    color: var(--stone-300);
}

.confirmation-form,
.confirmation-action {
    margin-top: 1.5rem;
}

.confirmation-form .confirmation-action {
    margin-top: 0;
}

.confirmation-action {
    min-height: 56px;
}

.confirmation-next {
    margin: .85rem 0 0;
}

.confirmation-panel .validation-summary.confirmation-error {
    text-align: left;
    border: 0;
    border-left: 3px solid var(--red-500);
    border-radius: 0;
    background: rgba(127, 29, 29, .18);
}

.confirmation-panel .form-footnote {
    margin-bottom: 0;
}

@media (min-width: 600px) and (max-height: 500px) {
    .email-confirmation-section {
        padding-block: 1rem;
    }

    .confirmation-panel {
        padding: 1.25rem;
    }

    .confirmation-panel h1 {
        font-size: 2rem;
    }
}

.form-panel {
    padding: clamp(1.5rem, 5vw, 2.6rem);
}

.form-panel h2 {
    margin-bottom: 1.5rem;
}

.field-group {
    margin-bottom: 1.15rem;
}

.field-group label {
    display: block;
    margin-bottom: .42rem;
    color: var(--stone-300);
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .045em;
}

.field-group input {
    width: 100%;
    min-height: 50px;
    padding: .72rem .85rem;
    border: 1px solid var(--stone-700);
    border-radius: .35rem;
    color: #fff;
    background: rgba(12, 10, 9, .78);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.field-group input:focus {
    border-color: var(--red-600);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .16);
}

.field-error {
    display: block;
    min-height: 1.2rem;
    margin-top: .3rem;
    color: #fca5a5;
    font-size: .82rem;
}

.field-hint,
.form-footnote {
    color: var(--stone-400);
    font-size: .86rem;
}

.field-hint {
    margin: .35rem 0 0;
}

.form-footnote {
    margin: 1.4rem 0 0;
    text-align: center;
}

.validation-summary {
    margin-bottom: 1rem;
    border-radius: .35rem;
}

.validation-summary:not(:empty) {
    padding: .8rem 1rem;
    border: 1px solid rgba(239, 68, 68, .5);
}

.validation-summary ul {
    padding-left: 1.2rem;
    margin: 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.summary-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 1.6rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.summary-card:hover {
    border-color: var(--red-800);
    color: inherit;
    transform: translateY(-2px);
}

.summary-value {
    color: #fff;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
}

.summary-label {
    color: var(--stone-300);
}

.summary-link {
    margin-top: auto;
    color: #fca5a5;
    font-size: .86rem;
    font-weight: 700;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.25rem;
    padding: 1.6rem;
}

.account-details p {
    margin-bottom: 0;
}

.detail-label,
.purchase-details dt,
.device-details dt {
    color: var(--stone-500);
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.account-content {
    max-width: 1000px;
}

.account-group + .account-group {
    margin-top: 3.5rem;
}

.account-group > h2 {
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--stone-800);
}

.product-list,
.purchase-list {
    display: grid;
    gap: 1rem;
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
}

.product-row h3,
.device-card h3 {
    margin-bottom: .25rem;
}

.code-label {
    margin-bottom: 0;
    color: var(--stone-500);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .78rem;
}

.product-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--stone-400);
    font-size: .84rem;
}

.status-badge {
    display: inline-flex;
    padding: .26rem .54rem;
    border: 1px solid var(--stone-700);
    border-radius: 99px;
    color: var(--stone-300);
    background: rgba(41, 37, 36, .6);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.active-status {
    border-color: rgba(110, 231, 183, .35);
    color: var(--success);
    background: rgba(6, 78, 59, .25);
}

.inactive-status {
    color: var(--stone-400);
}

.purchase-card {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
    gap: 2rem;
    padding: 1.5rem;
}

.purchase-primary h2 {
    margin-bottom: .35rem;
    font-size: 1.3rem;
}

.purchase-primary p:last-child {
    margin-bottom: 0;
    color: var(--stone-400);
}

.purchase-details,
.device-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.purchase-details div,
.device-details div {
    min-width: 0;
}

.purchase-details dd,
.device-details dd {
    margin: .2rem 0 0;
}

.reference-value {
    overflow-wrap: anywhere;
    color: var(--stone-400);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .75rem;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
}

.device-card {
    padding: 1.4rem;
}

.device-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.device-heading p {
    margin-bottom: 0;
    color: var(--stone-400);
}

.device-details {
    padding: 1rem 0;
    margin-bottom: 1.1rem;
    border-top: 1px solid var(--stone-800);
    border-bottom: 1px solid var(--stone-800);
}

.account-note {
    margin-top: 2rem;
    color: var(--stone-500);
    font-size: .9rem;
}

.checkout-section {
    min-height: 65vh;
}

.checkout-help {
    font-size: .88rem;
}

.status-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.success-icon {
    border: 1px solid rgba(110, 231, 183, .5);
    color: var(--success);
    background: rgba(6, 78, 59, .28);
    font-size: 1.8rem;
}

.pending-icon {
    border: 3px solid var(--stone-700);
    border-top-color: var(--red-500);
    animation: rotate 1s linear infinite;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.8rem;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

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

.site-footer {
    padding: 3.25rem 0 1.5rem;
    border-top: 1px solid var(--stone-800);
    color: var(--stone-500);
    background: rgba(9, 8, 7, .78);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
}

.footer-grid p {
    max-width: 570px;
}

.footer-brand {
    margin-bottom: .45rem;
    color: var(--stone-300);
    font-family: var(--font-display);
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(41, 37, 36, .7);
    font-size: .78rem;
}

@media (max-width: 1023px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: .75rem;
        border: 1px solid var(--stone-800);
        border-top: 0;
        border-radius: 0 0 .65rem .65rem;
        background: rgba(12, 10, 9, .98);
        box-shadow: 0 18px 35px rgba(0, 0, 0, .38);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a,
    .nav-button {
        width: 100%;
        justify-content: flex-start;
        padding-inline: .9rem;
    }

    .nav-links .nav-cta {
        margin: .35rem 0 0;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro h1,
    .auth-intro p {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    :root { --header-height: 70px; }

    .shell {
        width: min(calc(100% - 1.35rem), var(--content-width));
    }

    .brand-mark,
    .brand-mark img {
        width: 46px;
        height: 46px;
    }

    .brand-name { font-size: 1rem; }
    .brand-subtitle { font-size: .55rem; }

    .page-section { padding: 3.5rem 0; }
    .offer-card { min-height: auto; }
    .offer-heading { min-height: 0; }

    .summary-grid,
    .account-details,
    .purchase-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .summary-card { min-height: 170px; }

    .product-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-status {
        align-items: flex-start;
    }

    .purchase-details {
        padding-top: 1rem;
        border-top: 1px solid var(--stone-800);
    }

    .footer-grid { gap: 1rem; }
}

@media (max-width: 479px) {
    .brand-copy { display: none; }
    .purchase-details,
    .device-details { grid-template-columns: 1fr; }
    .status-actions { flex-direction: column; }
    .status-actions .button { width: 100%; }
}

/* Account cards shared by recurring product summaries and billing. */
.account-product-summary { padding: 1.8rem; margin-bottom: 1.5rem; }
.account-product-summary p { overflow-wrap: anywhere; }

/* ScreenFree onboarding uses the account layout and remains readable without horizontal scrolling. */
.sf-setup-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.sf-onboarding .panel { min-width: 0; }
.sf-onboarding h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sf-onboarding input, .sf-onboarding textarea { width: 100%; min-width: 0; max-width: 100%; }
.sf-onboarding textarea { overflow-wrap: anywhere; word-break: break-all; font-family: monospace; }
.sf-onboarding .button { white-space: normal; text-align: center; }
.sf-onboarding #next-step { scroll-margin-top: 7rem; }
@media (max-width: 700px) { .sf-setup-choices { grid-template-columns: 1fr; } .sf-onboarding .account-product-summary { padding: 1.2rem; } }

/* Shared policy/support pages: readable line length and wrapping at small widths. */
.policy-page { max-width: 78ch; overflow-wrap: anywhere; }
.policy-page h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.15; }
.policy-page h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin-top: 2.4rem; scroll-margin-top: 8rem; }
.policy-page p, .policy-page li, .policy-page dd { line-height: 1.8; }
.policy-page li + li { margin-top: .8rem; }
.policy-page ul { padding-inline-start: 1.3rem; }
.policy-page dt { font-weight: 700; margin-top: 1.5rem; color: var(--stone-100); }
.policy-page dd { margin: .4rem 0 1rem; }
.policy-intro { font-size: 1.2rem; }
.policy-review { border-left: 4px solid #dba96b; background: #272019; padding: 1rem 1.2rem; margin: 1.6rem 0; color: #f5e7d4; }
.policy-review p:last-child { margin-bottom: 0; }
.policy-contents, .policy-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.policy-contents { padding-block: 1rem; border-block: 1px solid #57534e; }
.policy-contents a, .policy-footer a { padding-block: .35rem; }
.policy-page a, .policy-footer a, .policy-checkout-links a { text-decoration: underline; text-underline-offset: .2em; }
.policy-contact { font-size: clamp(1.1rem, 4vw, 1.4rem); }
.policy-checkout-links { line-height: 1.7; margin-top: 1.5rem; }

/* Native, unchecked acceptance controls retain keyboard and screen-reader behavior. */
.policy-choice { display:flex; align-items:flex-start; gap:.75rem; margin:1.25rem 0; }
.policy-choice input[type="checkbox"] { width:1.25rem; height:1.25rem; flex:0 0 1.25rem; margin:.3rem 0 0; accent-color:#a52222; }
.policy-choice label { display:block; font-size:1rem; line-height:1.6; }
.policy-choice a { text-decoration:underline; text-underline-offset:.2em; }
.policy-choice input:focus-visible, .policy-choice a:focus-visible { outline:3px solid #e5a6a6; outline-offset:3px; }
.legal-contact { font-style:normal; line-height:1.7; }
