/* Whetstone — shared site styles
   Tokens pulled directly from the app's component library for continuity. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600&family=Source+Serif+4:ital@0;1&display=swap');

:root {
  --bg: #08090A;
  --card: #111316;
  --generated: #14181D;
  --border: #23262C;
  --accent: #E4682F;
  --accent-pressed: #C94F1A;
  --text-primary: #F2F0EA;
  --text-secondary: #9098A3;
  --text-faint: #5A6068;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Barlow', -apple-system, sans-serif;
  --condensed: 'Barlow Condensed', 'Barlow', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.wordmark {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
}

.wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 56px; }
}

.eyebrow {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

@media (max-width: 600px) {
  h1 { font-size: 38px; }
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: var(--accent-pressed); }

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

/* Verse card — the signature element */
.verse-demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  position: relative;
}

.verse-demo .ref {
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.verse-demo p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.term {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  cursor: help;
}

.term .popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 260px;
  background: var(--generated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.term .popover .label {
  display: block;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
}

.term:hover .popover,
.term:focus .popover { opacity: 1; transform: translateY(0); pointer-events: auto; }

.explain-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--condensed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: #5B8FA8;
}
.explain-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: #5B8FA8; }

/* Feature grid */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.feature h3 {
  font-family: var(--condensed);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}

.feature p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
}

/* Section titles */
.section-title {
  font-family: var(--condensed);
  font-size: 30px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.section-lede {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 40px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  margin-top: 48px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

.footer-fine {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 24px;
}

/* Legal pages */
.legal {
  padding: 56px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 { font-size: 36px; margin-bottom: 4px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}
.legal p, .legal li { color: var(--text-secondary); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: #5B8FA8; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
