/* Xnote - Simple Professional Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a4d8c;
  --primary-light: #1a7fc4;
  --accent: #e8f4fc;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #d0dce8;
  --bg: #f7fafc;
  --white: #ffffff;
  --max-width: 960px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(10, 77, 140, 0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-link:hover { text-decoration: none; }
.logo-link img, .logo-link svg {
  height: 42px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover,
.nav a.active {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

/* Main content */
.main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

/* Home hero */
.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.hero .logo-large {
  margin: 0 auto 1.5rem;
  height: 72px;
  width: auto;
}
.hero h1 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}
.section h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
}
.section p {
  margin-bottom: 1rem;
  color: var(--text);
}
.section ul {
  margin: 0.75rem 0 1rem 1.25rem;
}
.section li {
  margin-bottom: 0.6rem;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 600px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.cta h2 { color: white; border: none; margin-bottom: 0.5rem; }
.cta p { color: rgba(255,255,255,0.92); margin-bottom: 0; }

/* About page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.contact-card p, .contact-card address {
  font-style: normal;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.contact-card a { font-weight: 500; }

/* Terms page */
.terms-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
}
.terms-content h1 {
  font-size: 1.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.25rem;
}
.terms-content h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.terms-content h3 {
  font-size: 1.02rem;
  margin: 1.1rem 0 0.4rem;
  color: var(--text);
}
.terms-content p {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.terms-content ol, .terms-content ul {
  margin: 0.5rem 0 1rem 1.4rem;
  font-size: 0.95rem;
}
.terms-content li { margin-bottom: 0.45rem; }
.terms-content .intro {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.terms-content a { word-break: break-all; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 1.75rem 1.25rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.footer-inner a { color: #b8d4f0; }
.footer-inner a:hover { color: white; }
.footer-brand { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; color: white; }
.footer-nav { display: flex; gap: 1.25rem; list-style: none; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { width: 100%; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* Utility */
.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Mobile nav tweak */
@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .nav { width: 100%; justify-content: center; }
  .nav a { padding: 0.45rem 0.7rem; font-size: 0.95rem; }
  .hero h1 { font-size: 1.5rem; }
}
