/* TranscriptLayer — landing page styles */
:root {
  color-scheme: light;
  --card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --chat-tool-bg: #ffffff;
  --ok-badge-bg: #f0fdf4;
  --ok-badge-line: #bbf7d0;
  --accent: #f4581c;
  --accent-hover: #d9480f;
  --accent-soft: #fff1ea;
  --ink: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --code-bg: #0f172a;
  --code-line: #1e293b;
  --code-text: #e2e8f0;
  --green: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800; color: var(--ink);
  text-decoration: none !important;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--body); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-hover);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  letter-spacing: -0.02em; max-width: 820px; margin: 0 auto 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  font-size: 19px; max-width: 640px; margin: 0 auto 36px; color: var(--body);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.works-with { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.works-with .chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 500; color: var(--body); background: var(--card);
}
.works-with .chip .dot { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }

/* ---------- Social proof ---------- */
.proof { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.proof-stat { text-align: center; margin-bottom: 40px; }
.proof-stat .num { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.proof-stat .label { color: var(--muted); font-size: 15px; }
.proof-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 820px; margin: 0 auto; }
.proof-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.proof-card .who { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.proof-card .who strong { color: var(--ink); }
.badge-verified {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--green);
  background: var(--ok-badge-bg); border: 1px solid var(--ok-badge-line);
  padding: 3px 10px; border-radius: 999px;
}
.badge-verified::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.proof-card .vol { font-size: 14px; color: var(--muted); }
.proof-card .vol b { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* ---------- Feature blocks ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-demo { order: 1; }
.feature-copy h3 { font-size: 26px; margin-bottom: 6px; }
.credit-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  color: var(--accent-hover); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.credit-badge.free { color: var(--green); background: var(--ok-badge-bg); }
.feature-copy p { margin-bottom: 16px; }
.feature-copy ul { list-style: none; margin-bottom: 20px; }
.feature-copy li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 15px; }
.feature-copy li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.doc-link { font-weight: 600; font-size: 15px; }
.doc-link::after { content: " →"; }

/* ---------- Code panels ---------- */
.code-panel {
  background: var(--code-bg); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); font-size: 13px;
}
.code-panel + .code-panel { margin-top: 14px; }
.code-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--code-line);
  color: #94a3b8; font-size: 12px; font-weight: 600;
  font-family: var(--mono);
}
.code-panel pre {
  padding: 16px; overflow-x: auto; color: var(--code-text);
  font-family: var(--mono); line-height: 1.55;
}
.code-panel code { font-family: var(--mono); }
.tok-k { color: #f472b6; }   /* keyword / method */
.tok-s { color: #a5f3a5; }   /* string */
.tok-n { color: #fbbf24; }   /* number */
.tok-p { color: #7dd3fc; }   /* property */
.tok-c { color: #64748b; }   /* comment */

/* ---------- Chat demo ---------- */
.chat-demo { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.chat-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.chat-msg:last-child { margin-bottom: 0; }
.chat-avatar {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.chat-avatar.user { background: #64748b; }
.chat-avatar.ai { background: var(--accent); }
.chat-bubble { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.chat-tool {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--chat-tool-bg); border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 12px; margin-top: 8px;
}

/* ---------- Integration cards ---------- */
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.integration-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.integration-card h3 { font-size: 19px; margin-bottom: 8px; }
.integration-card p { font-size: 14.5px; margin-bottom: 18px; }
.integration-card .code-panel { margin-top: auto; }
.integration-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}

/* ---------- Pricing ---------- */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto 56px; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.price-card.popular { border-color: var(--accent); border-width: 2px; }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card .plan { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.price-card .amount { font-size: 46px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-card .amount small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-card .subnote { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 26px; }
.price-card li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 14.5px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Calculator */
.calculator {
  max-width: 640px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  box-shadow: var(--shadow);
}
.calculator h3 { text-align: center; font-size: 20px; margin-bottom: 4px; }
.calculator .sub { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.calc-value { text-align: center; font-size: 32px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.calc-value small { font-size: 14px; font-weight: 500; color: var(--muted); }
input[type="range"] {
  width: 100%; margin: 18px 0 8px; accent-color: var(--accent); cursor: pointer;
}
.calc-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.calc-result {
  display: flex; justify-content: space-around; text-align: center;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.calc-result .r-num { font-size: 24px; font-weight: 800; color: var(--accent); }
.calc-result .r-label { font-size: 13px; color: var(--muted); }
.custom-callout {
  text-align: center; margin-top: 40px; font-size: 15px;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--body); font-size: 14.5px; }
.footer a:hover { color: var(--ink); }
.footer .about { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-demo { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 24px;
  }
  .nav.open .nav-links li { padding: 10px 0; }
  .hero { padding: 64px 0 48px; }
}

/* ---------- Theme toggle ---------- */
.theme-btn {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; cursor: pointer; font-size: 14px; line-height: 1;
  color: var(--body);
}
.theme-btn:hover { border-color: var(--muted); }

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --card: #111a2c;
  --nav-bg: rgba(10, 15, 28, 0.9);
  --chat-tool-bg: #0a0f1c;
  --ok-badge-bg: rgba(34, 197, 94, 0.12);
  --ok-badge-line: rgba(34, 197, 94, 0.35);
  --accent-hover: #ff6a2e;
  --accent-soft: rgba(244, 88, 28, 0.15);
  --ink: #f1f5f9;
  --body: #b6c2d4;
  --muted: #8b98ad;
  --line: #1e293e;
  --bg: #0a0f1c;
  --bg-alt: #0f1627;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --card: #111a2c;
    --nav-bg: rgba(10, 15, 28, 0.9);
    --chat-tool-bg: #0a0f1c;
    --ok-badge-bg: rgba(34, 197, 94, 0.12);
    --ok-badge-line: rgba(34, 197, 94, 0.35);
    --accent-hover: #ff6a2e;
    --accent-soft: rgba(244, 88, 28, 0.15);
    --ink: #f1f5f9;
    --body: #b6c2d4;
    --muted: #8b98ad;
    --line: #1e293e;
    --bg: #0a0f1c;
    --bg-alt: #0f1627;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { padding: 0 0 16px; }
.faq-item code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}
