/**
 * ElevenLabs-inspired design system, applied to the Guild home page.
 * Source: github.com/nexu-io/open-design (plugins/_official/design-systems/elevenlabs/DESIGN.md).
 * Same token set as guild-docs (260827-001-activity's Docusaurus restyle) so the two Guild
 * properties read as one brand. DESIGN.md documents ElevenLabs' LIGHT marketing site only
 * (near-white canvas, black text, warm-stone accents, whisper-thin display type, multi-layer
 * sub-0.1-opacity shadows, pill buttons); the [data-theme="dark"] block is the same
 * same-language derivation used on guild-docs — near-black cinematic canvas, shadows inverted
 * to light-on-dark — not a documented ElevenLabs surface. Waldenburg (the spec's display face)
 * is a commercial font with no public CDN; Inter at weight 300 stands in for it.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --canvas: #ffffff;
  --surface-alt: #f5f5f5;
  --ink: #000000;
  --ink-soft: #4e4e4e;
  --ink-muted: #777169;
  --line: #e5e5e5;
  --border-subtle: rgba(0, 0, 0, 0.05);
  --warm-shadow: rgba(78, 50, 23, 0.04) 0px 6px 16px;
  --shadow-outline: rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 1px 2px,
    rgba(0, 0, 0, 0.04) 0px 2px 4px;
  --shadow-card: rgba(0, 0, 0, 0.4) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 4px;
  --btn-primary-bg: #000000;
  --btn-primary-ink: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-ink: #000000;
  --radius: 20px;
  --radius-pill: 9999px;
  --max: 1080px;
  font-size: 17px;
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #0a0a0a;
  --surface-alt: #141414;
  --ink: #f5f5f5;
  --ink-soft: #b3b3b3;
  --ink-muted: #9a9186;
  --line: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --warm-shadow: rgba(255, 200, 140, 0.05) 0px 6px 16px;
  --shadow-outline: rgba(255, 255, 255, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 6px;
  --shadow-card: rgba(0, 0, 0, 0.6) 0px 0px 1px, rgba(0, 0, 0, 0.3) 0px 4px 8px;
  --btn-primary-bg: #ffffff;
  --btn-primary-ink: #000000;
  --btn-secondary-bg: #1a1a1a;
  --btn-secondary-ink: #f5f5f5;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  letter-spacing: 0.16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

header.site {
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--canvas);
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.logo { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}
.theme-toggle:hover { box-shadow: var(--shadow-outline); }
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }

.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); color: var(--btn-primary-ink); }

.hero {
  background: var(--surface-alt);
  padding: 80px 0 60px;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--canvas);
  margin-bottom: 24px;
  box-shadow: var(--shadow-outline);
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  max-width: 820px;
}
.hero .sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  letter-spacing: 0.16px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-1px); color: var(--btn-primary-ink); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-ink); border: 1px solid var(--line); }
.btn-secondary:hover { box-shadow: var(--shadow-outline); color: var(--btn-secondary-ink); }

section { padding: 60px 0; }
section.tint { background: var(--surface-alt); }
section h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-align: center;
}
section > .wrap > p.lead {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  text-align: center;
}
section > .wrap > p {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--ink-soft);
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
}
.col h3 { font-size: 1.05rem; margin: 0 0 10px; font-weight: 500; }
.col p { color: var(--ink-soft); margin: 0; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.card {
  background: var(--canvas);
  border: none;
  box-shadow: var(--shadow-outline);
  border-radius: var(--radius);
  padding: 22px;
}
.card h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.faq { max-width: 760px; margin: 32px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; }
.faq-item p { margin: 0; color: var(--ink-soft); }

.closing {
  text-align: center;
  padding: 68px 0 76px;
}
.closing h2 { margin-bottom: 14px; }
.closing p { max-width: 620px; margin: 0 auto 26px; color: var(--ink-soft); }

footer.site {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
