/* ============================================================
   QUAILS Marketing Website — Shared Stylesheet
   Color palette derived from logo steel-teal: #2b6589
   ============================================================ */

:root {
  --primary:        #2b6589;
  --primary-dark:   #1d4a63;
  --primary-deeper: #163a50;
  --primary-light:  #3d88b0;
  --primary-pale:   #eef5fa;
  --primary-tint:   #daeaf4;
  --accent:         #e07b20;
  --accent-hover:   #c46a18;
  --accent-light:   #fdf0e0;
  --green:          #2a9d5c;
  --green-light:    #e6f6ee;
  --red-dot:        #ed6a5a;
  --yellow-dot:     #f4be4f;
  --green-dot:      #6ac47e;
  --text-dark:      #1a2e3d;
  --text-mid:       #4a6070;
  --text-light:     #7a99ae;
  --border:         #ccdde8;
  --border-light:   #e4eef5;
  --bg-light:       #f6f9fc;
  --white:          #ffffff;
  --shadow-sm:      0 1px 4px rgba(43,101,137,.08);
  --shadow-md:      0 4px 16px rgba(43,101,137,.12);
  --shadow-lg:      0 8px 32px rgba(43,101,137,.16);
  --radius:         10px;
  --radius-lg:      16px;
  --transition:     0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-light); }
