/*
Theme Name: jkbmsr
Theme URI: https://github.com/jkbmsr/jkbmsr-wp
Author: JK BMS Remote
Author URI: https://jkbmsr.com
Description: Marketing landing theme for jkbmsr.com — mirrors the product's Unified Design System v1.0 (IBM Plex Sans, emerald accent, steel neutrals, light/dark-ready tokens).
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: jkbmsr
Requires at least: 6.0
*/

/* ---------------------------------------------------------------------------
   Design tokens (Unified Design System v1.0 — mirrors jkbmsr-brand tokens).
   Colors are stored as space-separated RGB channels so opacity can be applied
   with rgb(var(--accent) / 0.12). Light is the default (:root); a .dark class
   on <html> swaps every value.
--------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --canvas: 245 247 249;    /* #F5F7F9 */
  --panel: 255 255 255;     /* #FFFFFF */
  --inset: 237 241 244;     /* #EDF1F4 */
  --control: 195 205 214;   /* #C3CDD6 */
  --line: 139 143 147;      /* #8B8F93 */
  --hairline: 109 119 129;  /* softer border between cards */
  --text-primary: 15 23 32;   /* #0F1720 */
  --text-secondary: 51 65 77; /* #33414D */
  --text-muted: 91 107 119;   /* #5B6B77 */
  --text-subtle: 94 106 118;  /* #5E6A76 */
  --accent: 4 120 87;         /* #047857 energy green */
  --on-accent: 255 255 255;
  --signal: 37 99 235;        /* #2563EB interactive blue */
  --on-signal: 255 255 255;
  --warning: 180 83 9;        /* #B45309 */
  --critical: 220 38 38;      /* #DC2626 */
  --shadow-elevation-1: 0 1px 2px rgb(15 23 32 / 0.05), 0 1px 3px rgb(15 23 32 / 0.06);
  --shadow-elevation-2: 0 4px 8px -2px rgb(15 23 32 / 0.08), 0 12px 24px -12px rgb(15 23 32 / 0.14);
  --shadow-elevation-3: 0 8px 16px -4px rgb(15 23 32 / 0.1), 0 28px 56px -24px rgb(15 23 32 / 0.22);
  --shadow-pop: 0 12px 32px -8px rgb(15 23 32 / 0.2);
  --shadow-glow-accent: 0 0 0 1px rgb(var(--accent) / 0.12), 0 8px 32px -10px rgb(var(--accent) / 0.38);
  --shadow-glow-signal: 0 0 0 1px rgb(var(--signal) / 0.12), 0 8px 32px -10px rgb(var(--signal) / 0.38);
}

