/* =========================================================================
   HTCommander marketing site — shared dark theme
   Plain CSS, no build step. Designed for GitHub Pages project subpaths.
   ========================================================================= */

:root {
  /* Palette — engineering blueprint on drafting paper */
  --bg: #e7ebf0;            /* graph-paper base */
  --bg-2: #f3f5f8;
  --bg-3: #eef1f5;
  --surface: #ffffff;       /* drafting sheet */
  --surface-2: #eef2f6;
  --border: #c2cbd6;        /* hairline */
  --border-2: #a6b2c1;

  --text: #17212e;          /* graphite ink */
  --text-dim: #47535f;
  --text-faint: #7c8794;

  --accent: #1c5fb0;        /* drafting blue */
  --accent-2: #b23a2b;      /* redline annotation */
  --accent-glow: rgba(28, 95, 176, 0.22);
  --danger: #c0392b;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo,
    Consolas, monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 4px;
  --radius-sm: 3px;
  --nav-h: 64px;

  --shadow: 0 18px 40px -26px rgba(23, 33, 46, 0.35);
  --shadow-soft: 0 10px 24px -18px rgba(23, 33, 46, 0.22);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

/* Drafting graph paper — minor 24px grid + major 120px grid on paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(28, 95, 176, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 95, 176, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(28, 95, 176, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 95, 176, 0.09) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #2a7fd6; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1em; color: var(--text-dim); }

section { position: relative; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: "// "; opacity: 0.55; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { font-size: 1.075rem; color: var(--text-dim); }

.text-gradient {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: #16508f;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { color: #fff; background: #16508f; box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(28, 95, 176, 0.06); }

.btn--sm { padding: 8px 14px; font-size: 0.78rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(241, 244, 248, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(241, 244, 248, 0.95); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span b { color: var(--text); }
.brand .brand__sub { color: var(--text-faint); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--text); background: rgba(23, 33, 46, 0.05); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero__grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.hero__lead { font-size: 1.2rem; color: var(--text-dim); max-width: 34ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__meta { font-size: 0.9rem; color: var(--text-faint); }
.hero__meta strong { color: var(--text-dim); font-weight: 600; }

.hero__media { position: relative; }
.hero__media > img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: -30px -30px auto auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* ---------- Hero feature slideshow ---------- */
/* Feature PNGs ship with their own shadow + transparent bg, so the slideshow
   gets no frame or glow of its own. */
.hero__media:has(.feature-show)::after { content: none; }
.feature-show { position: relative; }
.feature-show__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.feature-show__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.feature-show__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.feature-show__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Feature PNGs already ship with their own shadow + transparent bg. */
}
.feature-show__caption {
  margin: 18px auto 0;
  max-width: 40ch;
  text-align: center;
  font-size: 1.02rem;
  color: var(--text-dim);
  min-height: 2.6em;
  transition: opacity 0.35s ease;
}
.feature-show__caption.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .feature-show__slide { transition: opacity 0.2s ease; transform: none; }
  .feature-show__slide.is-active { transform: none; }
}
.feature-show__stage { cursor: pointer; }

/* ---------- Feature gallery (manual browse) ---------- */
.gallery {
  display: flex;
  align-items: center;
  gap: 20px;
}
.gallery__viewport {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery__stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.gallery__image.is-fading { opacity: 0; }
.gallery__info {
  margin-top: 22px;
  max-width: 52ch;
  text-align: center;
}
.gallery__title {
  margin: 12px 0 8px;
  font-size: 1.6rem;
}
.gallery__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 3.2em;
}
.gallery__counter {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.gallery__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.gallery__nav:hover {
  background: var(--bg-3, rgba(255, 255, 255, 0.06));
  border-color: var(--accent, #4da3ff);
}
.gallery__nav:active { transform: scale(0.94); }
.gallery__nav svg { width: 24px; height: 24px; }
.gallery__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery__dot:hover { background: var(--text-dim); }
.gallery__dot.is-active {
  background: var(--accent, #4da3ff);
  transform: scale(1.25);
}
@media (max-width: 640px) {
  .gallery { gap: 8px; }
  .gallery__nav { width: 44px; height: 44px; }
  .gallery__title { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__image { transition: none; }
}

/* ---------- Logo/marquee strip ---------- */
.platforms {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(23, 33, 46, 0.02);
  padding: 26px 0;
}
.platforms__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.95rem;
}
.platforms__row .lbl { color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.platforms__row .pf { color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-soft); }

/* Drafting crop/register marks on panels */
.card, .step, .post { position: relative; }
.card::after, .step::after, .post::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 9px; height: 9px;
  border-top: 1px solid var(--border-2);
  border-right: 1px solid var(--border-2);
  opacity: 0.8;
  pointer-events: none;
}

.card__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: rgba(28, 95, 176, 0.08);
  border: 1px solid rgba(28, 95, 176, 0.22);
  margin-bottom: 16px;
}
.card__icon img { width: 26px; height: 26px; }
.card__icon svg { width: 26px; height: 26px; color: var(--accent); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(23, 33, 46, 0.04);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}

/* ---------- Gallery ---------- */
.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.gallery__tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(23, 33, 46, 0.03);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gallery__tab:hover { color: var(--text); border-color: var(--border-2); }
.gallery__tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: #16508f;
}

