/* カロリズム / Calorithm LP — Calm clinical redesign
   Tone: trustworthy health utility. Quiet. Data-led. Generous whitespace.
   - bg: clinical paper #FBFBFA
   - ink: #0E1A24 deep navy
   - accent: single teal #2A8C84 (calm, medical)
   - intake/burn used only inside data UI (muted)
*/

:root {
  --bg: #FBFBFA;
  --bg-2: #F3F3F0;
  --bg-3: #ECECE8;
  --paper: #FFFFFF;
  --ink: #0E1A24;
  --ink-2: #45525C;
  --ink-3: #828A91;
  --line: #E6E6E1;
  --line-2: #D6D6D0;
  --teal: #2A8C84;
  --teal-soft: #E5F0EE;
  --intake: #4F8F5C;
  --intake-soft: #ECF3ED;
  --burn: #C97A3A;
  --burn-soft: #F6ECDF;
  --deficit: #B5462E;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 16px;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.tabular { font-variant-numeric: tabular-nums; }
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "ss01";
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,250,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: inline-block;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(14,26,36,0.06);
}
.nav-links {
  display: flex; gap: 22px; align-items: center;
  font-size: 14px; color: var(--ink-2);
  flex-wrap: wrap;
}
.nav-links a { transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-sep {
  width: 1px; height: 14px; background: var(--line-2);
  display: inline-block;
}
@media (max-width: 1080px) {
  .nav-links { gap: 14px; font-size: 13px; }
}
@media (max-width: 920px) {
  /* On narrow screens, drop the LP-only section anchors but keep page links */
  .nav-links a[href*="#"] { display: none; }
  .nav-links .nav-sep { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: inline-flex; align-items: center;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0; overflow: hidden;
  background: var(--paper);
}
.lang-switch button {
  background: transparent; border: 0;
  padding: 5px 11px;
  font: inherit; font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  font-weight: 500;
}
.lang-switch button.active {
  background: var(--ink); color: var(--bg);
}
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  transition: opacity .15s;
}
.header-cta svg { width: 13px; height: 13px; flex-shrink: 0; }
.header-cta:hover { opacity: 0.9; }

.header-stores {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--ink);
  border-radius: 999px;
}
.header-stores a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  color: var(--bg);
  border-radius: 999px;
  transition: background .15s;
}
.header-stores a:hover { background: rgba(255,255,255,0.12); }
.header-stores svg { width: 14px; height: 14px; }

@media (max-width: 800px) {
  /* keep existing rules */
}

@media (max-width: 560px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-actions { gap: 8px; }
  .header-stores { padding: 3px; }
  .header-stores a { width: 28px; height: 28px; }
}

/* ============ Hero ============ */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.hero-eyebrow .sep { color: var(--line-2); }
.hero-eyebrow .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--teal); }
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 0 36px;
}

.cta-cluster {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: opacity .15s;
}
.store-btn:hover { opacity: 0.92; }
.store-btn svg { width: 18px; height: 18px; }
.store-btn .ico { display: inline-flex; }
.store-btn { white-space: nowrap; }
.store-btn .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn .lines small { font-size: 10px; opacity: 0.7; letter-spacing: 0.04em; white-space: nowrap;}
.store-btn .lines strong { font-size: 14px; font-weight: 600; white-space: nowrap; }

