/* ===========================================================
   h2code Landing — Minimal, professional
   Palette: warm cream, dark khaki, logo red accent
   =========================================================== */

:root {
  --bg:        #f7f6f0;
  --bg-2:      #efede5;
  --bg-card:   #ffffff;
  --text:      #1a1a1a;
  --text-2:    #3d3d35;
  --muted:     #5e5c52;
  --muted-2:   #85837a;
  --line:      #dedccf;
  --line-2:    #c9c7ba;
  --accent:    #bb4949;
  --accent-d:  #8e3535;
  --khaki:     #adad85;
  --khaki-d:   #4a4933;
  --good:      #4d6b3a;
  --warn:      #a8792e;
  --danger:    #b4453c;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(173, 173, 133, 0.18), transparent 60%),
    radial-gradient(600px 400px at 10% 20%, rgba(187, 73, 73, 0.04), transparent 50%);
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 246, 240, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
nav.scrolled { border-color: var(--line); }

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  min-height: 68px;
  padding: 8px 0;
}
nav .wrap { max-width: 1320px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
}
.brand small {
  color: var(--muted-2);
  font-weight: 500;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover {
  border-color: var(--khaki-d);
  background: var(--bg);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
}
.btn-ghost { background: transparent; }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; }

/* ---------- Hero ---------- */
header.hero {
  padding: 80px 0 56px;
  position: relative;
  min-height: calc(100vh - 68px); /* minus sticky nav */
  display: flex;
  align-items: center;
}
header.hero > .wrap { width: 100%; }