.gallery__panel { display: none; }
.gallery__panel.is-active { display: block; animation: fade 0.35s ease; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.shot {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  box-shadow: var(--shadow-soft);
}
.shot img { width: 100%; height: auto; display: block; object-fit: contain; background: var(--bg-3); }
/* Reserve the correct box per platform so screenshots are never cropped */
#g-windows .shot img { aspect-ratio: 978 / 683; }
#g-macos   .shot img { aspect-ratio: 2880 / 1800; }
#g-android .shot img { aspect-ratio: 945 / 2048; }
#g-iphone  .shot img { aspect-ratio: 1242 / 2688; }
#g-ipad    .shot img { aspect-ratio: 2048 / 1536; }
/* Tall portrait phone shots get more columns so they don't render oversized */
#g-android .shots, #g-iphone .shots { grid-template-columns: repeat(4, 1fr); }
.shot figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  font-weight: 500;
}

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Radios strip ---------- */
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.radio-chip {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.84rem;
}
a.radio-chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step__num {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; }
.step p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Blog cards ---------- */
.grid--blog { grid-template-columns: repeat(3, 1fr); }
.post {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post:hover { transform: translateY(-4px); border-color: var(--border-2); }
.post .kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.post h3 { font-size: 1.12rem; margin-bottom: 10px; }
.post p { font-size: 0.92rem; }
.post .post__more { margin-top: auto; font-weight: 600; font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(28, 95, 176, 0.08), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 32px;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { max-width: 46ch; margin: 0 auto 26px; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Privacy / reassurance ---------- */
.assure { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.assure__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.assure__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); }
.assure__points .dot { color: var(--accent-2); font-weight: 800; }
.assure__badge {
  display: grid; place-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(400px 240px at 50% 20%, rgba(28, 95, 176, 0.08), transparent 70%), var(--surface);
}
.assure__badge img { width: 120px; height: 120px; border-radius: 26px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p { font-size: 0.9rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); font-size: 0.92rem; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.page-hero p { font-size: 1.1rem; max-width: 60ch; margin: 0 auto; color: var(--text-dim); }

/* ---------- Feature detail rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-row__media img { box-shadow: var(--shadow-soft); }
.feature-row h3 { font-size: 1.55rem; }
.feature-row .badge { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.group-title { font-size: 1.4rem; margin: 56px 0 4px; color: var(--text); }
.group-sub { color: var(--text-faint); margin-bottom: 8px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose h3 { font-size: 1.2rem; margin-top: 28px; }
.prose ul { color: var(--text-dim); padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Blog article (generated by tools/blog-builder) ---------- */
.page-hero--article { text-align: left; padding-bottom: 24px; }
.page-hero--article .container { max-width: 820px; }
.page-hero--article h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.page-hero--article > .container > p { margin-left: 0; max-width: none; }
.article__back-top { margin-top: 22px; font-size: 0.9rem; }
.article__back-top a { color: var(--text-faint); }
.article__back-top a:hover { color: var(--accent); }

.article { max-width: 820px; margin: 0 auto; font-size: 1.03rem; }
.article > *:first-child { margin-top: 0; }
.article h2 { font-size: 1.6rem; margin: 46px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 34px 0 10px; }
.article h4 { font-size: 1.06rem; margin: 26px 0 8px; }
.article p { color: var(--text-dim); }
.article strong { color: var(--text); }
.article a { text-decoration: underline; text-underline-offset: 2px; }
.article ul, .article ol { color: var(--text-dim); padding-left: 24px; margin: 0 0 1.1em; }
.article li { margin-bottom: 8px; }
.article li > ul, .article li > ol { margin: 8px 0 0; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 42px 0; }

.article blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: rgba(28, 95, 176, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim);
}
.article blockquote > *:last-child { margin-bottom: 0; }

.article code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(23, 33, 46, 0.05);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  color: #1a3a5c;
}
.article pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 1.5em;
}
.article pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; color: #1f2b38; line-height: 1.6; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.article table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.article th[align="center"], .article td[align="center"] { text-align: center; }
.article th[align="right"], .article td[align="right"] { text-align: right; }
.article thead th { background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.article tbody tr:last-child td { border-bottom: 0; }
.article tbody tr:hover { background: rgba(23, 33, 46, 0.03); }

.post-figure { margin: 28px 0; }
.post-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  background: var(--bg-3);
}
.post-figure figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--text-faint); text-align: center; }
.feature-page .post-figure img { border: none; border-radius: 0; box-shadow: none; background: transparent; }

.article .mermaid {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  margin: 0 0 1.6em;
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--features, .grid--blog, .shots { grid-template-columns: repeat(2, 1fr); }
  #g-android .shots, #g-iphone .shots { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; }
  .assure { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 20px;
    background: rgba(241, 244, 248, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a { padding: 12px; font-size: 1rem; }
}

@media (max-width: 560px) {
  .grid--features, .grid--blog, .shots { grid-template-columns: 1fr; }
  #g-android .shots, #g-iphone .shots { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