.dark {
  color-scheme: dark;
  --canvas: 8 11 14;        /* #080B0E */
  --panel: 16 21 26;        /* #10151A */
  --inset: 11 16 20;        /* #0B1014 */
  --control: 58 74 86;      /* #3A4A56 */
  --line: 77 101 119;       /* #4D6577 */
  --hairline: 51 66 78;
  --text-primary: 255 255 255;
  --text-secondary: 216 224 230;
  --text-muted: 142 154 165;
  --text-subtle: 119 133 143;
  --accent: 23 201 100;     /* #17C964 */
  --on-accent: 4 16 8;
  --signal: 47 155 255;     /* #2F9BFF */
  --on-signal: 2 17 31;
  --warning: 245 165 36;
  --critical: 239 68 68;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--text-secondary));
  background: rgb(var(--canvas));
}
img { max-width: 100%; height: auto; }
a { color: rgb(var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: rgb(var(--text-primary)); line-height: 1.2; font-weight: 750; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.mono, code, pre, kbd { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.border-t { border-top: 1px solid rgb(var(--line) / 0.4); }
pre { overflow-x: auto; padding: 1rem; border-radius: 0.5rem; background: rgb(var(--inset)); font-size: 0.9rem; }
pre code { background: none; padding: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem;
  font-weight: 650; font-size: 1rem; border: 1px solid transparent;
  transition: all 0.15s ease; cursor: pointer; text-decoration: none;
}
.btn:focus-visible { outline: 2px solid rgb(var(--signal)); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, rgb(var(--accent)), rgb(var(--accent) / 0.85));
  color: rgb(var(--on-accent));
  box-shadow: var(--shadow-elevation-2);
}
.btn-primary:hover { box-shadow: var(--shadow-glow-accent); transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  background: rgb(var(--panel)); border-color: rgb(var(--line) / 0.7);
  color: rgb(var(--text-primary)); box-shadow: var(--shadow-elevation-1);
}
.btn-secondary:hover { border-color: rgb(var(--accent) / 0.4); box-shadow: var(--shadow-elevation-2); text-decoration: none; }
.btn-ghost { background: transparent; color: rgb(var(--text-secondary)); font-size: 0.9rem; font-weight: 550; }
.btn-ghost:hover { color: rgb(var(--accent)); text-decoration: none; }

/* Badge pills */
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  background: rgb(var(--accent) / 0.1); color: rgb(var(--accent));
  border: 1px solid rgb(var(--accent) / 0.25);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  box-shadow: var(--shadow-glow-accent);
}
.pill-line { background: rgb(var(--panel)); color: rgb(var(--text-secondary)); border: 1px solid rgb(var(--line) / 0.7); box-shadow: var(--shadow-elevation-1); text-transform: none; letter-spacing: 0; }

/* Gradient headline accent */
.gradient-text {
  background: linear-gradient(90deg, rgb(var(--accent)), rgb(var(--accent) / 0.8), rgb(var(--signal)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Cards */
.card {
  position: relative; overflow: hidden;
  background: rgb(var(--panel));
  border: 1px solid rgb(var(--line) / 0.7);
  border-radius: 1rem; padding: clamp(1.25rem, 3.5vw, 1.5rem);
  box-shadow: var(--shadow-elevation-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--hairline) / 0.7), transparent);
}
.card:hover { transform: translateY(-3px); border-color: rgb(var(--accent) / 0.4); box-shadow: var(--shadow-elevation-3); }
.card-icon {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: 0.75rem; font-size: 1.4rem;
  background: linear-gradient(180deg, rgb(var(--accent) / 0.15), rgb(var(--accent) / 0.05));
  box-shadow: var(--shadow-elevation-1);
}

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--canvas) / 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(var(--line) / 0.25);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 750; color: rgb(var(--text-primary)); font-size: 1.05rem; white-space: nowrap; }
.site-brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; flex-shrink: 0;
  object-fit: contain; border-radius: 0.5rem;
}
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { padding: 0.5rem 0.8rem; border-radius: 0.5rem; font-size: 0.95rem; font-weight: 550; color: rgb(var(--text-secondary)); }
.site-nav a:hover, .site-nav a.active { color: rgb(var(--text-primary)); background: rgb(var(--inset)); text-decoration: none; }
.site-nav a.external::after { content: " ↗"; font-size: 0.8em; color: rgb(var(--text-subtle)); }
.header-ctas { display: flex; align-items: center; gap: 0.75rem; }
.header-ctas .btn { padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 0.5rem; }
.nav-toggle { display: none; background: none; border: 1px solid rgb(var(--line) / 0.6); border-radius: 0.5rem; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; cursor: pointer; font-size: 1.15rem; line-height: 1; color: rgb(var(--text-primary)); transition: border-color 0.15s ease, background 0.15s ease; }
.nav-toggle:hover { background: rgb(var(--inset)); border-color: rgb(var(--accent) / 0.4); }
.nav-toggle:focus-visible { outline: 2px solid rgb(var(--signal)); outline-offset: 2px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 4rem; left: 0; right: 0; flex-direction: column; align-items: stretch; background: rgb(var(--panel)); border-bottom: 1px solid rgb(var(--line)/0.4); padding: 0.5rem 1rem 1rem; box-shadow: var(--shadow-elevation-2); }
  .site-nav a { padding: 0.7rem 0.9rem; border-radius: 0.5rem; font-size: 1rem; }
  .site-nav.open { display: flex; }
  .header-ctas { gap: 0.5rem; }
  .header-ctas .btn { padding: 0.5rem 0.9rem; }
  .header-ctas .btn:nth-child(1) { display: none; }
}

