/* =========================================================
   NAGBOT — STYLESHEET
   Shared across all pages.
   Lighthouse-inspired palette: warm yellow, white, dark grey.
   Edit the CSS variables below to re-theme the entire site.
========================================================= */

/* ----------------- CSS VARIABLES ----------------- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #faf8f4;
  --color-yellow: #ffb800;
  --color-yellow-dark: #e6a400;
  --color-yellow-light: #fff4d9;
  --color-text: #1c1c1e;
  --color-text-muted: #5f5f66;
  --color-border: #ececec;
  --color-white: #ffffff;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --max-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-yellow);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: var(--color-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* ----------------- NAVIGATION ----------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ----------------- HERO ----------------- */
.hero {
  padding: calc(var(--nav-height) + 100px) 24px 120px;
  background: linear-gradient(180deg, var(--color-yellow-light) 0%, var(--color-bg) 60%);
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 780px;
  margin: 0 auto 24px;
}

.hero-subheading {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Placeholder phone mockup */
.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-mockup-inner {
  width: 280px;
  height: 560px;
  max-width: 80vw;
  background-color: var(--color-white);
  border: 2px dashed var(--color-border);
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.mockup-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 0 20px;
}

/* ----------------- GENERIC SECTIONS ----------------- */
.section {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Empty placeholder sections (Features, Screenshots, FAQ, Download) */
.section-empty {
  min-height: 40px;
  /* Intentionally left blank — fill in content later. */
}

/* ----------------- PAGE HEADER (About / Privacy / Terms) ----------------- */
.page-header {
  padding: calc(var(--nav-height) + 80px) 24px 60px;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--color-text-muted);
}

/* ----------------- CONTENT SECTIONS (About / Legal pages) ----------------- */
.content-container {
  max-width: 760px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.legal-content h2 {
  font-size: 1.2rem;
}

/* ----------------- FOOTER ----------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 24px;
  background-color: var(--color-bg-alt);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    width: 100%;
    padding: 16px 24px;
  }

  .nav-links .nav-cta {
    text-align: center;
  }

  .hero {
    padding: calc(var(--nav-height) + 60px) 20px 80px;
  }

  .section {
    padding: 60px 20px;
  }
}
/* ----------------- LEGAL PAGE ADDITIONS ----------------- */
.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.legal-list {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.legal-list li {
  color: var(--color-text-muted);
  margin-bottom: 10px;
  list-style: disc;
}

.legal-list li strong {
  color: var(--color-text);
}

.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-table th {
  background-color: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-text);
}

.legal-table td {
  color: var(--color-text-muted);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Inline flag for items still pending dev/legal confirmation */
.policy-note {
  display: inline-block;
  background-color: var(--color-yellow-light);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}