.hero-meta-row {
  display: flex; gap: 18px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.hero-meta-row span {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-meta-row svg { width: 14px; height: 14px; stroke-width: 1.6; }

@media (max-width: 560px) {
  .hero {
    padding: 68px 0 76px;
  }
  .hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.12;
  }
  .hero-sub {
    font-size: 16px;
    max-width: none;
  }
  .cta-cluster { gap: 10px; }
  .store-btn {
    flex: 1 1 150px;
    justify-content: center;
    min-width: 0;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-meta-row { gap: 10px 12px; }
}

/* Hero card — calm balance preview */
.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  box-shadow: 0 1px 0 rgba(14,26,36,.02), 0 12px 28px -16px rgba(14,26,36,.12);
}
.hero-card .head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.hero-card .head .live {
  display: inline-flex; align-items: center; gap: 6px; color: var(--teal);
  font-weight: 500;
}
.hero-card .head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1;}
  50% { opacity: 0.35;}
}
.hero-card .balance-num {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.hero-card .balance-num .unit { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.hero-card .balance-num .sign { color: var(--ink); }
.hero-card .balance-caption {
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 22px;
}
.hero-card .balance-caption b { color: var(--ink-2); font-weight: 600; }
.hero-card .axis {
  height: 10px; border-radius: 3px;
  background: var(--bg-2);
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}
.hero-card .axis .intake-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 46%;
  background: var(--intake);
  opacity: 0.85;
}
.hero-card .axis .burn-bar {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 54%;
  background: var(--burn);
  opacity: 0.85;
}
.hero-card .axis .marker {
  position: absolute; top: -3px; bottom: -3px;
  width: 2px;
  background: var(--ink);
  left: 46%;
}
.hero-card .split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero-card .split > div { padding-right: 16px; }
.hero-card .split > div + div { border-left: 1px solid var(--line); padding-left: 16px; padding-right: 0; }
.hero-card .split .label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-card .split .label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.hero-card .split .intake .label::before { background: var(--intake); }
.hero-card .split .burn .label::before { background: var(--burn); }
.hero-card .split .num {
  font-size: 22px; font-weight: 600; margin-top: 6px; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-card .split .num small { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 500;}
.hero-card .split .src { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

@media (max-width: 560px) {
  .hero-card {
    padding: 22px 20px;
  }
  .hero-card .head {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .hero-card .balance-num {
    font-size: 48px;
  }
  .hero-card .split > div {
    min-width: 0;
    padding-right: 10px;
  }
  .hero-card .split > div + div {
    padding-left: 10px;
  }
  .hero-card .split .num {
    font-size: 20px;
  }
  .hero-card .split .src {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .hero-card .split {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero-card .split > div {
    padding-right: 0;
  }
  .hero-card .split > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
  }
}

/* ============ Sections ============ */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-eyebrow .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink-2);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 22ch;
}
.section .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; }}

/* ============ Concept (why net balance) ============ */
.concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 800px) { .concept { grid-template-columns: 1fr; }}
.concept-col { padding: 32px 32px 36px; position: relative; }
.concept-col + .concept-col { border-left: 1px solid var(--line); }
@media (max-width: 800px) {
  .concept-col + .concept-col { border-left: 0; border-top: 1px solid var(--line);}
}
.concept-col .tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 600; margin-bottom: 14px;
}
.concept-col h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 12px; line-height: 1.3;
}
.concept-col h3 .num {
  font-size: 34px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  margin-right: 4px;
}
.concept-col p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.concept-col.them { background: var(--bg); }
.concept-col.them h3 .num { color: var(--ink-3); }
.concept-col.us h3 .num { color: var(--deficit); }

.concept-meter { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.concept-meter .row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.concept-meter .bar {
  height: 18px; border-radius: 4px; background: var(--bg-2); position: relative; overflow: hidden;
}
.concept-meter .bar.them .fill {
  position: absolute; inset: 0; width: 68%;
  background: var(--ink-3); opacity: 0.35;
}
.concept-meter .bar.us .intake {
  position: absolute; left: 0; top: 0; bottom: 0; width: 46%;
  background: var(--intake);
}
.concept-meter .bar.us .burn {
  position: absolute; right: 0; top: 0; bottom: 0; width: 54%;
  background: var(--burn);
}
.concept-meter .bar.us .marker {
  position: absolute; top: -3px; bottom: -3px; left: 46%;
  width: 2px; background: var(--ink);
}

/* ============ Features ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; }}
.feat-card {
  background: var(--paper);
  padding: 28px 26px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background .15s;
}
.feat-card:hover { background: var(--bg); }
.feat-card .num {
  position: absolute; top: 18px; right: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--ink-3);
}
.feat-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-2);
  margin-bottom: 18px;
}
.feat-icon svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat-card.tone-teal .feat-icon { background: var(--teal-soft); }
.feat-card.tone-teal .feat-icon svg { stroke: var(--teal); }
.feat-card.tone-intake .feat-icon { background: var(--intake-soft); }
.feat-card.tone-intake .feat-icon svg { stroke: #2F6E3D; }
.feat-card.tone-burn .feat-icon { background: var(--burn-soft); }
.feat-card.tone-burn .feat-icon svg { stroke: #9B5C25; }
.feat-card h3 {
  margin: 0 0 6px;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
}
.feat-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============ Showcase rows ============ */
.showcase {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.showcase.reverse { grid-template-columns: 0.85fr 1fr; }
.showcase.reverse .art { order: -1; }
@media (max-width: 900px) {
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 56px; }
  .showcase.reverse .art { order: 0; }
}

.showcase h2 { margin-bottom: 18px; }
.showcase .lede { margin-bottom: 28px; }

.spec-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.spec-list .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: start;
}
.spec-list .key {
  color: var(--ink-3);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding-top: 2px;
}
.spec-list .val { color: var(--ink); }
.spec-list .val .ico-row {
  display: inline-flex; align-items: center; gap: 6px;
}
.spec-list .val svg { width: 14px; height: 14px; stroke-width: 1.6; }

