/* =============================================================================
   Next Edge Alliance — Founding Principal checkout
   Visual language from the approved design (navy glass panel, champagne gold,
   portal artwork), rebuilt for legibility and for every screen size:
   - Inter (UI/body) and Playfair Display (headings, prices), self-hosted.
   - Fluid type and spacing with clamp(); no fixed 1330px "picture" layout.
   - Decorative art lives in a fixed full-viewport backdrop that fades at its edges.
   ============================================================================= */

/* ---------- Fonts (SIL Open Font License, files in ../assets/fonts) ---------- */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
    /* Colours from the approved design */
    --bg: #020e1c;
    --ivory: #fff7e8;
    --text: #eef1f3;
    --muted: #b9c3cc;
    --subtle: #8e9ba7;
    --gold: #ebbb61;
    --gold-soft: #f3d395;
    --field-border: #6f8291;
    --field-border-hover: #a3b3bf;
    --focus: #ffe2a0;
    --error: #ffb9ad;

    /* Type families */
    --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;

    /* Fluid page gutter and column gap */
    --gutter: clamp(16px, 4vw, 64px);
    --column-gap: clamp(32px, 5vw, 112px);

    /* Panel corner radius */
    --panel-radius: clamp(18px, 2vw, 28px);
}

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

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p, h1, h2, h3 { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
fieldset { padding: 0; margin: 0; min-width: 0; border: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

.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; }

.skip-link {
    position: fixed; z-index: 30; top: 8px; left: 8px;
    transform: translateY(-160%);
    padding: 10px 18px; border-radius: 6px;
    background: var(--gold); color: #07121c; font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: none; }

/* ---------- Full-viewport backdrop (decorative, never affects layout) ---------- */
.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 70% at 18% 55%, #0c2238cc 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 95% 0%, #15384d55 0%, transparent 70%),
        var(--bg);
}

/* Diagonal light band in the top-left corner */
.backdrop-band {
    position: absolute;
    left: -12vw; top: -22vh;
    width: 62vw; height: 34vh;
    transform: rotate(-23deg);
    border-bottom: 1px solid #dcb77a99;
    background: linear-gradient(175deg, transparent 40%, #2e4e7044 78%, #6b94b033 94%, #f0ce9822 100%);
    box-shadow: 0 1px 6px #dfb76a26;
}

/* Gold portal artwork, anchored to the bottom-left of the screen and faded at every edge */
.portal-art {
    position: absolute;
    left: 0; bottom: 0;
    height: min(46vh, 540px);
    aspect-ratio: 1672 / 941;
    background: url("../assets/portal-horizon.png") left bottom / cover no-repeat;
    opacity: .9;
    -webkit-mask-image: radial-gradient(ellipse 62% 78% at 20% 74%, #000 42%, transparent 100%);
    mask-image: radial-gradient(ellipse 62% 78% at 20% 74%, #000 42%, transparent 100%);
}

/* Thin luminous horizon along the bottom of the screen */
.page-horizon {
    position: absolute;
    left: -8%; right: -8%;
    bottom: -150px;
    height: 180px;
    border-radius: 50%;
    border-top: 1px solid #e7b66daa;
    box-shadow: 0 -1px 6px #d8a85055, 0 -8px 22px #c1893014;
    background: radial-gradient(ellipse at 62% 0, #eac57f24, transparent 30%);
}

/* ---------- Page layout ---------- */
.checkout-layout {
    position: relative;
    z-index: 1;
    width: min(100% - 2 * var(--gutter), 1480px);
    min-height: 100vh;
    margin: 0 auto;
    padding-block: clamp(24px, 5vh, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 660px);
    grid-template-areas:
        "brand   panel"
        "contact panel";
    grid-template-rows: 1fr auto;
    column-gap: var(--column-gap);
    row-gap: 32px;
    align-items: center;
}

/* Sticky on desktop so the brand stays in view while a short laptop screen scrolls the form */
.brand-column { grid-area: brand; min-width: 0; align-self: start; padding-top: clamp(8px, 4vh, 48px); position: sticky; top: 0; }
.checkout-panel { grid-area: panel; }
.personal-help { grid-area: contact; align-self: end; }

/* ---------- Brand column ---------- */
.nea-logo {
    display: block;
    width: clamp(220px, 22vw, 340px);
    height: auto;
    margin: 0 0 clamp(20px, 3vh, 36px);
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(48px, 5.4vw, 96px);
    line-height: .98;
    letter-spacing: -.02em;
    color: var(--ivory);
    margin-bottom: clamp(16px, 2.4vh, 26px);
}

.introduction {
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.5;
    color: var(--muted);
    max-width: 30ch;
}

.gold-rule {
    display: block;
    width: 72px; height: 2px;
    margin: clamp(20px, 3vh, 30px) 0;
    background: linear-gradient(90deg, #e3b153, #ffdb93);
}

.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 420px; }
.benefit-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.benefit-list svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 2.4; }
.benefit-list h2 { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ivory); margin-bottom: 2px; }
.benefit-list p { font-size: 15px; line-height: 1.5; color: var(--muted); }

.personal-help {
    position: relative;
    display: grid;
    gap: 2px;
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}
.personal-help strong { font-weight: 600; color: var(--ivory); margin-bottom: 4px; }
.personal-help a { width: fit-content; text-decoration: none; }
.personal-help a:hover { text-decoration: underline; }

/* ---------- Checkout panel (glass) ---------- */
.checkout-panel {
    position: relative;
    min-width: 0;
    padding: clamp(20px, 2vw, 32px);
    border: 1px solid #aeaca060;
    border-radius: var(--panel-radius);
    background:
        radial-gradient(ellipse at 80% -4%, #799ab62b 0, transparent 32%),
        linear-gradient(155deg, #21394ce6 0, #061627f2 26%, #081c2ef0 76%, #1d2d37e6 100%);
    box-shadow: inset 0 1px 1px #f8e4c099, inset 1px 0 1px #d5af7f55, inset -1px -1px 2px #d2ad7045, 0 30px 60px #000a;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    isolation: isolate;
    /* Lets the card fields and name fields adapt to the panel's own width (container queries below) */
    container-type: inline-size;
    container-name: panel;
}
.checkout-panel::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(140deg, #ffc57fbb 0%, #c3d7e144 15%, transparent 30%, transparent 76%, #f4ce8d 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.panel-header h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(28px, 2.2vw, 36px);
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--ivory);
    margin-bottom: 6px;
}
.founding-rate { font-size: clamp(15px, 1.05vw, 17px); font-weight: 600; color: var(--gold); line-height: 1.35; }
.future-rate { font-size: 14px; color: var(--muted); margin-top: 1px; }

/* ---------- Plan tiles ---------- */
.plan-options { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.plan-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #7d8b96;
    border-radius: 12px;
    background: linear-gradient(130deg, #0b1728cc, #263b4a40);
    box-shadow: inset 0 1px 0 #d1dbe226;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.plan-card:hover { border-color: #b5c2cb; background-color: #1b3346; }
.plan-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-card:has(input:checked) {
    border-color: #f2cf87;
    background: radial-gradient(ellipse at 90% 100%, #d3a65b1c, transparent 60%), linear-gradient(130deg, #3a4a4b88, #09182aca 55%);
    box-shadow: inset 0 0 0 1px #c8954299, 0 0 0 1px #c8954233, 0 0 18px #cf9a3222;
}
.plan-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.radio-mark {
    position: relative;
    flex: 0 0 20px;
    width: 20px; height: 20px;
    margin-top: 2px;
    border: 1.5px solid #dfe4e6;
    border-radius: 50%;
}
.plan-card:has(input:checked) .radio-mark { border-color: #f7d291; box-shadow: 0 0 10px #ecc16b44; }
.plan-card:has(input:checked) .radio-mark::after {
    content: "";
    position: absolute; inset: 3px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, #fff3c5, #f8d583 55%, #c08728);
}

.plan-copy { display: flex; flex-direction: column; min-width: 0; }
.plan-label { font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.3; }
.plan-price {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 2vw, 32px);
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--ivory);
    white-space: nowrap;
    margin-top: 2px;
}
.plan-period { font-size: 13px; color: var(--muted); white-space: nowrap; margin-top: 2px; }

/* ---------- Seats ---------- */
.quantity-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 12px; padding-bottom: 12px;
    border-bottom: 1px solid #afbac04d;
}
.quantity-row > label { font-size: 16px; font-weight: 500; color: var(--ivory); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    font-size: 20px; line-height: 1;
    color: var(--ivory);
    border: 1px solid #7d8f9c;
    border-radius: 8px;
    background: linear-gradient(#233342, #162534);
}
.stepper button:hover:not(:disabled) { border-color: var(--gold); background: #293e50; }
.stepper button:active:not(:disabled) { transform: translateY(1px); }
.stepper button:disabled { opacity: .4; }
.stepper input {
    width: 48px; height: 36px; padding: 0;
    border: 0; background: transparent;
    text-align: center; font-size: 18px; font-weight: 600; color: var(--ivory);
    -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Note under the seat stepper when the online maximum is reached */
.seat-note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.seat-note a { color: var(--gold-soft); }

/* ---------- Form sections and fields ---------- */
.form-section { margin-top: 16px; }
.form-section legend {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 8px;
}
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 13.5px; font-weight: 500; color: var(--text); line-height: 1.3; }
.email-field, .contact-grid { margin-top: 10px; }
/* Billing address: street (wide) + Address 2 (narrow), then City, State and ZIP on one row */
.address-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.address-grid.city-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) minmax(0, .8fr); }
/* "(optional)" next to the Address 2 label: quieter than the label itself */
.optional-tag { font-weight: 400; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.card-grid .card-number { grid-column: 1 / -1; }

/* Wide panel: card number, expiry and CVC on a single row */
@container panel (min-width: 540px) {
    .card-grid { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.15fr) minmax(0, .9fr); }
    .card-grid .card-number { grid-column: auto; }
}

/* Narrow panel: first and last name stack */
@container panel (max-width: 420px) {
    .name-grid { grid-template-columns: 1fr; }
    /* Street lines stack too; City takes its own row, State and ZIP share the next */
    .address-grid:not(.city-grid) { grid-template-columns: 1fr; }
    .address-grid.city-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
    .address-grid.city-grid .city-field { grid-column: 1 / -1; }
}

.field > input, .field > select, .hosted-field {
    width: 100%; min-width: 0; height: 42px;
    border: 1px solid var(--field-border);
    border-radius: 8px;
    background: #0d1f30cc;
    box-shadow: inset 0 1px 2px #0004;
    color: var(--ivory);
    transition: border-color .15s ease, background-color .15s ease;
}
.field > input { padding: 0 14px; font-size: 16px; }
.field > input:hover, .field > select:hover, .hosted-field:hover { border-color: var(--field-border-hover); }
.field > input:focus, .field > select:focus { border-color: var(--gold); background-color: #122a3e; outline: 2px solid #ebbb6155; outline-offset: 1px; }
.field > input[aria-invalid="true"], .field > select[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field input::placeholder { color: #8b98a4; opacity: 1; }
/* State dropdown: same box as the inputs, with a gold chevron drawn in CSS instead of the browser's arrow */
.field > select {
    padding: 0 34px 0 14px; font-size: 16px; font-family: inherit;
    appearance: none; -webkit-appearance: none; cursor: pointer;
    text-overflow: ellipsis; white-space: nowrap;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
/* "Select" placeholder looks like the other placeholders until a state is picked */
.field > select:has(option[value=""]:checked) { color: #8b98a4; }
/* The open list uses the page's dark panel colours */
.field > select option, .field > select optgroup { background: #0d1f30; color: var(--ivory); }
.field > select:disabled { cursor: default; opacity: .7; }

.hosted-field { display: flex; align-items: center; position: relative; overflow: hidden; padding: 0 14px; cursor: text; }
.hosted-field input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ivory); font-size: 16px; cursor: default; }
/* The page declares a dark colour scheme but EPD's card frames are light documents; when the two differ the browser
   paints an opaque white backdrop behind the frame. "normal" is not enough because the page's <meta name="color-scheme"
   content="dark"> makes normal resolve to dark, so the frame element is pinned to light (verified on the live site). */
.hosted-field iframe { width: 100%; height: 100%; border: 0; color-scheme: light; background: transparent; }
/* Slot that EPD Elements mounts its secure iframe into */
.hosted-slot { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; }
.hosted-slot > * { width: 100%; }
.hosted-field.is-focused { border-color: var(--gold); outline: 2px solid #ebbb6155; outline-offset: 1px; }
.hosted-field.is-invalid { border-color: var(--error); }

.field-error { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--error); }

/* ---------- Due today ---------- */
.order-summary {
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid #788e9c70;
    border-top: 2px solid #e9be77;
    border-radius: 10px;
    background: radial-gradient(ellipse at 20% 0, #c0b28c1c, transparent 58%), linear-gradient(125deg, #243747a3, #07192b 65%, #25394b80);
    box-shadow: inset 0 1px 1px #fce7bc66, 0 4px 10px #0004;
}
.summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary-heading h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 1.6vw, 24px); color: var(--ivory); line-height: 1.2; }
.summary-heading strong { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2vw, 32px); color: var(--ivory); letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.order-summary p { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Consent ---------- */
.consent-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--text); }
.consent-row label { cursor: pointer; }
.consent-row input {
    appearance: none; -webkit-appearance: none;
    flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
    border: 1.5px solid #d9dcd6; border-radius: 4px;
    background: #051a28; cursor: pointer; position: relative;
}
.consent-row input:checked { background: var(--gold); border-color: var(--gold); }
.consent-row input:checked::after {
    content: ""; position: absolute; top: 2px; left: 5.5px;
    width: 5px; height: 10px;
    border: solid #091928; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.consent-row input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

/* ---------- Status message ---------- */
.checkout-status { margin-top: 16px; padding: 12px 14px; border: 1px solid #8b9aa5; border-radius: 8px; background: #183146; font-size: 14.5px; line-height: 1.5; }
.checkout-status[data-tone="error"] { border-color: var(--error); background: #321e27; color: #ffe0d9; }
.checkout-status[data-tone="success"] { border-color: #9dc8ad; color: #daf4df; }

/* ---------- Gold purchase button ---------- */
.gold-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    padding: 10px 52px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #ffe4a8;
    border-radius: 12px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.2;
    color: #05101c;
    background: linear-gradient(180deg, #fff0b2 0%, #eac378 12%, #d49b39 74%, #d2a04e 88%, #f8d88e 100%);
    box-shadow: inset 0 0 0 2px #a6722166, inset 0 2px 4px #ffffd9a6, inset 0 -3px 6px #9a62174a, 0 4px 0 #67451f, 0 10px 18px #0007;
    transition: filter .15s, transform .15s, box-shadow .15s;
}
.gold-button svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 20px; fill: none; stroke: #07121a; stroke-width: 2.2; }
.gold-button:hover:not(:disabled) { filter: brightness(1.07); }
.gold-button:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 2px 6px #77532370, 0 1px 0 #67451f, 0 5px 10px #0006; }
.gold-button:disabled { opacity: .55; filter: saturate(.6); }

/* ---------- Under the button ---------- */
.after-payment { margin-top: 12px; text-align: center; font-size: 14px; color: var(--text); }
.trust-copy { margin-top: 6px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--subtle); }
.company-footer { margin-top: 2px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--subtle); }
.company-footer a { text-decoration: none; color: var(--muted); }
.company-footer a:hover { text-decoration: underline; }

/* =============================================================================
   Responsive
   ============================================================================= */

/* Large desktop: a little more breathing room */
@media (min-width: 1800px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 680px); }
}

/* Shorter desktop screens (laptops, 125-150% Windows scaling, e.g. 1366x768, 1536x864, 1632x880):
   tighten the vertical rhythm so the purchase button and the brand intro fit above the fold */
@media (min-width: 1100px) and (max-height: 940px) {
    .checkout-layout { padding-block: 18px; }
    .brand-column { padding-top: 12px; }
    .nea-logo { width: clamp(200px, 18vw, 280px); margin-bottom: 16px; }
    h1 { font-size: clamp(44px, 4.4vw, 72px); margin-bottom: 14px; }
    .introduction { font-size: clamp(16px, 1.2vw, 19px); }
    .gold-rule { margin: 18px 0; }
    .benefit-list { gap: 12px; }
    .portal-art { height: 38vh; }
}

/* Tablet and below: single column, brand intro above the form, contact after it */
@media (max-width: 1099px) {
    .checkout-layout {
        width: min(100% - 2 * var(--gutter), 640px);
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "brand" "panel" "contact";
        grid-template-rows: auto;
        align-items: start;
        min-height: 0;
        row-gap: 28px;
        padding-block: 28px 64px;
    }
    .brand-column { position: static; }
    .nea-logo { width: 240px; }
    h1 { font-size: clamp(44px, 9vw, 72px); }
    .introduction { max-width: 36ch; }
    .benefit-list { max-width: none; }
    .personal-help { align-self: start; }
    .portal-art { width: 110vw; opacity: .35; }
}

/* Phones */
@media (max-width: 600px) {
    .nea-logo { width: 210px; margin-bottom: 16px; }
    .eyebrow { font-size: 12px; }
    h1 { font-size: clamp(40px, 12vw, 56px); }
    .introduction { font-size: 17px; }
    .gold-rule { margin: 18px 0; }
    .benefit-list { gap: 14px; }
    .checkout-panel { padding: 20px 16px; }
    .panel-header h2 { font-size: 28px; }
    .plan-options { gap: 10px; }
    .plan-card { padding: 14px 12px; gap: 10px; }
    .radio-mark { flex-basis: 18px; width: 18px; height: 18px; }
    .plan-price { font-size: 26px; }
    .plan-period { font-size: 12.5px; }
    .name-grid { grid-template-columns: 1fr; }
    .order-summary { padding: 14px; }
    .summary-heading strong { font-size: 30px; }
    .gold-button { padding-left: 16px; padding-right: 44px; font-size: 20px; }
    .gold-button svg { right: 14px; width: 22px; }
    .backdrop-band { width: 120vw; }
    .portal-art { opacity: .25; }
}

/* Very small phones (320–380px): stack the plan tile contents so prices never clip */
@media (max-width: 380px) {
    .plan-card { display: block; padding: 12px 10px; }
    .plan-card .radio-mark { position: absolute; top: 13px; left: 10px; }
    .plan-label { padding-left: 26px; font-size: 14px; white-space: nowrap; }
    .gold-button { font-size: 18px; padding-left: 12px; padding-right: 38px; }
    .plan-price { font-size: 24px; margin-top: 8px; }
    .plan-period { white-space: normal; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Print: plain and readable */
@media print {
    .page-backdrop, .brand-column .benefit-list { display: none; }
    body, .checkout-panel { background: #fff; color: #111; box-shadow: none; }
}
