/* ============================================================
   PilatesCRM marketing site additions (v1.6 multipage + auth)
   Appended after site.css — cool paper/cobalt/violet only
   ============================================================ */

/* ---- Sticky nav scroll state ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 251, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
}
.site-header.is-scrolled {
  background: rgba(251, 252, 255, 0.92);
  border-bottom-color: var(--c-rule);
  box-shadow: var(--shadow-sm);
}
.site-header .m-nav { padding: 14px 0; transition: padding var(--dur-base) var(--ease-standard); }
.site-header.is-scrolled .m-nav { padding: 10px 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: var(--border); border-radius: 10px;
  background: var(--c-surface);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--c-ink);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-standard);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .m-nav-links {
    position: absolute; left: var(--margin-min); right: var(--margin-min); top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; background: var(--c-surface-raised); border: var(--border);
    border-radius: 12px; box-shadow: var(--shadow-lg);
  }
  .m-nav-links.is-open { display: flex; }
  .m-nav-links a:not(.btn) { display: flex !important; align-items: center; min-height: 44px; padding: 12px 14px; border-radius: 8px; }
  .m-nav-links a:not(.btn):hover { background: var(--c-wash-sky); }
  .m-nav-links a.btn { width: 100%; margin-top: 6px; min-height: 44px; }
  .site-header { position: sticky; }
  .m-nav { position: relative; }
}

/* Active nav link */
.m-nav-links a.is-active:not(.btn) { color: var(--c-cobalt); }
.m-nav-links a.is-active:not(.btn)::after { transform: scaleX(1); }

/* ---- Parallax-lite (transform only) ---- */
[data-parallax] {
  will-change: transform;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; }
}