.hero-panel {
  background: rgba(215, 215, 192, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(185, 185, 155, 0.55);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
}
.hero-panel .install {
  background: #ffffff;
  border-color: var(--line);
}
/* Tabs: dark bg, light text (inverted) */
.hero-panel .tabbar {
  background: #26251f;
  border-bottom-color: #3d3b30;
}
.hero-panel .tabbar button { color: #b8b5a5; }
.hero-panel .tabbar button:hover { color: #f5efdf; }
.hero-panel .tabbar button.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Glass panels for all content blocks ---------- */
/* Hero: не на весь экран — сразу видно следующий блок со статистикой */
body.landing header.hero {
  min-height: 0;
  padding: 48px 0 48px;
}
body.landing section > .wrap,
body.landing > div.wrap {
  background: rgba(215, 215, 192, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(185, 185, 155, 0.55);
  border-radius: var(--radius);
  padding: 36px 28px;
}
body.landing section { padding: 48px 0; }
body.landing > div.wrap .stats-band { margin-bottom: 0; }

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  text-align: center;
}
.hero-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-brand-name {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

h1.hero-title {
  /* одна строка при любой ширине: текст ≈ 16.9px ширины на 1px кегля, делитель 18 даёт запас */
  font-size: clamp(16px, calc((100vw - 48px) / 18), 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}
h1.hero-title .grad {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 32px;
  text-align: center;
  text-wrap: balance;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.install {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tabbar {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.tabbar button {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.tabbar button:hover { color: var(--text); }
.tabbar button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(187, 73, 73, 0.05);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.cmd-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.cmd-line code {
  flex: 1;
  color: var(--text);
  word-break: break-all;
}
.cmd-line .prompt {
  color: var(--accent);
  user-select: none;
  font-weight: 700;
}
.copy {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}
.copy:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(187, 73, 73, 0.05);
}
.copy.copied {
  color: var(--good);
  border-color: var(--good);
  background: rgba(77, 107, 58, 0.08);
}

/* ---------- Stat band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 64px;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
}
.ftag {
  font-family: var(--mono);
  font-size: 12px;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.stat {
  background: var(--bg-card);
  padding: 16px 14px;
  text-align: center;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.stat .label {
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head {
  width: 100%;
  margin-bottom: 40px;
}
.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 0;
}
h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
  max-width: 920px;
}
h2 .grad { color: var(--accent); }
.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 920px;
}

/* ---------- Origin story ---------- */
.story { width: 100%; }
.story p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.65;
  max-width: 920px;
}
.story p strong { color: var(--text); font-weight: 600; }
.story p:last-child { margin-bottom: 0; }

/* ---------- Memory comparison ---------- */
.mem-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mem-row {
  display: grid;
  grid-template-columns: 190px 1fr 110px;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.mem-row:last-child { border-bottom: 0; }
.mem-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.mem-name .lang {
  color: var(--muted-2);
  font-size: 11px;
  font-family: var(--mono);
  display: inline;
  margin-left: 7px;
}
.mem-bar {
  height: 14px;
  background: var(--bg-2);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.mem-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--khaki);
  width: 0;
  transition: width 1.2s cubic-bezier(.16, 1, .3, 1);
}
.mem-fill.mid { background: var(--muted-2); }
.mem-fill.heavy { background: var(--accent); }
.mem-val {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}
.mem-row.us .mem-name { color: var(--accent); }
.mem-row.us .mem-val { color: var(--accent); font-weight: 700; }

.mem-note {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

/* Memory methodology */
.mem-method {
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.mem-method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 30px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.mem-method-head::-webkit-details-marker { display: none; }
.mem-method-head h4 {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}
.mem-method-head .mm-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}
.mm-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-left: 4px;
  flex-shrink: 0;
}
.mem-method[open] .mm-chev { transform: rotate(225deg); }
.mem-method-body {
  padding: 0 30px 26px;
  border-top: 1px solid var(--line);
}
.mem-method[open] .mem-method-head { border-bottom: 0; }
.mem-method-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 0;
}
.mem-method-body p strong { color: var(--text); font-weight: 600; }
.mem-method-body p code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
}
.mm-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0 !important;
}
.mm-label {
  font-weight: 700;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
}
.mm-eq, .mm-op { color: var(--muted-2); font-weight: 700; }
.mm-term { color: var(--text); }
.mm-caveat {
  font-size: 13px !important;
  color: var(--muted-2) !important;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px !important;
}

/* ---------- Solo Maintainer accordion ---------- */
.solo-acc {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.solo-acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 30px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.solo-acc-head::-webkit-details-marker { display: none; }
.solo-acc-head h4 {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}
.solo-acc-head .sa-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  flex-shrink: 0;
}
.sa-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-left: 4px;
  flex-shrink: 0;
}
.solo-acc[open] .sa-chev { transform: rotate(225deg); }
.solo-acc-body {
  padding: 0 30px 26px;
  border-top: 1px solid var(--line);
}
.solo-acc[open] .solo-acc-head { border-bottom: 0; }
.solo-acc-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 0;
}
.solo-acc-body p strong { color: var(--text); font-weight: 600; }
.solo-acc-body p code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
}

/* Solo table */
.solo-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table.solo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.solo-table th,
table.solo-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  vertical-align: top;
}
table.solo-table thead th {
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.solo-table tbody tr:last-child td { border-bottom: 0; }
table.solo-table td code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
table.solo-table td:first-child {
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
table.solo-table td.bad { color: var(--danger); }
table.solo-table td.good { color: var(--good); }
table.solo-table td.us-col,
table.solo-table th.us-col {
  background: rgba(187, 73, 73, 0.04);
}
table.solo-table th.us-col { color: var(--accent); }

.solo-note {
  font-size: 13.5px !important;
  color: var(--text-2) !important;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 16px 20px !important;
  margin: 18px 0 0 !important;
}

/* ---------- Why Crystal ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.pillar .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.pillar h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.pillar p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.pillar p code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
.pillar .tag {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 0;
}

.one-line {
  margin-top: 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--text-2);
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.one-line b { color: var(--accent); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.feature-group-head:first-child { margin-top: 0; }
.feature-group-head .gtag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.feature-group-head .gline {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--bg-2);
  color: var(--accent);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.feature p strong { color: var(--text); font-weight: 600; }
.feature p code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}

/* ---------- Voice protocol section ---------- */
#protocol h3 code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}
#protocol .section-lead code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
#protocol .code-block { margin-top: 18px; }

/* ---------- Voice protocol accordion ---------- */
.proto-acc-list {
  display: grid;
  gap: 10px;
}
.proto-acc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.proto-acc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.proto-acc-head::-webkit-details-marker { display: none; }
.pa-method {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}
.pa-method.get {
  color: var(--khaki-d);
  background: rgba(122, 113, 66, 0.1);
  border: 1px solid var(--khaki);
}
.pa-method.post {
  color: var(--accent);
  background: rgba(187, 73, 73, 0.07);
  border: 1px solid var(--accent);
}
.pa-path {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
}
.pa-desc {
  color: var(--muted);
  font-size: 12.5px;
  margin-left: auto;
  text-align: right;
}
.pa-chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.proto-acc[open] .pa-chev { transform: rotate(225deg); }
.proto-acc[open] .proto-acc-head { border-bottom: 1px solid var(--line); }
.proto-acc-body pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  background: #fafaf8;
}
.proto-acc-body pre .c { color: var(--muted-2); }
.pa-note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0;
  padding: 12px 18px 0;
}
.pa-note code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .pa-desc { display: none; }
}

