/* ==========================================================================
   Monetize.com design system (DES-1581)
   Modern minimalist: light surfaces, thin borders, one indigo accent from the logo.

   Contents
   1. Tokens          5. Cards, grid, icons     9. Footer
   2. Base            6. Status labels & tags  10. Dialog & form fields
   3. Typography      7. Utility row & header  11. Motion preferences
   4. Buttons, links  8. Navigation & menus

   Breakpoints: 1180 (wide) · 1080 (nav collapses) · 960 (layouts stack) · 640 (mobile)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Color — drawn from the Monetize.com logo gradient
     (#3323C2 indigo · #9317EB violet · #635FEE periwinkle · #1EB3E9 cyan) */
  --c-bg: #FCFCFE;          /* primary background */
  --c-bg-2: #F5F5FA;        /* secondary background */
  --c-card: #FFFFFF;
  --c-ink: #161A2E;         /* primary text (deep ink) */
  --c-ink-2: #5F6478;       /* secondary text (slate) */
  --c-line: #E6E7F0;        /* borders */
  --c-line-2: #D3D5E3;      /* stronger borders, inputs */
  --c-accent: #3323C2;      /* indigo: primary actions, active states, key links */
  --c-accent-h: #2A1BA3;    /* indigo hover */
  --c-violet: #9317EB;      /* logo violet: tiny highlights only */
  --c-cyan: #1EB3E9;        /* logo cyan: tiny highlights only */
  --c-brand-grad: linear-gradient(90deg, #3323C2, #9317EB 55%, #635FEE 80%, #1EB3E9);
  --c-sage: #E4E2FA;        /* soft indigo (stronger tint) */
  --c-mint: #F0EFFC;        /* pale indigo (tint surface) */
  --c-sand: #F3EEE6;        /* neutral warm, used for sponsored/ad context */
  --c-warn-ink: #7A5200;    /* pending / unverified labels */
  --c-warn-bg: #FBF3E2;
  --c-err: #B42318;
  --c-err-bg: #FEF3F2;

  /* Type */
  --f: "Inter", "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --t-h1: clamp(2.5rem, 4.4vw, 3.5rem);
  --t-h2: clamp(1.75rem, 2.6vw, 2.25rem);
  --t-h3: 1.125rem;
  --t-lede: 1.0625rem;
  --t-body: 1rem;
  --t-sm: .875rem;
  --t-xs: .75rem;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;
  --sec-y: clamp(40px, 4.5vw, 64px);   /* one vertical rhythm for every section */

  /* Shape & depth */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --sh-1: 0 1px 2px rgba(23, 33, 43, .05);
  --sh-card: 0 1px 2px rgba(22, 26, 46, .04), 0 4px 14px -8px rgba(22, 26, 46, .10);
  --sh-2: 0 12px 32px -16px rgba(23, 33, 43, .18);

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px rgba(51, 35, 194, .25);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html body #hubspot-messages-iframe-container { display: none !important; } /* HubSpot chat is off for now: src/components/HubSpotTracking.tsx */
body {
  margin: 0; background: var(--c-bg); color: var(--c-ink);
  font-family: var(--f); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--c-sage); color: var(--c-ink); }

.mz-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mz-skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--c-ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.mz-skip:focus { top: 12px; }
.mz-ico { width: 20px; height: 20px; flex: none; }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--c-ink); }
h1 { font-size: var(--t-h1); line-height: 1.08; letter-spacing: -.032em; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -.024em; }
h3 { font-size: var(--t-h3); line-height: 1.35; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 var(--s-3); font-size: var(--t-sm); font-weight: 500; color: var(--c-accent); }
.eyebrow--caps { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.note { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--c-ink-2); }

