/*
 * site.css — Shared foundation for answering.now
 *
 * Contains: CSS variables, reset, body, skip-link, focus styles,
 * nav, mobile nav, buttons, footer, sr-only utility, shared responsive.
 *
 * Each page keeps a small inline <style> block for its own layout only.
 * Do not add page-specific rules here.
 */

/* ---- VARIABLES ---- */
:root {
  --brand-blue:  #1155FF;
  --brand-dark:  #1A1A2E;
  --brand-navy:  #1A1A2E;
  --brand-accent: #1155FF;
  --text-primary:   #1A1A2E;
  --text-secondary: #475569;
  --text-muted:     #556170;
  --surface:     #ffffff;
  --surface-alt: #F4F6FA;
  --border:      #e2e8f0;
  --radius:      6px;
}

/* ---- RESET ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- BODY ---- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---- SKIP NAV ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--brand-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---- FOCUS STYLES ---- */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.btn-primary:focus-visible,
.plan-btn-primary:focus-visible {
  outline-color: #fff;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .ring    { font-weight: 700; }
.nav-logo .dot-now { color: var(--brand-blue); font-weight: 700; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }

/* ---- MOBILE NAV TOGGLE ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}
.nav-toggle svg { width: 24px; height: 24px; }

.nav-cta {
  background: var(--brand-blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #174a8c; }

/* ---- LAYOUT PRIMITIVES ---- */
/* Used on the home page marketing sections and footer */
section   { padding: 80px 24px; }
.container { max-width: 1140px; margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-block;
}
.btn-primary:hover { background: #174a8c; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* ---- FOOTER ---- */
footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}
.footer-logo .dot-now { color: var(--brand-blue); font-weight: 700; }
.footer-info {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}
.footer-info a { color: var(--text-secondary); text-decoration: none; }
.footer-info a:hover { color: var(--text-primary); }

/* ---- ACCESSIBILITY UTILITY ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- SHARED RESPONSIVE ---- */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a    { font-size: 16px; display: block; padding: 8px 0; }
  .nav-cta        { text-align: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-info  { text-align: center; }
}
