/* IBM Plex Sans and IBM Plex Mono (SIL Open Font License 1.1), self-hosted.
   Latin and Latin Extended only; other scripts fall back to system fonts. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Byte Minus — shared styles for every page.
   Colours are tokens on :root. Dark is the default; light follows the system
   setting unless the visitor picks one with the theme toggle. */

:root {
  --bg:          #070b09;
  --bg-2:        #0a100d;
  --surface:     #0d1411;
  --surface-2:   #121c17;
  --border:      #1c2a23;
  --border-hi:   #2b4034;
  --text:        #e4eee8;
  --text-2:      #a6b8ad;
  --text-3:      #73887c;
  --accent:      #7cf3a8;
  --accent-hi:   #b4ffd0;
  --accent-ink:  #04170c;
  --accent-soft: rgba(124, 243, 168, .1);
  --amber:       #f2b25c;
  --amber-soft:  rgba(242, 178, 92, .12);
  --shadow:      0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.8);
  --grid-line:   rgba(124, 243, 168, .05);

  --sans: "IBM Plex Sans", "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius:   10px;
  --radius-s: 6px;
  --max:      1160px;
  --gutter:   clamp(16px, 4vw, 32px);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:          #f6f8f7;
    --bg-2:        #eef3f0;
    --surface:     #ffffff;
    --surface-2:   #f1f5f3;
    --border:      #dce4df;
    --border-hi:   #c3d0c8;
    --text:        #0c1712;
    --text-2:      #3f5147;
    --text-3:      #566a5f;
    --accent:      #0b7a41;
    --accent-hi:   #075c30;
    --accent-ink:  #ffffff;
    --accent-soft: rgba(11, 122, 65, .08);
    --amber:       #8a4f08;
    --amber-soft:  rgba(138, 79, 8, .1);
    --shadow:      0 1px 2px rgba(12,23,18,.05), 0 16px 36px -24px rgba(12,23,18,.25);
    --grid-line:   rgba(11, 122, 65, .06);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg:          #f6f8f7;
  --bg-2:        #eef3f0;
  --surface:     #ffffff;
  --surface-2:   #f1f5f3;
  --border:      #dce4df;
  --border-hi:   #c3d0c8;
  --text:        #0c1712;
  --text-2:      #3f5147;
  --text-3:      #566a5f;
  --accent:      #0b7a41;
  --accent-hi:   #075c30;
  --accent-ink:  #ffffff;
  --accent-soft: rgba(11, 122, 65, .08);
  --amber:       #8a4f08;
  --amber-soft:  rgba(138, 79, 8, .1);
  --shadow:      0 1px 2px rgba(12,23,18,.05), 0 16px 36px -24px rgba(12,23,18,.25);
  --grid-line:   rgba(11, 122, 65, .06);
  color-scheme: light;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none;
  border-radius: var(--radius-s); border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: "→"; transition: transform .15s ease; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 1.02rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .minus { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-s);
  color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-s); border: 1px solid var(--border);
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-hi); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .moon { display: none; }
}
.menu-toggle { display: none; }
.nav-cta { white-space: nowrap; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.section-head.split > div { max-width: 640px; }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 85% 10%, var(--accent-soft), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 32px; }
.hero-note { margin-top: 28px; font-family: var(--mono); font-size: .82rem; color: var(--text-3); }
.hero-note b { color: var(--amber); font-weight: 500; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.stage {
  position: relative; aspect-ratio: 5 / 4; min-height: 260px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background:
    radial-gradient(80% 60% at 50% 30%, var(--accent-soft), transparent 70%),
    var(--surface);
  overflow: hidden; box-shadow: var(--shadow);
}
.stage canvas { display: block; width: 100%; height: 100%; }
.stage-label {
  position: absolute; margin: 0; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); pointer-events: none;
}
.stage-label.bl { left: 14px; bottom: 12px; }
.stage-label.tr { right: 14px; top: 12px; font-variant-numeric: tabular-nums; }
.stage-label b { color: var(--amber); font-weight: 500; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-fallback svg { width: 62%; height: auto; }

/* Product chat preview (hero) ------------------------------------------ */
.chat {
  margin: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px;
  max-width: 480px; justify-self: end; width: 100%;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat-head b { display: block; font-size: .95rem; }
.chat-head small { display: block; font-size: .78rem; color: var(--text-3); }
.chat-head .badge { margin-left: auto; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--amber-soft); color: var(--amber); font: 600 .8rem var(--mono);
}
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.msg.in { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-bottom-right-radius: 4px; align-self: flex-end;
}
.msg .en { display: block; margin-top: 4px; font-size: .78rem; color: var(--text-3); }
.msg .check { display: block; margin-top: 6px; font-family: var(--mono); font-size: .72rem; color: var(--accent); }
.order {
  border: 1px dashed var(--border-hi); border-radius: 12px; padding: 12px 14px; margin-top: 4px;
}
.order-title { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .04em; }
.order dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.order dt { font-size: .72rem; color: var(--text-3); }
.order dd { margin: 0; font-weight: 600; font-size: .9rem; }
.chat figcaption { font-size: .74rem; color: var(--text-3); text-align: center; font-family: var(--mono); }
@media (max-width: 900px) { .chat { justify-self: stretch; max-width: none; } }

.company-facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.company-facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); }
.company-facts div:first-child { border-top: 0; }
.company-facts dt { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.company-facts dd { margin: 0; color: var(--text); }
/* Official social channels: consistent with About and footer tokens. */
.social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 8px; max-width: 280px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: normal; padding: 8px 12px; border: 1px solid var(--border-hi); border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: .84rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.social-links a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); transform: translateY(-1px); }
.social-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social-links span { min-width: 0; overflow-wrap: anywhere; }
.social-links svg { display: block; width: 18px; height: 18px; flex: none; }
.footer-social { margin-top: 18px; }
@media (max-width: 480px) { .company-facts div { grid-template-columns: 1fr; gap: 2px; } }
.manifesto .checks { margin: 0; }