@media (max-width: 360px) {
  .site-header-inner { gap: 0.5rem 0.9rem; }
  .site-brand { font-size: 0.95rem; gap: 0.4rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; font-size: 0.7rem; }
  .header-ctas { gap: 0.35rem; }
  .header-ctas .btn { padding: 0.45rem 0.6rem; font-size: 0.82rem; }
  .nav-toggle { min-width: 2.5rem; min-height: 2.5rem; }
}
@media (max-width: 340px) {
  .site-brand .brand-name { display: none; }
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; align-items: center; padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(4rem, 9vw, 5.5rem); }
.hero-copy { grid-column: span 6 / span 6; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 640px) { .hero-copy { align-items: center; text-align: center; } .hero-copy .hero-ctas, .hero-copy .hero-badges { justify-content: center; } }
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.hero-copy .lead { font-size: clamp(1.05rem, 2.6vw, 1.125rem); color: rgb(var(--text-secondary)); max-width: 34rem; line-height: 1.7; margin: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: rgb(var(--text-subtle)); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-visual { grid-column: span 6 / span 6; min-width: 0; display: flex; justify-content: center; }
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: clamp(2.5rem, 6vw, 3.5rem); }
  .hero-copy, .hero-visual { grid-column: span 1; min-width: 0; }
  .hero-copy { margin: 0 auto; max-width: 36rem; }
}

/* Live telemetry mock card */
.mock-panel {
  width: 100%; max-width: 26rem; border-radius: 1rem;
  border: 1px solid rgb(var(--line) / 0.7);
  background: rgb(var(--panel) / 0.6); padding: clamp(1.25rem, 3.5vw, 1.5rem);
  box-shadow: var(--shadow-pop); backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.mock-chip {
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  background: rgb(var(--accent) / 0.1); color: rgb(var(--accent)); border: 1px solid rgb(var(--accent) / 0.3);
}
.mock-chip.discharge { background: rgb(var(--critical) / 0.1); color: rgb(var(--critical)); border-color: rgb(var(--critical) / 0.3); }
.mock-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.mock-metric { background: rgb(var(--inset)); border: 1px solid rgb(var(--line) / 0.5); border-radius: 0.75rem; padding: 0.75rem; box-shadow: var(--shadow-elevation-1); }
.mock-metric .k { font-size: 0.7rem; text-transform: uppercase; color: rgb(var(--text-subtle)); }
.mock-metric .v { font-size: 1.3rem; font-weight: 800; color: rgb(var(--text-primary)); font-family: "IBM Plex Mono", monospace; }
.mock-cells-label { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(var(--text-subtle)); margin-bottom: 0.75rem; }
.mock-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.mock-cell {
  background: rgb(var(--inset) / 0.7); border: 1px solid rgb(var(--line)); border-radius: 0.5rem; padding: 0.5rem;
}
.mock-cell .n { display: flex; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 0.65rem; color: rgb(var(--text-subtle)); }
.mock-cell .n b { color: rgb(var(--warning)); font-weight: 700; }
.mock-cell .v { font-size: 0.78rem; font-weight: 700; color: rgb(var(--text-primary)); font-family: "IBM Plex Mono", monospace; margin-top: 0.25rem; }
.mock-bar { height: 4px; border-radius: 999px; background: rgb(var(--line)); margin-top: 0.4rem; overflow: hidden; }
.mock-bar > i { display: block; height: 100%; background: rgb(var(--accent)); border-radius: 999px; }
.mock-cell.min { border-color: rgb(var(--critical) / 0.4); }
.mock-cell.min .n b { color: rgb(var(--critical)); }
.mock-cell.min .mock-bar > i { background: rgb(var(--critical)); }
.mock-cell.max { border-color: rgb(var(--warning) / 0.4); }
.mock-cell.max .mock-bar > i { background: rgb(var(--warning)); }

/* ---------------------------------------------------------------------------
   Section headers
--------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 0; }
.section-head p { color: rgb(var(--text-secondary)); font-size: 1rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 1.5rem); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card h3 { margin-top: 1rem; font-size: 1.1rem; }
.card p { margin: 0.4rem 0 0; font-size: 0.9rem; color: rgb(var(--text-secondary)); }
.card.bare:hover { transform: none; }

/* Steps */
.step-card { display: flex; flex-direction: column; justify-content: space-between; }
.step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.step-badge { font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: 700; color: rgb(var(--accent)); padding: 0.2rem 0.6rem; border-radius: 0.5rem; background: rgb(var(--accent) / 0.1); border: 1px solid rgb(var(--accent) / 0.25); }
.step-ico { font-size: 1.3rem; }
.step-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; }

