/* Tachoparser shared stylesheet — DDIR family brand.
 *
 * Design tokens lifted directly from ddir.co.uk's compiled CSS. Same
 * Tailwind palette + Google Fonts so the two products look like
 * cousins, not strangers.
 */
:root {
  --bg:        #0a0e1a;
  --surface:   #0f172a;  /* slate-900 */
  --surface-2: #1e293b;  /* slate-800 */
  --border:    #334155;  /* slate-700 */
  --text:      #e2e8f0;  /* slate-200 */
  --text-mute: #94a3b8;  /* slate-400 */
  --text-emph: #ffffff;
  --accent:    #f59e0b;  /* amber-500 — primary CTA */
  --accent-2:  #06b6d4;  /* cyan-500 — data accents */
  --accent-3:  #059669;  /* emerald-600 — trust signals */
  --error:     #ef4444;
  --radius:    8px;

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
header.site .logo { display: flex; align-items: center; gap: 10px; flex: 1; }
header.site .logo img { height: 32px; width: auto; }
header.site .logo .name {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--text-emph);
}
header.site nav {
  display: flex; gap: 24px; align-items: center;
  font-size: .92rem;
}
header.site nav a { color: var(--text-mute); }
header.site nav a:hover { color: var(--text-emph); text-decoration: none; }
header.site .cta {
  background: var(--accent); color: var(--bg);
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: background .15s ease;
}
header.site .cta:hover { background: #ffb330; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 64px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem; line-height: 1.1; margin: 0 0 20px;
  color: var(--text-emph);
}
.hero .lead {
  font-size: 1.15rem; max-width: 640px; color: var(--text);
  margin: 0 0 32px;
}

/* ---------- upload widget ---------- */
.upload-zone {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.upload-zone .icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--accent); }
.upload-zone .hint { color: var(--text-mute); font-size: .92rem; margin-top: 8px; }
.upload-zone .selected-files {
  margin-top: 16px; font-family: var(--font-mono); font-size: .85rem;
  color: var(--accent-2);
}
.upload-form { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.upload-form input[type="email"] {
  flex: 1; min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-emph);
  padding: 12px 16px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
}
.upload-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
}
.upload-form button {
  background: var(--accent); color: var(--bg);
  border: none; padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease;
}
.upload-form button:hover { background: #ffb330; }
.upload-form button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- flow graphic ---------- */
.flow {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 48px 0;
  flex-wrap: wrap;
}
.flow .step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .85rem; color: var(--text-mute);
}
.flow .step .icon {
  width: 80px; height: 80px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.flow .arrow { color: var(--accent); font-size: 1.5rem; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 {
  font-family: var(--font-display);
  font-size: 1.85rem; margin: 0 0 24px;
  color: var(--text-emph);
}
section p { color: var(--text); }

/* ---------- card grid ---------- */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card strong {
  display: block; color: var(--text-emph);
  font-size: 1.05rem; margin-bottom: 8px;
}
.card .ico { color: var(--accent-2); font-size: 1.4rem; margin-bottom: 12px; }

/* ---------- pricing ---------- */
.pricing {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px; text-align: center;
}
.pricing .num {
  font-family: var(--font-display);
  font-size: 4rem; color: var(--accent); margin: 8px 0;
}
.pricing .small { color: var(--text-mute); font-size: .92rem; margin-top: 12px; }

/* ---------- trust badges ---------- */
.trust {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 16px;
}
.trust span {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-mute); font-size: .85rem;
}
.trust span strong { color: var(--accent-3); margin-right: 6px; }

/* ---------- FAQ ---------- */
.faq h3 {
  color: var(--text-emph); font-family: var(--font-body); font-weight: 600;
  font-size: 1.05rem; margin: 32px 0 8px;
}

/* ---------- footer ---------- */
footer.site {
  background: #060a14;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: .9rem; color: var(--text-mute);
  margin-top: 48px;
}
footer.site .row {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 32px;
}
footer.site .row strong { color: var(--text-emph); display: block; margin-bottom: 12px; }
footer.site .row .logo-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
footer.site .row .logo-row img { height: 36px; width: auto; }
footer.site .legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}

/* ---------- progress UI (upload page) ---------- */
.file-row {
  display: flex; gap: 16px; align-items: center;
  padding: 12px; border-bottom: 1px solid var(--border);
}
.file-row .name { flex: 1; font-family: var(--font-mono); font-size: .9rem; }
.file-row .status { font-size: .85rem; color: var(--text-mute); width: 120px; text-align: right; }
.file-row .status.done { color: var(--accent-3); }
.file-row .status.error { color: var(--error); }
.file-row .bar {
  width: 120px; height: 6px; background: var(--surface-2);
  border-radius: 3px; overflow: hidden;
}
.file-row .bar > div {
  height: 100%; background: var(--accent-2);
  transition: width .15s ease;
}

/* ---------- quote page ---------- */
.quote-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
}
.quote-summary dl {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px 24px; margin: 0;
}
.quote-summary dt { color: var(--text-mute); }
.quote-summary dd {
  margin: 0; color: var(--text-emph);
  font-family: var(--font-mono); font-weight: 500;
}
.quote-summary dd.big {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--accent);
}
.btn-pay {
  display: block; width: 100%;
  background: var(--accent); color: var(--bg);
  border: none; padding: 16px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1.1rem;
  cursor: pointer; margin-top: 16px;
  transition: background .15s ease;
  text-align: center; text-decoration: none;
}
.btn-pay:hover { background: #ffb330; text-decoration: none; }
.btn-cancel {
  display: block; text-align: center; margin-top: 16px;
  color: var(--text-mute); font-size: .9rem;
  background: none; border: none; cursor: pointer;
}
.btn-cancel:hover { color: var(--error); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .pricing .num { font-size: 3rem; }
  header.site nav { display: none; }
  header.site .cta { padding: 8px 14px; font-size: .9rem; }
}