/* ---------- Freedom table ---------- */
.freed-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
table.freed {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.freed th,
table.freed td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.freed thead th {
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.freed tbody tr:hover { background: var(--bg); }
table.freed tr.us { background: rgba(187, 73, 73, 0.04); }
table.freed tr.us td:first-child { color: var(--accent); font-weight: 700; }
.yes { color: var(--good); font-weight: 600; }
.no  { color: var(--danger); font-weight: 600; }
.partial { color: var(--warn); font-weight: 600; }

/* ---------- Build from source ---------- */
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.steps {
  list-style: none;
  counter-reset: s;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 46px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}
.steps li h4 { font-size: 15px; margin-bottom: 5px; font-weight: 700; }
.steps li p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.steps li code {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12.5px;
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-block .cb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.code-block .cb-head .d { width: 10px; height: 10px; border-radius: 50%; }
.code-block .cb-head .d.r { background: #e57b7b; }
.code-block .cb-head .d.y { background: #d4a843; }
.code-block .cb-head .d.g { background: #6a9c55; }
.code-block .cb-head .f {
  margin-left: 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 12px;
}
.code-block pre {
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: #fafaf8;
}
.code-block pre .c { color: var(--muted-2); }
.code-block pre .k { color: var(--accent); font-weight: 600; }
.code-block pre .s { color: var(--khaki-d); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-inner .brand { margin-bottom: 12px; }
footer p {
  color: var(--muted-2);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 400px;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-links div h5 {
  color: var(--text);
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links a {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }
footer .footnote {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 640px;
  list-style: none;
  padding-left: 0;
}
footer .footnote li { margin-bottom: 4px; }
footer .footnote li:last-child { margin-bottom: 0; }
footer .footnote sup { color: var(--muted-2); }
.fnref {
  font-size: 0.55em;
  margin-left: 1px;
  color: var(--muted-2);
}

/* ---------- Flying developers in bubbles (fixed page background) ---------- */
.bubbles-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* rising soap bubbles across the full hero width */
.bubbles-bg { position: absolute; inset: 0; }
.bub {
  position: absolute;
  top: 100%;
  left: var(--x);
  animation: rise var(--t) linear infinite;
  animation-delay: var(--dl);
  will-change: transform;
}
.bub b {
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  border: 1px solid rgba(74, 73, 51, 0.22);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 72% 82%, rgba(187, 73, 73, 0.14) 0 16%, rgba(187, 73, 73, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(173, 173, 133, 0.10) 0 55%, rgba(255, 255, 255, 0.34) 72%, rgba(173, 173, 133, 0.16) 100%);
  animation: sway var(--st) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes rise {
  to { transform: translate3d(0, calc(-100vh - 160px), 0); }
}
@keyframes sway {
  from { transform: translateX(calc(-1 * var(--sw))); }
  to   { transform: translateX(var(--sw)); }
}

/* the happy developers: carried by bubbles, flying bottom → top on a loop */
.dude-wrap {
  position: absolute;
  top: 100%;
  right: 4%;
  width: 230px;
  animation: dudeRise 30s linear infinite;
  animation-delay: -6s;
  filter: drop-shadow(0 10px 18px rgba(74, 73, 51, 0.18));
  will-change: transform;
}
.dude {
  display: block;
  width: 100%;
  height: auto;
  animation: dudeTilt 7s ease-in-out infinite;
}
/* left twin: mirrored placement, desynced flight */
.dude-wrap.dude-left {
  left: 4%;
  right: auto;
  animation-duration: 36s;
  animation-delay: -12.5s;
}
.dude-wrap.dude-left .dude { animation-delay: -3.5s; }
.dude-wrap.dude-left .veh  { animation-delay: -2.2s; }
/* lying talker: rides a wide bubble, chats upward */
.dude-wrap.dude-lie {
  right: 24%;
  width: 210px;
  animation-duration: 33s;
  animation-delay: -16s;
}
.dude-wrap.dude-lie .dude { animation-delay: -1.5s; }
/* cat: bounces on its bubble all the way up */
.dude-wrap.dude-cat {
  left: 13%;
  right: auto;
  width: 165px;
  animation-duration: 27s;
  animation-delay: -18s;
}
.dude-wrap.dude-cat .dude { animation: none; }
.dude-wrap.dude-cat .veh  { animation-duration: 1.4s; }
/* yogi: headstand on a bubble, meditating */
.dude-wrap.dude-yogi {
  left: auto;
  right: 13%;
  width: 185px;
  animation-duration: 40s;
  animation-delay: -10s;
}
.dude-wrap.dude-yogi .dude { animation-delay: -2s; }
/* walker: strolls along the bottom edge of the screen */
.dude-wrap.dude-walk {
  left: 0;
  right: auto;
  top: auto;
  bottom: -4px;
  width: 130px;
  animation: walkAcross 38s linear infinite;
  animation-delay: -12s;
}
.dude-wrap.dude-walk .dude { animation: none; }
/* walk cycle: thigh swings, shin bends at the knee during swing-over,
   arms counter-swing, body bounces twice per stride */
.legA, .legB {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: thighSwing .62s ease-in-out infinite;
}
.legB { animation-delay: -.31s; }
.shin {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: kneeBend .62s ease-in-out infinite;
}
.shinB { animation-delay: -.31s; }
.warm {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: armSwing .62s ease-in-out infinite;
}
.warmB { animation-delay: -.31s; }
/* the phone arm stays still while walking */
.warmA { animation: none; }
.walk-bob {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: walkBob .155s ease-in-out infinite alternate;
}
.walk-shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: shadowPulse .155s ease-in-out infinite alternate;
}
@keyframes walkAcross {
  from { transform: translateX(-150px); }
  to   { transform: translateX(calc(100vw + 150px)); }
}
@keyframes thighSwing {
  0%   { transform: rotate(-25deg); }
  50%  { transform: rotate(25deg); }
  100% { transform: rotate(-25deg); }
}
@keyframes kneeBend {
  0%, 45% { transform: rotate(2deg); }
  65%     { transform: rotate(58deg); }
  85%     { transform: rotate(10deg); }
  100%    { transform: rotate(2deg); }
}
@keyframes armSwing {
  0%   { transform: rotate(18deg); }
  50%  { transform: rotate(-18deg); }
  100% { transform: rotate(18deg); }
}
@keyframes walkBob {
  from { transform: translateY(0); }
  to   { transform: translateY(-3.5px); }
}
@keyframes shadowPulse {
  from { transform: scale(1);    opacity: .8; }
  to   { transform: scale(.88);  opacity: .5; }
}
.ponytail {
  transform-box: fill-box;
  transform-origin: 100% 0%;
  animation: ponySwing .62s ease-in-out infinite alternate;
}
@keyframes ponySwing {
  from { transform: rotate(6deg); }
  to   { transform: rotate(-4deg); }
}

/* speech waves above the lying talker's mouth */
.wave {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: waveUp 2.4s ease-out infinite;
}
.wave.w2 { animation-delay: .8s; }
.wave.w3 { animation-delay: 1.6s; }
@keyframes waveUp {
  0%   { opacity: 0; transform: translateY(6px); }
  25%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px); }
}

/* cat bounce: squash on landing, stretch in flight */
.cat-jump {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: catJump 1.4s ease-in-out infinite;
}
@keyframes catJump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12%      { transform: translateY(1px) scale(1.06, .9); }
  38%      { transform: translateY(-24px) scale(.96, 1.08); }
  60%      { transform: translateY(-28px) scale(.98, 1.06); }
  86%      { transform: translateY(1px) scale(1.05, .92); }
}
.veh {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: vehBounce 4.5s ease-in-out infinite;
}
.hand { transform-box: fill-box; transform-origin: center; }
.hand.hl { animation: type .22s ease-in-out infinite alternate; }
.hand.hr { animation: type .22s ease-in-out .11s infinite alternate; }
@keyframes type {
  from { transform: translateY(0); }
  to   { transform: translateY(-3px); }
}
.logo-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoPulse 2.6s ease-out infinite;
}
@keyframes logoPulse {
  0%        { transform: scale(1);   opacity: .6; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
.spark {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkFloat 5.2s ease-out infinite;
}
.sp2 { animation-delay: 1.7s; }
.sp3 { animation-delay: 3.4s; }

/* floating speech words above the coding dudes */
.word {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  fill: #bb4949;
  animation: wordFloat 55s ease-out infinite;
}
/* one shared 55s timeline, 2.5s slots, six speakers in rotation:
   R(0,15,30,42.5,50) L(2.5,17.5,32.5,45,52.5) Y(5,20,35,47.5)
   D(7.5,22.5,37.5) C(10,25) W(12.5,27.5,40) */
.dude-right .words .word:nth-child(1) { animation-delay: 0s; }
.dude-right .words .word:nth-child(2) { animation-delay: 15s; }
.dude-right .words .word:nth-child(3) { animation-delay: 30s; }
.dude-right .words .word:nth-child(4) { animation-delay: 42.5s; }
.dude-right .words .word:nth-child(5) { animation-delay: 50s; }
.dude-left .words .word:nth-child(1) { animation-delay: 2.5s; }
.dude-left .words .word:nth-child(2) { animation-delay: 17.5s; }
.dude-left .words .word:nth-child(3) { animation-delay: 32.5s; }
.dude-left .words .word:nth-child(4) { animation-delay: 45s; }
.dude-left .words .word:nth-child(5) { animation-delay: 52.5s; }
.dude-yogi .words .word:nth-child(1) { animation-delay: 5s; }
.dude-yogi .words .word:nth-child(2) { animation-delay: 20s; }
.dude-yogi .words .word:nth-child(3) { animation-delay: 35s; }
.dude-yogi .words .word:nth-child(4) { animation-delay: 47.5s; }
/* yogi is upside down — his words sink downward */
.dude-yogi .word {
  animation-name: wordFloatDown;
  font-size: 11px;
}
.dude-lie .words .word:nth-child(1) { animation-delay: 7.5s; }
.dude-lie .words .word:nth-child(2) { animation-delay: 22.5s; }
.dude-lie .words .word:nth-child(3) { animation-delay: 37.5s; }
.dude-cat .words .word:nth-child(1) { animation-delay: 10s; }
.dude-cat .words .word:nth-child(2) { animation-delay: 25s; }
.dude-walk .words .word:nth-child(1) { animation-delay: 12.5s; }
.dude-walk .words .word:nth-child(2) { animation-delay: 27.5s; }
.dude-walk .words .word:nth-child(3) { animation-delay: 40s; }
@keyframes wordFloat {
  0%        { opacity: 0; transform: translateY(12px) scale(.7); }
  2%        { opacity: 1; transform: translateY(0) scale(1); }
  3.8%      { opacity: 1; transform: translateY(-18px) scale(1); }
  4.5%, 100%{ opacity: 0; transform: translateY(-30px) scale(1); }
}
@keyframes wordFloatDown {
  0%        { opacity: 0; transform: translateY(-12px) scale(.7); }
  2%        { opacity: 1; transform: translateY(0) scale(1); }
  3.8%      { opacity: 1; transform: translateY(18px) scale(1); }
  4.5%, 100%{ opacity: 0; transform: translateY(30px) scale(1); }
}
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(8px) scale(.5); }
  15%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-44px) scale(1.05); }
}
@keyframes dudeRise {
  0%   { transform: translate(0, 60px); }
  25%  { transform: translate(16px, calc(-25vh - 45px)); }
  50%  { transform: translate(-12px, calc(-50vh - 150px)); }
  75%  { transform: translate(14px, calc(-75vh - 280px)); }
  100% { transform: translate(0, calc(-100vh - 420px)); }
}
@keyframes dudeTilt {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2.5deg); }
}
@keyframes vehBounce {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.015, 0.97); }
}

