/* Shared public-site tokens — AiConglomerate layout language + TriageBox emerald. */
:root {
  --page: #0d0d0d;
  --surface-1: #1a1a19;
  --surface-2: #141413;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --grid: #2c2c2a;
  --border: rgba(255, 255, 255, 0.1);
  /* Extension brand — racing green emerald (styles.css) */
  --emerald: #1f9d6f;
  --emerald-bright: #2fae7d;
  --emerald-soft: #5cc79a;
  --emerald-deep: #0d6b4a;
  --emerald-dim: rgba(31, 157, 111, 0.14);
  --emerald-glow: rgba(31, 157, 111, 0.26);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { color-scheme: dark; }

body {
  font: 15.5px/1.55 var(--font);
  background: var(--page);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Soft brand wash, not a red vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(31, 157, 111, 0.16), transparent 55%),
    radial-gradient(700px 400px at 92% 8%, rgba(13, 107, 74, 0.1), transparent 50%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

/* Top bar — AiConglomerate-style flat nav */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--emerald-deep);
  box-shadow: 0 0 0 1px var(--emerald-glow);
}

.brand span { font-size: 14.5px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--surface-1);
}

.nav a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--surface-1);
  box-shadow: inset 0 -2px 0 var(--emerald);
  font-weight: 600;
}

.nav a.x-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.nav a.x-link:hover { color: var(--text-primary); }

.nav a.x-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav a.nav-cta {
  color: #071e15;
  background: var(--emerald-soft);
  font-weight: 700;
  padding-inline: 13px;
}

.nav a.nav-cta:hover { color: #071e15; background: #75d7ad; }

/* Typography */
h1 {
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 10px;
}

h2 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 12px;
}

.section-heading h2,
.lead h2,
.outcome h2,
.final-cta h2 {
  margin: 0;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -0.025em;
}

.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

h3 {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text-primary);
  margin: 0 0 6px;
}

p, li { color: var(--text-secondary); margin-bottom: 10px; }
ul { padding-left: 1.15em; margin-bottom: 8px; }
a { color: var(--emerald-soft); }
a:hover { color: var(--emerald-bright); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-soft);
  margin-bottom: 8px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 16.5px;
  max-width: 34em;
  line-height: 1.55;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  padding: 44px 0 52px;
}

.hero-copy { min-width: 0; }

.hero-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.hero-brand .eyebrow { margin: 0; }

.logo {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.product-stage {
  min-width: 0;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(92, 199, 154, .28);
  background: #f3f4f7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46), 0 0 0 1px rgba(31, 157, 111, .08);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #171918;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #4d504e; }
.window-bar span:first-child { background: #e25959; }
.window-bar span:nth-child(2) { background: #d8a948; }
.window-bar span:nth-child(3) { background: var(--emerald); }
.window-bar b { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); }

.product-stage img { display: block; width: 100%; height: auto; }

.product-stage figcaption {
  padding: 9px 13px 10px;
  background: #171918;
  color: var(--text-muted);
  font-size: 11.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.trust-list li { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.trust-list li::before { content: "✓"; color: var(--emerald-soft); margin-right: 6px; font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 0 0 1px var(--emerald-glow), 0 8px 20px rgba(13, 107, 74, 0.35);
}

.btn-primary:hover {
  background: var(--emerald-bright);
  color: #fff;
}

.btn-ghost {
  background: var(--surface-1);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald-soft);
}

/* Panels / cards — surface language from AiConglomerate */
.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
  margin-bottom: 48px;
}

.outcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 24px 24px;
  border-left: 1px solid var(--border);
}

.outcome:first-child { border-left: 0; padding-left: 0; }
.outcome:last-child { padding-right: 0; }
.outcome-number { font: 600 11px/1 var(--mono); color: var(--emerald-soft); padding-top: 5px; }
.outcome h2 { font-size: 16px; }
.outcome p { font-size: 13px; margin: 6px 0 0; color: var(--text-muted); }

.lead {
  margin: 0 0 64px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--text-secondary);
}

.lead strong { color: var(--text-primary); }

.lead-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.lead-heading .eyebrow { margin: 0 0 3px; }
.lead h2 { font-size: 18px; }
.privacy-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #081c14;
  background: var(--emerald-soft);
  font-weight: 900;
}

.section-heading { max-width: 650px; margin: 0 0 18px; scroll-margin-top: 24px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading > p:last-child { margin: 10px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 64px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 26px;
  border-radius: 9px;
  color: var(--emerald-soft);
  background: var(--emerald-dim);
  border: 1px solid rgba(92, 199, 154, .2);
  font-weight: 700;
}

.card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Changelog */
.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-1);
}

.changelog li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px 16px;
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13.5px;
}

.changelog li:first-child { border-top: 0; }

.changelog .ver {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-soft);
  white-space: nowrap;
}

.changelog .date {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.changelog .body { min-width: 0; }

.changelog-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 54px 0 62px;
  padding: 26px 28px;
  border: 1px solid rgba(92, 199, 154, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 157, 111, .14), rgba(31, 157, 111, .035));
}

.final-cta .eyebrow { margin-bottom: 5px; }
.final-cta h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.final-cta p:last-child { margin: 7px 0 0; font-size: 13.5px; }
.final-cta .btn { flex: 0 0 auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .product-stage { max-width: 720px; transform: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { padding-inline: 18px; }
  .topbar { align-items: flex-start; }
  .nav { width: 100%; }
  .nav a { padding-inline: 8px; }
  .nav a.nav-cta { margin-left: auto; }
  .hero { padding: 24px 0 36px; gap: 32px; }
  .hero-brand { align-items: flex-start; flex-direction: column; }
  .outcomes { grid-template-columns: 1fr; }
  .outcome, .outcome:first-child, .outcome:last-child { border-left: 0; border-top: 1px solid var(--border); padding: 18px 0; }
  .outcome:first-child { border-top: 0; }
  .cards { grid-template-columns: 1fr; margin-bottom: 52px; }
  .card-icon { margin-bottom: 18px; }
  .lead { padding: 19px; margin-bottom: 52px; }
  .lead-heading { align-items: flex-start; }
  .final-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
  .final-cta .btn { width: 100%; justify-content: center; }
}

/* Meta / footer */
.meta {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.meta strong { color: var(--text-secondary); }

code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--emerald-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 14px;
}

.footer-row a.x-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
}

.footer-row a.x-link:hover { color: var(--emerald-soft); }

.footer-row a.x-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Hero CTA microcopy (Marketing launch SEO) */
.hero-micro {
  margin: 10px 0 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}
.hero-store-link {
  margin: 0 0 14px;
  font-size: 13px;
}
.hero-store-link a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-store-link a:hover { color: var(--text-primary); }

/* Homepage FAQ */
.faq { margin: 48px 0 24px; }
.faq-list { max-width: 42em; display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--card, rgba(255,255,255,.5));
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-list details p {
  margin: 10px 0 2px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