/* Trust bar */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgb(var(--line) / 0.4); border: 1px solid rgb(var(--line) / 0.4); border-radius: 1rem; overflow: hidden; }
.trust-cell { background: rgb(var(--panel)); padding: clamp(1.25rem, 3vw, 1.5rem); text-align: center; }
.trust-cell .v { font-size: clamp(1.35rem, 4vw, 1.6rem); font-weight: 800; color: rgb(var(--accent)); font-family: "IBM Plex Mono", monospace; }
.trust-cell .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(var(--text-subtle)); }
@media (max-width: 640px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.45rem; }
  .compare-table .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; white-space: nowrap; }
}

/* Pricing table */
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgb(var(--line)); border-radius: 1rem; background: rgb(var(--panel)); }
.compare-table th, .compare-table td { padding: 0.9rem; text-align: center; }
.compare-table thead th { text-align: center; }
.compare-table th.feature, .compare-table td.feature { text-align: left; }
.compare-table .interval-row { background: rgb(var(--accent) / 0.05); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.compare-table .interval-row td { font-family: "IBM Plex Mono", monospace; font-weight: 700; color: rgb(var(--accent)); }
.compare-table tbody tr { border-top: 1px solid rgb(var(--line)); }
.tier-price { font-family: "IBM Plex Mono", monospace; font-size: 1.2rem; font-weight: 800; color: rgb(var(--text-primary)); }
.tier-price small { font-size: 0.7rem; font-weight: 400; color: rgb(var(--text-subtle)); }
.check-y { color: rgb(var(--accent)); font-weight: 700; }
.annual-only { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--text-subtle)); }