.section--dark {
  background: var(--primary-deeper);
  color: var(--white);
}
.section--primary { background: var(--primary); color: var(--white); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.section--dark .section-label,
.section--primary .section-label { color: rgba(255,255,255,.6); }

.section-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section--dark .section-title,
.section--primary .section-title { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}
.section--dark .section-sub,
.section--primary .section-sub { color: rgba(255,255,255,.75); }

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(224,123,32,.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224,123,32,.4);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: var(--white); }
.btn-disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-github {
  background: #24292f;
  color: var(--white);
}
.btn-github:hover { background: #1a1e23; color: var(--white); }

/* ── Badges / Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-green  { background: var(--green-light);   color: var(--green); }
.badge-blue   { background: var(--primary-pale);  color: var(--primary); }
.badge-orange { background: var(--accent-light);  color: var(--accent); }
.badge-white  { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.card-icon svg { width: 22px; height: 22px; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card-body { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Three-col grid ── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 860px) { .three-col { grid-template-columns: 1fr; } }

/* ── Two-col grid ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* ── Screenshot Placeholder ── */
.screenshot-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.browser-chrome {
  background: #e8edf0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: var(--red-dot); }
.dot-yellow { background: var(--yellow-dot); }
.dot-green  { background: var(--green-dot); }
.url-bar {
  flex: 1;
  background: var(--white);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: .75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.browser-content {
  background: var(--bg-light);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 24px;
}
.browser-content img {
  height: 40px;
  opacity: .25;
}
.browser-content p {
  font-size: .85rem;
  color: var(--text-light);
  text-align: center;
  max-width: 320px;
  font-style: italic;
}
.browser-content--tall { min-height: 380px; }
.browser-content--teal { background: var(--primary-pale); }

/* ── Screenshot hero (wider, in hero section) ── */
.hero-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  margin-top: 48px;
}
.hero-screenshot .browser-chrome { background: #1d3545; border-bottom-color: rgba(255,255,255,.08); }
.hero-screenshot .url-bar { background: #2a4a5c; color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.1); }
.hero-screenshot .browser-content { background: #1a2e3d; min-height: 340px; }
.hero-screenshot .browser-content p { color: rgba(255,255,255,.3); }
.hero-screenshot .browser-content img { opacity: .15; filter: brightness(10); }

/* ── Step Row ── */
.steps { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-content strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.step-content p { font-size: .9rem; color: var(--text-mid); }

/* Horizontal steps */
.steps-h {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
  margin-top: 48px;
  position: relative;
}
.steps-h::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-h {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.step-h .step-num { background: var(--primary); color: var(--white); }
.step-h strong { font-size: .85rem; font-weight: 700; color: var(--text-dark); display: block; }
.step-h p { font-size: .78rem; color: var(--text-mid); line-height: 1.45; }
@media (max-width: 760px) {
  .steps-h { grid-template-columns: 1fr 1fr; }
  .steps-h::before { display: none; }
}
@media (max-width: 480px) { .steps-h { grid-template-columns: 1fr; } }

/* ── Table ── */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th {
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--primary-pale); }

/* ── Callout boxes ── */
.callout {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .875rem;
  line-height: 1.6;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 1px; }
.callout-tip  { background: var(--primary-pale); border-left: 3px solid var(--primary); color: var(--primary-dark); }
.callout-warn { background: #fff8e8; border-left: 3px solid #e8a020; color: #7a4f00; }
.callout-note { background: var(--green-light); border-left: 3px solid var(--green); color: #1a5c38; }
.callout strong { font-weight: 700; }

/* ── Code ── */
code {
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', Consolas, monospace;
  font-size: .85em;
  background: var(--primary-pale);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
pre {
  background: #1a2e3d;
  color: #cde8f5;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: .82rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 20px 0;
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', Consolas, monospace;
}
pre code { background: none; color: inherit; padding: 0; border: none; font-size: 1em; }

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-mid);
}
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Pain list (X) ── */
.pain-list { display: flex; flex-direction: column; gap: 10px; }
.pain-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-mid);
}
.pain-list li::before {
  content: '✕';
  color: #d44;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Comparison table (privacy) ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}
.compare-table th {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.compare-table td {
  padding: 12px 16px;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-feature { color: rgba(255,255,255,.55); font-size: .82rem; }
.compare-table .good { color: #6ee7a8; font-weight: 600; }
.compare-table .bad  { color: #f4847a; }
.compare-table .mid  { color: #f4be4f; }

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stat-item {
  flex: 1;
  max-width: 200px;
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: .78rem; color: var(--text-light); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
@media (max-width: 600px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border-light); }
}

/* ── Analysis mode cards ── */
.mode-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.mode-card .mode-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.mode-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.mode-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 12px; }
.mode-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mode-card .tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--primary-pale);
  color: var(--primary);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-cta { margin-left: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-md); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; width: 100%; }
  .nav-cta { display: none; }
  .nav { position: relative; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0 0;
  overflow: hidden;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: rgba(255,255,255,.65); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* ── Footer ── */
footer {
  background: var(--primary-deeper);
  color: rgba(255,255,255,.65);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 28px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .82rem; line-height: 1.65; max-width: 260px; }
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 64px 0;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Docs layout ── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - 64px);
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid var(--border-light);
  background: var(--bg-light);
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.docs-content { padding: 48px 56px; max-width: 820px; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-section-toggle:hover { color: var(--primary); }
.sidebar-section-toggle svg {
  width: 14px; height: 14px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.sidebar-section-toggle.open svg { transform: rotate(180deg); }
.sidebar-links { display: none; }
.sidebar-links.open { display: block; }
.sidebar-links a {
  display: block;
  padding: 7px 20px 7px 32px;
  font-size: .82rem;
  color: var(--text-mid);
  transition: color var(--transition), background var(--transition);
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.sidebar-links a:hover { color: var(--primary); background: var(--primary-pale); }
.sidebar-links a.active {
  color: var(--primary);
  background: var(--primary-pale);
  border-left-color: var(--primary);
  font-weight: 600;
}
.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 28px 0 10px; }
.docs-content p { font-size: .92rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.docs-content ul, .docs-content ol { padding-left: 20px; margin-bottom: 14px; }
.docs-content li { font-size: .92rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 6px; }
.docs-content ul li { list-style-type: disc; }
.docs-content ol li { list-style-type: decimal; }
.docs-section { margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--border-light); }
.docs-section:last-child { border-bottom: none; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--border-light); }
  .docs-content { padding: 32px 24px; }
}

/* ── Download page ── */
.download-cards {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin-top: 48px;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.download-card .os-icon { font-size: 2.8rem; line-height: 1; }
.download-card h3 { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.download-card p { font-size: .78rem; color: var(--text-light); line-height: 1.5; }
.download-card .version-tag { font-size: .7rem; padding: 2px 8px; }
.download-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.download-card--github { border-color: var(--border); background: #f6f8fa; }
@media (max-width: 860px) { .download-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .download-cards { grid-template-columns: 1fr; } }

/* ── OS Tabs ── */
.os-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--border-light); }
.os-tab {
  padding: 10px 22px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition);
}
.os-tab:hover { color: var(--primary); }
.os-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.os-tab-content { display: none; padding: 28px 0; }
.os-tab-content.active { display: block; }
.os-tab-content ol { padding-left: 20px; }
.os-tab-content ol li { margin-bottom: 10px; font-size: .9rem; color: var(--text-mid); line-height: 1.6; }

/* ── About page ── */
.about-lead {
  font-size: 1.15rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: 20px;
}
.author-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--primary-pale);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}
.author-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-info p { font-size: .85rem; color: var(--text-mid); }
.author-info a { color: var(--primary); font-weight: 600; }

/* ── Funding strip ── */
.funding-strip {
  background: var(--primary-pale);
  border: 1px solid var(--primary-tint);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.funding-strip .funding-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── Kappa scale ── */
.kappa-scale { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.kappa-row { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.kappa-range { width: 90px; font-weight: 700; color: var(--primary); font-family: monospace; font-size: .82rem; flex-shrink: 0; }
.kappa-bar { height: 8px; border-radius: 4px; background: var(--primary); opacity: .2; }
.kappa-label { color: var(--text-mid); }
.kappa-row:nth-child(1) .kappa-bar { width: 20%; }
.kappa-row:nth-child(2) .kappa-bar { width: 35%; }
.kappa-row:nth-child(3) .kappa-bar { width: 50%; }
.kappa-row:nth-child(4) .kappa-bar { width: 70%; opacity: .5; }
.kappa-row:nth-child(5) .kappa-bar { width: 100%; opacity: .9; }

/* ── Team list (about page) ── */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-pale);
  border: 1px solid var(--primary-tint);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-member strong {
  display: block;
  font-size: .9rem;
  color: var(--text-dark);
}
.team-member span {
  font-size: .8rem;
  color: var(--text-light);
}

/* ── Hero full name ── */
.hero-fullname {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin: 12px 0 6px;
}

/* ── Utility ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.font-mono { font-family: monospace; }