/* 4. Buttons & links -------------------------------------------------------- */
.mz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.mz-btn .mz-ico { width: 18px; height: 18px; }
.mz-btn--lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.mz-btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 1px 2px rgba(22, 26, 46, .12), 0 8px 18px -10px rgba(51, 35, 194, .7); }
.mz-btn--white { background: #fff; color: var(--c-accent); }
.mz-btn--white:hover { background: #F0EFFC; }
.mz-btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.mz-btn--light:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.mz-btn--primary:hover { background: var(--c-accent-h); }
.mz-btn--secondary { background: var(--c-card); color: var(--c-ink); border-color: var(--c-line-2); }
.mz-btn--secondary:hover { border-color: var(--c-ink-2); }
.mz-btn--ghost { background: none; color: var(--c-ink); padding: 0 12px; }
.mz-btn--ghost:hover { background: var(--c-bg-2); }
.mz-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.mz-btn[disabled], .mz-btn.is-loading { opacity: .7; pointer-events: none; }

.mz-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font-size: inherit; font-weight: 500; color: var(--c-accent); text-decoration: none;
}
.mz-link .mz-ico { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.mz-link:hover { color: var(--c-accent-h); text-decoration: underline; text-underline-offset: 3px; }
.mz-link:hover .mz-ico { transform: translateX(2px); }
.mz-link--quiet { color: var(--c-ink-2); }
.mz-link--quiet:hover { color: var(--c-ink); }

/* 5. Cards, grid, icons ----------------------------------------------------- */
.grid { display: grid; gap: var(--s-6); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; padding: var(--s-6);
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-card);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.card::before {
  /* Hover accent: a 3px gradient edge that follows the card's rounded top corners (masked ring, top side only). */
  content: ""; position: absolute; inset: -1px; padding-top: 3px; border-radius: inherit; pointer-events: none;
  background: var(--c-brand-grad); opacity: 0; transition: opacity .2s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: #CFCAF4; box-shadow: 0 1px 2px rgba(22, 26, 46, .04), 0 18px 36px -22px rgba(51, 35, 194, .35); transform: translateY(-2px); }
.card__title { margin-top: var(--s-4); font-size: 1.0625rem; }
.card__text { margin-top: var(--s-3); margin-bottom: var(--s-5); color: var(--c-ink-2); font-size: .9375rem; }
.card__meta { margin: calc(var(--s-2) * -1) 0 var(--s-5); padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-bg-2); font-size: .8125rem; color: var(--c-ink-2); }
.card__link, .card__links {
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--c-line);
}
.card__link { display: flex; justify-content: space-between; width: 100%; }
.card__link .mz-ico { transition: transform .2s var(--ease); }
.card:hover .card__link .mz-ico { transform: translateX(3px); }
.card--link .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__row { display: flex; align-items: center; gap: var(--s-3); }
.card__row .card__title { margin: 0; }

.ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: linear-gradient(135deg, #EEEBFF, #E5F5FC); color: var(--c-accent);
  transition: background .2s, color .2s;
}
.ico .mz-ico { width: 21px; height: 21px; }
.ico--sm { width: 38px; height: 38px; border-radius: 10px; }
.ico--sm .mz-ico { width: 18px; height: 18px; }
.card:hover .ico { background: var(--c-accent); color: #fff; }

@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* 6. Status labels & tags --------------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 3px 8px; border-radius: 6px; background: var(--c-bg-2);
  font-size: var(--t-xs); font-weight: 500; color: var(--c-ink-2); white-space: nowrap;
}
.status--pending { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.status--pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.tag { display: inline-flex; align-items: center; padding: 1px 5px; border-radius: 4px; font-size: .625rem; font-weight: 600; line-height: 1.4; }
.tag--ad { border: 1px solid currentColor; opacity: .85; }
.tag--sponsored { background: var(--c-sand); color: #6B5A3E; }

/* 7. Utility row & header --------------------------------------------------- */

.mz-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line); }
.mz-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-brand-grad); }
.mz-header.is-scrolled { box-shadow: var(--sh-1); }
.mz-header__inner { display: flex; align-items: center; gap: var(--s-8); height: var(--header-h); }

.mz-brand { display: inline-flex; align-items: center; flex: none; }
.mz-brand img { height: 32px; width: auto; }

/* 8. Navigation & menus ----------------------------------------------------- */
.mz-nav { display: flex; align-items: center; flex: 1; gap: var(--s-4); }
.mz-nav__list { display: flex; align-items: center; gap: 2px; }
.mz-nav__link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--r-sm); background: none; text-decoration: none;
  font-size: .9063rem; font-weight: 500; color: var(--c-ink-2);
  transition: color .15s, background-color .15s;
}
.mz-nav__link:hover, .mz-nav__link[aria-expanded="true"] { color: var(--c-ink); background: var(--c-bg-2); }
.mz-nav__link.is-active, .mz-nav__link.is-current { color: var(--c-accent); }
.mz-btn--ghost .mz-ico { width: 16px; height: 16px; }
.mz-nav__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.mz-caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s var(--ease); }
[aria-expanded="true"] > .mz-caret { transform: rotate(180deg); }