/* FAQ accordion */
.faq-group { margin-bottom: clamp(2rem, 5vw, 2.5rem); }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.faq-item { background: rgb(var(--panel)); border: 1px solid rgb(var(--line) / 0.7); border-radius: 0.75rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-elevation-1); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: clamp(0.9rem, 3vw, 1rem) clamp(1rem, 3.5vw, 1.25rem); font-weight: 650; color: rgb(var(--text-primary)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: rgb(var(--accent)); font-weight: 700; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans { padding: 0 clamp(1rem, 3.5vw, 1.25rem) clamp(1rem, 3.5vw, 1.25rem); color: rgb(var(--text-secondary)); }

/* Showcase (features detail) */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.showcase-label { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(var(--accent)); }
.showcase-card { display: flex; flex-direction: column; }
.showcase-card .desc { color: rgb(var(--text-secondary)); margin: 0.5rem 0 1rem; }
.showcase-card ul { margin: 0; padding-left: 1.25rem; color: rgb(var(--text-secondary)); font-size: 0.9rem; }
.showcase-card li + li { margin-top: 0.35rem; }

/* Prose (legal / article body) */
.jk-prose { max-width: 44rem; margin: 0 auto; }
.jk-prose > * + * { margin-top: 1.25rem; }
.jk-prose h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.jk-prose h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.jk-prose h3 { font-size: 1.15rem; }
.jk-prose p { color: rgb(var(--text-secondary)); line-height: 1.75; }
.jk-prose ul { padding-left: 1.5rem; }
.jk-prose li + li { margin-top: 0.4rem; }
.jk-prose a { text-decoration: underline; }
.jk-prose strong { color: rgb(var(--text-primary)); }
.jk-prose code { border-radius: 0.25rem; background: rgb(var(--inset)); padding: 0.125rem 0.3rem; }
.jk-prose table, .blog-prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; font-size: 0.9rem; }
.jk-prose th, .jk-prose td, .blog-prose th, .blog-prose td { border: 1px solid rgb(var(--line) / 0.5); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.jk-prose th, .blog-prose th { background: rgb(var(--inset)); color: rgb(var(--text-primary)); font-weight: 650; white-space: nowrap; }
.blog-prose img, .post-figure img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.post-figure img { width: 100%; }
.post-figure { margin: 1.5rem 0; }
.post-figure figcaption { margin-top: 0.5rem; font-size: 0.8rem; color: rgb(var(--text-subtle)); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-meta { font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: rgb(var(--text-subtle)); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-excerpt { color: rgb(var(--text-secondary)); font-size: 0.9rem; }
.post-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 5vw, 2.5rem); }
.post-filter button {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid rgb(var(--line)); background: rgb(var(--panel));
  font-size: 0.85rem; font-weight: 600; color: rgb(var(--text-secondary)); cursor: pointer; transition: all 0.15s;
}
.post-filter button.active, .post-filter button:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent)); color: rgb(var(--on-accent)); }
.blog-prose { font-size: 1rem; line-height: 1.75; }
.blog-prose > * + * { margin-top: 1.25rem; }
.blog-prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.blog-prose h3 { font-size: 1.2rem; }
.blog-prose ul { list-style: disc; padding-left: 1.5rem; }
.blog-prose ol { list-style: decimal; padding-left: 1.5rem; }
.blog-prose li + li { margin-top: 0.4rem; }
.blog-prose code { border-radius: 0.25rem; background: rgb(var(--inset)); padding: 0.125rem 0.3rem; }
.blog-prose a { text-decoration: underline; }
.blog-prose img { border-radius: 0.75rem; }

/* Forms */
.field { width: 100%; padding: 0.7rem 0.9rem; border-radius: 0.5rem; border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); color: rgb(var(--text-primary)); font-size: 1rem; font-family: inherit; }
.field:focus { outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15); }
label { font-weight: 600; font-size: 0.9rem; color: rgb(var(--text-primary)); }

