/* ============================================================
   Zondra · shared styles
   Editorial dark theme. System fonts only. No external requests.
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg: #0c0f0c;
  --bg-elev: #141814;
  --card: #181d18;

  /* Lines */
  --border: #232a23;
  --border-soft: rgba(255, 255, 255, 0.06);

  /* Text */
  --text: #f0f0eb;
  --text-muted: #94a094;
  --text-dim: #6b746b;

  /* Accent */
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.15);
  --accent-line: rgba(74, 222, 128, 0.35);

  /* Type */
  --serif: 'New York', 'Iowan Old Style', 'Times New Roman', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, 'Cascadia Code', monospace;

  /* Layout */
  --container: 760px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-image: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(74, 222, 128, 0.04),
    transparent 70%
  );
  background-attachment: fixed;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */

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

.container-wide {
  max-width: 960px;
}

/* ------------------------------------------------------------
   Top nav (used on every page)
   ------------------------------------------------------------ */

.nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-line);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.nav-links a.active {
  color: var(--accent);
}

/* ------------------------------------------------------------
   Hero (landing page only)
   ------------------------------------------------------------ */

.hero {
  padding: 80px 0 96px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: reveal 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1.2px;
  margin-bottom: 28px;
  opacity: 0;
  animation: reveal 0.8s ease 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.55;
  opacity: 0;
  animation: reveal 0.8s ease 0.5s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: #0a0d0a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation: reveal 0.8s ease 0.65s forwards;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(74, 222, 128, 0.4);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Pillars (landing page)
   ------------------------------------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 120px;
}

@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.pillar:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.pillar h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.pillar p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Sections (landing page)
   ------------------------------------------------------------ */

.section {
  margin-bottom: 120px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.section p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.section p strong {
  color: var(--text);
  font-weight: 500;
}

/* Privacy block — special emphasis */
.privacy-block {
  padding: 40px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.04), rgba(74, 222, 128, 0));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

.privacy-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.privacy-list {
  list-style: none;
}

.privacy-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.5;
}

.privacy-list li:last-child {
  border-bottom: none;
}

.privacy-list li::before {
  content: '×';
  color: var(--accent);
  font-size: 20px;
  line-height: 1.3;
  flex-shrink: 0;
  font-weight: 300;
}

/* ------------------------------------------------------------
   Footer (every page)
   ------------------------------------------------------------ */

.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-meta {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 24px;
}

/* ------------------------------------------------------------
   Legal document pages (privacy.html, terms.html)
   ------------------------------------------------------------ */

.legal-doc {
  padding: 48px 0 80px;
}

.legal-doc h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.legal-doc .effective {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.legal-doc .lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.legal-doc h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin: 56px 0 20px;
  letter-spacing: -0.3px;
  scroll-margin-top: 80px;
}

.legal-doc h2 .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-right: 10px;
  vertical-align: middle;
}

.legal-doc h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
  letter-spacing: 0.1px;
}

.legal-doc p,
.legal-doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-doc strong {
  font-weight: 600;
  color: var(--text);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc hr {
  border: none;
  height: 1px;
  background: var(--border-soft);
  margin: 56px 0;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color 0.2s ease;
}

.legal-doc a:hover {
  border-bottom-color: var(--accent);
}

.legal-doc .all-caps {
  font-size: 14px;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent-line);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Table of contents card */
.toc {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 56px;
}

.toc h2 {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 16px !important;
  font-weight: 500;
}

.toc ol {
  column-count: 2;
  column-gap: 32px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .toc ol {
    column-count: 1;
  }
}

.toc li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

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

.toc .num {
  font-family: var(--mono);
  color: var(--accent);
  margin-right: 8px;
  font-size: 11px;
  display: inline-block;
  width: 20px;
}

.legal-version {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 64px;
  letter-spacing: 1px;
}
