/* =============================================================
   ARK LABS - MODELS PAGE
   Page-scoped styles. All classes prefixed .ml- (Models Library).
   Builds on tokens defined in base.css.
   ============================================================= */

/* ---- HERO ---- */
.ml-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--light-blue) 0%, #FFFFFF 100%);
  padding: 64px 60px 48px;
}
.ml-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--coral);
}
.ml-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center;
}
.ml-hero h1 {
  font-size: 2.7em; font-weight: 800; color: var(--navy);
  line-height: 1.08; letter-spacing: -0.8px; margin-bottom: 16px;
}
.ml-accent { color: var(--cyan); }
.ml-lede {
  font-size: 1.05em; color: var(--steel); line-height: 1.65; max-width: 580px;
  margin-bottom: 28px;
}
.ml-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 580px;
}
.ml-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 14px;
  text-align: center;
}
.ml-stat-num {
  font-size: 1.45em; font-weight: 800; color: var(--navy); letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.ml-stat-label {
  font-size: 0.7em; color: var(--steel); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600;
}

.ml-hero-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
}
.ml-hero-visual svg {
  width: 100%; height: auto; max-width: 540px;
  filter: drop-shadow(0 12px 40px rgba(12,35,64,0.10));
}

/* =============== Hero animations ===============
   Cards: outer <g> positions, inner <g class="ml-card-anim"> animates.
   This separation is required because CSS "transform" on a <g> overrides
   any transform="translate(x y)" attribute — so putting both on the same
   element collapses all cards to (0, 0). Keep them on separate elements.
*/
@keyframes ml-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(3px, -8px); }
}
.ml-card-anim { animation: ml-drift 5s ease-in-out infinite; }
.ml-card-d1 { animation-delay: 0s; }
.ml-card-d2 { animation-delay: 0.6s; }
.ml-card-d3 { animation-delay: 1.2s; }
.ml-card-d4 { animation-delay: 1.8s; }

/* Flow lines: stroke-dashoffset march toward the core */
@keyframes ml-flow { to { stroke-dashoffset: -36; } }
.ml-flow { stroke-dasharray: 5 4; animation: ml-flow 2.2s linear infinite; }

/* Core pulse: a second ring behind the core expands + fades, like a heartbeat */
@keyframes ml-core-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.35); opacity: 0;    }
}
.ml-core-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: ml-core-pulse 2.2s ease-out infinite;
}

/* Steady inner ring: subtle breathing */
@keyframes ml-core-breathe {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 0.30; }
}
.ml-core-ring { animation: ml-core-breathe 3.4s ease-in-out infinite; }

/* Outer scan dash rotates */
@keyframes ml-core-scan { to { stroke-dashoffset: -80; } }
.ml-core-scan { animation: ml-core-scan 4.5s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .ml-card-anim,
  .ml-flow,
  .ml-core-pulse,
  .ml-core-ring,
  .ml-core-scan { animation: none !important; }
  .ml-packets circle { display: none; } /* animateMotion ignores @media; hide instead */
}

/* ---- CATALOG ---- */
.ml-catalog { padding: 72px 60px 64px; background: var(--white); }
.ml-catalog-inner { max-width: 1280px; margin: 0 auto; }
.ml-catalog-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.ml-catalog-head .section-subtitle { margin-top: 2px; }
.ml-link-pricing {
  font-size: 0.92em; font-weight: 700; color: var(--cyan); text-decoration: none;
  white-space: nowrap; padding-bottom: 4px;
}
.ml-link-pricing:hover { color: var(--cyan-dark); text-decoration: underline; }

/* Filter chips */
.ml-filters {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px; background: var(--bg-warm);
  border: 1px solid var(--border-light); border-radius: 14px;
  margin-bottom: 28px;
}
.ml-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--border);
  font-size: 0.85em; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.ml-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.ml-chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ml-chip.is-active .ml-chip-count { background: rgba(255,255,255,0.18); color: var(--white); }
