/* fixdossier landing — draft for Italo review. No build step. */
:root {
  --bg: #0b0f14;
  --bg-elev: #121820;
  --bg-card: #161d27;
  --border: #243041;
  --text: #e8eef6;
  --muted: #9aabbd;
  --faint: #6b7c90;
  --accent: #3dd68c;
  --accent-dim: #2a9d66;
  --accent-soft: rgba(61, 214, 140, 0.12);
  --warn: #f0c14a;
  --danger-soft: rgba(240, 120, 90, 0.12);
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--accent), #1a7a52);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #06140e;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elev);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--muted); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(61, 214, 140, 0.14), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 214, 140, 0.25);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #06140e;
}
.btn-primary:hover { background: #4ee09a; color: #06140e; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-elev); color: var(--text); }
.meta-line {
  font-size: 0.85rem;
  color: var(--faint);
}
.meta-line code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-elev);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* —— Sections —— */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

/* —— Cards —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }
  .nav-links a:hover { background: var(--bg-elev); }
  .nav-links .btn {
    justify-content: center;
    margin-top: 0.25rem;
  }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card .file {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
  display: block;
}

/* —— Coverage callout —— */
.coverage-card {
  border-color: rgba(61, 214, 140, 0.35);
  background: linear-gradient(180deg, rgba(61, 214, 140, 0.06), var(--bg-card));
}
.coverage-list {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.coverage-list li + li { margin-top: 0.45rem; }
.coverage-list strong { color: var(--text); font-weight: 600; }
.coverage-list code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--accent);
}

/* —— Sources list —— */
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}
@media (max-width: 560px) {
  .sources { grid-template-columns: 1fr; }
}
.sources li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}
.sources li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* —— Code block —— */
.pre-wrap {
  position: relative;
  background: #080c11;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.pre-wrap .lang {
  position: absolute;
  top: 0.65rem;
  left: 0.85rem;
  font-size: 0.7rem;
  color: var(--faint);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-btn:hover {
  color: var(--text);
  border-color: var(--muted);
  background: var(--bg-card);
}
.copy-btn.copied {
  color: var(--accent);
  border-color: rgba(61, 214, 140, 0.35);
  background: var(--accent-soft);
}
pre {
  margin: 0;
  padding: 2.1rem 1.35rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: #c8d4e0;
  overflow-x: auto;
}
@media (max-width: 560px) {
  pre {
    font-size: 0.7rem;
    line-height: 1.5;
    padding: 2rem 0.9rem 1rem;
  }
  .pre-wrap .lang { left: 0.65rem; }
  .copy-btn { right: 0.45rem; top: 0.4rem; }
}
.tok-key { color: #7eb8ff; }
.tok-str { color: #9fe8c0; }
.tok-com { color: #5a6b7d; }
.tok-num { color: #e8c27a; }

/* —— Sample table —— */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 640px;
}
th, td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-elev);
  color: var(--faint);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td.mono, .mono { font-family: var(--mono); font-size: 0.78rem; }
.sev {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}
.sev-high { background: var(--danger-soft); color: #f09070; }
.sev-medium { background: rgba(240, 193, 74, 0.12); color: var(--warn); }
.sample-note {
  font-size: 0.85rem;
  color: var(--faint);
  margin: 0.85rem 0 0;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  min-width: 7rem;
}
.stat .n {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.stat .l {
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Waitlist / interest form —— */
.waitlist-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: grid;
  gap: 1rem;
}
.waitlist-box p { margin: 0; color: var(--muted); }

.interest-form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
}
.form-row {
  display: grid;
  gap: 0.35rem;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-row .optional,
.form-row .required-mark {
  font-weight: 400;
  color: var(--faint);
  font-size: 0.8rem;
}
.form-row input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-row input::placeholder { color: var(--faint); }
.interest-form .btn { justify-self: start; }
.form-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}
.fallback-mail {
  font-size: 0.85rem;
  color: var(--faint);
}
.fallback-mail a { font-weight: 600; }

/* —— Disclaimer —— */
.disclaimer {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.disclaimer strong { color: var(--text); }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 0.65rem; }

/* —— Why —— */
.why-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.why-list li + li { margin-top: 0.45rem; }
.why-list a { font-weight: 600; }

/* —— Footer —— */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.draft-banner {
  background: #2a2210;
  border-bottom: 1px solid #5a4a20;
  color: #e8d48a;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.45rem 1rem;
}
.draft-banner strong { color: #f0c14a; }