/* Richer streak field draw — staggered rail opacity + clip */
.streak-draw-field .streak-field-rails path {
  transition: opacity calc(var(--dur-draw) + 80ms) var(--ease-out);
}
.streak-draw-field:not(.is-drawn) .streak-field-rails path { opacity: 0 !important; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(1) { transition-delay: 0ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(2) { transition-delay: 30ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(3) { transition-delay: 60ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(4) { transition-delay: 90ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(5) { transition-delay: 120ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(6) { transition-delay: 150ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(7) { transition-delay: 180ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(8) { transition-delay: 210ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(9) { transition-delay: 240ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(10) { transition-delay: 270ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(11) { transition-delay: 300ms; }
.streak-draw-field.is-drawn .streak-field-rails path:nth-child(12) { transition-delay: 330ms; }

/* ---- Pricing card tilt / select ---- */
.price-card[data-tilt] {
  transform-style: preserve-3d;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-out);
}
.price-card.is-selected {
  border-color: var(--c-cobalt);
  box-shadow: var(--shadow-md);
}
.price-card .price-select {
  margin-top: 18px; width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .price-card[data-tilt] { transform: none !important; }
}

/* ---- FAQ accordion (Carriage) ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.faq-item {
  background: var(--c-surface); border: var(--border); border-radius: var(--radius-card);
  overflow: hidden; transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.faq-item[open], .faq-item.is-open {
  border-color: var(--c-rule-strong); box-shadow: var(--shadow-sm);
}
.faq-item summary,
.faq-q {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-weight: 600; font-size: 16px; color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q::after, .faq-item summary::after {
  content: ""; width: 10px; height: 10px;
  border-right: 1.75px solid var(--c-cobalt); border-bottom: 1.75px solid var(--c-cobalt);
  transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out);
  flex: none;
}
.faq-item[open] summary::after,
.faq-item.is-open .faq-q::after { transform: rotate(225deg); }
.faq-a {
  padding: 0 20px 18px; color: var(--c-ink-2); font-size: 15px; line-height: 1.55;
  max-height: 0; overflow: hidden; opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height var(--dur-slow) var(--ease-out),
    opacity var(--dur-base) var(--ease-standard),
    transform var(--dur-base) var(--ease-out);
}
.faq-item.is-open .faq-a,
.faq-item[open] .faq-a {
  max-height: 240px; opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; transform: none; }
}

/* ---- Blog cards ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; gap: 12px; color: inherit;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-standard);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-rule-strong);
  color: inherit;
}
.blog-card .blog-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-violet);
}
.blog-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.blog-card p { margin: 0; font-size: 14px; color: var(--c-ink-2); flex: 1; }
.blog-card .blog-meta { font-size: 12px; color: var(--c-ink-3); }
.blog-thumb {
  height: 120px; border-radius: 8px; background: var(--c-wash-sky);
  position: relative; overflow: hidden;
}
.blog-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--c-cobalt), var(--c-iris));
  z-index: 60; transform-origin: left center;
  transition: width 80ms linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
}

/* Article body */
.article { max-width: 680px; margin: 0 auto; }
.article h1.ring { font-size: clamp(36px, 6vw, 56px); margin: 0 0 16px; }
.article .lead { margin-bottom: 28px; }
.article h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.article h3 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.article p, .article li { color: var(--c-ink-2); font-size: 16px; line-height: 1.6; }
.article ul { padding-left: 1.2em; }
.article li { margin: 6px 0; }
.article .callout {
  margin: 28px 0; padding: 18px 20px; border-radius: var(--radius-card);
  background: var(--c-wash-iris); border: var(--border);
}

/* ---- Programmatic SEO / compare ---- */
.crumb { font-size: 13px; color: var(--c-ink-3); margin-bottom: 20px; }
.crumb a { color: var(--c-ink-3); }
.crumb a:hover { color: var(--c-cobalt); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--c-rule);
  vertical-align: top;
}
.compare-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-ink-3); font-weight: 500;
}
.compare-table td:first-child { font-weight: 500; color: var(--c-ink); width: 28%; }
.badge-yes { color: var(--c-success); font-weight: 600; }
.badge-no { color: var(--c-ink-3); }
.badge-partial { color: var(--c-violet); font-weight: 500; }

.seo-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .seo-hub-grid { grid-template-columns: 1fr; } }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  position: relative; padding: 48px 0 40px; overflow: hidden;
}
.page-hero .streak-bleed {
  position: absolute; inset: -10% -5% auto auto; width: min(55vw, 640px); height: 360px;
  pointer-events: none; opacity: 0.9;
}
.page-hero h1.ring { font-size: clamp(40px, 7vw, 64px); margin: 0 0 16px; max-width: 16ch; }
.page-hero .lead { max-width: 42ch; }

/* ---- Footer rich ---- */
.footer-rich {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
  align-items: start; border-top: none; padding-bottom: 24px;
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer-cols .label { margin-bottom: 12px; color: var(--c-ink-3); }
.footer-cols a {
  display: block; color: var(--c-ink-2); font-size: 14px; font-weight: 500;
  padding: 4px 0; transition: color var(--dur-fast) var(--ease-standard);
}
.footer-cols a:hover { color: var(--c-cobalt); }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 16px 0 40px; border-top: var(--border);
  color: var(--c-ink-3); font-size: 12px;
}
.footer-meta a { color: var(--c-ink-3); }
.footer-meta a:hover { color: var(--c-cobalt); }
@media (max-width: 800px) {
  .footer-rich { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Feature deep pages ---- */
.feature-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  margin: 48px 0;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ---- Auth pages (stunning streak-heavy) ---- */
.auth-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: var(--c-paper);
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { min-height: 220px; order: -1; }
}
.auth-visual {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--c-wash-sky) 0%, var(--c-wash-iris) 55%, var(--c-mist) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
}
.auth-visual .auth-streak {
  position: absolute; inset: 0; width: 140%; height: 140%; left: -10%; top: -15%;
  pointer-events: none;
}
.auth-visual .auth-copy { position: relative; z-index: 1; max-width: 36ch; }
.auth-visual .auth-copy h1.ring {
  font-size: clamp(36px, 5vw, 52px); margin: 0 0 12px; color: var(--c-ink);
}
.auth-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px clamp(24px, 6vw, 72px);
  position: relative;
}
.auth-panel .auth-mark { margin-bottom: 32px; }
.auth-card {
  background: var(--c-surface-raised); border: var(--border);
  border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow-md);
  max-width: 420px; width: 100%; position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-cobalt), var(--c-iris), var(--c-violet));
  opacity: 0.85;
}
.auth-card h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.auth-card .auth-sub { color: var(--c-ink-3); font-size: 14px; margin: 0 0 24px; }
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-ink-3);
  margin-bottom: 6px; font-weight: 500;
}
.auth-field input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 8px;
  border: 1.5px solid var(--c-line-input); background: var(--c-surface);
  font-family: var(--font-sans); font-size: 15px; color: var(--c-ink);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.auth-field input:focus {
  outline: none; border-color: var(--c-cobalt); box-shadow: var(--shadow-focus);
}
.auth-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.auth-actions .btn { width: 100%; }
.auth-alt { margin-top: 20px; font-size: 14px; color: var(--c-ink-3); text-align: center; }
.auth-alt a { color: var(--c-cobalt); font-weight: 500; }
.auth-alt a:hover { color: var(--c-navy); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--c-ink-4); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--c-rule);
}
.auth-check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--c-ink-2);
  margin: 4px 0 12px;
}
.auth-check input { margin-top: 3px; accent-color: var(--c-cobalt); }
.btn-auth-press:active { transform: scale(0.985); }