/* Status chips */
.status-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.status-chip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: clamp(0.85rem, 3vw, 1rem) clamp(1rem, 3.5vw, 1.25rem); border-radius: 0.75rem; background: rgb(var(--panel)); border: 1px solid rgb(var(--line) / 0.7); box-shadow: var(--shadow-elevation-1); }
.status-chip .name { font-weight: 700; color: rgb(var(--text-primary)); }
.status-chip .latency { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: rgb(var(--text-subtle)); }
@media (max-width: 480px) { .status-chip { flex-direction: column; align-items: flex-start; gap: 0.4rem; } }
.badge-up { display: inline-flex; align-items: center; gap: 0.4rem; color: rgb(var(--accent)); font-weight: 700; font-size: 0.85rem; }
.badge-up::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgb(var(--accent)); animation: pulse 2s infinite; }
.status-uptime { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: rgb(var(--text-subtle)); }
.status-overall { margin-top: 1.25rem; text-align: center; font-weight: 700; font-size: 1rem; padding: 0.7rem 1rem; border-radius: 0.75rem; border: 1px solid rgb(var(--line) / 0.7); background: rgb(var(--inset) / 0.4); color: rgb(var(--text-secondary)); }
.status-overall--operational { color: rgb(var(--accent)); background: rgb(var(--accent) / 0.08); border-color: rgb(var(--accent) / 0.3); }
.status-overall--degraded { color: rgb(var(--warning)); background: rgb(var(--warning) / 0.1); border-color: rgb(var(--warning) / 0.35); }
.status-overall--outage { color: rgb(var(--critical)); background: rgb(var(--critical) / 0.1); border-color: rgb(var(--critical) / 0.35); }
.status-filter { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }
.status-filter__btn { border: 1px solid rgb(var(--line) / 0.7); background: rgb(var(--panel)); color: rgb(var(--text-secondary)); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.status-filter__btn.active { background: rgb(var(--accent)); color: rgb(var(--on-accent)); border-color: rgb(var(--accent)); }
.status-detail { margin-top: 0.75rem; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: rgb(var(--text-secondary)); word-break: break-word; }
.status-bars { display: flex; gap: 1px; width: 100%; margin-top: 0.15rem; }
.status-bar { flex: 1 1 0; min-width: 1px; height: 0.5rem; padding: 0; border: 0; border-radius: 2px; background: rgb(var(--inset)); cursor: pointer; }
.status-bar--up { background: rgb(var(--accent)); }
.status-bar--down { background: rgb(var(--critical)); }
.status-bar--degraded { background: rgb(var(--warning)); }
.status-bar--nodata { background: rgb(var(--inset)); box-shadow: inset 0 0 0 1px rgb(var(--line) / 0.5); }
.badge-down { display: inline-flex; align-items: center; gap: 0.4rem; color: rgb(var(--critical)); font-weight: 700; font-size: 0.85rem; }
.badge-down::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgb(var(--critical)); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Download */
.download-hero { text-align: center; padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.download-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; }
.download-hero p { color: rgb(var(--text-secondary)); font-size: 1.05rem; max-width: 36rem; margin: 0; line-height: 1.65; }
.download-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 900px) { .download-features { grid-template-columns: 1fr; } }
.page-lead { max-width: 36rem; margin: 0 auto 2.5rem; color: rgb(var(--text-secondary)); font-size: 1.05rem; }
@media (max-width: 640px) { .page-lead { margin-bottom: 2rem; } }
.apk-pill {
  display: inline-flex; align-items: center; gap: 0.9rem; border-radius: 999px; padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  background: rgb(var(--accent)); color: rgb(var(--on-accent)); box-shadow: var(--shadow-glow-accent); transition: all 0.15s;
}
.apk-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevation-3); text-decoration: none; }
.apk-pill .dot { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: rgb(var(--on-accent) / 0.15); flex: 0 0 auto; }
.apk-pill .l1 { display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.apk-pill .l2 { display: block; font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.store-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; border-radius: 999px;
  border: 1.5px solid rgb(var(--line) / 0.7); color: rgb(var(--text-primary)); font-weight: 650; font-size: 0.9rem;
}
.store-pill:active, .store-pill.disabled { opacity: 0.6; cursor: not-allowed; }
a.store-pill.live { border-color: rgb(var(--accent)); color: rgb(var(--accent)); }
a.store-pill.live:hover { background: rgb(var(--accent) / 0.12); text-decoration: none; }
.download-meta { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; font-family: "IBM Plex Mono", monospace; font-size: clamp(0.75rem, 2.6vw, 0.85rem); color: rgb(var(--text-secondary)); }
.download-meta .sep { opacity: 0.5; }
.sha-box { max-width: 30rem; width: 100%; margin: 1rem auto 0; text-align: center; }
.sha-label { display: block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--text-subtle)); }
.sha { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.35rem; font-size: 0.8rem; color: rgb(var(--accent)); }
.sha-note { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: rgb(var(--text-subtle)); }
.pulse-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--accent)); animation: pulse 2s infinite; }
.dl-stack { max-width: 60rem; margin: clamp(2rem, 6vw, 3rem) auto 0; display: grid; gap: clamp(1.5rem, 4vw, 2rem); text-align: left; }
.app-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border-radius: 1.25rem;
  border: 1px solid rgb(var(--line)); background: rgb(var(--panel)); overflow: hidden; box-shadow: var(--shadow-elevation-2);
}
@media (max-width: 900px) { .app-card { grid-template-columns: minmax(0, 1fr); } }
.app-copy, .app-cta { min-width: 0; }
.app-copy { padding: clamp(1.5rem, 4.5vw, 2.25rem); }
.app-copy h2 { margin-top: 1rem; font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; }
.app-copy h2 + p { margin-top: 0.75rem; color: rgb(var(--text-secondary)); font-size: 0.95rem; line-height: 1.6; }
.app-copy ul { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.5rem; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: rgb(var(--text-subtle)); }
.app-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 999px;
  border: 1px solid rgb(var(--signal) / 0.25); background: rgb(var(--signal) / 0.1); color: rgb(var(--signal));
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(var(--signal)); animation: pulse 2s infinite; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.app-cta { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: clamp(1.5rem, 4.5vw, 2.25rem); border-left: 1px solid rgb(var(--line)); background: rgb(var(--inset) / 0.4); }
@media (max-width: 900px) { .app-cta { border-left: 0; border-top: 1px solid rgb(var(--line)); text-align: center; align-items: center; } }
.app-cta a { position: relative; max-width: 100%; justify-content: flex-start; }
@media (max-width: 480px) {
  .app-cta .apk-pill, .app-cta .store-pill { width: 100%; justify-content: center; }
  .app-cta .apk-pill { flex-wrap: wrap; }
}
.ble-pill .dot { background: rgb(var(--on-accent) / 0.15); }
.app-card--featured { border-color: rgb(var(--accent) / 0.45); box-shadow: var(--shadow-glow-accent); }
.app-title { display: flex; align-items: center; gap: 0.9rem; }
.app-icon { width: 3.5rem; height: 3.5rem; border-radius: 0.9rem; box-shadow: var(--shadow-elevation-2); flex: 0 0 auto; }
.play-badge { display: inline-block; line-height: 0; transition: transform 0.15s; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge img { height: 3.75rem; width: auto; }
.shot-gallery { max-width: 60rem; margin: clamp(1.5rem, 4vw, 2rem) auto 0; text-align: center; }
.shot-gallery h3 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; }
.shot-gallery > p { margin-top: 0.5rem; color: rgb(var(--text-secondary)); font-size: 0.95rem; }
.shot-strip { display: flex; gap: 1rem; margin-top: 1.25rem; overflow-x: auto; padding: 0.5rem 0.25rem 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot { flex: 0 0 auto; width: clamp(9rem, 26vw, 12rem); scroll-snap-align: start; margin: 0; }
.shot img { display: block; width: 100%; aspect-ratio: 1080 / 2358; object-fit: cover; object-position: top; border-radius: 1.4rem; border: 1px solid rgb(var(--line)); box-shadow: var(--shadow-elevation-2); background: rgb(var(--inset)); }
.shot figcaption { margin-top: 0.6rem; font-size: 0.8rem; font-weight: 650; color: rgb(var(--text-secondary)); }

/* Closing CTA */
.closing-cta { text-align: center; padding: clamp(3.5rem, 8vw, 5rem) 0; }
.closing-cta .sub { color: rgb(var(--text-secondary)); }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer { background: rgb(var(--inset) / 0.6); border-top: 1px solid rgb(var(--line) / 0.4); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 2rem); padding: clamp(2.25rem, 6vw, 3rem) 0 clamp(1.5rem, 4vw, 2rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > .footer-col:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(var(--text-subtle)); margin-bottom: 0.75rem; }
.footer-col a { display: block; padding: 0.25rem 0; color: rgb(var(--text-secondary)); font-size: 0.9rem; }
.footer-col a:hover { color: rgb(var(--accent)); }
.footer-bottom { border-top: 1px solid rgb(var(--line) / 0.3); padding: clamp(1rem, 3vw, 1.25rem) 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: rgb(var(--text-subtle)); }
.footer-bottom a { color: rgb(var(--text-subtle)); }
.footer-bottom a:hover { color: rgb(var(--accent)); }
.independence-note { font-size: 0.82rem; color: rgb(var(--text-subtle)); padding: 1rem 0 0; }

/* 404 */
.notfound { text-align: center; padding: clamp(4rem, 10vw, 6rem) 0; }
.notfound h1 { font-size: clamp(3rem, 15vw, 5rem); font-weight: 800; }
.notfound .mono { color: rgb(var(--accent)); }

/* Utility */
.mt-4 { margin-top: 1rem; }
.mt-4r { margin-top: clamp(2rem, 5vw, 3rem); }
.text-center { text-align: center; }
.text-accent { color: rgb(var(--accent)); }

/* Standardized page hero (inner pages) */
.page-hero { max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.page-hero p { color: rgb(var(--text-secondary)); font-size: clamp(1rem, 2.6vw, 1.05rem); margin: 0; max-width: 40rem; }
.page-hero p + p { margin-top: 0.25rem; }

/* Form card (contact) */
.form-card { max-width: 32rem; margin: 0 auto; background: rgb(var(--panel)); border: 1px solid rgb(var(--line) / 0.7); border-radius: 1rem; padding: clamp(1.5rem, 4.5vw, 2rem); box-shadow: var(--shadow-elevation-1); }
.form-card > form { display: flex; flex-direction: column; }
.form-row + .form-row { margin-top: 1rem; }
.form-card .field { font-size: 1rem; }
.form-card .btn { width: 100%; justify-content: center; }

/* Touch ergonomics + motion safety */
@media (max-width: 640px) {
  .btn { padding: 0.75rem 1.25rem; }
  .showcase { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .mock-panel { animation: none; }
}

/* ---------------------------------------------------------------------------
   Donations — public donors wall (/donations)
--------------------------------------------------------------------------- */
.donors-loading { color: rgb(var(--text-muted)); text-align: center; }
.donors-summary { text-align: center; font-size: 1rem; color: rgb(var(--text-secondary)); margin: 0 0 1.25rem; }
.donors-summary strong { color: rgb(var(--text-primary)); }
.donor-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.donor-tab { padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 600; border: 1px solid rgb(var(--line) / 0.6); border-radius: 999px; background: rgb(var(--panel)); color: rgb(var(--text-secondary)); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.donor-tab:hover { border-color: rgb(var(--accent) / 0.5); color: rgb(var(--text-primary)); }
.donor-tab.active { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--on-accent)); }
.top-supporters { max-width: 34rem; margin: 0 auto 2rem; }
.top-supporters-title { text-align: center; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(var(--text-muted)); margin-bottom: 0.75rem; }
.top-supporters-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.top-supporters-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: rgb(var(--panel)); border: 1px solid rgb(var(--line) / 0.6); border-radius: 0.75rem; }
.top-rank { width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: rgb(var(--inset)); color: rgb(var(--text-secondary)); }
.top-rank.rank-1 { background: #f5c542; color: #3a2c00; }
.top-rank.rank-2 { background: #c7ced6; color: #23303b; }
.top-rank.rank-3 { background: #d99a5b; color: #341f08; }
.top-name { flex: 1; font-weight: 600; color: rgb(var(--text-primary)); overflow-wrap: anywhere; }
.top-amount { color: rgb(var(--accent)); font-weight: 700; white-space: nowrap; }
.donors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.donor-card { animation: donor-in 0.4s ease both; }
@keyframes donor-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.donor-head { display: flex; align-items: center; gap: 0.7rem; }
.donor-avatar { width: 2.25rem; height: 2.25rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgb(var(--accent) / 0.14); color: rgb(var(--accent)); font-weight: 700; }
.donor-name { font-weight: 700; color: rgb(var(--text-primary)); margin: 0; overflow-wrap: anywhere; }
.donor-meta { font-size: 0.78rem; color: rgb(var(--text-muted)); margin: 0.1rem 0 0; }
.donor-message { margin: 0.8rem 0 0; font-size: 0.9rem; color: rgb(var(--text-secondary)); font-style: italic; overflow-wrap: anywhere; }
.donor-empty { grid-column: 1 / -1; text-align: center; color: rgb(var(--text-muted)); }
.donor-skeleton { min-height: 5rem; background: rgb(var(--inset) / 0.6); animation: donor-pulse 1.2s ease-in-out infinite; }
@keyframes donor-pulse { 50% { opacity: 0.55; } }

/* Blog listing thumbnails */
.post-thumb { display: block; margin: 0 0 0.85rem; border-radius: 0.6rem; overflow: hidden; background: rgb(var(--inset)); }
.post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }