/* Signed-out pages (layouts/guest.blade.php): sign in, request access, the landing page,
   get the app, privacy and account deletion. They wear OpenSchool's sign-in look
   (school.bezalelark.com/login: dist/css/auth.css there) so the two read as one product:
   the school's wallpaper under a moving tint, glowing orbs, falling characters, the
   OPENXUL wordmark and a glass card in gold. Always dark, whatever theme the person
   picked inside the console. The canvases are drawn by guest.js; the wallpaper, its
   focal point and darkness, and the falling characters on/off come from OpenSchool
   through the sync (Support\Brand).
   Stand-alone: styles.css is not loaded here, so these pages stay light. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/vendor/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
    color-scheme: dark;
    --ax-bg: #030712;
    --ax-text: #f8fafc;
    --ax-muted: #94a3b8;
    --ax-gold: #d4af37;
    --ax-gold-2: #b8860b;
    --ax-gold-hi: #fcd34d;
    --ax-glass: rgba(15, 23, 42, .74);
    --ax-glass-line: rgba(255, 255, 255, .12);
    --ax-input: rgba(30, 41, 59, .7);
    --ax-input-line: rgba(255, 255, 255, .15);
    --ax-input-focus: rgba(15, 23, 42, .95);
    --ax-tab-bg: rgba(15, 23, 42, .8);
    --ax-tab-line: rgba(51, 65, 85, .6);
    --ax-veil: radial-gradient(circle at center, rgba(3, 7, 18, .55) 0%, rgba(3, 7, 18, .9) 100%);
    --ax-bad: #f87171;
    --ax-good: #34d399;
    --ax-shadow: 0 30px 90px -15px rgba(0, 0, 0, .8), 0 0 50px 0 rgba(212, 175, 55, .15), inset 0 1px 0 0 rgba(255, 255, 255, .18);
    --ax-orb-1: rgba(245, 158, 11, .15);
    --ax-orb-2: rgba(6, 182, 212, .1);
    --ax-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ax-head: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ax-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.ax-page { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: var(--ax-bg); color: var(--ax-text); font: 14px/1.5 var(--ax-sans); -webkit-font-smoothing: antialiased; }
.ax-page [hidden] { display: none !important; }
.ax-page a { color: inherit; }

/* ---- background layers (bottom to top) ---- */
.ax-wall, .ax-fluid, .ax-veil, .ax-rain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
.ax-wall { z-index: 0; }
.has-wp .ax-wall { background: #0b1220 var(--ax-wp) no-repeat; background-position: var(--ax-wp-pos, center); background-size: cover; }
.ax-fluid { z-index: 1; opacity: 1; transition: opacity .8s; }
/* a wallpaper keeps the fluid colours as a soft tint */
.has-wp .ax-fluid { mix-blend-mode: soft-light; opacity: .45; }
.no-gl .ax-fluid { display: none; }
.no-gl:not(.has-wp) .ax-wall { background: radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, .35), transparent 55%), radial-gradient(ellipse at 80% 70%, rgba(0, 153, 230, .35), transparent 55%), radial-gradient(ellipse at 60% 20%, rgba(204, 26, 128, .25), transparent 50%), #070b16; }
.ax-veil { z-index: 2; background: var(--ax-veil); }
/* always dark enough for the falling characters; the wallpaper's darkness can only add to it */
.has-wp .ax-veil { background: radial-gradient(circle at center, rgba(3, 7, 18, max(.55, calc(var(--ax-wp-dim, .5) * .8))) 0%, rgba(3, 7, 18, max(.78, calc(var(--ax-wp-dim, .5) + .15))) 100%); }
/* long reading (privacy, account deletion): an even, darker veil */
.is-calm .ax-veil, .is-calm.has-wp .ax-veil { background: rgba(3, 7, 18, .78); }
.ax-orb { position: fixed; z-index: 2; width: 560px; height: 560px; border-radius: 50%; filter: blur(140px); pointer-events: none; animation: axGlow 8s ease-in-out infinite; }
.ax-orb.is-1 { top: 25%; left: 25%; transform: translate(-50%, -50%); background: var(--ax-orb-1); }
.ax-orb.is-2 { bottom: 25%; right: 33%; transform: translate(33%, 33%); background: var(--ax-orb-2); animation-delay: -4s; }
@keyframes axGlow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.ax-rain { z-index: 3; }

