/* ==========================================================================
   earnX.ai — Base styles (tokens, reset, typography, layout, shared components)
   Headings: Instrument Sans · Body/UI: Plus Jakarta Sans
   Design reference: Figma "Website Black Neon Theme" (1440px artboards)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours */
  --lime: #c6f432;            /* primary CTA / accents */
  --lime-600: #b4de2e;        /* lines, dots */
  --lime-700: #8dad24;        /* accent text on light bg */
  --olive: #6d861c;           /* icons */
  --green-ink: #638d00;       /* positive numbers */
  --success: #007a00;         /* completed form steps, success text */
  --purple: #35029e;          /* outcome text */
  --violet: #3d01b4;          /* step label */
  --danger: #ab0000;

  /* Neutrals */
  --black: #000000;
  --ink: #242424;             /* primary text */
  --muted: #8a8a8a;           /* secondary text */
  --muted-2: #848484;
  --line: #dadada;
  --line-2: #e3e3e3;
  --input-border: #c8c8c8;
  --white: #ffffff;

  /* Surfaces */
  --mint: #f9feeb;            /* light lime surface */
  --mint-2: #f4ffdc;          /* highlight chip bg */
  --mint-3: #edfcbf;          /* decorative ellipse */
  --gray-50: #f9f9f9;
  --gray-100: #f2f2f2;
  --dark-1: #1f1f1f;
  --dark-2: #242424;

  /* Gradients */
  --grad-cta: linear-gradient(180deg, #c6f432 0%, #aad12b 100%);
  --grad-footer-wash: linear-gradient(180deg, #ffffff 0%, #f8ffe5 100%);

  /* Typography */
  --font-head: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale — tuned so 1280–1440px laptops get comfortable, standard sizes.
     Figma px value noted on the right. */
  --fs-display: clamp(2.125rem, 1.4vw + 1.35rem, 3rem);     /* 52 → max 48 */
  --fs-h2:      clamp(1.75rem, 0.9vw + 1.1rem, 2.375rem);   /* 40 → max 38 */
  --fs-h3:      clamp(1.5rem, 0.7vw + 1rem, 2rem);          /* 36 → max 32 */
  --fs-h4:      clamp(1.25rem, 0.5vw + 0.85rem, 1.625rem);  /* 28 → max 26 */
  --fs-h5:      clamp(1.125rem, 0.35vw + 0.85rem, 1.375rem);/* 24 → max 22 */
  --fs-h6:      clamp(1.0625rem, 0.2vw + 0.9rem, 1.1875rem);/* 20 → max 19 */
  --fs-lg:      clamp(0.9375rem, 0.15vw + 0.85rem, 1.0625rem); /* 18 → max 17 */
  --fs-md:      clamp(0.875rem, 0.1vw + 0.82rem, 0.9375rem);   /* 16 → max 15 */
  --fs-sm:      0.875rem;                                    /* 14 */
  --fs-xs:      0.75rem;                                     /* 12 */
  --fs-stat:    clamp(1.875rem, 1vw + 1.2rem, 2.375rem);     /* 40 → max 38 */

  /* Spacing */
  --container: 1224px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 7vw, 110px);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Elevation */
  --shadow-btn: 0 6px 26px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 10px 60px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);

  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::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: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime-700); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight-top { padding-top: calc(var(--section-y) * 0.5); }
main { display: block; }

/* ---------- Typography ---------- */
.display, .h2, .h3 { font-family: var(--font-head); font-weight: 700; color: var(--black); letter-spacing: -0.01em; }
.display { font-size: var(--fs-display); line-height: 1.2; }
.h2 { font-size: var(--fs-h2); line-height: 1.25; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--muted); font-weight: 500; }
.eyebrow { font-size: var(--fs-md); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--black); }
.text-muted { color: var(--muted); }

