/* Exactus Labs — shared site shell styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #111111;
  --text-muted: #5c5c5c;
  --border: #e4e4e2;
  --accent: #0b4a6f;
  --accent-hover: #093a58;
  --accent-soft: #eaf1f6;
  --max-width: 1040px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand .brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-2px);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><line x1='32' y1='10' x2='32' y2='50' stroke='%230b4a6f' stroke-width='3.4' stroke-linecap='round'/><line x1='22' y1='10' x2='42' y2='10' stroke='%230b4a6f' stroke-width='3.4' stroke-linecap='round'/><line x1='22' y1='50' x2='42' y2='50' stroke='%230b4a6f' stroke-width='3.4' stroke-linecap='round'/><circle cx='32' cy='30' r='5' fill='%230b4a6f'/></svg>") center/contain no-repeat;
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--text); }

/* Hero */
.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
}
.hero .cta-row {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* Section */
section.section { padding: 4rem 0; }
section.section + section.section { border-top: 1px solid var(--border); }
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section p.section-lead {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.tool-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}
.tool-card.disabled {
  opacity: 0.55;
  pointer-events: none;
}
.tool-card .tool-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tool-card .tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-muted { background: var(--bg-soft); color: var(--text-muted); }

/* Prose (about page, long-form text) */
.prose {
  max-width: 680px;
  font-size: 16px;
  color: var(--text);
}
.prose p { margin-bottom: 1rem; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 2rem 0 0.75rem; }
.prose ul { margin: 0.75rem 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

/* Tool page header (sits between global header and tool body) */
.tool-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}
.tool-header .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.tool-header .breadcrumb a { color: var(--text-muted); }
.tool-header .breadcrumb a:hover { color: var(--accent); }
.tool-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tool-body { padding: 2rem 0 4rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .container > div:first-child::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><line x1='32' y1='10' x2='32' y2='50' stroke='%235c5c5c' stroke-width='4.5' stroke-linecap='round'/><line x1='22' y1='10' x2='42' y2='10' stroke='%235c5c5c' stroke-width='4.5' stroke-linecap='round'/><line x1='22' y1='50' x2='42' y2='50' stroke='%235c5c5c' stroke-width='4.5' stroke-linecap='round'/><circle cx='32' cy='30' r='6' fill='%235c5c5c'/></svg>") center/contain no-repeat;
  opacity: 0.75;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.25rem; }

/* Tool category blocks */
.category-block { margin-bottom: 3rem; }
.category-block:last-child { margin-bottom: 0; }
.category-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}
.category-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
}
.category-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Coming-soon tool cards */
.tool-card.coming-soon {
  opacity: 0.5;
  pointer-events: none;
  border-style: dashed;
}

/* FAQ accordion */
.faq-group { margin-bottom: 2.5rem; }
.faq-group-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}
.faq-item summary {
  padding: 0.9rem 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--accent); }
.faq-answer {
  padding: 0 0 1rem;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}
.faq-answer p { margin-bottom: 0.6rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent); }

/* Homepage category tiles (2x2) */
.category-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.category-tile {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  min-height: 210px;
}
.category-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(11, 74, 111, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.category-tile-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 1.1rem;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.category-tile:hover .category-tile-icon { opacity: 1; }
.category-tile-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.category-tile-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.category-tile-meta {
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}
.category-tile-meta .live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.category-tile-meta .soon-dot {
  width: 6px;
  height: 6px;
  background: var(--border);
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-browse-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.section-browse-link:hover { color: var(--accent-hover); }

/* Responsive */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  section.section { padding: 2.5rem 0; }
  .category-tile-grid { grid-template-columns: 1fr; }
}
