/* Popcorn-style: light, minimal, one CTA */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --border: #e9ecef;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --accent: #0d6efd;
  --accent-hover: #0b5ed7;
  --header-bg: rgba(255, 255, 255, 0.9);
  --badge-bg: rgba(13, 110, 253, 0.08);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --repo-hover-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: min(92vw, 1100px);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --header-bg: rgba(13, 17, 23, 0.9);
  --badge-bg: rgba(88, 166, 255, 0.12);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --repo-hover-shadow: 0 4px 12px rgba(88, 166, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header: logo, nav, one CTA */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  flex-shrink: 0;
  color: var(--text);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--badge-bg);
}

.theme-icon {
  display: block;
  line-height: 0;
}

.theme-icon svg {
  display: block;
}

.theme-icon-moon {
  display: none;
}

.theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero: badge, headline, one CTA */
.hero {
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--badge-bg);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero-cta {
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

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

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 500;
  padding: 0.5rem 0;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Value bullets (3 items under hero) */
.value-props {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

.value-props li {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-props strong {
  color: var(--text);
  font-weight: 600;
}

/* Plan/feature card (Popcorn $69 style) */
.plan-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.plan-section .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.plan-copy h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.plan-copy .plan-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  min-width: 280px;
  box-shadow: var(--card-shadow);
}

.plan-card .plan-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.plan-card .plan-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-card li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.plan-card li:last-child {
  border-bottom: none;
}

/* Three value columns (Simple, Fast & Easy, etc.) */
.value-cols {
  padding: 4rem 0;
}

.value-cols .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.value-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.value-col {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-col h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.value-col p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Providers / coverage pills */
.providers-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.providers-section .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.providers-section .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.providers-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.providers-pills span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* Testimonials (minimal) */
.testimonials-section {
  padding: 4rem 0;
}

.testimonials-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.testimonial-card blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
  color: var(--text);
}

.testimonial-card cite {
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* FAQ */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.faq-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Get started steps (Popcorn "5 minutes") */
.steps-section {
  padding: 4rem 0;
}

.steps-section .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.steps-section .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.steps-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.steps-inline .step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.steps-inline .step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps-inline .step-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.steps-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Final CTA block */
.cta-section {
  padding: 4rem 0;
  background: var(--bg-soft);
  text-align: center;
}

.cta-section .cta-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.cta-section .cta-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sections (articles, architecture, examples) */
.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 42em;
}

.section-lead code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--accent);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.article-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.article-list li {
  margin-bottom: 0.4rem;
}

.article-list a {
  color: var(--accent);
  text-decoration: none;
}

.article-list a:hover {
  text-decoration: underline;
}

.article-nav {
  margin-bottom: 2.5rem;
}

.article-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-block:last-child {
  border-bottom: none;
}

.article-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.article-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.article-block h4 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.article-block p,
.article-block ul,
.article-block ol {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-block ul,
.article-block ol {
  padding-left: 1.5rem;
}

.article-block li {
  margin-bottom: 0.35rem;
}

.article-block code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--accent);
}

/* Code block */
.code-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}

.diagram-figure,
.example-figure {
  margin: 1.25rem 0;
}

.figure-wrap {
  display: inline-block;
  max-width: 100%;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.diagram-figure img,
.example-figure img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.mermaid {
  text-align: center;
  margin: 1.5rem 0;
}
.mermaid svg {
  max-width: 100%;
  height: auto;
}

.together-section figure {
  text-align: center;
}

.repo-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.repo-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.repo-link:hover {
  border-color: var(--accent);
  box-shadow: var(--repo-hover-shadow);
}

.repo-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}

.repo-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer: The Good, The Boring, The Cool */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-cta .btn {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .plan-section .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .plan-card {
    margin: 0 auto;
  }

  .value-cols-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .steps-inline {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .value-props {
    flex-direction: column;
    align-items: center;
  }
}