/* Phone frame */
.phone-frame {
  width: 290px;
  aspect-ratio: 290/600;
  border-radius: 44px;
  background: #1a1a1a;
  padding: 11px;
  box-shadow:
    0 0 0 1px #2a2a2a,
    0 30px 80px -20px rgba(14,26,36,.18);
  position: relative;
  margin: 0 auto;
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #0a0a0a;
  border-radius: 14px; z-index: 2;
}
.phone-frame img, .phone-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.art {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0;
  position: relative;
}

/* ============ AI demo ============ */
.demo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.demo-label {
  font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 12px;
}
.demo-row {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-2);
  border-radius: 10px;
  padding: 4px 4px 4px 14px;
}
.demo-row input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 0;
}
.demo-row input::placeholder { color: var(--ink-3); }
.demo-row .btn {
  background: var(--ink); color: var(--bg);
  border: 0; padding: 9px 14px;
  border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.demo-row .btn:disabled { opacity: 0.5; cursor: progress; }
.demo-row .btn svg { width: 13px; height: 13px; }
.demo-chips {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.demo-chip {
  font-size: 12px; padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.demo-chip:hover { border-color: var(--ink); color: var(--ink); }
.demo-results {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.demo-row-out {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.demo-row-out:last-child { border-bottom: 0; }
.demo-row-out .name { font-size: 14.5px; font-weight: 500;}
.demo-row-out .meta {
  font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.demo-row-out .meta .badge {
  background: var(--teal-soft); color: var(--teal);
  border-radius: 3px; padding: 1px 5px; font-size: 10px;
  font-weight: 600; letter-spacing: 0.04em;
}
.demo-row-out .kcal { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.demo-row-out .kcal small { font-size: 11px; color: var(--ink-3); margin-left: 3px; font-weight: 500;}
.demo-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 14px; padding: 14px 16px;
  background: var(--bg);
  border-radius: 8px;
}
.demo-total .l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 600;}
.demo-total .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--intake);}
.demo-total .v small { font-size: 12px; color: var(--ink-3); margin-left: 4px; font-weight: 500;}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

.benefit-row {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-row:first-child { padding-top: 0; }
.benefit-row .icon-cell {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--teal-soft);
}
.benefit-row .icon-cell svg { width: 16px; height: 16px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
.benefit-row h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600;}
.benefit-row p { margin: 0; font-size: 13.5px; color: var(--ink-2);}

.ai-grid > div:last-child > div:last-child svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke-width: 1.6;
}

/* ============ Comparison ============ */
.comp-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}
.comp-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.comp-row:first-child { border-top: 0; }
.comp-row > div { padding: 13px 18px; }
.comp-row .col-other { background: var(--bg); color: var(--ink-2); border-left: 1px solid var(--line); }
.comp-row .col-us { color: var(--ink); border-left: 1px solid var(--line); background: var(--teal-soft); }
.comp-row.head > div {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding-top: 14px; padding-bottom: 14px;
}
.comp-row.head .col-us { color: var(--teal); background: var(--teal-soft);}
.comp-row.head .col-us svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  stroke-width: 2;
}
.comp-row .key { font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.comp-row .key svg { width: 14px; height: 14px; stroke: var(--ink-3); fill: none; stroke-width: 1.6;}
@media (max-width: 800px) {
  .comp-row { grid-template-columns: 1fr; }
  .comp-row .col-other, .comp-row .col-us { border-left: 0; border-top: 1px solid var(--line);}
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0; padding: 0;
  display: flex; justify-content: space-between; align-items: center;
  font: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); cursor: pointer; letter-spacing: -0.005em;
  gap: 16px;
}
.faq-q .toggle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s, border-color .2s;
  flex-shrink: 0;
}
.faq-q[aria-expanded="true"] .toggle {
  transform: rotate(45deg);
  background: var(--ink); border-color: var(--ink); color: var(--bg);
}
.faq-q .toggle svg { width: 12px; height: 12px; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding-top: 12px; max-width: 60ch;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.6;
}