/* ---- layout: OPENXUL and the card as one pair in the middle ---- */
.ax-main { position: relative; z-index: 10; display: grid; grid-template-columns: auto 440px; justify-content: center; align-items: center; column-gap: clamp(48px, 5vw, 64px); width: 100%; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 40px 24px; }

/* ---- OPENXUL cipher ---- */
.ax-hero { display: flex; flex-direction: column; align-items: flex-end; text-align: right; user-select: none; }
.ax-cipher { font: 800 clamp(64px, 8vw, 112px)/1 var(--ax-mono); letter-spacing: -.02em; white-space: nowrap; }
.ax-cipher > span { display: inline-block; -webkit-background-clip: text; background-clip: text; color: transparent; }
/* OPEN gold; XUL crimson to deep wine, top to bottom, with a soft red halo */
.ax-c-open { background-image: linear-gradient(90deg, #fde68a, #fbbf24 88%, #f8b419); filter: drop-shadow(0 0 24px rgba(212, 175, 55, .45)); }
.ax-c-xul { background-image: linear-gradient(180deg, #dc2626 0%, #b91c1c 45%, #991b1b 70%, #7f1d1d 100%); filter: drop-shadow(0 0 18px rgba(220, 38, 38, .35)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }

/* ---- card ---- */
.ax-card-w { display: flex; justify-content: flex-start; perspective: 1200px; }
.ax-card { width: 100%; max-width: 440px; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.ax-card-in { position: relative; overflow: hidden; padding: 34px 36px 22px; border: 1px solid var(--ax-glass-line); border-radius: 26px; background: var(--ax-glass); box-shadow: var(--ax-shadow); backdrop-filter: blur(28px) saturate(200%); -webkit-backdrop-filter: blur(28px) saturate(200%); }
/* a light sweep across the glass that follows the tilt */
.ax-card-in::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--ax-gx, 30%) var(--ax-gy, 0%), rgba(255, 255, 255, .12), transparent 45%); pointer-events: none; }
.ax-card-in > * { position: relative; }
.ax-card.is-shake { animation: axShake .45s; }
@keyframes axShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

/* the school's logo and name (partials/school-brand) */
.ax-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--ax-text); text-decoration: none; }
.ax-brand .brand-logo { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 5px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: 0 0 24px rgba(212, 175, 55, .25); overflow: hidden; }
.ax-brand .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.ax-brand .brand-logo.is-initials { color: #0f172a; font: 700 21px/1 var(--ax-head); letter-spacing: -.02em; }
.ax-brand .brand-text { display: flex; flex-direction: column; min-width: 0; }
.ax-brand .brand-name { display: -webkit-box; margin: 0; overflow: hidden; font: 700 19px/1.25 var(--ax-sans); letter-spacing: -.01em; overflow-wrap: anywhere; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ax-brand .brand-sub { margin-top: 2px; color: var(--ax-muted); font-size: 12px; font-weight: 500; }

/* a card's own heading and words, under the brand (request access, get the app) */
.ax-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 600 18px/1.3 var(--ax-head); letter-spacing: -.015em; }
.ax-title i { color: var(--ax-gold); }
.ax-title .is-good { color: var(--ax-good); }
.ax-text { margin: 0 0 18px; color: var(--ax-muted); font-size: 13.5px; }
.ax-text em, .ax-steps em { display: block; margin-top: 4px; color: #7c8aa0; font-size: 12.5px; }
.ax-text strong, .ax-steps strong { color: var(--ax-text); }
.ax-list { margin: 0 0 16px; padding-left: 18px; color: var(--ax-muted); font-size: 13.5px; line-height: 1.6; }
.ax-list li { margin-bottom: 6px; }
.ax-list li::marker { color: var(--ax-gold); }

/* the two ways in: email + password, or phone + PIN (links, as the server decides the form) */
.ax-roles { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--ax-tab-line); border-radius: 16px; background: var(--ax-tab-bg); }
.ax-role { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; color: var(--ax-muted) !important; font-size: 12.5px; font-weight: 600; text-decoration: none; text-align: center; transition: all .25s ease; }
.ax-role:hover { color: var(--ax-text) !important; }
.ax-role.is-on { border-color: rgba(212, 175, 55, .4); background: rgba(212, 175, 55, .2); color: var(--ax-gold-hi) !important; font-weight: 700; box-shadow: 0 0 15px rgba(212, 175, 55, .2); }
.ax-role:focus-visible { outline: 2px solid var(--ax-gold); outline-offset: 2px; }

/* floating-label fields (components/ax-field) */
.ax-form { margin: 0; }
.ax-in { position: relative; margin-bottom: 14px; }
.ax-in input, .ax-in select, .ax-in textarea { display: block; width: 100%; height: 54px; margin: 0; padding: 22px 46px 8px 16px; border: 1px solid var(--ax-input-line); border-radius: 14px; background: var(--ax-input); color: var(--ax-text); font: 500 14.5px/1.2 var(--ax-sans); transition: all .25s cubic-bezier(.16, 1, .3, 1); -webkit-appearance: none; appearance: none; }
.ax-in textarea { height: auto; min-height: 92px; padding-top: 26px; line-height: 1.4; resize: vertical; }
.ax-in select { cursor: pointer; }
.ax-in select option { background: #0f172a; color: var(--ax-text); }
.ax-in input:focus, .ax-in select:focus, .ax-in textarea:focus { outline: none; border-color: rgba(212, 175, 55, .9); background: var(--ax-input-focus); box-shadow: 0 0 20px rgba(212, 175, 55, .3), 0 0 2px rgba(212, 175, 55, .8); }
.ax-in input:-webkit-autofill { -webkit-text-fill-color: var(--ax-text); -webkit-box-shadow: 0 0 0 40px var(--ax-input-focus) inset; caret-color: var(--ax-text); }
.ax-in input::placeholder, .ax-in textarea::placeholder { color: transparent; }
.ax-in input:focus::placeholder, .ax-in textarea:focus::placeholder { color: #64748b; }
.ax-in label { position: absolute; left: 17px; top: 17px; color: var(--ax-muted); font: 500 13px/1.2 var(--ax-sans); pointer-events: none; transform-origin: left top; transition: all .25s cubic-bezier(.16, 1, .3, 1); }
.ax-in label b { color: var(--ax-bad); font-weight: 700; }
.ax-in input:focus ~ label, .ax-in input:not(:placeholder-shown) ~ label, .ax-in input:-webkit-autofill ~ label,
.ax-in textarea:focus ~ label, .ax-in textarea:not(:placeholder-shown) ~ label, .ax-in select ~ label { transform: translateY(-9px) scale(.88); color: var(--ax-gold); font-weight: 700; }
.ax-in.is-bad input, .ax-in.is-bad select, .ax-in.is-bad textarea { border-color: var(--ax-bad); box-shadow: 0 0 0 3px rgba(248, 113, 113, .2); }
.ax-in-ic { position: absolute; right: 17px; top: 19px; color: var(--ax-muted); font-size: 15px; pointer-events: none; }
.ax-eye { position: absolute; right: 8px; top: 9px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ax-muted); font-size: 15px; cursor: pointer; }
.ax-eye:hover, .ax-eye:focus-visible { color: var(--ax-text); background: rgba(148, 163, 184, .15); outline: none; }
.ax-err { margin: 6px 0 0 4px; color: var(--ax-bad); font-size: 12px; font-weight: 600; }
.ax-caps { margin: -6px 0 12px 4px; color: #fbbf24; font-size: 12px; font-weight: 600; }
.ax-group { display: block; }

.ax-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 16px; font-size: 12.5px; }
.ax-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ax-muted); font-weight: 500; cursor: pointer; }
.ax-check:hover { color: var(--ax-text); }
.ax-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ax-gold); }
.ax-link { padding: 0; border: 0; background: none; color: #fbbf24; font: 600 12.5px var(--ax-sans); cursor: pointer; text-underline-offset: 3px; }
.ax-link:hover, .ax-link:focus-visible { text-decoration: underline; outline: none; }
.ax-forgot { margin: -4px 0 16px; padding: 12px 14px; border: 1px solid rgba(212, 175, 55, .3); border-radius: 14px; background: rgba(212, 175, 55, .08); font-size: 12.5px; animation: axIn .25s ease-out; }
.ax-forgot p { margin: 0; color: var(--ax-text); }
.ax-contacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ax-contacts a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--ax-input-line); border-radius: 999px; background: var(--ax-input); text-decoration: none; font-weight: 600; }
.ax-contacts a:hover { border-color: var(--ax-gold); }
.ax-contacts i { color: var(--ax-gold); }
@keyframes axIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* gold button with the shine sweep; .is-ghost is the glass one beside it */
.ax-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; padding: 0 18px; overflow: hidden; border: 0; border-radius: 14px; background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%); color: #0d0f17 !important; font: 600 14.5px/1 var(--ax-sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 0 25px rgba(212, 175, 55, .4); transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.ax-btn::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, .6) 50%, transparent 100%); transform: rotate(30deg) translateY(-100%); transition: transform .6s ease; pointer-events: none; }
.ax-btn:hover::before { transform: rotate(30deg) translateY(100%); }
.ax-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 35px rgba(212, 175, 55, .7); color: #000 !important; }
.ax-btn:focus-visible { outline: 3px solid rgba(252, 211, 77, .6); outline-offset: 3px; }
.ax-btn:disabled { cursor: progress; transform: none; opacity: .85; }
.ax-btn.is-ghost { border: 1px solid var(--ax-input-line); background: var(--ax-input); color: var(--ax-text) !important; box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ax-btn.is-ghost::before { display: none; }
.ax-btn.is-ghost:hover { border-color: rgba(212, 175, 55, .7); color: var(--ax-gold-hi) !important; box-shadow: 0 0 20px rgba(212, 175, 55, .2); }
.ax-btn.is-sm { width: auto; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; }
.ax-btns { display: flex; flex-direction: column; gap: 10px; }
.ax-spin { animation: axSpin 1s linear infinite; }
@keyframes axSpin { to { transform: rotate(360deg); } }
.ax-progress { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: rgba(148, 163, 184, .15); opacity: 0; transition: opacity .2s; }
.ax-progress.is-on { opacity: 1; }
.ax-progress i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #fcd34d, #d4af37); box-shadow: 0 0 10px rgba(212, 175, 55, .6); transition: width .3s ease; }
.ax-msg { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(248, 113, 113, .35); border-radius: 12px; background: rgba(248, 113, 113, .1); color: var(--ax-bad); font-size: 13px; font-weight: 600; animation: axIn .2s ease-out; }
.ax-msg.is-ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); color: var(--ax-good); }
.ax-msg i { margin-top: 2px; }