@media (max-width: 1180px) {
  .dude-wrap { width: 180px; }
}
@media (max-width: 900px) {
  .dude-wrap { width: 150px; opacity: .85; }
}
@media (max-width: 700px) {
  .dude-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles-scene, .bubbles-scene * { animation: none !important; }
}

/* ---------- Responsive ---------- */
/* ---------- Ecosystem ---------- */
.eco-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 34px 0 26px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.eco-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.eco-node-icon { flex: none; margin-bottom: 9px; }
.eco-node-icon svg { display: block; width: 34px; height: 34px; }
.eco-node.relay .eco-node-icon svg { width: 38px; height: 38px; }
.eco-node.relay {
  border-style: dashed;
  background: transparent;
}
.eco-node.relay .eco-node-name { color: var(--muted); }
.eco-node.relay .eco-node-name small { color: var(--muted-2); }
.eco-node-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.eco-node-name small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-2);
  font-family: var(--mono);
  margin-top: 2px;
}
.eco-link {
  flex: none;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.eco-link .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  background: var(--bg-card);
}
.eco-arrow {
  position: relative;
  width: 52px;
  height: 2px;
  background: var(--accent);
}
.eco-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--accent);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.feature-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
a.feature-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
a.feature-link:hover { color: var(--accent-d); border-bottom-color: var(--accent-d); }

