/* Djob-Index — Djob brand palette, Mukta + Poppins.
   Tokens and base rules come from the Claude Design prototype; the media
   queries and hover classes are the production additions. Overrides need
   !important because the prototype's layout lives in inline styles. */

:root {
  --ink: #1c0f59;
  --acc: #0040f5;
  --mint: #01f2b4;
  --rose: #f806ff;
  --bg: #f4fcfa;
  --paper: #ffffff;
  --field: #f2f5fe;
  --line: rgba(28, 15, 89, 0.14);
  --line-strong: rgba(28, 15, 89, 0.25);
}

* { box-sizing: border-box; }

/* The prototype's layout lives in inline styles, so [hidden] needs to win
   over an inline `display` for the form/embed swap to work. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: Mukta, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Mukta, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }

input, select, textarea, button { font: inherit; color: inherit; }
input, textarea, select { font-family: Mukta, sans-serif; font-weight: 400; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--acc);
  outline-offset: 0;
  border-color: var(--acc);
}
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

img, iframe { max-width: 100%; }

/* --- what the prototype expressed as style-hover -------------------------- */

.btn-acc:hover { background: var(--ink); color: #fff; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.link-mint:hover { color: var(--mint); }

/* --- language picker ------------------------------------------------------ */

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231C0F59' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* --- FAQ accordion (native <details>, styled like the prototype) ---------- */

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--acc); }
.marker::before { content: "+"; }
details[open] .marker::before { content: "\2212"; /* − */ }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .split { grid-template-columns: minmax(0, 1fr) !important; gap: 44px !important; }
}

@media (max-width: 980px) {
  .hero,
  .two-col,
  .teaser,
  .problem-head {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 40px !important;
  }
  .problem-head { align-items: start !important; margin-bottom: 40px !important; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap !important; gap: 14px !important; }
  .nav-links { gap: 18px !important; flex-wrap: wrap; }
  .stats { grid-template-columns: minmax(0, 1fr) !important; }
  .stats > .stat { padding: 28px 0 !important; }
  .values { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 720px) {
  .pair { grid-template-columns: minmax(0, 1fr) !important; }
  .steps { grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; }
  .kv { grid-template-columns: minmax(0, 1fr) !important; gap: 6px !important; }
  .how-step { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  .member { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; }
  #signup-form { padding: 24px !important; }
}

@media (max-width: 560px) {
  .nav-links { gap: 12px !important; font-size: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