/* Section header (title + subtitle) */
.section-head { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head p { font-size: var(--fs-lg); color: var(--muted); font-weight: 500; }
.section-head--split { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; gap: 24px; }
.section-head--split > div { display: flex; flex-direction: column; gap: 10px; }

/* Highlighted heading word (lime box with corner dots) */
.hl { display: inline-block; background: var(--mint-2); color: var(--lime-700); padding: 0.12em 0.5em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--black);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; white-space: nowrap;
  box-shadow: var(--shadow-btn);
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(141, 173, 36, .35); }
.btn:active { transform: translateY(0); }
/* Hover sheen — matches the Smart-Animate hover variant on the Figma button */
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn--white { --btn-bg: var(--white); }
.btn--white:hover { box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.btn--outline { --btn-bg: var(--white); border: 1px solid #b0b0b0; box-shadow: 0 6px 26px rgba(0,0,0,.03); }
.btn--outline-lime { --btn-bg: var(--white); border: 1px solid var(--lime-600); box-shadow: none; }
.btn--sm { min-height: 46px; padding: 10px 20px; font-size: var(--fs-md); }
.btn--ghost { box-shadow: none; }
.btn .icon { width: 22px; height: 22px; }

/* Header CTA with periodic shine sweep (Figma: Component 60864, after-timeout loop) */
.btn--shine::before {
  content: ""; position: absolute; top: -12px; bottom: -12px; left: -70px; width: 46px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.9) 0 6px, transparent 6px 13px, rgba(255,255,255,.9) 13px 23px, transparent 23px);
  transform: skewX(-20deg);
  animation: shine 6.5s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -70px; } 92%, 100% { left: calc(100% + 30px); } }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 110px; padding: 12px 20px;
  border-radius: 40px; border: 1px solid #d7d7d7; background: var(--white); color: var(--muted);
  font-weight: 500; font-size: var(--fs-md); transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { color: var(--black); border-color: #bdbdbd; }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); font-weight: 700; }

/* ---------- Icon helpers ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-tile { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: var(--mint); flex: none; }
.icon-tile img { width: 32px; height: 32px; }
.icon-ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 0.9px solid #e4e4e4; flex: none; }
.icon-ring img { width: 32px; height: 32px; }
.tick { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); flex: none; }
.tick img { width: 13px; height: 13px; }
.tick--off { background: #e1e1e1; }

/* ---------- Grid background (hero pattern) ---------- */
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1080px; height: 100%; transform: translateX(-50%);
  background-image:
    linear-gradient(to right, rgba(0,0,0,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 55% at 50% 40%, #000 30%, transparent 75%);
}
.grid-bg i { position: absolute; width: 48px; height: 48px; background: var(--mint); animation: cellPulse 6s ease-in-out infinite; }
@keyframes cellPulse { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); color: var(--white); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: stretch; height: 100%; }
.nav__item { position: relative; display: flex; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 clamp(14px, 2vw, 30px); height: var(--header-h);
  font-size: var(--fs-md); font-weight: 500; line-height: 1; color: var(--white); white-space: nowrap; transition: color .25s;
}
/* underline that grows from the centre on hover / active */
.nav__link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--lime); transition: left .35s var(--ease), right .35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after, .nav__item.is-open > .nav__link::after { left: 0; right: 0; }
.nav__link .icon { width: 18px; height: 18px; display: block; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--lime); }
.nav__link:hover .icon { filter: invert(84%) sepia(56%) saturate(600%) hue-rotate(20deg) !important; }
.nav__link.is-active, .nav__item.is-open > .nav__link { color: var(--lime); font-weight: 600; }
.nav__item.is-open > .nav__link .icon { transform: rotate(180deg); }
.header-cta { min-height: 42px; padding: 10px 18px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mega dropdown (Company / Resources) */
.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 99;
  background: var(--black); border-bottom: 1px solid #2c2c2c; border-radius: 0 0 40px 40px; box-shadow: 0 10px 44px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 220px minmax(0, 400px) 320px; justify-content: space-between; align-items: center; gap: 40px; padding-block: 20px 24px; }
.mega__intro h3 { font-size: 20px; font-weight: 700; color: var(--white); line-height: 1.25; }
.mega__intro p { margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.mega__links { display: flex; flex-direction: column; gap: 4px; }
.mega-link { display: flex; align-items: center; gap: 18px; padding: 10px 12px; border-radius: 12px; transition: background .25s; }
.mega-link:hover { background: #151515; }
.mega-link .mega-link__icon { display: grid; margin: 0; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--dark-2); flex: none; }
.mega-link__icon img { width: 26px; height: 26px; display: block; }
.mega-link strong { display: block; font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.25; }
.mega-link > span:not(.mega-link__icon) span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }
.mega-link:hover strong { color: var(--lime); }
.mega-card { display: grid; grid-template-columns: 130px 1fr; min-height: 150px; border-radius: 11px; overflow: hidden; background: var(--dark-1); border: .9px solid #575757; }
.mega-card img { width: 100%; height: 100%; object-fit: cover; }
.mega-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.mega-card__body small { font-size: 13px; color: #b0b0b0; font-weight: 500; }
.mega-card__body p { margin-top: 6px; font-size: 15.5px; font-weight: 600; color: var(--white); line-height: 1.25; }
.mega-card__body span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--lime); font-weight: 500; }
.mega-card__body span img { width: 20px; height: 20px; transition: transform .25s; }
.mega-card:hover .mega-card__body span img { transform: translateX(4px); }
.page-dim { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,.8); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mega-open .page-dim { opacity: 1; visibility: visible; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-footer-wash); padding: clamp(48px, 7vw, 100px) clamp(12px, 2vw, 28px) 28px; }
.footer-card { background: var(--black); color: var(--white); border-radius: 40px; padding: clamp(40px, 5vw, 72px) clamp(24px, 6.7vw, 96px) clamp(32px, 4vw, 56px); }
.footer-card__inner { max-width: 1192px; margin-inline: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 637px); justify-content: space-between; gap: 40px; }
.footer-brand img { height: 50px; width: auto; }
.footer-brand p { margin-top: 24px; font-size: var(--fs-md); line-height: 1.45; font-weight: 500; }
.socials { display: flex; gap: 14px; margin-top: 32px; }
.socials a { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .25s, transform .25s; }
.socials a:hover { background: var(--lime); transform: translateY(-2px); }
.socials a:hover img { filter: brightness(0); }
.socials img { width: 16px; height: 16px; }
.footer-links { display: flex; justify-content: space-between; gap: 32px; padding-top: 74px; }
.footer-links ul { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: var(--fs-lg); font-weight: 500; transition: color .2s; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.35); text-align: center; }
.footer-bottom p { font-size: var(--fs-lg); font-weight: 500; }
.footer-bottom small { display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.9); font-weight: 500; }