/* Auth success micro */
.auth-hint {
  font-size: 12px; color: var(--c-ink-3); margin-top: 6px;
}

/* ---- Styleguide ---- */
.sg-swatch-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 28px; }
.sg-swatch {
  width: 112px; border-radius: 10px; overflow: hidden; border: var(--border);
  background: var(--c-surface); box-shadow: var(--shadow-sm);
}
.sg-swatch .chip-color { height: 64px; }
.sg-swatch .meta { padding: 8px 10px; font-size: 11px; }
.sg-swatch .meta b { display: block; font-family: var(--font-mono); letter-spacing: 0.04em; font-weight: 500; }
.sg-section { padding: 48px 0; border-bottom: var(--border); }
.sg-type-sample { margin: 12px 0; }
.sg-component-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }

/* Home teaser blog strip */
.home-blog-strip .blog-grid { margin-top: 8px; }

/* CTA band keep primary text light */
.cta-final .btn-primary { color: var(--c-surface-raised); }

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover { transform: none; }
  .site-header, .site-header .m-nav { transition: none; }
}

/* Super Intelligence badge — tasteful, scarce */
.si-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-violet); background: var(--c-wash-iris);
  border: 1px solid var(--c-rule); border-radius: 999px;
  padding: 4px 10px; margin: 6px 0; line-height: 1.2;
}
.tagline {
  font-size: var(--fs-lead); color: var(--c-ink-2); margin: 0 0 12px; max-width: 36ch;
}
.nav-signin { font-weight: 500; }
.price-card.featured::before { content: "MOST STUDIOS"; color: var(--c-surface-raised); }

/* Ensure primary CTAs always light on cobalt (nav cascade) */
.m-nav-links a.btn-primary,
.m-nav-links a.btn-primary:hover,
.m-nav-links a.btn-primary:focus-visible,
.m-nav-links a.btn-primary:visited,
a.btn-primary, a.btn-primary:hover, a.btn-primary:visited, a.btn-primary:active,
button.btn-primary, button.btn-primary:hover {
  color: var(--c-surface-raised) !important;
}

/* ---- Featured images (generated by scripts/featured-images.mjs) ---- */
.blog-thumb {
  aspect-ratio: 1200 / 630; height: auto;
  background: linear-gradient(135deg, var(--c-paper), var(--c-wash-sky) 55%, var(--c-wash-iris));
}
.blog-thumb picture, .blog-thumb-img { display: block; width: 100%; height: 100%; }
.blog-thumb-img { object-fit: cover; transition: transform var(--dur-slow, 420ms) var(--ease-out, ease); }
.blog-card:hover .blog-thumb-img { transform: scale(1.03); }
.feature-hero { margin-top: 0; margin-bottom: 28px; }
.feature-hero-frame {
  position: relative; overflow: hidden; border-radius: 10px;
  border: 1px solid var(--c-rule); box-shadow: var(--shadow-sm);
  aspect-ratio: 1200 / 630; max-height: 420px; width: 100%; max-width: 960px;
  background: linear-gradient(135deg, var(--c-paper), var(--c-wash-sky) 55%, var(--c-wash-iris));
}
.feature-hero-frame picture, .feature-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-hero-tag {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-navy); background: rgba(251, 252, 255, 0.86); border: 1px solid var(--c-rule);
  border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) {
  .blog-thumb-img { transition: none; }
  .blog-card:hover .blog-thumb-img { transform: none; }
}

/* ============================================================
   Mobile QA fixes — 2026-10-06
   Shared layout/tap/overflow fixes; desktop unchanged where possible.
   ============================================================ */

/* Sticky header clearance */
html { scroll-padding-top: 72px; }

