/* =============================================================================
   GaganSoft v2 design system (public site).  Owner: DESIGN.  Reference: UI-KIT.md
   ORIGINAL gagansoft.in palette (red #FF0000 / black / white) + type from SPEC.md section 2:
   Roboto (headings) + Montserrat (body),
   Font Awesome 6 Free icons. Mobile first; breakpoints 640 / 900 / 1080 / 1280.
   Page-specific styles live in module files (css/<module>.css) loaded via $pageCss.
   ========================================================================== */

:root {
  /* brand: the ORIGINAL gagansoft.in colours (SPEC section 2): red, black, white. No indigo/violet. */
  --primary: #FF0000;          /* GaganSoft red: buttons, accents, icons, active states */
  --primary-600: #CC0000;      /* hover, and red TEXT on white (AA) */
  --primary-700: #CC0000;      /* red text on light-red tints (AA) */
  --primary-50: #FFF0F0;       /* light red tint: soft backgrounds */
  --primary-100: #FFE5E5;      /* light red tint: tint borders, selection */
  --primary-200: #FFCCCC;      /* light red: hover borders, dashed lines */
  --primary-on-dark: #FF6B6B;  /* red TEXT on black / red-glow backgrounds (7.6:1 on #000, 4.8:1 on the hero glows) */
  --black: #000000;
  --white: #FFFFFF;
  --violet: #111111;           /* legacy token name only: the secondary dark (there is no violet in the palette) */
  --violet-50: #F7F7F7;
  --purple: #800080;           /* counters / stat numbers only, as on the live site */
  --yellow: #FFFF00;           /* sparse highlight on dark backgrounds only, never text on white */
  --grad: linear-gradient(#FF0000, #000000);                       /* live-site gradient: top bar, art panels */
  --grad-rev: linear-gradient(#000000, #FF0000);                   /* copyright bar */
  --grad-wide: linear-gradient(135deg, #FF0000 0%, #000000 100%);  /* wide areas */
  --grad-btn: linear-gradient(180deg, #FF0000 0%, #CC0000 100%);   /* red buttons, avatars, active pills */
  --grad-text: linear-gradient(90deg, #FF0000 0%, #CC0000 100%);   /* highlighted words in large headings */
  --grad-soft: linear-gradient(135deg, #FFF0F0 0%, #FFFFFF 55%, #F7F7F7 100%);
  --accent: #FF0000;
  --accent-600: #CC0000;
  --accent-ink: #CC0000;
  --accent-50: #FFF0F0;
  --footer-text: #B0B9AE;      /* live-site footer text on black */

  /* neutrals (layout only) */
  --ink: #111111;
  --ink-2: #333333;
  --muted: #555555;
  --border: #E5E5E5;
  --border-strong: #CCCCCC;
  --surface: #F7F7F7;
  --surface-2: #F0F0F0;
  --bg: #FFFFFF;
  --dark: #000000;
  --dark-2: #111111;
  --on-dark: #E5E5E5;
  --on-dark-muted: #B0B9AE;

  /* status (badges only) */
  --success: #16A34A;
  --warning: #D97706;
  --danger: #FF0000;
  --danger-ink: #CC0000;       /* small danger text on white (AA) */
  --info: #0284C7;

  /* type: same as the live site */
  --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* shape */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 6px -2px rgba(0, 0, 0, .06);
  --shadow: 0 2px 4px -2px rgba(0, 0, 0, .06), 0 10px 24px -6px rgba(0, 0, 0, .10);
  --shadow-lg: 0 4px 8px -4px rgba(0, 0, 0, .08), 0 24px 48px -12px rgba(0, 0, 0, .18);
  --shadow-primary: 0 10px 24px -8px rgba(255, 0, 0, .45);
  --ring: 0 0 0 3px rgba(255, 0, 0, .25);

  /* layout */
  --container: 1240px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ----------------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1, .h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.075rem; }
h5, h6 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
strong, b { font-weight: 600; color: var(--ink); }
small, .small { font-size: .875rem; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; color: var(--ink); }
table { border-collapse: collapse; }
::selection { background: var(--primary-100); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { left: 10px; color: #fff; }

/* ----------------------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-md { max-width: 960px; }
.container-sm, .container-narrow { max-width: 760px; }
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section:not(.section-surface):not(.section-soft):not(.section-dark):not(.section-grad) + .section:not(.section-surface):not(.section-soft):not(.section-dark):not(.section-grad) { padding-top: 0; }
.section-surface, .section-soft { background: var(--surface); }
.section-grad { background: var(--grad-soft); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark .muted, .section-dark .text-muted { color: var(--on-dark-muted); }
.section-border { border-top: 1px solid var(--border); }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-sm { padding: 40px 0; } :root { --gutter: 16px; } }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gap-sm { gap: 12px; } .gap-lg { gap: 32px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-60 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-60 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0; min-width: 0; } .ml-auto { margin-left: auto; }

/* ----------------------------------------------------------------------------- type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-600); margin-bottom: 12px; }
/* on black / red-glow backgrounds #CC0000 is only ~3.6:1: use the light red tint (AA on black and on the glows) */
.hero .eyebrow, .page-hero-dark .eyebrow, .section-dark .eyebrow, .cta-band .eyebrow, .side-dark .eyebrow, .site-footer .eyebrow { color: var(--primary-on-dark); }
.eyebrow-pill { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--primary-50); border: 1px solid var(--primary-100); letter-spacing: .04em; text-transform: none; font-size: .8125rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.muted, .text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.text-primary { color: var(--primary-600); }
.text-accent, .text-red { color: var(--accent-ink); }
.text-success { color: var(--success); } .text-danger { color: var(--danger-ink); } .text-warning { color: #B45309; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.text-center { text-align: center; } .text-right, .text-end { text-align: right; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-sm { font-size: .875rem; } .text-xs { font-size: .78rem; } .text-lg { font-size: 1.125rem; }
.nowrap { white-space: nowrap; } .break { word-break: break-word; overflow-wrap: anywhere; }
.prose { color: var(--ink-2); max-width: 72ch; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--primary); }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--primary-200); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary); color: var(--ink); }

/* ----------------------------------------------------------------------------- section heads */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
.section-head h2 span, .section-head h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-cta { margin-top: 40px; text-align: center; }

/* ----------------------------------------------------------------------------- buttons */
.btn { --btn-h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 10px 22px; border: 1px solid transparent; border-radius: 12px; background: var(--grad-btn); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2; letter-spacing: -.005em; cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-primary); transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, color .18s, border-color .18s, filter .18s; -webkit-tap-highlight-color: transparent; }
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgba(255, 0, 0, .5); }
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero .btn:focus-visible, .page-hero-dark .btn:focus-visible, .section-dark .btn:focus-visible, .cta-band .btn:focus-visible, .side-dark .btn:focus-visible, .auth-aside .btn:focus-visible, .site-footer .btn:focus-visible, .amount-box .btn:focus-visible { outline-color: #fff; }
.btn i { font-size: .95em; }
.btn-primary { background: var(--grad-btn); color: #fff; }
.btn-secondary { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); box-shadow: none; }
.btn-secondary:hover { background: var(--primary-100); color: var(--primary-700); box-shadow: none; filter: none; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-outline:hover { color: var(--primary-600); border-color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); filter: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; filter: none; }
.btn-light, .btn-white { background: #fff; color: var(--primary-700); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.btn-light:hover, .btn-white:hover { color: var(--primary-700); background: #fff; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.btn-dark:hover { background: #333333; color: #fff; filter: none; }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: none; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(255, 0, 0, .45); }
.btn-accent:hover { background: var(--accent-600); color: #fff; filter: none; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { background: var(--primary-600); color: #fff; }
.btn-success { background: var(--success); color: #fff; box-shadow: none; }
.btn-sm { --btn-h: 38px; padding: 7px 14px; font-size: .875rem; border-radius: 10px; }
.btn-xs { --btn-h: 30px; padding: 4px 10px; font-size: .8rem; border-radius: 8px; gap: 6px; }
.btn-lg { --btn-h: 54px; padding: 14px 28px; font-size: 1.025rem; border-radius: 14px; }
.btn-pill { border-radius: var(--radius-pill); }
.btn-block { width: 100%; }
.btn-icon { --btn-h: 42px; width: var(--btn-h); padding: 0; border-radius: 10px; background: #fff; border-color: var(--border); color: var(--ink-2); box-shadow: none; }
.btn-icon:hover { color: var(--primary); border-color: var(--primary-200); background: var(--primary-50); filter: none; box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; pointer-events: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-600); font-family: var(--font-head); }
.link-more i { transition: transform .18s var(--ease); font-size: .85em; }
.link-more:hover i, .card:hover .link-more i { transform: translateX(3px); }

/* ----------------------------------------------------------------------------- chips + badges */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff; color: var(--ink-2); font-size: .875rem; font-weight: 500; line-height: 1.2; white-space: nowrap; max-width: 100%; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
a.chip:hover, button.chip:hover, label.chip:hover { border-color: var(--primary-200); color: var(--primary-700); background: var(--primary-50); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current], .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { box-shadow: var(--ring); }
.chip-sm { min-height: 26px; padding: 3px 10px; font-size: .78rem; }
.chip-static { cursor: default; white-space: normal; text-align: left; overflow-wrap: anywhere; } /* labels, not controls: long ones wrap */
.chip-soft { background: var(--surface-2); border-color: transparent; }
.chip-primary { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.chip-new, .chip-hot, .chip-accent { background: var(--accent-50); border-color: var(--primary-200); color: var(--accent-ink); font-weight: 700; }
.chip i { font-size: .85em; }
.chip .chip-x { margin-left: 2px; opacity: .6; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; }
.badge::before { content: none; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--border); }
.badge-primary { background: var(--primary-50); color: var(--primary-700); border-color: var(--primary-100); }
/* "violet" is a legacy tone name: it renders as a black outline badge (no violet in the palette) */
.badge-violet, .badge-ink { background: #fff; color: var(--ink); border-color: var(--ink); }
.badge-success { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.badge-warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.badge-danger { background: var(--danger-ink); color: #fff; border-color: var(--danger-ink); }
.badge-info { background: #E0F2FE; color: #075985; border-color: #BAE6FD; }
.badge-accent { background: var(--accent-50); color: var(--accent-ink); border-color: var(--primary-200); }
.badge-dark { background: var(--dark-2); color: #fff; }
.badge-solid { background: var(--accent-600); color: #fff; border-color: transparent; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; font-weight: 800; }
.badge-grad { background: var(--grad); color: #fff; border-color: transparent; }
.badge-lg { font-size: .85rem; padding: 5px 12px; }
.section-dark .badge-neutral { background: rgba(255,255,255,.08); color: #E5E5E5; border-color: rgba(255,255,255,.12); }

/* legacy pills (events module markup) */
.pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; line-height: 1.4; border: 1px solid transparent; }
.pill-ok { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.pill-warn { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.pill-info { background: #E0F2FE; color: #075985; border-color: #BAE6FD; }
.pill-bad { background: var(--danger-ink); color: #fff; border-color: var(--danger-ink); }

/* ----------------------------------------------------------------------------- announcement + header */
.announce { background: var(--grad); color: #fff; font-size: .875rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.announce a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { color: var(--yellow); }
.announce .badge { background: var(--yellow); color: #000; border: 0; }

.site-header { position: sticky; top: 0; z-index: 60; isolation: isolate; border-bottom: 1px solid rgba(229, 229, 229, .85); transition: box-shadow .2s; }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed off-canvas nav inside it. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: background .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .18); }
.site-header.is-scrolled::before { background: rgba(255, 255, 255, .92); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header::before { background: #fff; } }
.nav-wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--ink); }
.brand img { width: 150px; height: auto; }
.brand:hover { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; }
.nav-list { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { margin: 0; position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .9375rem; background: none; border: 0; font-family: inherit; line-height: 1.3; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--primary-600); background: var(--primary-50); font-weight: 600; }
.nav-link .fa-chevron-down { font-size: .65rem; transition: transform .2s; }
.has-drop.open > .nav-link .fa-chevron-down { transform: rotate(180deg); }
.dropdown { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 50%; min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s var(--ease), visibility 0s linear .16s; z-index: 70; }
.dropdown.align-right { left: auto; right: 0; transform: translate(0, 6px); }
.dropdown li { margin: 0; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .9375rem; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.dropdown a i, .dropdown button i { width: 18px; text-align: center; color: var(--muted); }
.dropdown a:hover, .dropdown button:hover, .dropdown a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); }
.dropdown a:hover i, .dropdown button:hover i { color: var(--primary); }
.dropdown .drop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown .drop-head { padding: 8px 12px 6px; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.dropdown .drop-head strong { display: block; color: var(--ink); font-size: .9rem; }
.dropdown form { margin: 0; }
.has-drop.open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .16s, transform .16s var(--ease), visibility 0s; }
.has-drop.open > .dropdown.align-right { transform: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-actions .btn { --btn-h: 40px; padding: 8px 16px; font-size: .9rem; border-radius: 10px; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.account-btn:hover { border-color: var(--primary-200); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.avatar-lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.05rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle:hover { border-color: var(--primary-200); color: var(--primary); }
.nav-drawer-head { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 80; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px; background: #fff; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .26s var(--ease), visibility 0s linear .26s; }
  .main-nav.open { transform: none; visibility: visible; transition: transform .26s var(--ease), visibility 0s; }
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
  .nav-drawer-head img { width: 130px; }
  .nav-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; font-size: 1.05rem; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; padding: 12px; gap: 2px; }
  .nav-link { width: 100%; padding: 12px 14px; font-size: 1rem; justify-content: flex-start; }
  .nav-link .fa-chevron-down { margin-left: auto; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 4px 14px; min-width: 0; display: none; transition: none; }
  .has-drop.open > .dropdown { display: block; transform: none; }
  .nav-actions { flex-direction: column; align-items: stretch; padding: 8px 24px 0; gap: 10px; }
  .nav-actions .btn { --btn-h: 48px; width: 100%; }
  .nav-actions .has-drop { width: 100%; }
  .account-btn { width: 100%; justify-content: flex-start; padding: 6px 12px 6px 6px; border-radius: 12px; }
  .account-btn .fa-chevron-down { margin-left: auto; }
  .nav-actions .dropdown { padding: 6px 0 0; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .26s, visibility 0s linear .26s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .26s, visibility 0s; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}

/* ----------------------------------------------------------------------------- heroes */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: var(--on-dark); padding: 96px 0 104px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(600px 380px at 12% 8%, rgba(255, 0, 0, .38), transparent 70%),
  radial-gradient(520px 360px at 88% 18%, rgba(255, 0, 0, .22), transparent 70%),
  radial-gradient(700px 420px at 50% 120%, rgba(255, 0, 0, .34), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%); }
.hero h1, .hero .hero-title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.07; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .text-grad, .hero .hero-title .text-grad { background: var(--primary); -webkit-background-clip: text; background-clip: text; }
.hero .eyebrow-pill { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-copy { max-width: 680px; }
.hero-center { text-align: center; margin: 0 auto; max-width: 860px; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: var(--on-dark); max-width: 620px; margin-bottom: 28px; }
.hero-center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-center .hero-actions { justify-content: center; }
.hero-search { display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); max-width: 640px; }
.hero-center .hero-search { margin: 0 auto; }
.hero-search .hs-icon { padding-left: 10px; color: var(--muted); }
.hero-search input[type="search"], .hero-search input[type="text"] { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 0 6px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 0, 0, .45), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.hero-search select { height: 46px; border: 0; border-left: 1px solid var(--border); background: transparent; font: inherit; font-size: .95rem; color: var(--ink-2); padding: 0 10px; max-width: 150px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .9rem; color: var(--on-dark-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { color: var(--primary); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 40px; max-width: 640px; }
.hero-stats .stat-tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.hero-stats .stat-value { color: #fff; }
.hero-stats .stat-label { color: var(--on-dark-muted); }
.hero-art { position: relative; }
.hero-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-xl); padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hero-light { background: #fff; color: var(--ink-2); }
.hero-light::before { background: radial-gradient(600px 380px at 10% 0%, rgba(255, 0, 0, .10), transparent 70%), radial-gradient(520px 360px at 90% 10%, rgba(0, 0, 0, .05), transparent 70%); }
.hero-light::after { background-image: linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px); }
.hero-light h1, .hero-light .hero-title { color: var(--ink); }
.hero-light .hero-lead { color: var(--muted); }
@media (max-width: 900px) { .hero { padding: 64px 0 72px; } .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 640px) {
  .hero-search { flex-wrap: wrap; }
  .hero-search select { border-left: 0; border-top: 1px solid var(--border); max-width: none; flex: 1 1 100%; }
  .hero-search .btn { flex: 1 1 100%; }
}

.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 56px 0 52px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(520px 300px at 8% 0%, rgba(255, 0, 0, .10), transparent 70%), radial-gradient(520px 300px at 95% 30%, rgba(0, 0, 0, .05), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(0, 0, 0, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .045) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 95%); mask-image: linear-gradient(180deg, #000, transparent 95%); }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); margin-bottom: 10px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero.is-center { text-align: center; }
.page-hero.is-center .lead { margin: 0 auto; }
.page-hero.is-center .crumbs { justify-content: center; }
.page-hero-dark { background: var(--dark); border-bottom: 0; color: var(--on-dark); }
.page-hero-dark::before { background: radial-gradient(520px 320px at 8% 0%, rgba(255, 0, 0, .40), transparent 70%), radial-gradient(520px 320px at 95% 30%, rgba(255, 0, 0, .22), transparent 70%); }
.page-hero-dark::after { background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .lead { color: var(--on-dark); }
.page-hero-dark .crumbs, .page-hero-dark .crumbs a { color: var(--on-dark-muted); }
.page-hero-dark .crumbs a:hover, .page-hero-dark .crumbs [aria-current] { color: #fff; }
@media (max-width: 640px) { .page-hero { padding: 40px 0 36px; } }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .875rem; color: var(--muted); }
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-600); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------------------- cards */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.card-hover:hover, a.card:hover, .card:has(.stretched):hover, .card:has(.card-link):hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.card:focus-within { border-color: var(--primary-200); }
a.card { color: inherit; }
.card-flat { box-shadow: none; }
.card-pad { padding: 24px; }
.card-media, .card-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-img.wide { aspect-ratio: 19 / 10; }
.card-img.pos-left { object-position: left center; }
.card-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--grad); color: rgba(255, 255, 255, .95); font-size: 2.6rem; overflow: hidden; isolation: isolate; }
.card-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%); }
.card-art span { font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: .02em; position: absolute; left: 16px; bottom: 12px; opacity: .9; }
/* art tones: red/black variations of the live-site gradient only */
.art-1 { background: linear-gradient(135deg, #FF0000, #000000); }
.art-2 { background: linear-gradient(135deg, #000000, #FF0000); }
.art-3 { background: linear-gradient(#FF0000, #000000); }
.art-4 { background: linear-gradient(45deg, #000000 15%, #CC0000); }
.art-5 { background: linear-gradient(135deg, #CC0000, #111111 70%); }
.art-6 { background: linear-gradient(#000000, #FF0000); }
.card-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.card-badges .badge { box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.card-body > * { margin: 0; }
.card-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-600); }
.card-title, .card-body h2, .card-body h3 { font-size: 1.125rem; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.card-title a, .card-body h3 a, .card-body h2 a { color: var(--ink); }
.card-text, .card-body > p { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.card-meta, .card-body .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .875rem; }
.card-meta span, .card-body .meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta i, .card-body .meta i { color: var(--primary); width: 16px; text-align: center; font-size: .9em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 22px; border-top: 1px solid var(--border); background: linear-gradient(180deg, #fff, var(--surface)); }
.card-body + .card-footer { margin-top: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.card .stretched, .card .card-link { color: inherit; }
.card .stretched::after, .card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .stretched, .card:hover .card-link, .card .stretched:focus-visible, .card .card-link:focus-visible { color: var(--primary-600); }
.card .card-footer a:not(.card-link), .card .card-footer button, .card .card-actions a, .card .card-actions button { position: relative; z-index: 2; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.125rem; color: var(--ink); letter-spacing: -.01em; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.price-free { color: var(--success); }
.card-program .card-footer .link-more, .card-project .card-footer .link-more { font-size: .9rem; }
.card-job .card-body { gap: 12px; }
.job-head { display: flex; gap: 14px; align-items: flex-start; }
.job-logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--primary-100); color: var(--primary-700); font-family: var(--font-head); font-weight: 800; font-size: 1rem; overflow: hidden; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job-company { font-size: .875rem; color: var(--muted); margin: 2px 0 0; }
.card-row { flex-direction: row; }
.card-row .card-media, .card-row .card-art { width: 38%; aspect-ratio: auto; flex: 0 0 38%; }
@media (max-width: 640px) { .card-row { flex-direction: column; } .card-row .card-media, .card-row .card-art { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; } }

/* event card (events module markup) */
.event-card .event-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.event-card .card-body h2 { font-size: 1.125rem !important; }

/* panels / generic boxes */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { font-size: 1.075rem; margin: 0; }
.panel-soft { background: var(--surface); box-shadow: none; }
.panel-grad { background: var(--grad-soft); border-color: var(--primary-100); }

/* ----------------------------------------------------------------------------- icon tiles + features */
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; background: var(--primary-50); color: var(--primary); font-size: 1.2rem; border: 1px solid var(--primary-100); }
.icon-tile-lg { width: 60px; height: 60px; flex-basis: 60px; border-radius: 16px; font-size: 1.45rem; }
.icon-tile-sm { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; font-size: .95rem; }
.icon-tile-grad { background: var(--grad-btn); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
/* "violet" is a legacy tone name: black tile with a red icon (no violet in the palette) */
.icon-tile-violet, .icon-tile-ink { background: var(--dark-2); color: var(--primary); border-color: var(--dark-2); }
.icon-tile-accent { background: var(--accent-50); color: var(--accent-ink); border-color: var(--primary-200); }
.icon-tile-success { background: #DCFCE7; color: #15803D; border-color: #BBF7D0; }
.icon-tile-info { background: #E0F2FE; color: #0369A1; border-color: #BAE6FD; }
.icon-tile-warning { background: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.section-dark .icon-tile { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--primary); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary); font-size: 1.3rem; border: 1px solid var(--primary-100); }
.feature-tile { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; height: 100%; }
.feature-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.feature-tile h3 { font-size: 1.075rem; margin: 4px 0 0; }
.feature-tile p { color: var(--muted); margin: 0; font-size: .9375rem; }
.section-dark .feature-tile { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section-dark .feature-tile p { color: var(--on-dark-muted); }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feature p { color: var(--muted); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; margin: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FF0000'%3E%3Cpath d='M8.2 13.6 4.9 10.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / 16px no-repeat; border: 1px solid var(--primary-100); }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ----------------------------------------------------------------------------- numbered steps (how it works) */
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 20px; counter-reset: stepn; position: relative; }
.step-grid > li { counter-increment: stepn; position: relative; margin: 0; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.step-grid > li::before { content: counter(stepn, decimal-leading-zero); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad-btn); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-primary); margin-bottom: 16px; }
.step-grid > li::after { content: ""; position: absolute; top: 45px; left: 100%; width: 21px; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-200) 0 5px, transparent 5px 9px); }
.step-grid > li:last-child::after { display: none; }
.step-grid h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step-grid p { color: var(--muted); font-size: .9375rem; margin: 0; }
.step-grid .step-icon { position: absolute; top: 24px; right: 24px; color: var(--primary-200); font-size: 1.4rem; }
.section-dark .step-grid > li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section-dark .step-grid p { color: var(--on-dark-muted); }
@media (max-width: 1080px) { .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step-grid > li::after { display: none; } }
@media (max-width: 640px) { .step-grid { grid-template-columns: minmax(0, 1fr); } }

/* vertical status steps (events module: li.done / li.current) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.steps li::before { content: counter(step); flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; }
.steps li.done::before { content: "\2713"; background: var(--success); border-color: var(--success); color: #fff; }
.steps li.current::before { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: var(--shadow-primary); }
.steps strong { display: block; color: var(--ink); font-family: var(--font-head); }
.steps p { margin: 2px 0 0; color: var(--muted); }

/* ----------------------------------------------------------------------------- timeline / stepper */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline > li { position: relative; margin: 0; padding: 0 0 22px 40px; }
.timeline > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border-strong); color: var(--muted); font-size: .7rem; }
.tl-title { font-weight: 600; color: var(--ink); line-height: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tl-meta { font-size: .8125rem; color: var(--muted); }
.tl-body { font-size: .9375rem; color: var(--ink-2); margin-top: 4px; }
.timeline > li.is-done .tl-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline > li.is-done::before { background: #86EFAC; }
.timeline > li.is-current .tl-dot { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px var(--primary-50); }
.timeline > li.is-failed .tl-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline > li.is-pending .tl-title { color: var(--muted); font-weight: 500; }

.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; counter-reset: stp; }
.stepper > li { flex: 1 1 0; min-width: 0; margin: 0; counter-increment: stp; display: flex; flex-direction: column; gap: 8px; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.stepper > li::before { content: ""; height: 6px; border-radius: 6px; background: var(--border); }
.stepper > li.is-done::before { background: var(--success); }
.stepper > li.is-current::before { background: var(--grad-btn); }
.stepper > li.is-current, .stepper > li.is-done { color: var(--ink); font-weight: 600; }
.stepper > li.is-failed::before { background: var(--danger); }

/* ----------------------------------------------------------------------------- stats */
.stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.stat-value { font-family: var(--font-head); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--purple); font-variant-numeric: tabular-nums; }
.stat-value.text-grad { color: transparent; }
.stat-label { font-size: .875rem; color: var(--muted); font-weight: 500; }
.stat-tile .icon-tile { margin-bottom: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.25rem; font-weight: 800; line-height: 1.1; color: var(--purple); }
.stat span { color: var(--muted); font-weight: 500; font-size: .9rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ----------------------------------------------------------------------------- stories + logos */
.story-card { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; margin: 0; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.story-card::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--primary-100); }
.story-card blockquote { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.7; position: relative; }
.story-card blockquote p { margin: 0; }
.story-card figcaption, .story-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.story-card figcaption img, .story-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.story-card figcaption strong, .story-person strong { display: block; color: var(--ink); font-size: .95rem; }
.story-card figcaption span:not(.avatar), .story-person span:not(.avatar) { display: block; font-size: .8125rem; color: var(--muted); }
.story-outcome { display: inline-flex; align-self: flex-start; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption strong { color: var(--ink); }

.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 44px; padding: 8px 0; }
.logo-strip a, .logo-strip span { display: inline-flex; align-items: center; justify-content: center; height: 48px; color: var(--muted); font-family: var(--font-head); font-weight: 700; }
.logo-strip img { max-height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-strip a:hover img, .logo-strip a:focus-visible img { filter: none; opacity: 1; }
.logo-strip-label { text-align: center; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* ----------------------------------------------------------------------------- filter bar */
.filter-bar { display: flex; flex-direction: column; gap: 14px; padding: 16px; margin-bottom: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-search { position: relative; flex: 1 1 280px; min-width: 0; }
.filter-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--border-strong); border-radius: 12px; font: inherit; color: var(--ink); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.filter-search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); background: #fff; }
.filter-bar select, .filter-select { height: 46px; min-width: 150px; flex: 0 1 190px; padding: 0 36px 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; font: inherit; font-size: .9375rem; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23555555'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; -webkit-appearance: none; appearance: none; cursor: pointer; }
.filter-bar select:focus, .filter-select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.filter-bar .btn { --btn-h: 46px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-chips-label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.filter-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -8px 0 20px; font-size: .9rem; color: var(--muted); }
.filter-meta strong { color: var(--ink); }
.filter-reset { font-size: .875rem; font-weight: 600; }
@media (max-width: 640px) { .filter-bar select, .filter-select { flex: 1 1 calc(50% - 5px); min-width: 0; } .filter-bar .btn { flex: 1 1 100%; } }

/* ----------------------------------------------------------------------------- tabs + accordion */
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active, .tab[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab .badge { padding: 1px 7px; }
.tabs-line { background: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0; gap: 20px; width: 100%; }
.tabs-line .tab { border-radius: 0; padding: 12px 2px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line .tab[aria-selected="true"], .tabs-line .tab.is-active, .tabs-line .tab[aria-current="page"] { background: none; box-shadow: none; color: var(--primary-600); border-bottom-color: var(--primary); }
.tab-panel:focus-visible { outline-offset: 6px; }

.accordion { display: grid; gap: 10px; }
.acc-item, .module { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.acc-item[open], .module[open] { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.acc-item > summary, .module > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.acc-item > summary::-webkit-details-marker, .module > summary::-webkit-details-marker { display: none; }
.acc-item > summary::after, .module > summary::after { content: ""; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FF0000'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.acc-item[open] > summary::after, .module[open] > summary::after { transform: rotate(180deg); background-color: var(--primary-50); }
.acc-item > summary:focus-visible, .module > summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.acc-body, .module > div { padding: 0 20px 18px; color: var(--ink-2); }
.acc-body > :last-child, .module > div > :last-child { margin-bottom: 0; }
.module ul { margin: 0; }

/* ----------------------------------------------------------------------------- forms */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.form-card-head { margin-bottom: 24px; }
.form-card-head h2 { font-size: 1.375rem; margin: 0 0 4px; }
.form-card-head p { margin: 0; color: var(--muted); }
.form-narrow { max-width: 480px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full, .field.full, .form-grid > .form-section, .form-grid > .alert, .form-grid > .form-actions, .form-grid > .captcha-field { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } .form-card { padding: 22px 18px; } }
.form-section { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 1.075rem; }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section + p { margin-top: -10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > legend, .field-label, .captcha-field > label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.req { color: var(--accent-ink); }
.optional { font-weight: 400; color: var(--muted); font-size: .85em; }
.input, .select, .textarea,
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field input[type=date], .field input[type=datetime-local], .field input[type=time], .field input[type=url], .field input[type=password], .field input[type=search], .field input[type=file], .field select, .field textarea, .captcha-input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 12px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background: #fff; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, background .15s; }
.field select, .select { padding-right: 40px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23555555'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; cursor: pointer; }
.field textarea, .textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #888888; }
.field input:hover, .field select:hover, .field textarea:hover, .input:hover, .select:hover { border-color: #999999; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus, .textarea:focus, .captcha-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field input[type=file] { padding: 8px; cursor: pointer; background: var(--surface); }
.field input[type=file]::file-selector-button, .input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--primary-50); color: var(--primary-700); font: inherit; font-weight: 600; font-size: .875rem; cursor: pointer; }
.field input[disabled], .field select[disabled], .field textarea[disabled], .input[disabled] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.field input[readonly] { background: var(--surface); }
.field .is-invalid, .is-invalid, .field [aria-invalid="true"], .captcha-input[aria-invalid="true"] { border-color: var(--danger) !important; }
.field .is-invalid:focus, .field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 0, 0, .2); }
.field-hint, .help { margin: 0; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.field-error { margin: 0; font-size: .8125rem; color: var(--danger-ink); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex: 0 0 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: inline-grid; place-items: center; }
.field-error:empty { display: none; }
.field-counter { font-size: .78rem; color: var(--muted); text-align: right; }
.field-counter.is-near { color: var(--danger-ink); }
.input-group { display: flex; align-items: stretch; }
.input-group > .input-addon { display: inline-flex; align-items: center; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.input-group > .input-addon:first-child { border-right: 0; border-radius: 12px 0 0 12px; }
.input-group > .input-addon:last-child { border-left: 0; border-radius: 0 12px 12px 0; }
.input-group > input:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group > input:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > input { padding-left: 40px !important; }
.check, .radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.check input, .radio input, .choice input { margin: 2px 0 0; accent-color: var(--primary); width: 18px; height: 18px; flex: 0 0 auto; cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.choice-list { display: grid; gap: 10px; }
.choice-list.cols-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice:hover { border-color: var(--primary-200); }
.choice strong { display: block; color: var(--ink); }
.choice small { color: var(--muted); display: block; }
.choice .price { margin-left: auto; font-size: 1rem; white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 1px var(--primary); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { -webkit-appearance: none; appearance: none; width: 40px; height: 22px; border-radius: 22px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(18px); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.form-actions .muted { font-size: .875rem; }
.form-foot { margin-top: 20px; text-align: center; font-size: .9375rem; color: var(--muted); }
.guest-row { display: flex; gap: 8px; }
.guest-row input { flex: 1; }
.guest-row .btn-icon { color: var(--danger); }
.hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0; }
.captcha-field { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 12px; }
.captcha-field label { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.captcha-prefix { color: var(--muted); font-weight: 500; }
.captcha-q { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-input { max-width: 120px; text-align: center; font-weight: 700; letter-spacing: .06em; }
.captcha-new { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: .875rem; }
.captcha-new:hover { border-color: var(--primary); color: var(--primary-600); }
.captcha-new[aria-busy="true"] i { animation: fg-spin .8s linear infinite; }
@keyframes fg-spin { to { transform: rotate(360deg); } }
.amount-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--dark); color: #E5E5E5; border-radius: 12px; padding: 16px 20px; font-weight: 600; }
.amount-box strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--primary); background: var(--primary-50); }

/* ----------------------------------------------------------------------------- alerts / flash */
.alert { position: relative; display: block; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; border: 1px solid; font-size: .9375rem; line-height: 1.55; }
.alert:has(> .alert-icon) { display: flex; gap: 12px; align-items: flex-start; }
.alert-icon { flex: 0 0 auto; margin-top: 2px; }
.alert > :last-child { margin-bottom: 0; }
.alert ul { margin: 6px 0 0; }
.alert a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.alert-error, .alert-danger { background: var(--primary-50); border-color: var(--primary-200); color: var(--danger-ink); }
.alert-warn, .alert-warning { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.alert-info { background: #F0F9FF; border-color: #BAE6FD; color: #0C4A6E; }
.alert-primary { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.alert-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: inherit; opacity: .6; cursor: pointer; }
.alert-close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.alert.has-close { padding-right: 46px; }
.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 16px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { margin: 0; box-shadow: var(--shadow-lg); animation: flash-in .3s var(--ease); }
.flash-stack .alert.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }
.flash-inline { margin-bottom: 24px; }

/* ----------------------------------------------------------------------------- tables */
/* position: relative keeps absolutely positioned descendants (.sr-only labels) inside the scroller, so a wide table never widens the page */
.table-wrap { position: relative; width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); scrollbar-width: thin; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--surface); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFAFA; }
.table .num, .table .text-right { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-main { min-width: 14rem; }
.table .cell-main strong { display: block; color: var(--ink); }
.table .cell-main span { display: block; font-size: .8125rem; color: var(--muted); }
.fee-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.fee-table th, .fee-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.fee-table th { background: var(--surface); font-family: var(--font-head); color: var(--ink); font-size: .9rem; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-table td.amount { text-align: right; font-weight: 700; white-space: nowrap; color: var(--ink); }
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table-stack td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8125rem; text-align: left; }
  .table-stack td.cell-main { display: block; text-align: left; }
  .table-stack td.cell-main::before { content: none; }
}

/* ----------------------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; }
.pagination li { margin: 0; }
.page-link { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: border-color .15s, background .15s, color .15s; }
a.page-link:hover { border-color: var(--primary-200); color: var(--primary); background: var(--primary-50); }
.page-link.is-active, .page-link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-link.is-disabled { opacity: .45; pointer-events: none; }
.page-gap { color: var(--muted); padding: 0 4px; }

/* ----------------------------------------------------------------------------- empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 24px; background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-state .icon-tile { width: 64px; height: 64px; border-radius: 18px; font-size: 1.5rem; margin-bottom: 6px; }
.empty-state h2, .empty-state h3 { font-size: 1.2rem; margin: 0; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0; }
.empty-state .btn-group { margin-top: 10px; justify-content: center; }
.empty-state-sm { padding: 32px 20px; }

/* ----------------------------------------------------------------------------- detail layout */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.detail-main > section + section, .detail-block + .detail-block { margin-top: 44px; }
.detail-main > h2 { margin-top: 44px; font-size: 1.5rem; }
.detail-main > h2:first-child { margin-top: 0; }
.detail-block h2 { font-size: 1.375rem; margin-bottom: 16px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.side-card h2, .side-card h3 { font-size: 1.075rem; margin-bottom: 14px; }
.side-card p { margin-bottom: 14px; }
.side-card > :last-child { margin-bottom: 0; }
.side-card-price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 4px; }
.side-card-price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.side-card .btn + .btn { margin-top: 10px; }
.side-card-soft { background: var(--surface); box-shadow: none; }
.side-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.side-dark h2, .side-dark h3 { color: #fff; }
.side-dark a:not(.btn) { color: var(--primary); }
.side-dark .reg-summary dt, .side-dark .reg-summary dd { color: #fff; }
.key-facts, .facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 0; }
.key-facts li, .facts li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; margin: 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.key-facts li:last-child, .facts li:last-child { border-bottom: 0; }
.key-facts i, .facts i { color: var(--primary); width: 20px; text-align: center; margin-top: 4px; flex: 0 0 20px; }
.key-facts .k { color: var(--muted); flex: 0 0 auto; }
.key-facts .v { margin-left: auto; color: var(--ink); font-weight: 600; text-align: right; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin: 0; }
.side-links li + li { border-top: 1px solid var(--border); }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; color: var(--ink); font-weight: 600; }
.side-links a i { color: var(--primary); width: 20px; text-align: center; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--primary-600); }
.contact-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.contact-lines li { margin: 0; }
.contact-lines i { color: var(--primary); width: 20px; }
.detail-figure { margin: 24px 0; }
.detail-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.detail-figure figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.dl-list, .reg-summary { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 20px; margin: 0 0 20px; }
.dl-list dt, .reg-summary dt { font-weight: 600; color: var(--muted); font-size: .9rem; }
.dl-list dd, .reg-summary dd { margin: 0; color: var(--ink); word-break: break-word; }
.reg-no { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: .02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mobile-cta { display: none; }
@media (max-width: 1080px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; } }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
  .mobile-cta { display: flex; position: sticky; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
}
@media (max-width: 640px) { .dl-list, .reg-summary { grid-template-columns: minmax(0, 1fr); gap: 2px; } .dl-list dd, .reg-summary dd { margin-bottom: 10px; } }

/* events module layout (kept for event.php / registration.php markup) */
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
.event-aside { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1080px) { .event-layout { grid-template-columns: minmax(0, 1fr); } .event-aside { position: static; } }
.pay-box { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: start; background: var(--surface); }
.pay-box .qr { background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.pay-box .qr img, .pay-box .qr svg { width: 170px; height: auto; display: block; }
.pay-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.pay-box dt { font-weight: 600; color: var(--ink); }
.pay-box dd { margin: 0; white-space: pre-line; word-break: break-word; }
@media (max-width: 640px) { .pay-box { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
.apply-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 1px solid var(--primary-100); background: var(--grad-soft); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 40px; }
.apply-box p { margin: 0; font-weight: 600; color: var(--ink); }
@media (min-width: 901px) { .apply-box.hide-lg { display: none; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink-2); word-break: break-word; }
.contact-card a:hover { color: var(--primary-600); }
.map-frame { width: 100%; min-height: 380px; border: 0; border-radius: var(--radius-lg); display: block; }
.rounded-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.person h3 { margin: 14px 0 2px; font-size: 1.05rem; }
.person p { color: var(--primary-600); font-weight: 600; margin: 0; font-size: .9rem; }

/* ----------------------------------------------------------------------------- student dashboard */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px 0 72px; }
.dash-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--grad-soft); border: 1px solid var(--primary-100); border-radius: var(--radius-lg); }
.dash-user strong { display: block; color: var(--ink); line-height: 1.3; }
.dash-user span:not(.avatar) { display: block; font-size: .8125rem; color: var(--muted); word-break: break-all; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .9375rem; background: none; border: 0; font-family: inherit; width: 100%; text-align: left; cursor: pointer; }
.dash-nav a i, .dash-nav button i { width: 18px; text-align: center; color: var(--muted); }
.dash-nav a:hover, .dash-nav button:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a.is-active, .dash-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary-700); font-weight: 600; }
.dash-nav a.is-active i, .dash-nav a[aria-current="page"] i { color: var(--primary); }
.dash-nav .badge { margin-left: auto; }
.dash-nav hr { margin: 6px 4px; }
.dash-nav form { margin: 0; }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.dash-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.dash-head p { margin: 4px 0 0; color: var(--muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.dash-card-head h2 { font-size: 1.05rem; margin: 0; }
.dash-card-body { padding: 20px; }
.dash-card .table-wrap { border: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: none; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--border); }
.dash-list > li:last-child { border-bottom: 0; }
.dash-list .dl-main { flex: 1 1 180px; min-width: 0; }
.dash-list .dl-main strong { display: block; color: var(--ink); }
.dash-list .dl-main span { display: block; font-size: .8125rem; color: var(--muted); }
.next-step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--primary-100); }
.next-step .flex-1 strong { display: block; color: var(--ink); }
.next-step .flex-1 span { color: var(--muted); font-size: .9rem; }
.dash-tabs { display: none; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .dash-side { position: static; }
  .dash-user { display: none; }
  .dash-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a, .dash-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; padding: 8px 12px; }
  .dash-nav hr { display: none; }
  .next-step { flex-wrap: wrap; }
}

/* ----------------------------------------------------------------------------- CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; padding: 48px 52px; border-radius: var(--radius-xl); background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(500px 260px at 0% 0%, rgba(255, 0, 0, .55), transparent 70%), radial-gradient(500px 300px at 100% 100%, rgba(255, 0, 0, .38), transparent 70%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-band > div:first-child { max-width: 640px; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.cta-band p { margin: 0; color: var(--on-dark); font-size: 1.05rem; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-band .actions, .cta-band .actions .btn { width: 100%; } }

/* ----------------------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--black); color: var(--footer-text); padding: 72px 0 0; font-size: .9375rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 360px; z-index: -1; background: radial-gradient(600px 240px at 15% 0%, rgba(255, 0, 0, .16), transparent 70%), radial-gradient(500px 220px at 90% 0%, rgba(255, 0, 0, .10), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer-brand img { width: 160px; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 18px; max-width: 320px; line-height: 1.7; }
.footer-tagline { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 8px !important; }
.site-footer h2, .site-footer h4 { color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 16px; font-family: var(--font-head); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links li { margin: 0; }
.site-footer a { color: var(--footer-text); transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.footer-contact i { color: var(--primary); width: 16px; margin-top: 5px; text-align: center; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #E5E5E5; display: inline-grid; place-items: center; font-size: .95rem; transition: background .15s, transform .15s, border-color .15s; }
.social a:hover { background: var(--primary); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-wing { margin-top: 48px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); background: rgba(255, 255, 255, .03); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-wing i { color: var(--primary); }
.footer-wing a { color: #fff; font-weight: 600; }
/* copyright bar: the live-site black-to-red gradient, full width */
.footer-bottom-bar { margin-top: 28px; background: var(--grad-rev); color: #fff; }
.footer-bottom { padding-top: 18px; padding-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .875rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .footer-bottom-bar a { color: #fff; }
.site-footer .footer-bottom-bar a:hover { color: var(--yellow); }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } .site-footer { padding-top: 56px; } }

/* floating buttons stack in the bottom-right corner (WhatsApp, then back-to-top above it), clear of
   left-aligned text and CTAs; on phones with the sticky .mobile-cta bar WhatsApp hides (it is in the
   footer and on /contact) and back-to-top sits above the bar. */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; background: #000; color: #fff; display: inline-grid; place-items: center; font-size: 1.4rem; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .18s; }
.wa-float:hover { background: #FF0000; color: #fff; transform: translateY(-2px); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s, background .15s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s, background .15s; }
.back-to-top:hover { background: var(--primary); color: #fff; }
.wa-float ~ .back-to-top { bottom: 78px; }
@media (max-width: 900px) {
  .has-mobile-cta .wa-float { display: none; }
  .has-mobile-cta .back-to-top { bottom: 84px; }
}

/* ----------------------------------------------------------------------------- misc components */
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; margin: 20px 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.copy-field { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 6px 6px 6px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
/* width 0 + flex-grow: a long URL never widens its card (no min-content contribution) */
.copy-field code { flex: 1 1 0; width: 0; min-width: 0; background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-copy].is-copied { color: var(--success) !important; border-color: #BBF7D0 !important; }
.kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; font-family: var(--font-mono); font-size: .8em; }
.progress { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-btn); border-radius: inherit; }
.seats { display: flex; flex-direction: column; gap: 6px; font-size: .8125rem; color: var(--muted); }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.verify-widget { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-widget input { flex: 1 1 220px; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.blob-bg { position: relative; isolation: isolate; }
.blob-bg::before { content: ""; position: absolute; inset: -10% -5%; z-index: -1; background: radial-gradient(closest-side, rgba(255, 0, 0, .14), transparent); filter: blur(10px); }

/* ----------------------------------------------------------------------------- reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .06s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .12s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .18s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > *:nth-child(n+6) { transition-delay: .3s; }

/* ----------------------------------------------------------------------------- utilities */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px !important; } .mt-2 { margin-top: 16px !important; } .mt-3 { margin-top: 24px !important; } .mt-4 { margin-top: 40px !important; } .mt-5 { margin-top: 56px !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px !important; } .mb-2 { margin-bottom: 16px !important; } .mb-3 { margin-bottom: 24px !important; } .mb-4 { margin-bottom: 40px !important; } .mb-5 { margin-bottom: 56px !important; }
.pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; } .maxw-sm { max-width: 560px; } .maxw-md { max-width: 760px; }
.d-none { display: none !important; } .d-block { display: block; } .d-flex { display: flex; } .d-grid { display: grid; } .d-inline-flex { display: inline-flex; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.rounded { border-radius: var(--radius); } .rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); } .shadow-lg { box-shadow: var(--shadow-lg); }
.bg-surface { background: var(--surface); } .bg-white { background: #fff; } .bg-grad-soft { background: var(--grad-soft); }
.border { border: 1px solid var(--border); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 641px) { .show-sm { display: none !important; } }
@media (max-width: 900px) { .hide-md { display: none !important; } }

/* ----------------------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .feature-tile:hover { transform: none; }
}
@media print {
  .announce, .site-header, .site-footer, .back-to-top, .wa-float, .flash-stack, .mobile-cta, .no-print, .dash-side { display: none !important; }
  body { color: #000; background: #fff; }
  .hero, .page-hero { background: #fff !important; color: #000; padding: 16px 0; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after { display: none; }
  .card, .side-card, .panel { box-shadow: none; break-inside: avoid; }
  .dash { display: block; padding: 0; }
}
