/* HeXaGoal landing - vanilla CSS, no CDN dependency.
   Design tokens: emerald-700 brand, slate text on slate-50 bg, system font stack. */

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

:root {
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-50:  #ecfdf5;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-500: #f59e0b;
  --amber-50:  #fffbeb;
  --amber-900: #78350f;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--slate-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--emerald-700); text-decoration: none; }
a:hover { color: var(--emerald-800); text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; color: var(--slate-900); margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }

/* ============== Site shell ============== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--emerald-800);
}
.brand svg { width: 32px; height: 32px; }

.site-nav { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.site-nav a { color: var(--slate-600); }
.site-nav a.active { color: var(--emerald-700); font-weight: 600; }
.site-nav a:hover { color: var(--emerald-700); }

.site-main {
  flex-grow: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--slate-200);
  background: #fff;
  padding: 1.5rem;
  margin-top: 3rem;
}
.site-footer .container {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--slate-500);
}
@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; }
}
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { color: var(--slate-500); }
.site-footer a:hover { color: var(--emerald-700); }

/* ============== Home page hero ============== */

.hero {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(to bottom, var(--slate-50), var(--slate-100));
}
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
  .hero .lede { font-size: 1.5rem; }
}

.coming-soon {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  padding: 1.5rem 2rem;
  max-width: 28rem;
  margin-bottom: 3rem;
}
.coming-soon .tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-700);
  margin-bottom: 0.5rem;
}
.coming-soon p { margin: 0.5rem 0; color: var(--slate-700); }
.coming-soon .small { font-size: 0.875rem; color: var(--slate-500); }

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
  width: 100%;
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}
.feature .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature h3 { margin-bottom: 0.25rem; color: var(--slate-900); font-size: 1rem; }
.feature p { font-size: 0.875rem; color: var(--slate-600); }

/* ============== Article pages (about, prose) ============== */

.article h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.article > p:first-of-type {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
}
.article h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}
.article h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article p, .article li { color: var(--slate-700); }
.article ul, .article ol { padding-left: 1.5rem; margin: 0 0 1em; }
.article li { margin-bottom: 0.25rem; }
.article strong { font-weight: 700; color: var(--slate-900); }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1em 0;
}
.article th, .article td {
  border: 1px solid var(--slate-300);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.article th { background: var(--slate-100); font-weight: 600; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  background: var(--slate-100);
  padding: 0.1em 0.3em;
  border-radius: 0.2em;
}
.article pre {
  background: var(--slate-100);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}
.article blockquote {
  border-left: 4px solid var(--slate-300);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--slate-600);
  font-style: italic;
}

/* ============== Support FAQ ============== */

.support-intro {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card .button {
  display: inline-block;
  background: var(--emerald-700);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.contact-card .button:hover { background: var(--emerald-800); text-decoration: none; }
.contact-card .small { font-size: 0.875rem; color: var(--slate-500); margin-top: 1rem; }

.faq h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--slate-900);
}
.faq details[open] summary { margin-bottom: 0.75rem; }
.faq details .body p { margin: 0.5rem 0; }

/* ============== DRAFT banner (PP / ToS) ============== */

.draft-banner {
  background: var(--amber-50);
  border-left: 4px solid var(--amber-500);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
}
.draft-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--amber-900);
}