/* ---------- Scenes (why) ---------- */
.hero.compact { min-height: 0; padding: 32px 0 40px; }
.hero.compact .hero-sub { margin-bottom: 20px; }
.hero.compact .hero-logo { width: 48px; height: 48px; }
.hero.compact .hero-brand-name { font-size: clamp(24px, 3.4vw, 32px); }
.hero.compact .hero-title { font-size: clamp(24px, 4vw, 42px); }
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.scene {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 24px;
}
.scene svg { width: 100%; height: auto; display: block; }
.scene h3 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; }
.scene p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.scene.compact { padding: 10px 10px 14px; }
.scene.compact svg { height: 185px; }
.scene.compact h3 { font-size: 14px; margin: 10px 0 3px; }
.scene.compact p { font-size: 13px; }

/* ---------- Download buttons (compact, in hero) ---------- */
.dl-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.hero.compact .dl-row { margin-bottom: 0; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.12);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.dl-btn:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 53, 53, 0.28);
}
.dl-btn .dl-arrow { width: 18px; height: 18px; flex: none; }
.dl-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
}
.hero.compact .dl-note { margin-bottom: 40px; }

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

/* ---------- Setup steps (remote.html) ---------- */
.setup-head { margin: 48px 0 28px; }
.setup-head .section-lead { margin-top: 2px; }
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.setup-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 10px 14px;
}
.setup-step .step-num {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-d);
}
.setup-step svg { width: 100%; height: 185px; display: block; }
.setup-step h3 { font-size: 14px; font-weight: 700; margin: 10px 2px 3px; }
.setup-step p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 2px; }
.setup-step p code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: rgba(187, 73, 73, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
}
@media (max-width: 900px) {
  .setup-grid { grid-template-columns: 1fr; }
}

