/* Buknal support site. Same visual language as legal.buknal.com, kept as its own file
   because this is a separate Cloudflare Pages project.
   System fonts only, no third-party requests. Each app section sets --accent. */

:root {
  --ground: #f5f6f3;
  --surface: #ffffff;
  --ink: #17201a;
  --ink-soft: #3a453d;
  --muted: #5f6a62;
  --rule: #dfe4dd;
  --tint: #eef2ec;
  --accent: #1f5fc4;
  --accent-ink: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);

  --measure: 68ch;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1310;
    --surface: #151b17;
    --ink: #e7ece7;
    --ink-soft: #c4ccc5;
    --muted: #97a299;
    --rule: #27302a;
    --tint: #1b231d;
    --accent: #7aa7f5;
    --accent-ink: #0e1310;
  }
}

/* Per-app accents, matched to each app icon and checked for text contrast */
.app-telcoo    { --accent: #b3470f; }
.app-yardkit   { --accent: #2f7a3b; }
.app-billradar { --accent: #0f7663; }
.app-rolograph { --accent: #107a47; }
@media (prefers-color-scheme: dark) {
  .app-telcoo    { --accent: #f28a4e; }
  .app-yardkit   { --accent: #72c07f; }
  .app-billradar { --accent: #5fd3b6; }
  .app-rolograph { --accent: #62cf8f; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--step-0)/1.65 var(--font);
  padding-inline: 16px;
  padding-block: 0 48px;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 880px; margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  text-transform: uppercase;
}
.brand img { display: block; height: 48px; width: auto; }
.brand:hover img { opacity: 0.85; }
.site-header nav { font-size: var(--step--1); font-weight: 500; }

/* ---------- Hero and contact ---------- */
.hero { padding-block: 44px 8px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.hero > p { margin: 0 0 24px; color: var(--muted); max-width: var(--measure); }

.contact {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .contact { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { filter: brightness(1.08); }
.button svg { width: 20px; height: 20px; flex: none; }
.contact p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.contact p + p { margin-top: 6px; }
.contact strong { color: var(--ink); }

/* ---------- App picker ---------- */
.section-label {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 44px 0 12px;
}
.app-picker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) { .app-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.app-picker a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 64px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
}
.app-picker a:hover { border-color: var(--accent); }
.app-picker small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 22.5%;
  flex: none;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--tint);
}

/* ---------- FAQ groups ---------- */
.group { margin-top: 48px; scroll-margin-top: 16px; }
.group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.group-head .app-icon { width: 52px; height: 52px; }
.group-head h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.group-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--step--1); }

.faq {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  min-height: 52px;
  font-weight: 600;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 18px 16px; color: var(--ink-soft); max-width: var(--measure); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child, .faq .answer ol:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { margin: 0 0 10px; padding-left: 1.3em; }
.faq .answer li { margin-bottom: 4px; }
.faq .answer strong { color: var(--ink); font-weight: 600; }

.group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 4px 0;
  font-size: var(--step--1);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--muted);
  font-size: var(--step--1);
}
.site-footer a { color: var(--muted); }

@media print {
  body { background: #fff; color: #000; }
  .app-picker, .button svg { display: none; }
}