.ml-chip-count {
  font-size: 0.78em; font-weight: 700; background: var(--light-blue); color: var(--navy);
  padding: 1px 7px; border-radius: 999px; min-width: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.ml-filter-spacer { flex: 1; }

/* Toggle */
.ml-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85em; font-weight: 600; color: var(--navy);
  cursor: pointer; user-select: none;
}
.ml-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ml-toggle-track {
  position: relative; width: 36px; height: 20px;
  background: var(--border); border-radius: 999px; transition: background 0.18s;
  flex-shrink: 0;
}
.ml-toggle-dot {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(12,35,64,0.18); transition: transform 0.18s;
}
.ml-toggle input:checked ~ .ml-toggle-track { background: var(--cyan); }
.ml-toggle input:checked ~ .ml-toggle-track .ml-toggle-dot { transform: translateX(16px); }
.ml-toggle input:focus-visible ~ .ml-toggle-track { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Grid */
.ml-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.ml-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ml-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(12,35,64,0.07);
  border-color: var(--cyan);
}
.ml-card.is-hidden { display: none; }

.ml-card-head {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.ml-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95em; color: var(--white);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.ml-card-icon[data-mod="text"]      { background: linear-gradient(135deg, #00AEE8, #0090C0); }
.ml-card-icon[data-mod="vision"]    { background: linear-gradient(135deg, #0D8A6A, #0A6B53); }
.ml-card-icon[data-mod="code"]      { background: linear-gradient(135deg, #0C2340, #1A2B3C); font-size: 0.7em; }
.ml-card-icon[data-mod="embedding"] { background: linear-gradient(135deg, #D97706, #B86205); }
.ml-card-icon[data-mod="image"]     { background: linear-gradient(135deg, #7C3AED, #5B21B6); }
.ml-card-icon[data-mod="speech"]    { background: linear-gradient(135deg, #E8807A, #C44A40); }

.ml-card-name {
  font-size: 0.98em; font-weight: 700; color: var(--navy); line-height: 1.25;
  word-break: break-word;
}
.ml-card-org {
  font-size: 0.78em; color: var(--steel); margin-top: 2px;
}
.ml-card-license { color: var(--steel); }

.ml-tag {
  font-size: 0.62em; font-weight: 800; letter-spacing: 1px;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
.ml-tag-text      { background: var(--cyan-light); color: var(--cyan-dark); }
.ml-tag-vision    { background: var(--green-light); color: var(--green); }
.ml-tag-code      { background: #E2EAF2; color: var(--navy); }
.ml-tag-embedding { background: var(--amber-light); color: var(--amber); }
.ml-tag-image     { background: #EFE6FE; color: #7C3AED; }
.ml-tag-speech    { background: #FCE8E6; color: #C44A40; }

.ml-card-desc {
  font-size: 0.88em; color: var(--steel); line-height: 1.55;
  margin-bottom: 16px; flex-grow: 1;
}

.ml-card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  padding: 14px 0; margin-bottom: 16px;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.ml-card-meta dt {
  font-size: 0.66em; font-weight: 700; color: var(--steel);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.ml-card-meta dd {
  font-size: 0.86em; font-weight: 700; color: var(--navy); margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.ml-card-actions {
  display: flex; gap: 8px; margin-top: auto;
}
.ml-btn {
  flex: 1; padding: 10px 14px; border-radius: 8px;
  font-size: 0.83em; font-weight: 700; text-align: center;
  text-decoration: none; transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; font-family: inherit; border: 2px solid transparent;
  white-space: nowrap;
}
.ml-btn-primary {
  background: var(--cyan); color: var(--white); border-color: var(--cyan);
}
.ml-btn-primary:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }
.ml-btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--border);
}
.ml-btn-ghost:hover { border-color: var(--navy); }

.ml-empty {
  padding: 32px; text-align: center;
  color: var(--steel); background: var(--bg-warm); border-radius: 12px;
  font-size: 0.95em;
}
.ml-foot-note {
  margin-top: 22px; font-size: 0.85em; color: var(--steel); line-height: 1.6;
  text-align: center;
}
.ml-foot-note a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.ml-foot-note a:hover { text-decoration: underline; }

/* ---- HUGGING FACE LIVE SEARCH ---- */
.ml-hf {
  padding: 80px 60px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--white) 100%);
  position: relative;
}
.ml-hf-inner { max-width: 1100px; margin: 0 auto; }
.ml-hf-head { margin-bottom: 28px; }
.ml-hf-head .section-title { margin-bottom: 10px; }

.ml-hf-search-wrap { margin-bottom: 28px; }
.ml-hf-search {
  position: relative;
  background: var(--white); border: 2px solid var(--border);
  border-radius: 14px; padding: 0 18px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ml-hf-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,174,232,0.10);
}
.ml-hf-search-icon {
  width: 20px; height: 20px; color: var(--steel); flex-shrink: 0;
}
.ml-hf-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 1em; padding: 16px 0; color: var(--navy);
  font-family: inherit;
}
.ml-hf-search input::placeholder { color: #97A6B7; }
.ml-hf-shortcut {
  font-size: 0.7em; color: var(--steel); background: var(--bg-warm);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700;
  flex-shrink: 0;
}

.ml-hf-quicktags {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 14px;
}
.ml-hf-quicklabel {
  font-size: 0.78em; color: var(--steel); font-weight: 600;
  margin-right: 4px;
}
.ml-hf-quicktag {
  background: var(--white); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.78em; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.ml-hf-quicktag:hover { background: var(--cyan-light); border-color: var(--cyan); color: var(--cyan-dark); }

/* Results */
.ml-hf-results-wrap { min-height: 80px; }
.ml-hf-results-meta {
  font-size: 0.85em; color: var(--steel);
  margin-bottom: 14px;
}
.ml-hf-results {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.ml-hf-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 10px;
}
.ml-hf-card:hover { border-color: var(--cyan); box-shadow: 0 6px 18px rgba(12,35,64,0.05); }
.ml-hf-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.ml-hf-card-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86em; font-weight: 700; color: var(--navy);
  word-break: break-all; line-height: 1.35;
}
.ml-hf-card-pipeline {
  font-size: 0.62em; font-weight: 800; letter-spacing: 0.8px;
  background: var(--light-blue); color: var(--navy);
  padding: 3px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
  text-transform: uppercase;
}
.ml-hf-card-stats {
  display: flex; gap: 14px; font-size: 0.76em; color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.ml-hf-card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.ml-hf-card-stats svg { width: 11px; height: 11px; }
.ml-hf-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 4px;
}
.ml-hf-card-link {
  font-size: 0.78em; color: var(--steel); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.ml-hf-card-link:hover { color: var(--cyan); }
.ml-hf-card-cta {
  background: var(--cyan); color: var(--white); border: none;
  padding: 7px 14px; border-radius: 7px;
  font-size: 0.78em; font-weight: 700; cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.ml-hf-card-cta:hover { background: var(--cyan-dark); }

.ml-hf-empty, .ml-hf-error {
  text-align: center; padding: 28px;
  background: var(--white); border: 1px dashed var(--border);
  border-radius: 12px; color: var(--steel); font-size: 0.92em;
}
.ml-hf-empty a, .ml-hf-error a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.ml-hf-empty a:hover, .ml-hf-error a:hover { text-decoration: underline; }

.ml-link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--cyan); font-weight: 700; cursor: pointer;
  font: inherit; text-decoration: none;
}
.ml-link-btn:hover { color: var(--cyan-dark); text-decoration: underline; }

.ml-hf-foot {
  margin-top: 22px; font-size: 0.92em; color: var(--steel); text-align: center;
}

/* Loading skeleton */
.ml-hf-skeleton { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ml-hf-skel-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; height: 110px;
  position: relative; overflow: hidden;
}
.ml-hf-skel-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,174,232,0.06) 50%, transparent 100%);
  animation: ml-shimmer 1.4s infinite;
}
@keyframes ml-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---- HOW IT WORKS ---- */
.ml-how { padding: 80px 60px; background: var(--white); }
.ml-how-inner { max-width: 1180px; margin: 0 auto; }
.ml-how-head { margin-bottom: 32px; }
.ml-how-steps {
  list-style: none; padding: 0; margin: 0 0 36px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  counter-reset: ml-step;
}
.ml-step {
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 24px;
  position: relative;
}
.ml-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cyan); color: var(--white);
  font-size: 0.92em; font-weight: 800; margin-bottom: 12px;
}
.ml-step h4 {
  font-size: 1.05em; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3;
}
.ml-step p { font-size: 0.88em; color: var(--steel); line-height: 1.6; }
.ml-step p strong { color: var(--navy); font-weight: 700; }

.ml-how-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.ml-how-tier {
  display: block; padding: 22px; border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
.ml-how-tier:hover { border-color: var(--cyan); transform: translateY(-2px); }
.ml-how-tier-tag {
  font-size: 0.7em; font-weight: 800; letter-spacing: 1.4px; color: var(--cyan);
  margin-bottom: 8px;
}
.ml-how-tier-h {
  font-size: 1.02em; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.ml-how-tier-p {
  font-size: 0.85em; color: var(--steel); line-height: 1.55;
}

/* ---- FAQ ---- */
.ml-faq { padding: 80px 60px; background: var(--bg-warm); }
.ml-faq-inner { max-width: 920px; margin: 0 auto; }
.ml-faq-head { text-align: center; margin-bottom: 32px; }
.ml-faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.ml-faq-item:last-child { border-bottom: 1px solid var(--border); }
.ml-faq-q {
  font-size: 1em; font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.ml-faq-a {
  font-size: 0.92em; color: var(--steel); line-height: 1.65;
}
.ml-faq-a strong { color: var(--navy); font-weight: 700; }

/* ---- CLOSING CTA ---- */
.ml-cta {
  padding: 72px 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white); text-align: center;
  position: relative; overflow: hidden;
}
.ml-cta::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--coral);
}
.ml-cta-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.ml-cta h2 {
  font-size: 2.1em; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.ml-cta p {
  font-size: 1.02em; color: rgba(255,255,255,0.78); margin-bottom: 28px;
}
.ml-cta-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.ml-cta .btn-outline-lg { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.ml-cta .btn-outline-lg:hover { border-color: var(--white); color: var(--white); }

/* ---- MODAL ---- */
.ml-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ml-modal[hidden] { display: none; }
.ml-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,24,43,0.55); backdrop-filter: blur(4px);
  animation: ml-fade-in 0.15s ease-out;
}
@keyframes ml-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ml-pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ml-modal-card {
  position: relative; z-index: 1; max-width: 640px; width: 100%;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 24px 64px rgba(8,24,43,0.4);
  padding: 32px 32px 28px;
  animation: ml-pop-in 0.2s ease-out;
}
.ml-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  font-size: 1.4em; color: var(--steel); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ml-modal-close:hover { background: var(--bg-warm); color: var(--navy); }

.ml-modal-head { margin-bottom: 22px; }
.ml-modal-head h3 {
  font-size: 1.45em; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 8px;
}
#ml-modal-model-name { color: var(--cyan); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em; }
.ml-modal-sub { font-size: 0.92em; color: var(--steel); line-height: 1.6; }

.ml-modal-form { display: flex; flex-direction: column; gap: 14px; }
.ml-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.ml-form-field { display: flex; flex-direction: column; gap: 6px; }
.ml-form-field-full { grid-column: 1 / -1; }
.ml-form-label {
  font-size: 0.78em; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.ml-opt {
  font-size: 0.85em; font-weight: 500; color: var(--steel);
  text-transform: none; letter-spacing: 0;
}
.ml-form-field input,
.ml-form-field select,
.ml-form-field textarea {
  font: inherit; font-size: 0.95em;
  padding: 10px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--navy); transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.ml-form-field textarea { resize: vertical; min-height: 72px; }
.ml-form-field input:focus,
.ml-form-field select:focus,
.ml-form-field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,174,232,0.12);
}
/* Only highlight invalid fields AFTER the user interacts (submit attempt or
   blur with bad value). :user-invalid is supported in all evergreen browsers;
   older engines simply get no validation tint, which is fine. */
.ml-form-field input:user-invalid,
.ml-form-field select:user-invalid,
.ml-form-field textarea:user-invalid { border-color: var(--coral); }

.ml-form-hint {
  font-size: 0.78em; color: var(--steel); min-height: 1em;
}

.ml-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.ml-form-privacy {
  font-size: 0.78em; color: var(--steel); line-height: 1.5; flex: 1; min-width: 220px;
}
.ml-form-actions { display: flex; gap: 8px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .ml-hero { padding: 48px 24px 32px; }
  .ml-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .ml-hero h1 { font-size: 2.1em; }
  .ml-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .ml-catalog, .ml-hf, .ml-how, .ml-faq, .ml-cta { padding-left: 24px; padding-right: 24px; }
  .ml-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-how-steps { grid-template-columns: 1fr; }
  .ml-how-tiers { grid-template-columns: 1fr; }
  .ml-hf-results { grid-template-columns: 1fr; }
  .ml-catalog-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .ml-hero h1 { font-size: 1.7em; }
  .ml-grid { grid-template-columns: 1fr; }
  .ml-form-row { grid-template-columns: 1fr; }
  .ml-modal-card { padding: 24px 20px 20px; }
  .ml-cta h2 { font-size: 1.6em; }
  .ml-card-actions { flex-direction: column; }
  .ml-filters { padding: 12px; }
  .ml-toggle { width: 100%; justify-content: flex-start; padding-top: 4px; }
}
