/* ============================================================
   XLNTalk — static HTML export
   Drop-in CSS for use alongside Tailwind CDN
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Chivo:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --background: #FFFFFF;
  --foreground: #0A0A0A;
  --surface: #F2F2F2;
  --muted-foreground: #555555;
  --border: #E5E5E5;
  --primary: #2858FF;
  --primary-foreground: #FFFFFF;
}
html.dark {
  --background: #0A0A0A;
  --foreground: #FFFFFF;
  --surface: #141414;
  --muted-foreground: #A1A1AA;
  --border: #27272A;
  --primary: #4A75FF;
  --primary-foreground: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Chivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

.font-display { font-family: 'Outfit', system-ui, sans-serif; }
.font-body { font-family: 'Chivo', system-ui, sans-serif; }
.font-mono, code, kbd { font-family: 'JetBrains Mono', monospace; }

/* tokens via tailwind utility colors */
.bg-background { background: var(--background); }
.bg-foreground { background: var(--foreground); }
.bg-surface { background: var(--surface); }
.bg-primary { background: var(--primary); }
.text-background { color: var(--background); }
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }
.border-foreground { border-color: var(--foreground); }
.border-primary { border-color: var(--primary); }

.container-x { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
@media (min-width: 768px)  { .container-x { padding-left: 3rem !important; padding-right: 3rem !important; } }
@media (min-width: 1024px) { .container-x { padding-left: 6rem !important; padding-right: 6rem !important; } }
.container-x > * { max-width: 100%; }

.label-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-foreground);
}

.grid-bg {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* waveform */
@keyframes wf { 0%,100%{transform:scaleY(0.2)} 50%{transform:scaleY(1)} }
.wf-bar { display:inline-block; width:3px; background:var(--foreground); transform-origin:center; animation: wf 1.2s ease-in-out infinite; }

/* recording pulse */
@keyframes recPulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 70%, transparent); }
  50%     { box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 0%, transparent); }
}
.rec-dot {
  display:inline-block; width:10px; height:10px;
  background: var(--primary); border-radius:9999px;
  animation: recPulse 1.6s ease-out infinite;
}

@keyframes reveal { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
.reveal { animation: reveal 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }

::selection { background: var(--primary); color: var(--primary-foreground); }

/* nav blur */
.site-navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-link {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--foreground); }
.nav-link.active { color: var(--primary); }
.icon-btn {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--border);
  display:inline-flex; align-items:center; justify-content:center;
  transition: border-color 0.15s, color 0.15s;
}
.icon-btn:hover { border-color: var(--primary); }
.btn {
  display:inline-flex; align-items:center; gap: 0.5rem;
  font-family: 'Chivo', system-ui, sans-serif;
  font-weight: 700; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 0;
}
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  height: 3.5rem; padding: 0 1.75rem;
}
.btn-primary.sm { height: 2.5rem; padding: 0 1.25rem; }
.btn-primary:hover {
  background: var(--foreground); color: var(--background);
}
.btn-outline {
  background: transparent; color: var(--foreground);
  border: 1px solid var(--foreground);
  height: 3.5rem; padding: 0 1.75rem;
}
.btn-outline:hover {
  background: var(--foreground); color: var(--background);
}

/* layout grid (12 col) */
.grid-12 { display:grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1.5rem; }

/* generic helpers */
.border-x-1 { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.divide-x-border > * + * { border-left: 1px solid var(--border); }
.bento {
  display:grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.bento > * { background: var(--background); }

/* faq item */
.faq-item summary {
  list-style: none;
  padding: 1.5rem 0;
  display:flex; align-items:flex-start; justify-content:space-between; gap: 1.5rem;
  cursor: pointer;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-plus { display:inline-block; }
.faq-item summary .icon-minus { display:none; }
.faq-item[open] summary .icon-plus { display:none; }
.faq-item[open] summary .icon-minus { display:inline-block; }
.faq-item .faq-body {
  padding-bottom: 1.5rem; padding-right: 3rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* form */
.input {
  width: 100%; height: 3rem; padding: 0 1rem;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  outline: none; font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--primary); }
textarea.input { height: auto; padding: 0.75rem 1rem; resize: none; }

.topic-btn {
  height: 3rem; padding: 0 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em;
  background: var(--background); color: var(--foreground);
  border: 0;
  transition: background 0.15s, color 0.15s;
}
.topic-btn:hover { background: var(--surface); }
.topic-btn.active { background: var(--primary); color: var(--primary-foreground); }

/* toast */
#toast {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 100;
  display: none;
  padding: 0.875rem 1.25rem;
  background: var(--foreground); color: var(--background);
  font-size: 0.875rem;
  border-left: 3px solid var(--primary);
  max-width: 360px;
}
#toast.show { display:block; animation: reveal 0.4s ease-out; }
#toast.error { border-left-color: #FF3B30; }

/* misc */
.aspect-43 { aspect-ratio: 4 / 3; }
.aspect-34 { aspect-ratio: 3 / 4; }
.aspect-1   { aspect-ratio: 1 / 1; }
.hidden { display: none !important; }