/* Facts band ------------------------------------------------------------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  margin-top: clamp(40px, 6vw, 64px);
}
.facts div { padding: 22px 24px; border-left: 1px solid var(--border); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: .85rem; color: var(--text-3); }
.facts dd { order: -1; margin: 0 0 4px; font-family: var(--mono); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.facts div { display: flex; flex-direction: column; }
@media (max-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--border-hi); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.badge {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-hi); color: var(--text-2); white-space: nowrap;
}
.badge.live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.badge.oss  { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: var(--amber-soft); }

.product { display: flex; flex-direction: column; }
.product .tagline { color: var(--text); font-weight: 500; margin-bottom: 8px; }
.product .foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: .88rem; color: var(--text-3);
}
.product .foot a { font-weight: 600; text-decoration: none; }
.product > p:last-of-type { margin-bottom: 18px; }

.product .install { margin: 0 0 18px; }
.product .install code {
  display: block; font-size: .8rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-s); padding: 8px 10px; overflow-wrap: anywhere;
}
.product .foot .links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.product p code { font-size: .88em; }

/* Feature (open-source spotlight) ---------------------------------------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.feature-body { padding: clamp(26px, 4vw, 44px); }
.feature-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.feature-body > p { color: var(--text-2); }
.feature-side {
  border-left: 1px solid var(--border); background: var(--surface-2);
  padding: clamp(26px, 4vw, 44px); font-family: var(--mono); font-size: .86rem;
}
.feature-side dl { margin: 0; display: grid; gap: 14px; }
.feature-side dt { color: var(--text-3); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-side dd { margin: 2px 0 0; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-side { border-left: 0; border-top: 1px solid var(--border); }
}

.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.42em + 3px); width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checks strong { color: var(--text); font-weight: 600; }

/* Services list ---------------------------------------------------------- */
.service-icon {
  width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
  font-family: var(--mono); font-weight: 600; font-size: .9rem;
}

/* Process ---------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 0 0; border-top: 2px solid var(--border-hi); }
.steps li::before {
  content: "0" counter(step); display: block; font-family: var(--mono); font-size: .82rem;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 10px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--text-2); font-size: .97rem; margin: 0; }

/* Brand line ------------------------------------------------------------- */
.manifesto {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start;
}
.manifesto blockquote {
  margin: 0; font-family: var(--mono); font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.35; letter-spacing: -.02em; color: var(--text);
}
.manifesto blockquote em { font-style: normal; color: var(--amber); }
@media (max-width: 800px) { .manifesto { grid-template-columns: 1fr; } }

/* Post cards ------------------------------------------------------------- */
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; position: relative; }
.post-card h3 { font-size: 1.18rem; line-height: 1.3; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card:hover { border-color: var(--accent); }
.post-card:hover h3 a { color: var(--accent); }
.post-meta { font-family: var(--mono); font-size: .78rem; color: var(--text-3); letter-spacing: .03em; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.post-card p { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.tag { font-family: var(--mono); font-size: .72rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; }

/* FAQ -------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.06rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); margin: -6px 0 22px; max-width: 70ch; }

/* CTA band --------------------------------------------------------------- */
.cta {
  border: 1px solid var(--border-hi); border-radius: var(--radius);
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(70% 120% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--text-2); margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Page header (inner pages) ---------------------------------------------- */
.page-head {
  padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(50% 80% at 90% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.breadcrumbs { font-size: .88rem; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-hi); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* Article ---------------------------------------------------------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.article-layout aside { position: sticky; top: 92px; font-size: .9rem; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-layout aside { position: static; order: -1; } }
.toc { border-left: 2px solid var(--border); padding-left: 16px; }
.toc p { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.prose { font-size: 1.07rem; line-height: 1.78; max-width: 72ch; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2.2em; }
.prose > h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .6em; }
.prose .tldr {
  border: 1px solid var(--border-hi); border-left: 3px solid var(--accent); border-radius: var(--radius-s);
  background: var(--surface); padding: 16px 20px; font-size: 1rem; line-height: 1.7;
}
.prose .tldr p { margin: 0; color: var(--text); }
.prose .tldr .tldr-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.prose a { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose li.task { list-style: none; margin-left: -1.3em; }
.prose li.task input { accent-color: var(--accent); margin: 0 8px 0 0; vertical-align: -1px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  color: var(--text-2); font-style: italic;
}
.prose :not(pre) > code {
  font-size: .88em; background: var(--surface-2); border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 4px; color: var(--text);
}
.prose pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 18px 20px; overflow-x: auto; font-size: .86rem; line-height: 1.6;
}
.prose pre code { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.prose img { border-radius: var(--radius-s); border: 1px solid var(--border); }

.article-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: grid; gap: 28px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-3); font-size: .9rem; }
.share a { color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 6px 12px; text-decoration: none; font-size: .88rem; }
.share a:hover { color: var(--accent); border-color: var(--accent); }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 56px 32px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid p { color: var(--text-2); max-width: 36ch; }
.footer-grid h2 { font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-base {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--text-3); font-size: .85rem;
}
.footer-base .mono b { color: var(--amber); font-weight: 500; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