.mz-dd { position: relative; }
.mz-dd__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 110; display: none; padding: var(--s-2);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--sh-2);
}
.mz-dd.is-open > .mz-dd__panel { display: block; }

.mz-mega { width: min(780px, 90vw); padding: var(--s-3); }
.mz-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mz-mega__item { display: flex; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-sm); text-decoration: none; }
.mz-mega__item > .mz-ico { margin-top: 2px; color: var(--c-accent); }
.mz-mega__item strong { display: block; font-size: .875rem; font-weight: 600; }
.mz-mega__item small { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--c-ink-2); }
.mz-mega__item:hover { background: var(--c-bg-2); }
.mz-mega__foot { display: flex; gap: var(--s-6); margin-top: var(--s-2); padding: var(--s-3); border-top: 1px solid var(--c-line); font-size: .875rem; }

.mz-list-panel { min-width: 250px; }
.mz-list-panel a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: .9063rem; text-decoration: none; }
.mz-list-panel a:hover { background: var(--c-bg-2); }

.mz-login__panel { left: auto; right: 0; width: 300px; }
.mz-login__intro { padding: 8px 12px 6px; font-size: .8125rem; color: var(--c-ink-2); }
.mz-login__item { display: grid; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; }
.mz-login__item strong { font-size: .9063rem; font-weight: 600; }
.mz-login__item span { font-size: .8125rem; color: var(--c-ink-2); }
a.mz-login__item:hover { background: var(--c-bg-2); }
.mz-login__item.is-pending { cursor: not-allowed; }
.mz-login__item.is-pending strong::after { content: "Link pending"; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--c-warn-bg); color: var(--c-warn-ink); font-size: .6875rem; font-weight: 500; vertical-align: 1px; }

.mz-burger { display: none; margin-left: auto; width: 42px; height: 42px; padding: 13px 11px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; flex-direction: column; justify-content: space-between; }
.mz-burger span { display: block; height: 2px; border-radius: 2px; background: var(--c-ink); transition: transform .2s var(--ease), opacity .2s; }
.mz-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mz-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mz-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .mz-header__inner { gap: var(--s-5); }
  .mz-nav__link { padding: 0 7px; white-space: nowrap; }
  .mz-nav__actions .mz-btn { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
}
@media (min-width: 1081px) and (max-width: 1180px) {
  /* Six nav items + two actions: tighten so nothing wraps or overflows before the menu collapses at 1080px. */
  .mz-header__inner { gap: var(--s-4); }
  .mz-nav__link { padding: 0 6px; font-size: .875rem; }
  .mz-nav__actions .mz-btn { padding-left: 12px; padding-right: 12px; font-size: .875rem; }
  .mz-nav__actions .mz-btn--ghost .mz-ico { display: none; }
}
@media (max-width: 1080px) {
  .mz-burger { display: flex; }
  .mz-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; display: none;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-8); background: #fff;
  }
  .mz-nav.is-open { display: flex; }
  .mz-nav__list { flex-direction: column; align-items: stretch; }
  .mz-nav__list > li { border-bottom: 1px solid var(--c-line); }
  .mz-nav__link { width: 100%; height: 54px; justify-content: space-between; padding: 0 4px; border-radius: 0; font-size: 1rem; color: var(--c-ink); }
  .mz-nav__link:hover, .mz-nav__link[aria-expanded="true"] { background: none; }
  .mz-dd__panel { position: static; padding: 0 0 var(--s-3); border: 0; box-shadow: none; width: auto; }
  .mz-mega__grid { grid-template-columns: 1fr; }
  .mz-mega__item { padding: 10px 4px; }
  .mz-nav__actions { flex-direction: column; align-items: stretch; gap: var(--s-2); margin: var(--s-5) 0 0; }
  .mz-nav__actions .mz-btn { width: 100%; min-height: 48px; }
  .mz-login > .mz-btn { border: 1px solid var(--c-line-2); }
  .mz-login__panel { width: auto; }
  body.nav-open { overflow: hidden; }
}

/* 9. Footer ---------------------------------------------------------------- */
.mz-footer {
  position: relative; overflow: hidden; padding: var(--s-16) 0 var(--s-6); color: rgba(255, 255, 255, .68); font-size: .9063rem;
  background: radial-gradient(640px 360px at 100% 0%, rgba(147, 23, 235, .28), transparent 70%), radial-gradient(520px 320px at 0% 100%, rgba(30, 179, 233, .16), transparent 70%), #110D35;
}
.mz-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-brand-grad); }
.mz-footer .mz-brand img { height: 30px; filter: brightness(0) invert(1); }
.mz-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.6fr); gap: var(--s-12); }
.mz-footer__brand p { margin-top: var(--s-4); max-width: 34ch; line-height: 1.65; }
.mz-footer__contact { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.mz-footer__contact li { display: flex; align-items: flex-start; gap: var(--s-3); }
.mz-footer__contact .mz-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #A99FFF; }
.mz-footer__contact a, .mz-footer__contact address { color: rgba(255, 255, 255, .86); font-style: normal; line-height: 1.5; text-decoration: none; }
.mz-footer__cta { margin-top: var(--s-6); }
.mz-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.mz-footer__cols h2 { margin-bottom: var(--s-4); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.mz-footer__cols a { display: block; padding: 5px 0; color: rgba(255, 255, 255, .68); text-decoration: none; transition: color .15s; }
.mz-footer a:hover { color: #fff; }
.mz-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-8); margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; }
.mz-footer__bottom p { margin-right: auto; }
.mz-footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.mz-footer__legal a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.mz-footer__social { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-sm); color: #fff; }
.mz-footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.mz-footer__social:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.mz-footer :focus-visible { outline-color: #fff; }
@media (max-width: 960px) {
  .mz-footer__top { grid-template-columns: 1fr; }
  .mz-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s-8); }
}
@media (max-width: 640px) {
  .mz-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-footer__bottom p { width: 100%; }
}

/* 10. Application form & fields -------------------------------------------------- */
.apply { scroll-margin-top: calc(var(--header-h) + 24px); }
.apply__head { margin-bottom: var(--s-5); }
.grad { background: var(--c-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apply__head .eyebrow { margin-bottom: var(--s-2); }
.apply__head h2 { font-size: 1.5rem; }
.apply__lede { margin-top: var(--s-2); color: var(--c-ink-2); font-size: .9375rem; }

.form__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-4); }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-size: .875rem; font-weight: 500; }
.field__label span { font-weight: 400; color: var(--c-ink-2); }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm);
  background: #fff; font-size: .9375rem; transition: border-color .15s, box-shadow .15s;
}
/* Touch screens: iOS Safari zooms into any field under 16px on focus, and the zoomed page shows a horizontal scroll bar while typing. */
@media (pointer: coarse) { .field input, .field select { font-size: 1rem; } }
.field input::placeholder { color: #6B7280; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364717D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.field input:hover, .field select:hover { border-color: var(--c-ink-2); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--c-accent); box-shadow: var(--focus); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--c-err); }
.field__err { font-size: .75rem; line-height: 1.35; color: var(--c-err); }
.field__err:empty { display: none; }
.field__count { font-size: .75rem; line-height: 1.35; color: var(--c-ink-2); }
.field__count.is-full { color: var(--c-err); }

.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px; border: 1px dashed var(--c-line-2); border-radius: var(--r-sm); }
.picks__empty { padding: 4px 6px; font-size: .8125rem; color: var(--c-ink-2); }
.pick { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border-radius: 6px; background: var(--c-mint); color: var(--c-accent-h); font-size: .8125rem; font-weight: 500; }
.pick button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 4px; background: none; color: inherit; font-size: 1rem; line-height: 1; }
.pick button:hover { background: var(--c-sage); }

.form__foot { grid-column: 1 / -1; display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.form__foot .mz-btn { width: 100%; }
.form__legal { font-size: .8125rem; color: var(--c-ink-2); }
.form__legal a { color: var(--c-ink); }
.form__err { grid-column: 1 / -1; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-err-bg); color: var(--c-err); font-size: .875rem; }
.form__done { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-4) 0; }
.form__done:focus { outline: 0; }
.form__done-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--c-mint); color: var(--c-accent); }
.form__done-ico .mz-ico { width: 22px; height: 22px; stroke-width: 2.4; }
.form__done h3 { font-size: 1.375rem; }
.form__done p { color: var(--c-ink-2); }

@media (max-width: 640px) {
  .form__body { grid-template-columns: 1fr; }
}

/* 11. Motion preferences ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Application confirmation */
.done-steps { display: grid; gap: var(--s-3); margin-top: var(--s-2); padding: var(--s-4); border-radius: var(--r); background: var(--c-bg-2); width: 100%; }
.done-steps li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: .9063rem; color: var(--c-ink); }
.done-steps span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--c-accent); color: #fff; font-size: .75rem; font-weight: 600; }
.done-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.done-account { font-size: .875rem; }
.done-ref { font-size: .875rem; color: var(--c-ink-2); }
.mz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__err a { color: inherit; font-weight: 600; }
.done-reset { display: grid; gap: 8px; width: 100%; margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--c-line); font-size: .8125rem; color: var(--c-ink-2); }
.done-reset[hidden] { display: none; }
.done-reset__bar { display: block; height: 4px; border-radius: 2px; background: var(--c-line); overflow: hidden; }
.done-reset__bar i { display: block; width: 100%; height: 100%; background: var(--c-brand-grad); }
.done-reset__stay { padding: 0; border: 0; background: none; color: var(--c-accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .done-actions .mz-btn { flex: 1 1 100%; } }

/* Product status badges ------------------------------------------------- */
.pstat { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 2px 8px; border-radius: 4px; font-size: .6875rem; font-weight: 600; line-height: 1.6; white-space: nowrap; vertical-align: middle; letter-spacing: 0; text-transform: none; }
.pstat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pstat--listed { background: #EEF6F1; color: #1E6B43; }
.pstat--validate { background: var(--c-warn-bg); color: var(--c-warn-ink); }
.pstat--proposed { background: #F1EAFE; color: #6A1BB0; }
.pstat--blocked { background: var(--c-err-bg); color: var(--c-err); }

/* Add-to-application buttons -------------------------------------------- */
.pick-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: #fff; color: var(--c-ink); font-size: .8125rem; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.pick-btn .mz-ico { width: 15px; height: 15px; opacity: .35; }
/* "Discuss availability" / "Register interest": a link styled like the pick button (DES-1581 D-03) */
a.pick-btn { color: inherit; text-decoration: none; }
a.pick-btn .mz-ico { opacity: .6; }
.pick-btn:hover { border-color: var(--c-accent); color: var(--c-accent-h); }
.pick-btn[aria-pressed="true"] { border-color: var(--c-accent); background: var(--c-mint); color: var(--c-accent-h); }
.pick-btn[aria-pressed="true"] .mz-ico { opacity: 1; }
.pick-btn--sm { height: 30px; padding: 0 10px; font-size: .75rem; }
.pick-btn--lg { height: 52px; padding: 0 18px; font-size: .9375rem; }

/* Application form: inquiry context, product adder, message ------------- */
.apply__ctx { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-4); padding: 8px 12px; border-radius: var(--r-sm); background: var(--c-mint); color: var(--c-accent-h); font-size: .8125rem; font-weight: 500; }
.apply__ctx[hidden] { display: none; }
.apply__ctx .mz-ico { width: 15px; height: 15px; flex: none; }
.picks-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.picks-add input { flex: 1 1 200px; min-width: 0; height: 40px !important; }
.picks-add .mz-btn { height: 40px; }
.picks-add .mz-link { font-size: .8125rem; }
.picks-add__msg { min-height: 1em; font-size: .75rem; color: var(--c-ink-2); }
.field textarea { width: 100%; min-height: 84px; padding: 10px 12px; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: #fff; font: inherit; font-size: .9375rem; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.field textarea:focus { outline: 0; border-color: var(--c-accent); box-shadow: var(--focus); }
.field label span { font-weight: 400; color: var(--c-ink-2); }
.done-products { margin-top: var(--s-3); padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-bg-2); font-size: .875rem; }

/* Demo evidence labels (DES-1581 D-04): what each demo proves */
.demo-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--s-3) 0 0; font-size: .8125rem; line-height: 1.5; color: var(--c-ink-2); }
.dq ~ .demo-label, .demo-label + .dq, .demo-label + .aiapp { margin-top: var(--s-4); }
.demo-label__tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.demo-label__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-label__tag--live { background: #EEF6F1; color: #1E6B43; }
.demo-label__tag--sandbox { background: #E8F4FB; color: #0B5C86; }
.demo-label__tag--concept { background: #F1EAFE; color: #6A1BB0; }
.demo-label__tag--showcase { background: #FFF4E5; color: #8A4B00; }
