/*
 * Shared style for the static public site (KBR-161, AdSense remediation).
 * Plain CSS. The CRM app does not load this file.
 * Colors match the app login screen (app/components/AuthGate.tsx):
 * slate-900/800 background, white name with sky-300 "my", blue-600 buttons.
 */
:root {
  --primary: #2563eb;          /* blue-600, login button */
  --primary-hover: #3b82f6;    /* blue-500, login button hover */
  --primary-dark: #1e3a8a;     /* blue-900, headings on light sections */
  --primary-light: #e8effd;
  --sky: #7dd3fc;              /* sky-300, "my" in the name */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #52525b;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-wrap: break-word;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Brand name ---------- */
.logo {
  font-family: Verdana, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.logo .my, .hero h1 .my { color: var(--sky); }
.logo .tm { font-size: 0.55em; font-weight: 600; margin-left: 1px; vertical-align: super; line-height: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--slate-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { text-decoration: none; color: var(--slate-300); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-link { display: none; }
@media (min-width: 720px) { .site-nav .nav-link { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-dark { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--primary-dark); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800) 50%, var(--slate-900));
  color: #fff;
  padding: 64px 0 72px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 820px;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--slate-300);
  max-width: 680px;
  margin-top: 18px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 0.9rem; color: var(--slate-400); }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
section.block.tight { padding-top: 0; }
section.block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
section.block .intro { color: var(--text-muted); max-width: 720px; margin-bottom: 32px; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
}
section.block.alt .card { background: var(--bg); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.card.persona h3 { margin-bottom: 4px; }
.card.persona p + .persona-label { margin-top: 14px; }
.persona-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 10px 0 4px;
}
.card p { color: var(--text-muted); font-size: 0.97rem; }

.steps { counter-reset: step; list-style: none; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { display: block; margin-bottom: 4px; }
.steps li span { color: var(--text-muted); }

.story { max-width: 760px; }
.story p { margin-bottom: 16px; font-size: 1.05rem; }
.story .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.faq { max-width: 760px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--text-muted); }
.faq .faq-title { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; margin-bottom: 8px; }
.faq h2 { font-size: 1.3rem; margin: 36px 0 14px; }
.faq .faq-more { margin-top: 32px; color: var(--text-muted); }

.cta {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--text-muted); margin-bottom: 24px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 40px 0;
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer .tagline { margin-top: 8px; max-width: 320px; }
.site-footer .legal-line { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; color: var(--slate-400); }