/* Duo engine cards: 2-col desktop, stack on tablet/mobile (replaces inline style) */
.feature-live--duo { grid-template-columns: 1fr 1fr; }
.feature-live > *,
.feature-live-card { min-width: 0; }

/* Compare tables: never force page-wide horizontal scroll */
.compare-table {
  width: 100%;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  /* Tap targets ≥ 44px */
  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: none;
  }
  .btn {
    min-height: 44px;
  }
  .btn-sm {
    min-height: 44px;
    padding: 12px 16px;
    font-size: var(--fs-button, 12px);
  }
  .m-nav-links a.btn,
  .m-nav-links a.btn-sm {
    min-height: 44px;
    padding: 12px 16px;
    width: 100%;
    justify-content: center;
  }
  .m-nav-links a:not(.btn) {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    padding: 12px 14px;
  }
  .footer-cols a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 0;
  }
  .price-card .price-select,
  .price-card .btn-sm {
    min-height: 44px;
  }

  /* Brand lockup breathes next to hamburger */
  .m-nav { gap: 12px; }
  .m-nav .brand { gap: 10px; min-width: 0; }
  .m-nav .brand .word { font-size: 24px; }
  .m-nav .brand img { width: 36px; height: 36px; }

  /* Hero / page type scale for narrow viewports */
  .page-hero h1.ring { font-size: clamp(32px, 9vw, 48px); }
  .hero h1.ring { font-size: clamp(34px, 10vw, 44px); }
  .article h1.ring { font-size: clamp(30px, 8vw, 44px); }
  .auth-visual .auth-copy h1.ring { font-size: clamp(30px, 8vw, 40px); }

  /* Hero product chrome: less vertical dead space */
  .hero-art { min-height: 400px; }
  .product-chrome { left: 12px; right: 12px; top: 20px; bottom: 12px; }

  /* Feature live always stacks ≤860 (overrides any leftover inline) */
  .feature-live,
  .feature-live--duo {
    grid-template-columns: 1fr !important;
  }

  /* Auth: quiet streaks so copy stays readable; tighter padding */
  .auth-visual {
    padding: 28px 24px 24px;
    min-height: 168px;
  }
  .auth-visual .auth-streak {
    opacity: 0.38;
    width: 115%;
    height: 115%;
    left: -5%;
    top: -18%;
  }
  .auth-visual .auth-copy {
    position: relative;
    z-index: 2;
  }
  .auth-visual .auth-copy .lead {
    position: relative;
    z-index: 1;
    color: var(--c-ink-2);
    background: linear-gradient(
      180deg,
      rgba(244, 246, 251, 0) 0%,
      rgba(244, 246, 251, 0.72) 18%,
      rgba(244, 246, 251, 0.88) 100%
    );
    margin-inline: -6px;
    padding: 6px 6px 4px;
    border-radius: 8px;
  }
  .auth-panel {
    padding: 28px 20px 40px;
  }
  .auth-card {
    padding: 24px 20px;
    max-width: 100%;
  }
  .auth-field input {
    min-height: 44px;
    height: 44px;
    font-size: 16px; /* avoid iOS zoom */
  }

  /* Footer: single column on phone; better tap area */
  .footer-rich { gap: 28px; }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Featured / blog images */
  .feature-hero-frame {
    max-height: 220px;
    border-radius: 8px;
  }
  .feature-hero-tag {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
  }
  .blog-thumb {
    border-radius: 8px;
  }

  /* FAQ / actions */
  .hero .actions,
  .page-hero .actions,
  .cta-final .actions {
    gap: 10px;
  }
  .faq-item summary,
  .faq-q {
    min-height: 44px;
    padding: 14px 16px;
  }

  /* Compare table cells breathe on narrow */
  .compare-table { font-size: 12.5px; }
  .compare-table th,
  .compare-table td { padding: 10px 8px; }
  .compare-table .si-badge {
    font-size: 8px;
    padding: 3px 7px;
    letter-spacing: 0.1em;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
  }

  /* Nav sheet: full-bleed feel, above content */
  .m-nav-links {
    z-index: 60;
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }
}

@media (max-width: 400px) {
  .m-nav .brand .word { font-size: 22px; }
  .m-nav .brand img { width: 32px; height: 32px; }
  .m-nav .brand .sub { font-size: 8px; letter-spacing: 0.16em; }
  :root { --margin-min: var(--space-4); }
  .hero-art { min-height: 360px; }
  .page-hero { padding: 36px 0 28px; }
  .auth-visual .auth-streak { opacity: 0.28; }
}

@media (max-width: 640px) {
  /* Streak bleeds stay inside — reinforce clip on page sections */
  .page-hero,
  .hero,
  .band,
  .cta-final,
  .auth-visual {
    overflow-x: clip;
  }
  .page-hero .streak-bleed {
    width: min(70vw, 280px);
    height: 220px;
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-visual .auth-copy .lead { transition: none; }
  .m-nav-links { scroll-behavior: auto; }
}

/* Compare: horizontal scroll inside wrap; readable columns on narrow */
@media (max-width: 640px) {
  .wrap:has(> .compare-table),
  .wrap:has(> table.compare-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .compare-table {
    table-layout: auto;
    width: max(100%, 540px);
    font-size: 13px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .compare-table th {
    white-space: nowrap;
  }
}

/* Auth checkbox tap target */
.auth-check {
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}
.auth-check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0;
}

/* Trial CTAs: keep wrapped button labels centered on narrow phones */
.btn { text-align: center; }

/* Compare pages: freshness note + sources (Oct 2026) */
.compare-checked { margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-3); }
.compare-same { margin: 24px 0 0; color: var(--c-ink-2); font-size: 15px; line-height: 1.6; }
.compare-sources { margin-top: 24px; padding-top: 16px; border-top: var(--border); font-size: 13px; color: var(--c-ink-3); line-height: 1.55; }
.compare-sources .label { margin: 0 0 8px; }
.compare-sources ul { margin: 0 0 10px; padding-left: 1.1em; }
.compare-sources li { margin: 2px 0; }
.compare-sources a { overflow-wrap: anywhere; }
.compare-sources p { margin: 0; }

/* ==========================================================================
   Home hero v2 (Oct 15 2026): copy + static recreation of the PilatesCRM app
   ========================================================================== */
.hx { padding: 64px 0 88px; }
.hx-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; }
.hx-copy .eyebrow { margin: 0 0 18px; }
.hx h1.ring { font-size: clamp(44px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px; max-width: none; color: var(--c-ink); }
.hx-lead { max-width: 34ch; margin: 0; font-size: 20px; line-height: 1.5; color: var(--c-ink-2); }
.hx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; font-family: var(--font-body, "Hanken Grotesk", sans-serif); font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; border-radius: 999px; transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hx-btn-primary { min-height: 50px; padding: 0 28px; background: #2B5FBF; color: #fff; box-shadow: 0 1px 2px rgba(26,27,58,.10), 0 6px 18px rgba(43,95,191,.22); }
.hx-btn-primary:hover { background: #1E3A7A; color: #fff; transform: translateY(-1px); }
.hx-btn-primary:focus-visible, .hx-btn-link:focus-visible { outline: 3px solid rgba(43,95,191,.35); outline-offset: 3px; }
.hx-btn-link { min-height: 44px; padding: 0 4px; color: #2B5FBF; }
.hx-btn-link:hover { color: #1E3A7A; }
.hx-btn-link span { transition: transform .18s ease; }
.hx-btn-link:hover span { transform: translateX(3px); }
.hx-fine { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: #5A5E7A; max-width: 44ch; }

/* stage */
.hx-nw { white-space: nowrap; }
.hx-stage { position: relative; padding: 0 0 132px 0; }
.hx-app { display: grid; grid-template-columns: 172px minmax(0, 1fr); background: #E8ECF6; border: 1px solid #D8DEEE; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 4px rgba(26,27,58,.04), 0 24px 60px -12px rgba(26,27,58,.18); font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: #1A1B3A; text-align: left; }
.hx-side { padding: 16px 10px; }
.hx-studio { display: flex; align-items: center; gap: 9px; padding: 0 4px 14px; }
.hx-studio-av { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #5E4A9E; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.hx-studio b { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.hx-studio small { display: block; font-size: 11px; color: #4E516E; }
.hx-side-label { margin: 2px 0 6px; padding: 0 8px; font-size: 11px; font-weight: 500; color: #4E516E; }
.hx-nav { display: grid; gap: 2px; }
.hx-nav span { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: #3A3D5C; }
.hx-nav span.on { background: #E4ECFA; color: #1A1B3A; }
.hx-nav span.on::before { content: ""; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: #2B5FBF; }
.hx-nav span.on svg { stroke: #2B5FBF; }
.hx-nav svg, .hx-search svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #4E516E; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hx-nav em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; color: #7A5010; background: #F7EED8; border-radius: 999px; padding: 1px 7px; }
.hx-main { margin: 8px 8px 8px 0; background: #fff; border: 1px solid #D8DEEE; border-radius: 16px; overflow: hidden; min-width: 0; }
.hx-search { display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 7px 10px; width: min(300px, calc(100% - 28px)); border: 1px solid #D8DEEE; border-radius: 999px; font-size: 11.5px; color: #6B6F8A; box-sizing: border-box; }
.hx-search kbd { margin-left: auto; font-family: "Geist Mono", ui-monospace, monospace; font-size: 9.5px; color: #4E516E; border: 1px solid #D8DEEE; border-radius: 5px; padding: 1px 5px; }
.hx-page { padding: 16px 18px 18px; }
.hx-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hx-title h2 { margin: 0; font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #1A1B3A; }
.hx-title span { font-size: 12px; color: #4E516E; }
.hx-tabs { display: flex; gap: 18px; margin: 12px 0 14px; border-bottom: 1px solid #D8DEEE; }
.hx-tabs span { padding: 0 0 8px; font-size: 12px; color: #4E516E; }
.hx-tabs span.on { color: #1A1B3A; font-weight: 500; box-shadow: inset 0 -2px 0 #2B5FBF; }
.hx-card { border: 1px solid #D8DEEE; border-radius: 14px; overflow: hidden; }
.hx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; }
.hx-card-head b { font-size: 13.5px; font-weight: 600; }
.hx-pill { font-size: 11px; font-weight: 500; color: #fff; background: #2B5FBF; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.hx-list { list-style: none; margin: 0; padding: 0; }
.hx-list li { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-top: 1px solid #E8ECF6; }
.hx-av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #1E3A7A; background: #E4ECFA; }
.hx-av.v { color: #4A3B82; background: #ECE8F7; }
.hx-who { min-width: 0; flex: 1; }
.hx-who b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.hx-who small { display: block; font-size: 11px; color: #4E516E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-chip { flex: none; display: inline-block; font-size: 11px; font-weight: 500; line-height: 1.5; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.hx-ok { background: #E3F2EC; color: #1F6650; }
.hx-due { background: #E4ECFA; color: #1E3A7A; }
.hx-wait { background: #F7EED8; color: #6E480E; }

/* Reformer room card */
.hx-room { position: absolute; left: -64px; bottom: 0; width: 252px; background: #fff; border: 1px solid #D8DEEE; border-radius: 16px; padding: 13px 14px 12px; box-shadow: 0 2px 4px rgba(26,27,58,.05), 0 22px 48px -10px rgba(26,27,58,.24); font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; color: #1A1B3A; text-align: left; }
.hx-room-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hx-room-sub { display: block; margin: 2px 0 10px; font-size: 11px; color: #4E516E; }
.hx-room-head b { display: block; font-size: 13px; font-weight: 600; }
.hx-room-head small { display: block; font-size: 11px; color: #4E516E; }
.hx-floor { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 9px; background: #F4F6FB; border: 1px solid #E1E6F2; border-radius: 12px; }
.hx-floor span { aspect-ratio: 1 / 1.3; display: grid; place-items: center; border-radius: 7px; font-size: 10px; font-weight: 600; border: 1px solid #D8DEEE; }
.hx-floor .o { background: #fff; color: #4E516E; font-weight: 500; }
.hx-floor .t { background: #E4E9F5; border-color: #E4E9F5; color: #3A3D5C; }
.hx-floor .h { background: #ECE8F7; border-color: #D9D1F0; color: #4A3B82; font-weight: 500; }
.hx-floor .s { background: #2B5FBF; border-color: #2B5FBF; color: #fff; box-shadow: 0 0 0 3px rgba(43,95,191,.18); }
.hx-legend { display: flex; justify-content: center; gap: 10px; margin-top: 9px; font-size: 10.5px; color: #4E516E; }
.hx-legend span { display: inline-flex; align-items: center; gap: 4px; }
.hx-legend i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #C9D0E3; background: #fff; }
.hx-legend i.h { background: #ECE8F7; border-color: #D9D1F0; }
.hx-legend i.t { background: #E4E9F5; border-color: #E4E9F5; }
.hx-legend i.s { background: #2B5FBF; border-color: #2B5FBF; }

@media (max-width: 1240px) {
  .hx-grid { gap: 40px; }
  .hx-app { grid-template-columns: 150px minmax(0, 1fr); }
  .hx-room { left: -88px; width: 248px; }
}
@media (max-width: 1080px) {
  .hx-stage { padding-bottom: 0; }
  .hx-room { position: relative; left: auto; bottom: auto; width: auto; max-width: 340px; margin: -40px 12px 0 auto; }
  .hx-app { grid-template-columns: minmax(0, 1fr); }
  .hx-side { display: none; }
  .hx-main { margin: 8px; }
}
@media (max-width: 900px) {
  .hx { padding: 20px 0 56px; }
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hx h1.ring { font-size: clamp(34px, 9.8vw, 56px); margin-bottom: 14px; }
  .hx-lead { font-size: 17px; line-height: 1.5; max-width: 40ch; }
  .hx-actions { margin-top: 22px; gap: 6px 18px; }
  .hx-fine { margin-top: 12px; font-size: 13.5px; }
  .hx-stage { padding: 0; }
  .hx .hx-streak { display: none; }
}
@media (max-width: 560px) {
  .hx-copy .eyebrow { margin-bottom: 12px; font-size: 11.5px; letter-spacing: .14em; }
  .hx-actions { flex-direction: column; align-items: stretch; }
  .hx-btn-primary { width: 100%; min-height: 52px; }
  .hx-btn-link { align-self: flex-start; }
  .hx-search { display: none; }
  .hx-card-head .hx-pill { display: none; }
  .hx-page { padding: 14px 14px 12px; }
  .hx-tabs { gap: 14px; }
  .hx-who small { font-size: 10.5px; }
  .hx-room { margin: -28px 0 0 auto; max-width: 300px; }
  .hx-actions { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hx-btn, .hx-btn-link span { transition: none; } }

/* Header CTA: matches the home hero button (Oct 15 2026) */
.m-nav-links a.nav-cta { font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; min-height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: #2B5FBF; color: #fff; box-shadow: 0 1px 2px rgba(26,27,58,.10), 0 4px 12px rgba(43,95,191,.20); transition: background-color .18s ease, transform .18s ease; }
.m-nav-links a.nav-cta:hover { background: #1E3A7A; color: #fff; transform: translateY(-1px); }
@media (max-width: 900px) { .m-nav-links a.nav-cta { min-height: 50px; padding: 0 24px; font-size: 16px; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .m-nav-links a.nav-cta { transition: none; } }

/* ---- Hero preview · Ink & Light app (Home brief + AI bar) ---- */
.ik-app { grid-template-columns: 188px minmax(0, 1fr); background: #F4F6FB; border: 0; border-radius: 20px; box-shadow: 0 0 0 1px rgba(26,27,58,.08), 0 4px 8px rgba(26,27,58,.06), 0 24px 60px -12px rgba(26,27,58,.24); }
.ik-side { position: relative; overflow: hidden; background: #12132B; color: #B9BCD9; padding: 12px 10px; }
.ik-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(200px 180px at 100% 0%, rgba(94,74,158,.34), transparent 70%); pointer-events: none; }
.ik-studio { position: relative; display: flex; align-items: center; gap: 9px; padding: 4px 4px 12px; color: #fff; }
.ik-logo { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(120deg,#5E4A9E,#2B5FBF); display: grid; place-items: center; font-size: 11px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.ik-studio b { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; }
.ik-studio small { display: block; font-size: 11px; color: #8E92B8; }
.ik-nav { position: relative; display: grid; gap: 2px; }
.ik-nav span { position: relative; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; color: #B9BCD9; white-space: nowrap; }
.ik-nav svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #8E92B8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ik-nav span.on { background: rgba(255,255,255,.10); color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ik-nav span.on svg { stroke: #fff; }
.ik-nav span.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(120deg,#5E4A9E,#2B5FBF); }
.ik-nav em { margin-left: auto; font: 500 10.5px/1.5 "Geist Mono", ui-monospace, monospace; font-style: normal; color: #fff; background: linear-gradient(120deg,#5E4A9E,#2B5FBF); border-radius: 999px; padding: 0 7px; }
.ik-nav .ik-sec { height: auto; padding: 12px 8px 4px; font: 500 10px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #8E92B8; }
.ik-main { min-width: 0; display: flex; flex-direction: column; }
.ik-top { padding: 10px 14px; border-bottom: 1px solid #E0E5F0; background: rgba(244,246,251,.85); }
.ik-ask { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; max-width: 360px; padding: 0 5px 0 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(94,74,158,.32), 0 1px 2px rgba(26,27,58,.06); font-size: 12px; color: #5A5E7D; min-width: 0; }
.ik-spark { flex: none; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(120deg,#5E4A9E,#2B5FBF); display: grid; place-items: center; }
.ik-spark svg { width: 12px; height: 12px; fill: #fff; }
.ik-ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ik-ask kbd { flex: none; font: 500 10px/16px "Geist Mono", ui-monospace, monospace; color: #5A5E7D; background: #EEF1F8; border: 1px solid #CDD4E6; border-radius: 4px; padding: 0 5px; }
.ik-page { padding: 14px; display: grid; gap: 10px; }
.ik-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 16px 18px; background: #12132B; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.ik-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 0%, rgba(94,74,158,.55), transparent 60%), radial-gradient(50% 90% at 100% 100%, rgba(43,95,191,.35), transparent 60%); pointer-events: none; }
.ik-hero > * { position: relative; margin: 0; }
.ik-eyebrow { font: 500 10px/16px "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #C9B8EC; }
.ik-ring { margin-top: 4px !important; font-family: "Ring-Display", "Ring", sans-serif; font-size: 26px; line-height: 1.1; text-transform: lowercase; color: #fff; }
.ik-sub { margin-top: 6px !important; font-size: 12px; line-height: 1.45; color: #B9BCD9; max-width: 42ch; }
.ik-needs { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ik-needs b { font-size: 13px; font-weight: 600; }
.ik-pill-ai { font-size: 11px; font-weight: 500; color: #5E4A9E; background: linear-gradient(120deg,#EEE8F8,#E4ECFA); box-shadow: inset 0 0 0 1px rgba(94,74,158,.18); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.ik-ai { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 11px 14px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(26,27,58,.06), 0 1px 2px rgba(26,27,58,.06), 0 2px 6px -2px rgba(26,27,58,.06); }
.ik-ai::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,#5E4A9E,#2B5FBF); }
.ik-n { flex: none; width: 20px; height: 20px; border-radius: 6px; background: #EEE8F8; color: #5E4A9E; display: grid; place-items: center; font: 500 10.5px "Geist Mono", ui-monospace, monospace; }
.ik-what { flex: 1; min-width: 0; }
.ik-what b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.ik-what p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.4; color: #5A5E7D; }
.ik-draft { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #F8F9FC; box-shadow: inset 0 0 0 1px #E0E5F0; font-size: 11.5px; line-height: 1.45; color: #1A1B3A; }
.ik-to { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; font-size: 10.5px; color: #5A5E7D; }
.ik-to i { font-style: normal; font-weight: 500; color: #7A5010; background: #F7EED8; border-radius: 999px; padding: 0 7px; }
.ik-btn { flex: none; font-size: 11px; font-weight: 600; color: #fff; background: #2B5FBF; border-radius: 8px; padding: 5px 10px; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(26,27,58,.12); }
.ik-btn-2 { color: #1A1B3A; background: #fff; box-shadow: 0 0 0 1px #CDD4E6; }
@media (max-width: 1240px) { .ik-app { grid-template-columns: 160px minmax(0, 1fr); } }
@media (max-width: 1080px) { .ik-app { grid-template-columns: minmax(0, 1fr); } .ik-side { display: none; } .ik-top { background: #12132B; border-bottom: 0; } .ik-ask { max-width: none; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #B9BCD9; } .ik-ask kbd { background: transparent; color: #B9BCD9; border-color: rgba(255,255,255,.18); } }
@media (max-width: 560px) {
  .ik-page { padding: 10px; gap: 8px; }
  .ik-hero { padding: 14px; }
  .ik-ring { font-size: 22px; }
  .ik-ai { flex-wrap: wrap; }
  .ik-what { flex-basis: calc(100% - 30px); }
  .ik-btn { margin-left: 30px; }
  .ik-last { display: none; }
  .ik-ask kbd { display: none; }
}
@media (max-width: 1080px) { .ik-page { padding-bottom: 48px; } }