/* ============ CTA ============ */
.cta-band {
  padding: 88px 0;
  background: var(--ink); color: var(--bg);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600; letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 22ch;
  color: var(--bg);
}
.cta-band p { color: rgba(251,251,250,.65); max-width: 48ch; margin: 0 auto 32px; font-size: 16px;}
.cta-band .store-btn { background: var(--bg); color: var(--ink); }
.cta-band .cta-cluster { justify-content: center; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg);
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 700px) { .foot-top { grid-template-columns: 1fr 1fr; } }
.foot-top p { margin: 14px 0 0; color: var(--ink-2); font-size: 13.5px; max-width: 28ch;}
.foot-top h5 {
  margin: 0 0 14px; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 600;
}
.foot-top ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.foot-top a {
  font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.foot-top a:hover { color: var(--teal); }
.foot-top a svg { width: 13px; height: 13px; opacity: 0.55; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; gap: 16px;
}
.foot-bottom .legal { display: inline-flex; gap: 18px;}
.foot-bottom .legal a:hover { color: var(--ink); }

/* ============ utility ============ */
[data-tweaks-panel] { z-index: 9000; }

/* ===================================================================
   ============ Subpages (Privacy / Support / Contact) ===============
   =================================================================== */

.sub-page { background: var(--bg); }

/* ---- Page hero ---- */
.sub-hero {
  padding: 56px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 280px at 50% -120px, rgba(42,140,132,0.06), transparent 70%),
    var(--bg);
}
.sub-crumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 12.5px; color: var(--ink-3);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.sub-crumbs a { color: var(--ink-2); }
.sub-crumbs a:hover { color: var(--teal); }
.sub-crumbs span[aria-hidden] { color: var(--line-2); }

.sub-hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: end;
}
@media (max-width: 820px) { .sub-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.sub-hero-main { max-width: 60ch; }
.sub-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3); font-weight: 600;
  margin: 0 0 18px;
  white-space: nowrap;
}
.sub-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  display: inline-block;
}
.sub-eyebrow.centered { justify-content: center; }

.sub-title {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.sub-lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

.sub-hero-meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.sub-meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
}
.sub-meta-key {
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-weight: 600;
  white-space: nowrap;
}
.sub-meta-val {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Principles strip (privacy) ---- */
.sub-principles {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.sub-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) { .sub-principles-grid { grid-template-columns: 1fr; } }
.sub-principle {
  background: var(--paper);
  padding: 26px 28px;
}
.sub-principle .kw {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); margin: 0 0 10px;
}
.sub-principle h3 {
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.sub-principle .desc {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0;
}

/* ---- Quick links (support) ---- */
.sub-quicklinks {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.sub-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .sub-quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sub-quick-grid { grid-template-columns: 1fr; } }
.sub-quick {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color .15s, transform .15s, background .15s;
  position: relative;
}
.sub-quick:hover { border-color: var(--teal); background: var(--paper); }
.sub-quick .qn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.sub-quick .ql { font-size: 14.5px; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.sub-quick .qd { font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.sub-quick .qa {
  position: absolute; top: 16px; right: 16px;
  color: var(--ink-3);
  font-size: 14px;
  transition: color .15s, transform .15s;
}
.sub-quick:hover .qa { color: var(--teal); transform: translateY(2px); }

/* ---- Body grid: TOC + Article ---- */
.sub-body { padding: 80px 0 96px; }
.sub-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: flex-start;
}
@media (max-width: 920px) {
  .sub-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .sub-rail { display: none; }
}

.sub-rail { position: sticky; top: 88px; }

.sub-toc {
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.sub-toc-label {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  margin: 0 0 14px;
}
.sub-toc ol {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.sub-toc li a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  transition: color .15s, background .15s;
  margin-left: -10px;
}
.sub-toc li a:hover { color: var(--ink); background: var(--bg-2); }
.sub-toc li.active a { color: var(--teal); background: var(--teal-soft); font-weight: 500; }
.sub-toc .toc-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.sub-toc li.active .toc-n { color: var(--teal); }
.sub-toc-top {
  font-size: 12px; color: var(--ink-3);
  display: inline-block;
  padding: 4px 0;
}
.sub-toc-top:hover { color: var(--teal); }

/* ---- Article / sections ---- */
.sub-article { max-width: 720px; min-width: 0; }
.sub-section { margin-bottom: 64px; scroll-margin-top: 84px; }
.sub-section:last-child { margin-bottom: 0; }
.sub-section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sub-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 0;
  margin-bottom: 28px;
  padding-bottom: 0;
  gap: 8px;
}
.sub-section-head--center h2 { margin: 0; }
.sub-section-n {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
  align-self: flex-start;
}
.sub-section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1;
}
.sub-section-body p {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
}
.sub-h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.005em;
}
.sub-list {
  margin: 12px 0 20px;
  padding-left: 0;
  list-style: none;
}
.sub-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 14.5px;
}
.sub-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 1px;
  background: var(--teal);
}

/* Callout */
.sub-callout {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--ink);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.sub-callout.tone-ink { border-left-color: var(--ink); }

/* Tables */
.sub-table-wrap {
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.sub-table thead th {
  text-align: left;
  background: var(--bg-2);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.sub-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
.sub-table tbody tr:last-child td { border-bottom: 0; }
.sub-table tbody td:first-child {
  font-weight: 500;
  width: 38%;
}

/* Providers list */
.sub-providers {
  display: flex; flex-direction: column;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sub-provider {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: baseline;
}
.sub-provider:last-child { border-bottom: 0; }
.sub-provider-name { display: flex; flex-direction: column; gap: 2px; }
.sub-provider-name .name { font-weight: 600; color: var(--ink); }
.sub-provider-name .by {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.sub-provider .role { color: var(--ink-2); font-size: 13.5px; }

/* Contact card embedded in privacy */
.sub-contact-card {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 4px;
  padding: 22px 24px;
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  transition: opacity .15s;
}
.sub-contact-card:hover { opacity: 0.92; }
.sub-contact-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(251,251,250,0.55);
  margin: 0 0 4px;
}
.sub-contact-email {
  font-size: 18px; font-weight: 500; margin: 0 0 4px;
  font-family: "JetBrains Mono", monospace;
}
.sub-contact-note {
  font-size: 13px; color: rgba(251,251,250,0.6);
  margin: 0;
}
.sub-contact-arrow { font-size: 22px; }

/* ---- Support FAQ ---- */
.sub-faq-list {
  border-top: 1px solid var(--line);
}
.sub-faq-item {
  border-bottom: 1px solid var(--line);
}
.sub-faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.sub-faq-q:hover { color: var(--teal); }
.sub-faq-toggle {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
  color: var(--ink);
}
.sub-faq-item.is-open .sub-faq-toggle {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.sub-faq-toggle svg { width: 12px; height: 12px; }
.sub-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.sub-faq-a p {
  margin: 0; padding: 0 50px 22px 0;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
  max-width: 60ch;
}

/* App info (support) */
.sub-appinfo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
@media (max-width: 600px) { .sub-appinfo-grid { grid-template-columns: 1fr; } }
.sub-appinfo-row {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--paper);
  padding: 14px 18px;
  font-size: 14px;
}
.sub-appinfo-row .k {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 11.5px; color: var(--ink-3); font-weight: 600;
  white-space: nowrap;
}
.sub-appinfo-row .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ===== Contact page specifics ===== */
.sub-primary-contact {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.sub-mailcard {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  min-height: 280px;
}
@media (max-width: 760px) { .sub-mailcard { grid-template-columns: 1fr; } }
.sub-mailcard-left {
  padding: 36px 40px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.sub-mailcard-left .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-3); font-weight: 600;
  margin: 0;
}
.sub-mailcard-left .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.sub-mailcard-left h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 4px 0 8px;
}
.sub-mailcard-addr {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--teal);
  font-weight: 500;
  letter-spacing: -0.01em;
  word-break: break-all;
  border-bottom: 1px dashed var(--teal);
  align-self: flex-start;
  padding-bottom: 2px;
}
.sub-mailcard-addr:hover { color: var(--ink); border-bottom-color: var(--ink); }
.sub-mailcard-note {
  font-size: 13.5px; color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
  line-height: 1.6;
}
.sub-mailcard-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  align-self: flex-start;
}
.sub-mailcard-cta:hover { opacity: 0.9; }

.sub-mailcard-right {
  background:
    radial-gradient(ellipse at center, var(--teal-soft), var(--bg-2));
  display: grid; place-items: center;
  padding: 36px;
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) { .sub-mailcard-right { border-left: 0; border-top: 1px solid var(--line); } }
.env {
  position: relative;
  width: 220px; height: 150px;
  perspective: 600px;
}
.env-flap {
  position: absolute; inset: 0 0 auto 0;
  height: 0;
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-top: 75px solid #fff;
  filter: drop-shadow(0 1px 0 rgba(14,26,36,0.06));
}
.env-body {
  position: absolute; inset: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 10px;
  padding: 0 28px;
  z-index: -1;
}
.env-line {
  height: 5px;
  background: var(--bg-3);
  border-radius: 2px;
}
.env-line.w70 { width: 70%; }
.env-line.w60 { width: 60%; }
.env-line.w50 { width: 50%; }
.env-stamp {
  position: absolute;
  top: -10px; right: -10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(42,140,132,0.3);
}

/* Reasons grid */
.sub-reasons { padding: 80px 0; border-bottom: 1px solid var(--line); }
.sub-reasons .sub-section-head--center h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.sub-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 880px) { .sub-reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sub-reasons-grid { grid-template-columns: 1fr; } }
.sub-reason {
  background: var(--paper);
  padding: 26px 28px;
}
.sub-reason-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
  margin-bottom: 16px;
}
.sub-reason h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.sub-reason p {
  font-size: 13.5px; color: var(--ink-2); margin: 0;
  line-height: 1.65;
}

/* Template */
.sub-template {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.sub-template-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .sub-template-grid { grid-template-columns: 1fr; gap: 32px; } }
.sub-template h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 6px 0 12px;
}
.sub-copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--ink); color: var(--bg);
  border: 0;
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  margin-top: 12px;
}
.sub-copy-btn:hover { opacity: 0.9; }

.sub-template-pre {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(14,26,36,0.04);
}
.sub-template-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.sub-template-bar > span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-3);
}
.sub-template-bar > span:first-child { background: #FF5F57; }
.sub-template-bar > span:nth-child(2) { background: #FEBC2E; }
.sub-template-bar > span:nth-child(3) { background: #28C840; }
.sub-template-name {
  width: auto !important; height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-3);
}
.sub-template-pre pre {
  margin: 0;
  padding: 24px 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* Alt channels */
.sub-alt { padding: 80px 0 96px; }
.sub-alt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 800px) { .sub-alt-grid { grid-template-columns: 1fr; } }
.sub-alt-item {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  gap: 10px;
}
.sub-alt-item h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.sub-alt-item p {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.6;
  margin: 0; flex: 1;
}
.sub-alt-action {
  font-size: 13px; color: var(--teal); font-weight: 500;
  margin-top: 4px;
}

/* Related footer (above site footer) */
.sub-related {
  padding: 64px 0 80px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.sub-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 760px) { .sub-related-grid { grid-template-columns: 1fr; } }
.sub-related-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.sub-related-item:hover { border-color: var(--teal); }
.sub-related-item .rl {
  font-size: 15px; font-weight: 600; margin: 0 0 2px;
  letter-spacing: -0.005em;
}
.sub-related-item .rd {
  font-size: 13px; color: var(--ink-2); margin: 0;
}
.sub-related-item span[aria-hidden] {
  font-size: 18px; color: var(--ink-3);
  transition: transform .15s, color .15s;
}
.sub-related-item:hover span[aria-hidden] {
  color: var(--teal); transform: translateX(3px);
}
