:root {
  --navy: #102f58;
  --blue: #087fc3;
  --blue-dark: #04659e;
  --sky: #dff4ff;
  --ink: #17304f;
  --muted: #5d7185;
  --line: #ced9e2;
  --surface: #ffffff;
  --soft: #f3f7fa;
  --yellow: #ffcf4a;
  --orange: #c84b1a;
  --shadow: 0 20px 60px rgba(7, 43, 74, .16);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7fafc; font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: #fff; padding: .75rem 1rem; border-radius: 4px; color: var(--navy); }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; height: 100px; background: linear-gradient(100deg, #0586ca, #066ba7); box-shadow: 0 2px 8px rgba(7,45,72,.25); }
.header-inner { width: min(1740px, calc(100% - 7vw)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .9rem; padding: 0; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.brand-mark { display: grid; place-items: center; width: 62px; height: 48px; border: 3px solid #fff; border-radius: 52% 48% 45% 55% / 55% 52% 48% 45%; font-size: 1.55rem; font-weight: 800; font-style: italic; transform: skew(-8deg); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy small { font-size: .55rem; letter-spacing: .12em; }
.brand-copy strong { margin-top: .2rem; font-size: 1.4rem; font-weight: 800; font-style: italic; letter-spacing: -.04em; }
.brand-copy span { margin-top: .28rem; font-size: .62rem; }
.desktop-nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.desktop-nav button, footer button, footer a { padding: .35rem .1rem; border: 0; background: transparent; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.desktop-nav button:hover { border-bottom: 2px solid #fff; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.language-button { border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .55rem .8rem; background: rgba(255,255,255,.1); color: #fff; font-size: .8rem; }
.profile-button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; text-decoration: none; cursor: pointer; }
.profile-button svg { width: 25px; fill: none; stroke: var(--navy); stroke-width: 2; }
body:not([data-current-view="home"]):not([data-current-view="debrief"]) .desktop-nav,
body:not([data-current-view="home"]):not([data-current-view="debrief"]) .language-button { display: none; }
body:not([data-current-view="home"]):not([data-current-view="debrief"]) .header-inner { width: min(1740px, calc(100% - 12vw)); }

.view { display: none; }
.view.active { display: block; animation: fade-in .35s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } }

.hero { position: relative; min-height: 650px; overflow: hidden; background: linear-gradient(115deg, #07538c 0%, #078bcf 63%, #23a4dc 100%); color: #fff; }
.hero-pattern, .portal-hero::before { position: absolute; inset: 0; content: ''; opacity: .25; background-image: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.17) 30% 34%, transparent 34% 48%, rgba(0,38,82,.28) 48% 52%, transparent 52%), repeating-linear-gradient(75deg, transparent 0 115px, rgba(255,255,255,.12) 117px 121px); transform: scale(1.1); }
.hero::after { position: absolute; right: -10%; bottom: -40%; width: 70%; height: 70%; content: ''; background: #075c91; border-radius: 50% 40% 0 0; opacity: .45; }
.hero-inner { position: relative; z-index: 1; width: min(1560px, calc(100% - 11vw)); margin: auto; padding: 7rem 0 8rem; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 8vw; }
.eyebrow { display: inline-block; margin-bottom: .65rem; color: var(--blue-dark); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow.light { color: #bfeaff; }
.hero h1, .portal-hero h1 { margin: 0; max-width: 800px; color: #fff; font-size: clamp(3.1rem, 5.6vw, 6.5rem); font-weight: 800; font-style: italic; line-height: .98; letter-spacing: -.055em; }
.hero-copy p { max-width: 650px; margin: 2rem 0; color: #e8f8ff; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.hero-actions, .portal-actions, .debrief-actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: .8rem 2.4rem; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(7, 85, 139, .18); transition: .2s ease; }
.button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }
.button:disabled { background: #e3e9ed; color: #9aa8b3; box-shadow: none; cursor: not-allowed; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover:not(:disabled) { background: var(--sky); }
.text-link { padding: .5rem 0; border: 0; border-bottom: 2px solid currentColor; background: transparent; color: #066ea9; font-weight: 700; cursor: pointer; }
.light-link { color: #fff; }

.hero-card { justify-self: end; width: min(100%, 480px); padding: 1.6rem; border: 1px solid rgba(255,255,255,.55); border-radius: 18px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 26px 70px rgba(3,42,72,.32); transform: rotate(1.5deg); }
.browser-dots { display: flex; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px solid #dce6ed; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #a7bdca; }
.mock-notice { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0; padding: .75rem; border-radius: 6px; background: #fff4c7; color: #694b00; font-size: .8rem; font-weight: 700; }
.mock-notice span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.mock-title { margin: 1.5rem 0; color: var(--navy); font-size: 1.65rem; font-weight: 800; }
.mock-line { width: 64%; height: 10px; margin: 1rem 0; border-radius: 99px; background: #e3edf3; }
.mock-line.wide { width: 92%; }
.mock-total { display: flex; justify-content: space-between; margin: 2.4rem 0 1.4rem; padding-top: 1.2rem; border-top: 1px solid #dce6ed; }
.mock-button { width: 55%; padding: .7rem; border-radius: 99px; background: var(--blue); color: #fff; text-align: center; font-size: .8rem; font-weight: 700; }

.service-section, .learn-section { width: min(1560px, calc(100% - 11vw)); margin: auto; padding: 6rem 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading h2, .learn-panel h2, .portal-content h2, .debrief-card h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3vw, 3.3rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { max-width: 540px; margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card { min-height: 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-align: left; cursor: pointer; box-shadow: 0 6px 24px rgba(7,56,88,.05); transition: .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #6db7df; box-shadow: 0 14px 34px rgba(7,56,88,.12); }
.service-card.featured { background: var(--navy); color: #fff; }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); }
.service-icon svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.service-card strong, .service-card small { display: block; }
.service-card strong { margin-bottom: .6rem; font-size: 1.15rem; }
.service-card small { color: var(--muted); font-size: .86rem; font-weight: 400; line-height: 1.55; }
.service-card.featured small { color: #c8ddec; }
.arrow { font-size: 1.5rem; }

.learn-section { padding-top: 1rem; }
.learn-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; padding: clamp(2rem, 5vw, 5rem); border-radius: 18px; background: #e9f6fc; }
.learn-panel > div p { color: var(--muted); font-size: 1.05rem; }
.checks { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; border: 1px solid #c4dfeb; border-radius: 8px; background: rgba(255,255,255,.72); }
.checks li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; }
.checks strong, .checks small { display: block; }
.checks small { margin-top: .25rem; color: var(--muted); }

.portal-view { min-height: calc(100vh - 142px); padding-bottom: 5rem; background: #f3f7f9; }
.portal-hero { position: relative; overflow: hidden; min-height: 290px; padding: 4.5rem 5.5vw 7rem; background: linear-gradient(115deg, #07558c, #0e96d2); }
.portal-hero > div { position: relative; z-index: 1; width: min(1560px, 100%); margin: auto; }
.portal-hero h1 { max-width: none; font-size: clamp(2.8rem, 4.6vw, 5.2rem); white-space: nowrap; }
.portal-shell { position: relative; width: min(1760px, calc(100% - 12vw)); min-height: 850px; margin: -5.4rem auto 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.breadcrumbs { min-height: 80px; display: flex; align-items: center; gap: .9rem; padding: 0 2.5rem; border-bottom: 1px solid #e5edf2; color: var(--muted); font-size: .82rem; }
.breadcrumbs button { padding: .45rem .8rem; border: 0; background: #eff7fb; color: var(--muted); cursor: pointer; }
.breadcrumbs b { color: var(--blue-dark); }
.portal-content { max-width: 1320px; padding: 4.5rem 5rem 6rem; }
.portal-content h2 { margin: 4.5rem 0 2rem; font-size: clamp(1.7rem, 2.4vw, 2.45rem); }
.portal-content h2:first-of-type { margin-top: 2.5rem; }
.entry-content { max-width: none; }
.content-rule { max-width: 1400px; display: flex; justify-content: flex-end; margin-bottom: 2.2rem; border-top: 1px solid var(--line); }
.content-rule span { position: relative; top: -.7rem; padding-left: 1.5rem; background: #fff; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.content-rule b, .field-group label span { color: var(--orange); }
.entry-form { max-width: 850px; }
.entry-form h3 { margin: 3.2rem 0 .45rem; color: var(--navy); font-size: 1.35rem; }
.entry-form > p { margin: 0 0 2.2rem; color: var(--ink); }
.field-group { width: 360px; max-width: 100%; margin: 0 0 2.3rem; }
.field-group label { display: block; margin-bottom: .6rem; color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.field-group input { width: 100%; height: 58px; padding: 0 1rem; border: 1px solid #bbc9d5; border-radius: 3px; outline: none; color: var(--ink); background: #fff; font-size: 1rem; text-transform: uppercase; }
.field-group input:focus { border: 2px solid #0796d6; box-shadow: 0 0 0 3px rgba(7,150,214,.14); }
.field-group input:invalid:not(:focus) { border-color: #bbc9d5; }
.field-group input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.field-group input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.14); }
.field-group small { display: block; margin-top: .65rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.field-group .validation-message { color: #8a1c13; font-weight: 700; }
.field-group .validation-message:empty { display: none; }
.entry-actions { margin-top: 4rem; }
.need-help { display: inline-block; margin-top: 3.4rem; }
.exercise-note { display: flex; align-items: center; gap: 1rem; max-width: 1175px; padding: .85rem 1.1rem; border-left: 5px solid var(--blue); background: #edf8fd; color: var(--muted); font-size: .88rem; }
.exercise-note strong { color: var(--navy); white-space: nowrap; }
.exercise-note.warning { border-left-color: var(--orange); background: #fff4ec; }
.data-panel { max-width: 1175px; display: grid; grid-template-columns: 38% 62%; margin: 0; padding: 1.6rem 2rem; background: #f6f9fb; }
.data-panel dt, .data-panel dd { margin: 0; padding: .8rem 0; }
.data-panel dt { color: var(--navy); font-weight: 700; }
.data-panel dd { color: var(--muted); }
.fee-panel { max-width: 1175px; }
.choice-fieldset { display: grid; gap: 1.1rem; margin: 0; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: 1rem; color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.choice-fieldset legend span { color: var(--orange); }
.choice-card { position: relative; min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; padding: 1.4rem; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: .15s ease; }
.choice-card:hover { border-color: #82bddb; }
.choice-card.selected { border: 2px solid #21a0dc; box-shadow: 0 3px 10px rgba(0,100,160,.16); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-ui { width: 32px; height: 32px; border: 1.5px solid #a9cee1; border-radius: 50%; }
.choice-card.selected .radio-ui { border: 9px solid var(--blue); }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: .35rem; color: var(--muted); }
.portal-actions { margin-top: 5rem; }
.fee-table { max-width: 1175px; border: 1px solid var(--line); }
.table-head, .table-row { display: grid; grid-template-columns: 1.4fr 1fr .45fr; gap: 1rem; align-items: center; }
.table-head { min-height: 62px; padding: 1rem 2rem; background: #f6f9fb; color: var(--blue-dark); font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.table-row { min-height: 150px; padding: 2rem; border-top: 1px solid var(--line); }
.table-row strong { color: var(--navy); font-size: 1.25rem; }
.table-row span { color: var(--muted); }
.table-row b { color: var(--navy); }
.total-row { max-width: 1175px; display: flex; justify-content: flex-end; gap: 1rem; padding: 2.3rem 0; color: var(--navy); font-size: 1.5rem; }
.note-block { max-width: 1175px; margin-top: 1rem; color: var(--muted); }
.note-block > span { display: inline-block; padding: .35rem .55rem; border-radius: 3px; background: var(--yellow); color: var(--navy); font-size: .76rem; font-weight: 800; }
.note-block li { margin: .7rem 0; }
.payment-choices .choice-card { min-height: 130px; }
.card-tiles { display: flex; gap: .35rem; }
.card-tiles i { width: 43px; height: 28px; border: 1px solid var(--line); border-radius: 2px; background: linear-gradient(135deg, #eaf4f9 50%, #b9d8e7 50%); }
.bank-icon { font-size: 2.5rem; color: var(--muted); }

body[data-current-view="order-summary"] .site-header,
body[data-current-view="card-preview"] .site-header { display: none; }
.processor-view { min-height: calc(100vh - 42px); padding: 1rem 2rem 5rem; background: #fff; color: #222; font-family: Arial, Helvetica, sans-serif; text-align: center; }
.processor-back { display: flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: transparent; color: #222; font-size: 1rem; cursor: pointer; }
.processor-back span { color: #777; font-size: 1.8rem; line-height: 1; }
.processor-brand { width: 320px; max-width: 100%; display: grid; justify-items: center; margin: -1.2rem auto 1.2rem; color: #1488ca; line-height: 1; }
.processor-brand small { font-size: .7rem; }
.processor-brand strong { margin: .25rem 0; font-size: 2.2rem; font-weight: 800; font-style: italic; letter-spacing: -.06em; }
.processor-brand span { font-size: .78rem; }
.processor-notice { max-width: 1200px; margin: 1rem auto 1.2rem; font-size: .82rem; }
.processor-view > h1 { margin: 1rem 0 1.5rem; color: #292929; font-size: 1.4rem; }
.order-card { width: min(680px, 100%); margin: auto; border: 1px solid #c6c6c6; box-shadow: 0 2px 4px rgba(0,0,0,.2); text-align: left; }
.order-card h2 { margin: 0; padding: .6rem .8rem; background: #b8d5e6; color: #111; font-size: 1.45rem; }
.order-card-body { padding: 1.3rem 1.8rem 1.8rem; }
.order-card-body > p { margin: 0 0 1.3rem; font-size: .9rem; }
.order-card dl { display: grid; grid-template-columns: 1fr auto; gap: 2.6rem 1rem; margin: 0; }
.order-card dt, .order-card dd { margin: 0; font-size: 1.05rem; font-weight: 700; }
.order-card dt span { font-weight: 400; }
.processor-checkout { width: min(400px, 100%); min-height: 50px; margin: 4rem auto 0; border: 0; background: #b8d5e6; color: #111; font-size: 1.05rem; font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.18); cursor: pointer; }
.processor-checkout:hover { background: #9fc6dc; }
.processor-checkout:disabled { opacity: .65; cursor: wait; }
.secure-payment { display: flex; justify-content: center; align-items: center; gap: .45rem; margin: 2.4rem auto 0; color: #333; text-align: left; }
.secure-payment > span { font-size: 2.8rem; }
.secure-payment strong, .secure-payment small { display: block; }
.secure-payment strong { font-size: 1.2rem; }
.secure-payment small { font-size: 1rem; }
.card-preview-view { padding-bottom: 4rem; }
.card-preview-view .processor-brand { margin-bottom: 2.2rem; }
.disabled-form { width: min(760px, 100%); margin: auto; border: 1px solid #c6c6c6; box-shadow: 0 2px 7px rgba(0,0,0,.16); background: #fff; text-align: left; }
.disabled-form-heading { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; background: #b8d5e6; color: #111; font-size: 1.2rem; }
.disabled-form-heading span { padding: .25rem .5rem; border-radius: 3px; background: #fff2bf; color: #5e4700; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.disabled-form-heading.subheading { margin-top: 1rem; }
.disabled-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.4rem 1.5rem .5rem; }
.disabled-form-grid label { display: grid; gap: .45rem; color: #333; font-size: .78rem; font-weight: 700; }
.disabled-form-grid label.full { grid-column: 1 / -1; }
.stripe-checkout-copy { padding: 1.8rem 1.5rem .5rem; }
.stripe-checkout-copy > p { margin: 0 0 1.5rem; color: var(--muted); }
.stripe-checkout-summary { display: grid; grid-template-columns: 1fr auto; margin: 0; border-top: 1px solid var(--line); }
.stripe-checkout-summary dt, .stripe-checkout-summary dd { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.stripe-checkout-summary dd { color: var(--navy); font-weight: 700; text-align: right; }
.checkout-error { margin-top: 1rem !important; padding: .8rem 1rem; border-left: 4px solid #b42318; background: #fff0ee; color: #7a271a !important; }
.disabled-form-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem 1.5rem 2rem; }
.disabled-form-actions .processor-checkout { margin: 0; }

.payment-success-view { min-height: 100vh; display: none; place-items: center; padding: 5rem 1.5rem; background: linear-gradient(145deg, #eff9fd, #fff); }
.payment-success-view.active { display: grid; }
.payment-success-card { width: min(650px, 100%); padding: clamp(2rem, 6vw, 4rem); border: 1px solid #cfdae1; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(19,52,83,.14); text-align: center; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.4rem; border-radius: 50%; background: #dff4ed; color: #177154; font-size: 2rem; font-weight: 800; }
.success-kicker { color: var(--blue-dark); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.payment-success-card h1 { margin: .6rem 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); }
.payment-success-card > p { margin: 0 auto 2rem; color: var(--muted); }
.success-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 2.5rem; border-top: 1px solid var(--line); text-align: left; }
.success-summary dt, .success-summary dd { margin: 0; padding: .9rem .5rem; border-bottom: 1px solid var(--line); }
.success-summary dt { color: var(--muted); }
.success-summary dd { color: var(--navy); font-weight: 700; text-align: right; }

.debrief-view { min-height: calc(100vh - 142px); padding: 7rem 5vw; background: linear-gradient(140deg, #e6f7ff, #f8fbfd 55%, #fff3cf); }
.debrief-card { max-width: 1200px; margin: auto; padding: clamp(2rem, 6vw, 6rem); border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.debrief-check { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.5rem; border-radius: 50%; background: #dff4ed; color: #137256; font-size: 2rem; font-weight: 800; }
.debrief-card > p { max-width: 720px; margin: 1.5rem auto 3rem; color: var(--muted); font-size: 1.08rem; }
.debrief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.debrief-grid article { padding: 1.6rem; border: 1px solid var(--line); border-radius: 8px; }
.debrief-grid article > span { color: var(--blue); font-size: .75rem; font-weight: 800; }
.debrief-grid h2 { color: var(--navy); font-size: 1.1rem; }
.debrief-grid p { color: var(--muted); font-size: .9rem; }
.debrief-actions { justify-content: center; margin-top: 3rem; }

footer { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 5.5vw; border-top: 1px solid var(--line); background: #fff; }
footer div { display: grid; gap: .3rem; }
footer div strong { color: var(--navy); }
footer div span { color: var(--muted); font-size: .8rem; }
footer nav { display: flex; gap: 2rem; }
footer button, footer a { color: var(--blue-dark); }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 5rem 0; }
  .hero-card { justify-self: start; width: min(100%, 540px); }
  .service-grid, .debrief-grid { grid-template-columns: 1fr; }
  .learn-panel { grid-template-columns: 1fr; }
  .portal-content { padding: 3rem 2.5rem 5rem; }
  .card-tiles { display: none; }
}

@media (max-width: 680px) {
  .site-header { height: 82px; }
  .header-inner { width: calc(100% - 2rem); }
  .brand-copy span, .brand-copy small, .language-button { display: none; }
  .brand-copy strong { font-size: 1rem; }
  .brand-mark { width: 50px; height: 40px; font-size: 1.2rem; }
  .hero-inner, .service-section, .learn-section { width: calc(100% - 2rem); }
  .hero-inner { padding: 4rem 0; }
  .hero h1 { font-size: 3.2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .service-card { grid-template-columns: auto 1fr; padding: 1.4rem; }
  .service-card .arrow { display: none; }
  .learn-panel { padding: 1.4rem; }
  .portal-hero { min-height: 230px; padding: 3rem 1rem 6rem; }
  .portal-hero h1 { white-space: normal; }
  .portal-shell { width: calc(100% - 1rem); margin-top: -4.5rem; }
  .breadcrumbs { overflow-x: auto; padding: 0 1.2rem; white-space: nowrap; }
  .portal-content { padding: 2rem 1.2rem 4rem; }
  .content-rule { margin-bottom: 1rem; }
  .processor-view { padding: 1rem 1rem 4rem; }
  .processor-brand { margin-top: 1rem; }
  .processor-back { text-align: left; }
  .disabled-form-grid { grid-template-columns: 1fr; }
  .disabled-form-grid label.full { grid-column: auto; }
  .disabled-form-actions { align-items: stretch; flex-direction: column; }
  .exercise-note { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .data-panel { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .choice-card { grid-template-columns: auto 1fr; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 1fr; min-height: 0; }
  .portal-actions { margin-top: 3rem; }
  .portal-actions .button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; gap: 1rem; }
  .dialog-card { padding: 2.4rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
