/* Teams Chat Exporter landing page styles.
   Single stylesheet, no framework, system-font stack, light+dark via prefers-color-scheme. */

:root {
  --brand: #6050d0;
  --brand-strong: #4d3fb5;
  --brand-tint: #efedfb;
  --brand-tint-strong: #e1ddf7;
  --bg: #ffffff;
  --surface: #fafafd;
  --surface-2: #f3f3f8;
  --text: #0e0e1a;
  --text-muted: #595969;
  --border: #e6e6ee;
  --border-strong: #d6d6e2;
  --shadow-sm: 0 1px 2px rgba(20, 18, 60, 0.05), 0 0 0 1px rgba(20, 18, 60, 0.04);
  --shadow-lg: 0 30px 60px -30px rgba(60, 50, 180, 0.35), 0 12px 24px -16px rgba(20, 18, 60, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

/* Manual theme toggle: html[data-theme="dark"] / [data-theme="light"]
   wins over OS preference. */
:root[data-theme="dark"] {
  --brand: #8a7bf2;
  --brand-strong: #a89cff;
  --brand-tint: #1a1834;
  --brand-tint-strong: #2a2552;
  --bg: #0c0c14;
  --surface: #14141f;
  --surface-2: #1b1b2a;
  --text: #ecedf5;
  --text-muted: #9a9ab0;
  --border: #25253a;
  --border-strong: #34344f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 12px 24px -16px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  --brand: #6050d0;
  --brand-strong: #4d3fb5;
  --brand-tint: #efedfb;
  --brand-tint-strong: #e1ddf7;
  --bg: #ffffff;
  --surface: #fafafd;
  --surface-2: #f3f3f8;
  --text: #0e0e1a;
  --text-muted: #595969;
  --border: #e6e6ee;
  --border-strong: #d6d6e2;
  --shadow-sm: 0 1px 2px rgba(20, 18, 60, 0.05), 0 0 0 1px rgba(20, 18, 60, 0.04);
  --shadow-lg: 0 30px 60px -30px rgba(60, 50, 180, 0.35), 0 12px 24px -16px rgba(20, 18, 60, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --brand: #8a7bf2;
    --brand-strong: #a89cff;
    --brand-tint: #1a1834;
    --brand-tint-strong: #2a2552;
    --bg: #0c0c14;
    --surface: #14141f;
    --surface-2: #1b1b2a;
    --text: #ecedf5;
    --text-muted: #9a9ab0;
    --border: #25253a;
    --border-strong: #34344f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 12px 24px -16px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.9em; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; padding: 10px 14px;
  background: var(--brand); color: white; border-radius: 8px;
  text-decoration: none;
}
.skip:focus { left: 12px; z-index: 100; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--text-muted); text-decoration: none; font-size: 15px;
}
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand) !important; color: white !important;
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-strong) !important; }

.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .theme-moon { display: none; }
.theme-toggle .theme-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-sun  { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .theme-moon { display: block; }
  :root:not([data-theme]) .theme-toggle .theme-sun  { display: none; }
}

/* Install row attention pulse when nav Install is clicked */
@keyframes installPulse {
  0%   { box-shadow: 0 0 0 0 rgba(96, 80, 208, 0.6); }
  100% { box-shadow: 0 0 0 28px rgba(96, 80, 208, 0); }
}
.install.pulse-attention {
  border-radius: 16px;
  animation: installPulse 1.6s ease-out 1;
}
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--brand-tint) 0%, transparent 60%),
    radial-gradient(800px 400px at 0% 30%, var(--brand-tint) 0%, transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center;
}
.hero-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-center .lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.hero-center .install { justify-content: center; }
.hero-center .trust-row {
  justify-content: center;
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
}
.hero-center .trust-row li { gap: 8px; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 6px 12px; background: var(--brand-tint); border-radius: 999px;
  border: 1px solid var(--brand-tint-strong);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 56ch;
}

/* Install buttons */
.install { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 28px; }
.install-btn {
  display: inline-block; line-height: 0;
  border-radius: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  opacity: 0.75;
  filter: saturate(0.85);
}
.install-btn:hover { transform: translateY(-2px); opacity: 1; filter: none; box-shadow: var(--shadow-sm); }
.install-btn img { border-radius: 10px; }
.install-primary { opacity: 1; filter: none; box-shadow: var(--shadow-sm); }
.install-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.install-tight { justify-content: center; }
@media (max-width: 520px) {
  .install-btn img { height: 48px !important; }
}

/* Trust row */
.trust-row {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--text-muted);
}
.trust-row li { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--brand-tint);
}