/* ---------- Product switcher (in nav, left of section links) ---------- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.nav-products {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
}
.np {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.np:hover { color: var(--text); }
.np.active { background: var(--accent); color: #fff; }

/* ---------- Cross-page nav strip ---------- */
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.page-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.page-nav a:hover { color: var(--accent); }
.page-nav a b { color: var(--text); }
.page-nav a .arr { font-family: var(--mono); margin: 0 6px; }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 0;
    row-gap: 10px;
  }
  .nav-products {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .eco-flow { flex-direction: column; }
  .eco-link { align-self: center; }
  .eco-arrow { width: 2px; height: 22px; }
  .eco-arrow::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%);
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 7px solid var(--accent);
    border-bottom: none;
  }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .story, .build-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mem-row { grid-template-columns: 190px 1fr 88px; gap: 12px; }
  .hero-headline { gap: 18px; }
  .hero-logo { width: 64px; height: 64px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header.hero { padding: 64px 0 44px; }
  section { padding: 48px 0; }
  body.landing section { padding: 32px 0; }
  body.landing section > .wrap,
  body.landing > div.wrap { padding: 24px 14px; }
  .stats-band { grid-template-columns: 1fr; }
  .mem-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 8px 0;
  }
  .mem-val { order: 2; }
  .mem-bar { order: 3; grid-column: 1 / -1; }
  .hero-logo { width: 56px; height: 56px; }
  .hero-panel { padding: 32px 16px 24px; }
  .footer-links { gap: 32px; }
}

