/* Brain Static Threads site. System fonts only: no third-party requests. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #5a6071;
  --border: #e3e5ee;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #ffffff;
  --accent-soft: #eef0ff;
  --link: #4338ca;
  --success: #1d7f4e;
  --todo-bg: #fff8c5;
  --todo-text: #7d4e00;
  --shadow: 0 1px 2px rgb(16 18 27 / 6%), 0 8px 24px rgb(16 18 27 / 8%);
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --bg-alt: #141722;
    --surface: #181b26;
    --text: #e8eaf0;
    --muted: #9ba1b3;
    --border: #272b39;
    --accent: #7c7cff;
    --accent-hover: #9696ff;
    --accent-text: #0e1016;
    --accent-soft: #1d1f3d;
    --link: #a5a7ff;
    --success: #4cc38a;
    --todo-bg: #3a2d00;
    --todo-text: #f2cc60;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
}

/* Full wordmark on wider screens, just the mark on phones. */
.brand-mark {
  display: none;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

/* Product sub-navigation */

.subnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  overflow-x: auto;
  font-size: 14px;
}

.subnav-title {
  font-weight: 600;
}

.subnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--text);
}

.subnav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.button:hover {
  border-color: var(--muted);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}

/* Sections */

.hero {
  padding: 88px 0 48px;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, var(--accent-soft), transparent 70%);
}

.hero-inner > * {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.fineprint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 32px;
  font-size: 1.9rem;
}

/* Product hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot::before {
  /* A hint of a window frame, so screenshots don't float on the page. */
  content: '';
  display: block;
  height: 26px;
  border-bottom: 1px solid #e3e5ee;
  background:
    radial-gradient(circle at 16px 13px, #ff6159 4px, transparent 4.5px),
    radial-gradient(circle at 32px 13px, #ffbd2e 4px, transparent 4.5px),
    radial-gradient(circle at 48px 13px, #28c941 4px, transparent 4.5px),
    #f3f4f8;
}

.shot img {
  display: block;
  width: 100%;
}

/* Product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 540px));
  gap: 20px;
}

.product-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.product-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-card .product-kind {
  margin-top: 2px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}

.product-icon {
  flex: none;
  border-radius: 10px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.badge {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

.status {
  color: var(--success);
  font-weight: 600;
}

/* Principles and features */

.principles,
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.principle h3,
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.principle p,
.feature p {
  margin: 0;
  color: var(--muted);
}

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

/* Showcase rows */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.showcase.reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.showcase.reverse .showcase-text {
  order: 2;
}

.showcase h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.showcase p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Checklist */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  padding: 28px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card p {
  margin: 0;
  color: var(--muted);
}

.price-label {
  font-weight: 600;
}

.price-card .price {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 2.6rem;
  font-weight: 800;
}

.price-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
}

/* FAQ */

.faq details,
.faq .section-title {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Call to action */

.cta {
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.cta p {
  margin: 0;
  color: var(--muted);
}

/* Documents (guides, legal, support) */

.prose {
  max-width: 800px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.prose h1 {
  font-size: 2.1rem;
}

.prose h2 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
  font-size: 1.4rem;
}

.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose th,
.prose td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-alt);
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-alt);
  font-size: 0.9em;
}

mark.todo {
  padding: 0 0.2em;
  border-radius: 3px;
  background: var(--todo-bg);
  color: var(--todo-text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.trademark {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 13px;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .showcase,
  .pricing {
    grid-template-columns: 1fr;
  }

  .showcase.reverse {
    grid-template-columns: 1fr;
  }

  .showcase.reverse .showcase-text {
    order: 0;
  }

  .principles,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 52px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .brand-wordmark {
    display: none;
  }

  .brand-mark {
    display: block;
  }

  .principles,
  .features,
  .checklist {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