/* small links under the card's button */
.ax-alt { margin: 16px 0 0; color: var(--ax-muted); font-size: 12.5px; line-height: 1.9; text-align: center; }
.ax-alt a { color: #fbbf24; font-weight: 700; text-decoration: none; text-underline-offset: 3px; }
.ax-alt a:hover, .ax-alt a:focus-visible { text-decoration: underline; outline: none; }
.ax-alt .is-quiet a { color: var(--ax-muted); font-weight: 600; }
.ax-alt .is-quiet a:hover { color: var(--ax-text); }
.ax-foot { display: flex; justify-content: center; margin-top: 20px; color: var(--ax-muted); }
.ox-powered { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/16px var(--ax-sans); white-space: nowrap; opacity: .7; user-select: none; }
.ox-powered svg { height: 14px; width: auto; flex: none; }

/* get the app */
.app-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.app-title .ax-title { margin: 0; }
.app-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; box-shadow: 0 0 20px rgba(212, 175, 55, .25); }
.ax-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: ax-step; color: var(--ax-muted); font-size: 13.5px; line-height: 1.55; }
.ax-steps li { position: relative; margin-bottom: 12px; padding-left: 36px; counter-increment: ax-step; }
.ax-steps li::before { content: counter(ax-step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 50%; background: rgba(212, 175, 55, .12); color: var(--ax-gold-hi); font: 600 12px/1 var(--ax-sans); }

/* ---- the landing page ---- */
.ax-land { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 1180px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 20px 24px 24px; }
.ax-glass { border: 1px solid var(--ax-glass-line); background: var(--ax-glass); box-shadow: var(--ax-shadow); backdrop-filter: blur(28px) saturate(200%); -webkit-backdrop-filter: blur(28px) saturate(200%); }
.ax-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 16px; border-radius: 20px; }
.ax-nav .ax-brand { margin: 0; min-width: 0; }
.ax-nav .brand-logo { width: 46px; height: 46px; border-radius: 14px; }
.ax-nav .brand-name { font-size: 16px; }
.ax-nav nav { display: flex; flex: none; gap: 8px; }
.ax-land-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 36px 8px 12px; flex: 1; }
.ax-land-hero h1 { max-width: 15em; margin: 0 0 14px; font: 700 clamp(28px, 3.2vw, 40px)/1.15 var(--ax-head); letter-spacing: -.025em; text-shadow: 0 2px 20px rgba(0, 0, 0, .45); }
.ax-land-hero h1 span { color: var(--ax-gold-hi); }
.ax-land-hero p { max-width: 34em; margin: 0 0 12px; color: #cbd5e1; font-size: 15.5px; line-height: 1.65; }
.ax-land-hero .ax-btns { flex-direction: row; flex-wrap: wrap; margin-top: 24px; }
.ax-land-hero .ax-btn { width: auto; }
.ax-land-hero .ax-hero { align-items: center; }
.ax-land-hero .ax-land-note { margin: 16px 0 0; color: var(--ax-muted); font-size: 13.5px; }
.ax-land-note a { color: #fbbf24; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.ax-land-note a:hover, .ax-land-note a:focus-visible { text-decoration: underline; }
/* what it does: one panel, a plain two-column list */
.ax-does { padding: 22px 26px 8px; border-radius: 20px; }
.ax-does h2 { margin: 0 0 14px; color: var(--ax-muted); font: 600 13px/1.3 var(--ax-sans); }
.ax-does dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.ax-does dl > div { padding: 12px 0 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ax-does dt { display: flex; align-items: center; gap: 9px; margin: 0 0 3px; font: 600 14.5px/1.35 var(--ax-sans); }
.ax-does dt i { width: 16px; color: var(--ax-gold); font-size: 13px; text-align: center; }
.ax-does dd { margin: 0 0 0 25px; color: var(--ax-muted); font-size: 13.5px; line-height: 1.55; }
.ax-land-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 18px; border-radius: 16px; color: var(--ax-muted); font-size: 12.5px; }
.ax-land-foot > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ax-land-foot a { color: var(--ax-muted); font-weight: 600; text-decoration: none; }
.ax-land-foot a:hover { color: var(--ax-gold-hi); }

/* ---- privacy and account deletion: a wide reading panel ---- */
.legal-shell { position: relative; z-index: 10; display: flex; justify-content: center; min-height: 100vh; padding: 40px 16px; }
.legal-card { width: 100%; max-width: 720px; height: max-content; padding: 34px 40px; border: 1px solid var(--ax-glass-line); border-radius: 26px; background: rgba(15, 23, 42, .86); box-shadow: var(--ax-shadow); color: #e2e8f0; font-size: 15px; line-height: 1.7; backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%); }
.legal-card h1 { margin: 6px 0 10px; color: var(--ax-text); font: 700 26px/1.2 var(--ax-head); letter-spacing: -.02em; }
.legal-card h2 { margin: 28px 0 8px; color: var(--ax-gold-hi); font: 600 16px/1.35 var(--ax-sans); }
.legal-card ul, .legal-card ol { padding-left: 22px; }
.legal-card li { margin-bottom: 7px; }
.legal-card li::marker { color: var(--ax-gold); }
.legal-card strong { color: var(--ax-text); }
.legal-card a { color: #fbbf24; text-underline-offset: 3px; }
.legal-kicker { margin: 0; }
.legal-kicker a { display: inline-flex; align-items: center; gap: 8px; color: var(--ax-gold-hi); font: 600 12.5px/1 var(--ax-sans); text-decoration: none; }
.legal-muted { color: var(--ax-muted); font-size: 13.5px; }

/* ---- smaller screens ---- */
@media (max-width: 1023px) {
    .ax-main { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; padding: 72px 16px 28px; }
    .ax-hero { display: none; }
    .ax-card-w { justify-content: center; width: 100%; }
    .ax-orb { width: 340px; height: 340px; filter: blur(100px); }
    .ax-land-hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
}
@media (max-width: 900px) {
    .has-wp .ax-wall { background-image: var(--ax-wp-m, var(--ax-wp)); }
}
@media (max-width: 640px) {
    .ax-land { padding: 12px 12px 16px; gap: 20px; }
    .ax-nav { flex-wrap: wrap; padding: 12px; }
    .ax-nav nav { width: 100%; }
    .ax-nav nav .ax-btn { flex: 1; }
    .ax-land-hero { padding: 8px 4px 0; }
    .ax-land-hero .ax-btn { flex: 1 1 100%; }
    /* the long labels fit a phone: tighter tracking, and they may wrap */
    .ax-land .ax-btn { height: auto; min-height: 48px; padding: 12px 16px; white-space: normal; text-align: center; line-height: 1.3; }
    .ax-nav .ax-btn.is-sm { min-height: 40px; padding: 8px 12px; }
    .ax-does { padding: 18px 18px 6px; }
    .ax-does dl { grid-template-columns: minmax(0, 1fr); }
    .legal-shell { padding: 16px 12px; }
    .legal-card { padding: 22px 18px; border-radius: 20px; font-size: 14.5px; }
}
@media (max-width: 480px) {
    .ax-main { padding-top: 40px; }
    .ax-card-in { padding: 26px 20px 18px; border-radius: 22px; }
    .ax-brand .brand-name { font-size: 17px; }
    .ax-brand .brand-logo { width: 50px; height: 50px; border-radius: 14px; }
}

/* ---- calmer motion ---- */
@media (prefers-reduced-motion: reduce) {
    .ax-orb { animation: none; }
    .ax-card, .ax-btn, .ax-btn::before { transition: none; }
    .ax-card.is-shake { animation: none; }
    .ax-forgot, .ax-msg { animation: none; }
}
@media print {
    .ax-wall, .ax-fluid, .ax-veil, .ax-orb, .ax-rain { display: none; }
    body.ax-page { background: #fff; color: #000; }
    .legal-card { border: 0; box-shadow: none; background: none; color: #000; backdrop-filter: none; }
    .legal-card h1, .legal-card h2, .legal-card strong { color: #000; }
}