/* ---------- Use cases (voice.html) ---------- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 26px;
}
.usecase-art {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafaf8;
  padding: 10px 12px;
  margin-bottom: 18px;
}
.usecase-art svg { display: block; width: 100%; height: auto; }
.usecase-art text { font-family: var(--mono); }
.uc-label { font-size: 10px; fill: var(--muted-2); letter-spacing: 0.04em; }
.uc-chiptext { font-size: 9.5px; font-weight: 700; fill: var(--khaki-d); }
.uc-mono { font-size: 12px; fill: var(--text); }
.uc-sub { font-size: 9.5px; fill: var(--text-2); }
.usecase h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.usecase p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.usecase p strong { color: var(--text); font-weight: 600; }

/* use-case art animations */
.uc-bars rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: ucBar 1.15s ease-in-out infinite;
}
.uc-bars rect:nth-child(2) { animation-delay: .12s; }
.uc-bars rect:nth-child(3) { animation-delay: .24s; }
.uc-bars rect:nth-child(4) { animation-delay: .36s; }
.uc-bars rect:nth-child(5) { animation-delay: .48s; }
@keyframes ucBar {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1); }
}

.uc-doc line { opacity: 0; animation: ucLine 5s ease-in-out infinite; }
.uc-doc line:nth-child(1) { animation-delay: 0s; }
.uc-doc line:nth-child(2) { animation-delay: .4s; }
.uc-doc line:nth-child(3) { animation-delay: .8s; }
.uc-doc line:nth-child(4) { animation-delay: 1.2s; }
.uc-doc line:nth-child(5) { animation-delay: 1.6s; }
@keyframes ucLine {
  0%        { opacity: 0; }
  8%        { opacity: 1; }
  80%       { opacity: 1; }
  94%, 100% { opacity: 0; }
}

.uc-dash {
  stroke-dasharray: 4 7;
  animation: ucDash 0.9s linear infinite;
}
@keyframes ucDash { to { stroke-dashoffset: -11; } }

.uc-sub { opacity: 0; animation: ucSub 7s ease-in-out infinite; }
.uc-sub.s2 { animation-delay: 3.5s; }
@keyframes ucSub {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.uc-progress {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: ucProg 7s linear infinite;
}
@keyframes ucProg {
  from { transform: scaleX(.05); }
  to   { transform: scaleX(1); }
}

.uc-arc { opacity: 0; animation: ucArc 1.6s ease-out infinite; }
.uc-arc.a2 { animation-delay: .3s; }
@keyframes ucArc {
  0%        { opacity: 0; }
  30%       { opacity: 1; }
  100%      { opacity: 0; }
}

.uc-cursor { animation: ucBlink 1.1s steps(1) infinite; }
@keyframes ucBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .uc-bars rect, .uc-dash, .uc-arc, .uc-cursor, .uc-sub, .uc-progress, .uc-doc line {
    animation: none !important;
  }
  .uc-doc line { opacity: 1; }
  .uc-sub { opacity: 1; }
  .uc-sub.s2 { opacity: 0; }
  .uc-arc { opacity: 1; }
  .uc-progress { transform: scaleX(.6); }
}