/* Hero screenshot */
.hero-shot {
  margin: 0;
  position: relative;
}
.hero-shot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Stat band */
.band { padding: 28px 0; }
.band-muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat { text-align: center; }
.stat strong {
  display: block; font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; color: var(--brand); letter-spacing: -0.02em;
}
.stat span { color: var(--text-muted); font-size: 14px; }
@media (max-width: 720px) {
  .band-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Section base */
.section { padding: 80px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Card grids */
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 18px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* Format showcase */
.format-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .format-grid { grid-template-columns: 1fr; } }
.format-grid li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.format-grid li:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.format-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  color: var(--brand); background: var(--brand-tint);
  border: 1px solid var(--brand-tint-strong);
}
.format-grid h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.format-grid p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Privacy microcopy */
.microcopy {
  text-align: center; color: var(--text-muted); font-size: 14px;
  margin: 32px 0 0;
}

/* Environment list */
.env-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .env-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .env-list { grid-template-columns: 1fr; } }
.env-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.env-list strong {
  display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.env-list span { color: var(--text-muted); font-family: var(--mono); font-size: 13px; }

/* Languages cloud */
.lang-cloud {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.lang-cloud li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text);
}

/* FAQ */
#faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 0 0 10px;
  transition: border-color 150ms ease;
}
#faq details[open] {
  border-color: var(--border-strong);
  background: var(--surface);
}
#faq summary {
  cursor: pointer; font-weight: 600;
  list-style: none;
  position: relative; padding-right: 28px;
  font-size: 16px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--brand); font-weight: 400;
  transition: transform 150ms ease;
}
#faq details[open] summary::after { content: "−"; }
#faq details p {
  margin: 12px 0 0; color: var(--text-muted); font-size: 15px;
}

/* Final CTA */
.cta-final {
  padding: 72px 0;
  background:
    radial-gradient(700px 280px at 50% 30%, var(--brand-tint) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-inner p { color: var(--text-muted); margin: 0 0 28px; }
.cta-inner .install { justify-content: center; margin: 0 auto 18px; }
.micro { font-size: 13px; color: var(--text-muted); }
.micro a { color: var(--text-muted); }
.micro a:hover { color: var(--brand); }

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.brand-foot { font-size: 15px; }
.foot-microcopy {
  margin: 12px 0 0; font-size: 13px; color: var(--text-muted);
  max-width: 36ch; line-height: 1.55;
}
.footer h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin: 0 0 12px;
}
.footer nav a {
  display: block; color: var(--text); text-decoration: none;
  font-size: 14px; padding: 4px 0;
}
.footer nav a:hover { color: var(--brand); }
.foot-bottom { padding-top: 20px; color: var(--text-muted); }
.foot-bottom small { font-size: 12px; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Hero secondary CTA */
.hero-secondary-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 22px;
  font-size: 14px; font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
  transition: gap 150ms ease, border-color 150ms ease;
}
.hero-secondary-cta:hover {
  color: var(--brand-strong);
  gap: 10px;
  border-bottom-color: var(--brand);
}
.hero-secondary-cta svg { flex-shrink: 0; }

/* ───── Live demo section ─────────────────────────────────────────── */

/* Full-width demo section. The iframe takes the bulk of the viewport.
   Downloads sit in a horizontal row underneath. No max-width container,
   so the demo dominates above the fold. */
.section-demo {
  padding: 56px 24px 60px;
  background:
    radial-gradient(900px 400px at 50% 0%, var(--brand-tint) 0%, transparent 70%);
}
@media (max-width: 600px) {
  .section-demo { padding: 40px 12px 48px; }
}

.demo-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}
.demo-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.demo-head p {
  color: var(--text-muted); font-size: 16px;
  margin: 0;
}

.demo-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 36px 80px -20px rgba(60, 50, 180, 0.30),
    0 18px 36px -18px rgba(20, 18, 60, 0.18),
    0 0 0 1px var(--border);
  background: #050505;
  aspect-ratio: 16 / 10;
}
@media (max-width: 900px) {
  .demo-frame-wrap {
    aspect-ratio: 9 / 16;
    max-width: 480px;
    border-radius: 12px;
  }
}
.demo-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

.demo-downloads {
  margin: 32px auto 0;
  max-width: 1640px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.demo-downloads-title {
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.demo-downloads-sub {
  color: var(--text-muted); font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.demo-download-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) { .demo-download-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .demo-download-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .demo-download-grid { grid-template-columns: 1fr; } }

.demo-dl {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.demo-dl:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.demo-dl-tag {
  grid-row: 1 / span 2;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--brand-tint-strong);
}
.demo-dl-name { font-size: 13px; font-weight: 600; }
.demo-dl-meta { font-size: 11px; color: var(--text-muted); }
.demo-dl-bundle {
  background: var(--brand-tint);
  border-color: var(--brand-tint-strong);
}
.demo-dl-bundle .demo-dl-tag {
  background: var(--brand);
  color: white;
  border-color: var(--brand-strong);
}
.demo-dl-bundle .demo-dl-name { color: var(--brand); }

/* Print: strip backgrounds, keep content readable */
@media print {
  .topbar, .cta-final, .footer, .install { display: none !important; }
  .hero { padding: 20px 0; background: none; }
  .hero-shot img { box-shadow: none; }
  a { color: var(--text); text-decoration: underline; }
}