/* ---------- CTA banner (shared across pages) ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-md); border: 1px solid #e6e6e6; background: var(--grad-cta); isolation: isolate; }
.cta-banner__waves { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 62%); mask-image: linear-gradient(to left, #000 25%, transparent 62%); }
.cta-banner__waves--left { -webkit-mask-image: linear-gradient(to right, #000 22%, transparent 55%); mask-image: linear-gradient(to right, #000 22%, transparent 55%); }
.cta-banner__waves svg { position: absolute; top: 0; height: 100%; width: auto; }
.cta-banner--center { padding: clamp(40px, 4vw, 48px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.cta-banner--center .eyebrow { font-size: var(--fs-md); }
.cta-banner--center h2 { margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 1.4vw + 1.3rem, 2.75rem); line-height: 1.2; max-width: 480px; color: var(--black); }
.cta-banner--media { display: grid; grid-template-columns: minmax(0, 448px) 1fr; align-items: center; gap: clamp(24px, 3.5vw, 44px); padding: 24px; }
.cta-banner--media .cta-banner__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 448 / 231; }
.cta-banner--media .cta-banner__img img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner--media h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; color: var(--black); }
.cta-banner--media .btn { margin-top: 28px; }

/* ---------- Generic cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.float-card { background: var(--white); border-radius: 8px; box-shadow: var(--shadow-btn); padding: 16px 22px; font-family: var(--font-head); }
.pill-stat { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 96px; background: #f4ffdb; color: var(--green-ink); font-family: var(--font-head); font-weight: 600; font-size: 13px; }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; border: 1.2px solid var(--white); object-fit: cover; background: #7d7d7d; }
.avatars img + img { margin-left: -10px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.modal__dialog { position: relative; width: min(1133px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: var(--radius); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.15); color: var(--white); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: background .2s; }
.modal__close:hover { background: rgba(255,255,255,.3); }
.modal__close--dark { color: var(--ink); background: var(--gray-100); }
.modal__close--dark:hover { background: #e5e5e5; }
.modal--sm .modal__dialog { width: min(512px, 100%); }

/* Success popup */
.success { padding: 32px 31px 42px; text-align: center; }
.success__anim { width: 150px; height: 150px; margin: 0 auto 16px; }
.success__anim circle { stroke-dasharray: 300; stroke-dashoffset: 300; }
.success__anim path { stroke-dasharray: 80; stroke-dashoffset: 80; }
.modal.is-open .success__anim circle { animation: drawCircle .7s .1s var(--ease) forwards; }
.modal.is-open .success__anim path { animation: drawCheck .45s .7s var(--ease) forwards; }
.modal.is-open .success__burst { animation: burst .9s .65s ease-out forwards; }
.success__burst { transform-origin: 75px 75px; opacity: 0; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
.success h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-h4); line-height: 1.25; color: var(--success); }
.success p { margin-top: 12px; font-size: var(--fs-lg); line-height: 1.5; color: var(--muted); font-weight: 500; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); text-transform: capitalize; }
.field__label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--input-border); background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); text-transform: capitalize; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
.textarea::placeholder { text-transform: none; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--lime-700); box-shadow: 0 0 0 3px rgba(198, 244, 50, .35); }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--white) url("../images/icons/chevron.svg") no-repeat right 14px center / 20px; cursor: pointer; }
.select:invalid { color: var(--muted); }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(171, 0, 0, .12) !important; }
.field__error { font-size: 12px; color: var(--danger); margin-top: -2px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 20px; border-radius: 64px;
  border: 1px solid var(--input-border); background: var(--white); color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-transform: capitalize;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.pill span:hover { border-color: #9a9a9a; color: var(--ink); }
.pill input:checked + span { background: var(--gray-100); border-color: var(--black); color: var(--black); }
.pill input:focus-visible + span { outline: 2px solid var(--lime-700); outline-offset: 2px; }
.pills--compact .pill span { min-width: 53px; padding-inline: 16px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--black); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; flex: none; border-radius: 3px; border: 1.5px solid var(--lime-700); background: var(--white); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--lime-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.upload { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--lime-700); background: var(--mint); color: var(--lime-700); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: background .2s; }
.upload:hover { background: #f1fbd2; }
.upload img { width: 20px; height: 20px; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__name { margin-left: auto; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive: header & footer ---------- */
@media (max-width: 1180px) {
  .mega__inner { grid-template-columns: 200px minmax(0, 1fr) 320px; gap: 24px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: auto; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    flex-direction: column; background: var(--black); padding: 8px var(--gutter) 24px; border-radius: 0 0 24px 24px;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__item { flex-direction: column; }
  .nav__link { height: 56px; padding: 0; justify-content: space-between; border-bottom: 1px solid #222; }
  .nav__link::after { display: none; }
  .mega { position: static; transform: none; border-radius: 0; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; background: transparent; }
  .nav__item.is-open .mega { display: block; }
  .mega__inner { width: 100%; grid-template-columns: 1fr; padding-block: 12px; gap: 12px; }
  .mega__intro, .mega-card { display: none; }
  .mega-link { padding: 10px 0; gap: 16px; }
  .mega-link .mega-link__icon { width: 48px; height: 48px; }
  .mega-link__icon img { width: 26px; height: 26px; }
  .page-dim { display: none; }
  .header-actions .header-cta { display: none; }
  .nav .header-cta--mobile { display: inline-flex; margin-top: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { padding-top: 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .cta-banner--media { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-banner--media .cta-banner__img { width: 100%; max-width: 560px; }
}
@media (min-width: 1024px) { .header-cta--mobile { display: none; } }
@media (max-width: 640px) {
  .footer-card { border-radius: 28px; }
  .footer-links { flex-wrap: wrap; gap: 28px 40px; justify-content: flex-start; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-width: auto; }
  .btn { min-height: 48px; padding: 10px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