@media (max-width: 900px) {
  .usecases-grid { grid-template-columns: 1fr; }
}

/* ---------- Compact page (voice.html: everything on one screen) ---------- */
.compact-page header.hero {
  min-height: 0;
  padding: 14px 0 10px;
}
.compact-page .hero-headline {
  flex-direction: row;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.compact-page .hero-logo { width: 38px; height: 38px; }
.compact-page .hero-brand-name { font-size: 24px; }
.compact-page h1.hero-title { font-size: clamp(22px, 2.6vw, 32px); }
.compact-page .hero-sub {
  font-size: 14.5px;
  max-width: 760px;
  margin-bottom: 0;
}
.compact-page .stats-band { margin-bottom: 12px; }
.compact-page .stat { padding: 10px 14px; }
.compact-page .stat .num { font-size: 22px; margin-bottom: 3px; }
.compact-page .stat .label { font-size: 11.5px; }
.compact-page section { padding: 10px 0; }
.compact-page .section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  margin-bottom: 10px;
}
.compact-page .section-tag { margin-bottom: 0; }
.compact-page h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 0; }
.compact-page .features-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.compact-page .feature-group-head { display: none; }
.compact-page .feature { padding: 12px; }
.compact-page .feature .feature-icon {
  width: 28px;
  height: 28px;
  font-size: 11px;
  margin-bottom: 10px;
}
.compact-page .feature h3 { font-size: 13.5px; }
.compact-page .feature p { font-size: 12px; line-height: 1.45; }
.compact-page .feature-meta { font-size: 10px; margin-top: 8px; }
.compact-page .one-line {
  margin-top: 14px;
  font-size: 14px;
  padding: 10px;
}
.compact-page .usecases-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.compact-page .usecase { padding: 12px; }
.compact-page .usecase-art { padding: 5px 7px; margin-bottom: 8px; }
.compact-page .usecase-art svg { max-height: 96px; margin: 0 auto; }
.compact-page .usecase h3 { font-size: 13.5px; }
.compact-page .usecase p { font-size: 12px; line-height: 1.45; }
.compact-page .page-nav { margin-top: 14px; padding-top: 12px; }
.compact-page footer { padding: 10px 0; }
.compact-page footer .footnote { margin-top: 0; padding-top: 10px; }

@media (max-width: 1020px) {
  .compact-page .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-page .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-page header.hero { min-height: calc(100vh - 68px); }
}
@media (max-width: 640px) {
  .compact-page .features-grid,
  .compact-page .usecases-grid { grid-template-columns: 1fr; }
}

.compact-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-2);
}
.compact-foot .cf-links { display: flex; gap: 20px; }
.compact-foot .cf-links a { font-weight: 600; color: var(--muted); }
.compact-foot .cf-links a:hover { color: var(--accent); }

/* compact page: section tags centered as real headings */
.compact-page .section-head {
  display: block;
  text-align: center;
  margin-bottom: 14px;
}
.compact-page .section-tag {
  font-family: var(--sans);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 0;
}

/* ---------- Floating page TOC (left, in the air) ---------- */
.toc {
  position: fixed;
  right: calc(50% + 554px); /* 14px left of the .wrap panel edge (wrap = 50vw ± 540px) */
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 2px;
  width: 150px;
  padding: 12px 10px;
  background: rgba(215, 215, 192, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(185, 185, 155, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(74, 73, 51, 0.08);
}
.toc-title {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  padding: 0 12px 6px;
}
.toc a {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
}
/* active pill — same as the product switcher in the navbar */
.toc a.active {
  background: var(--accent);
  color: #fff;
}
@media (min-width: 1440px) {
  .toc { display: flex; }
}

/* hero: brand on one line, the whole slogan on the next */
.compact-page .hero-headline.stacked {
  flex-direction: column;
  gap: 14px;
}
