/* Marketing landing page styles. Loaded only on app/views/static/index.html.erb
   via stylesheet_link_tag inside content_for :head. All rules are scoped under
   .marketing-home so the file is safe to ship even if it ever loads globally. */

.marketing-home {
  --mh-bg: #0a0e1f;
  --mh-bg-alt: #0f1428;
  --mh-surface: #141a32;
  --mh-ink: #f4ecf7;
  --mh-ink-dim: rgba(244, 236, 247, 0.62);
  --mh-ink-soft: rgba(244, 236, 247, 0.42);
  --mh-line: rgba(255, 255, 255, 0.08);
  --mh-magenta: #d96bff;
  --mh-hot: #c95cff;
  --mh-gradient: linear-gradient(135deg, #1c1d6b 0%, #4d2db8 40%, #9d44d8 70%, #d96bff 100%);
  --mh-gradient-soft: linear-gradient(135deg, rgba(28, 29, 107, 0.30) 0%, rgba(111, 59, 208, 0.30) 50%, rgba(217, 107, 255, 0.30) 100%);
  --mh-gradient-text: linear-gradient(110deg, #6f8fff 0%, #b376ff 50%, #ff8fdd 100%);
  --mh-ink-accent: #e9d5ff;   /* lavender text (cal chrome) */
  --mh-on-accent: #1a0f2e;    /* dark ink on bright accent fills */
  --mh-live: var(--live);     /* cyan live/info tone: the blog's preview banner */
  /* Match the main app's typography: alias to its global tokens (tokens.css ships
     in the tailwind bundle). Domine is a sturdy low-contrast serif — unlike the
     previous Bodoni Moda, its strokes don't vanish at small sizes on phones. */
  --mh-display: var(--font-display, "Domine", ui-serif, Georgia, serif);
  --mh-body: var(--font-sans, "Figtree", ui-sans-serif, system-ui, sans-serif);
  --mh-mono: var(--font-sans, "Figtree", ui-sans-serif, system-ui, sans-serif);  /* app has no mono — labels use the sans (letter-spacing keeps the label feel) */

  background: var(--mh-bg);
  color: var(--mh-ink);
  font-family: var(--mh-body);
  letter-spacing: 0;
  min-height: 100vh;
  overflow: hidden;
}

/* Cover html and body so no light strip leaks on mobile (elastic-scroll
   bounce, scrollbar gutter, or sub-pixel horizontal scroll). overflow-x:clip
   on html catches any descendant that nudges past 100vw. */
html:has(.marketing-home),
body:has(.marketing-home) { background: var(--mh-bg); }
html:has(.marketing-home) { overflow-x: clip; }

/* The static layout renders the page in a bare <main>. Because <body> is a
   flex/grid container, <main> is an item whose default min-width:auto resolves
   to its min-content — so it grows to the calendar's widest unbreakable agenda
   line and blows the page ~40px past a 360px phone (loaded zoomed-out). The
   mobile-shell paradigm: min-width:0 lets <main> shrink back to the viewport so
   the constraint propagates down and the content reflows. */
body:has(.marketing-home) main { min-width: 0; max-width: 100%; }

.marketing-home *,
.marketing-home *::before,
.marketing-home *::after { box-sizing: border-box; }

/* Propagate the viewport-width constraint down through the nested grids.
   A grid/flex item's default min-width:auto resolves to min-content, so a wide
   leaf (the calendar, a long heading) refuses to shrink and forces every
   ancestor — and the whole shell — past 100vw. overflow-x:clip on <html> only
   *masks* that; min-width:0 on the items is what actually contains it.
   See the mobile-shell-overflow pattern. */
.marketing-home :is(
  .mh-nav,
  .mh-hero-grid,
  .mh-feature-block,
  .mh-calendar,
  .mh-appt,
  .mh-two-col,
  .mh-paragraphs,
  .mh-section-head,
  .mh-faq-layout,
  .mh-footer-grid,
  .mh-feature-cards
) > * { min-width: 0; }

.mh-shell { margin: 0 auto; max-width: 1440px; padding: 0 56px; position: relative; }
.mh-section { padding: 120px 0; position: relative; }
.mh-alt { background: var(--mh-bg-alt); }
.mh-grad-text {
  background: var(--mh-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* Hand-drawn double-stroke underline beneath one emphasized word - the
   viewBox stretches to the word's rendered width via preserveAspectRatio
   "none", so it holds at any font size or word length without redrawing. */
.mh-underline-word { display: inline-block; position: relative; }
.mh-underline-word__mark {
  bottom: -0.3em;
  height: 0.45em;
  left: -4%;
  overflow: visible;
  position: absolute;
  width: 108%;
}
.mh-underline-word__mark path {
  fill: none;
  stroke: var(--mh-magenta);
  stroke-linecap: round;
  stroke-width: 3;
}
.mh-underline-word__mark path:last-child { opacity: 0.6; stroke-width: 2.25; }

/* ---------- Top nav ---------- */
.mh-nav {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  padding: 24px 0;
  position: relative;
  z-index: 3;
}

.mh-logo img { display: block; height: 80px; width: auto; }
.mh-nav-links { align-items: center; display: flex; gap: 28px; justify-content: center; }
.mh-nav-links a,
.mh-sign-in {
  color: var(--mh-ink-dim);
  font-size: 14px;
  text-decoration: none;
}
.mh-nav-links a:hover,
.mh-sign-in:hover { color: var(--mh-ink); }
.mh-nav-actions { align-items: center; display: flex; gap: 14px; justify-content: flex-end; }
.mh-menu { display: none; }

.mh-nav-links .mh-nav-links__cta { display: none; }


@media (max-width: 1023px) {
  .marketing-home .mh-nav { display: flex; justify-content: flex-end; padding: 20px 0; position: relative; }
  .marketing-home .mh-logo { left: 50%; line-height: 0; position: absolute; top: 50%; transform: translate(-50%, -50%); width: max-content; }
  .marketing-home .mh-logo img { height: 72px; }
  .marketing-home .mh-sign-in { display: none; }

  .marketing-home .mh-nav-links {
    background: var(--mh-surface);
    border: 1px solid var(--mh-line);
    border-radius: 16px;
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2px;
    left: 20px;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: calc(100% + 8px);
    z-index: 20;
  }
  .marketing-home .mh-nav-links.is-closed { display: none; }
  .marketing-home .mh-nav-links a { border-radius: 10px; padding: 12px 14px; }
  .marketing-home .mh-nav-links a:hover { background: var(--mh-line); }
  .marketing-home .mh-nav-links__cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--mh-line);
  }

  .marketing-home .mh-nav-actions__cta { display: none; }
  .marketing-home .mh-menu {
    align-items: center;
    background: transparent;
    color: var(--mh-ink);
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
  }
}

/* ---------- Buttons ---------- */
.mh-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 16px 24px;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.mh-button:hover { transform: translateY(-1px); }
.mh-button:focus-visible,
.mh-faq summary:focus-visible,
.mh-nav a:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--mh-bg), 0 0 0 4px var(--mh-magenta);
}
.mh-primary {
  background: var(--mh-gradient);
  box-shadow: 0 16px 40px -12px rgba(217, 107, 255, 0.55);
  color: white;
}
.mh-ghost { border: 1px solid var(--mh-line); color: var(--mh-ink); }
.mh-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.mh-dashed { border: 1px dashed rgba(244, 236, 247, 0.25); color: var(--mh-ink); }
.mh-navy-button { background: var(--mh-bg); color: white; margin-top: 34px; }

/* ---------- Hero ---------- */
.mh-hero {
  min-height: 880px;
  padding-bottom: 118px;
  position: relative;
}
.mh-hero::before {
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(217, 107, 255, 0.20), transparent 55%),
    radial-gradient(700px 500px at -10% 20%, rgba(28, 29, 107, 0.55), transparent 55%),
    radial-gradient(600px 400px at 50% 60%, rgba(111, 59, 208, 0.12), transparent 60%);
  content: "";
  height: 760px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}
.mh-hero-grid {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
  padding-top: 54px;
  position: relative;
  z-index: 1;
}

/* ---------- Type & eyebrow ---------- */
.mh-eyebrow {
  align-items: center;
  color: var(--mh-ink-dim);
  display: inline-flex;
  font-family: var(--mh-mono);
  font-size: 11px;
  font-weight: 500;
  gap: 12px;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}
.mh-eyebrow::before { background: currentColor; content: ""; height: 1px; opacity: 0.8; width: 28px; }
.mh-eyebrow-accent { color: var(--mh-magenta); }
.mh-h1, .mh-h2 {
  font-family: var(--mh-display);
  font-weight: 500;
  letter-spacing: -0.038em;
  margin: 0;
}
.mh-h1 { font-size: 6.5rem; line-height: 0.9; margin-top: 28px; }
.mh-h2 { font-size: clamp(46px, 5vw, 60px); letter-spacing: -0.025em; line-height: 1; }
.mh-copy { color: var(--mh-ink-dim); font-size: 19px; line-height: 1.55; margin: 30px 0 0; max-width: 760px; }
.mh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.mh-trust { align-items: center; color: var(--mh-ink-soft); display: flex; flex-wrap: wrap; font-size: 13px; gap: 12px; margin-top: 28px; }
.mh-trust-dot { background: var(--mh-line); border-radius: 50%; height: 4px; width: 4px; }

/* ---------- Calendar preview ---------- */
.mh-feature-block { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; }
.mh-halo { position: relative; }
.mh-halo::before {
  background: var(--mh-gradient);
  border-radius: 22px;
  content: "";
  filter: blur(16px);
  inset: -1px;
  opacity: 0.55;
  position: absolute;
  z-index: 0;
}
.mh-calendar {
  background: rgba(20, 26, 50, 0.94);
  border: 1px solid var(--mh-line);
  border-radius: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 1fr;
  min-height: 520px;
  padding: 20px;
  position: relative;
  z-index: 1;
}
/* Period nav — centered label + sub with ‹ › buttons, mirrors cc-cal-pnav. */
.mh-calendar-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.mh-cal-pnav-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 150px; }
.mh-calendar-title { font-family: var(--mh-display); font-size: 22px; font-weight: 600; line-height: 1; }
.mh-calendar-sub { color: var(--mh-ink-dim); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.mh-calendar-sub::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: var(--accent-soft); box-shadow: 0 0 8px var(--accent-glow); }
.mh-cal-navbtn { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: var(--mh-ink-accent); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline); }
.mh-days, .mh-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mh-days { color: var(--mh-ink-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.mh-grid { gap: 8px; }
/* Day cell + density dot — mirrors the in-app provider calendar
   (cc-cal-cell / cc-cal-cell__dot): airy transparent cells, the day number
   and a glowing accent dot stacked, gradient pill for the selected day. */
.mh-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--mh-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.mh-day__num { line-height: 1; }
.mh-day__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);   /* default = "open" ring */
}
.mh-day.booked .mh-day__dot { background: var(--accent-soft); border-color: transparent; box-shadow: 0 0 6px var(--accent-glow); }
.mh-day.full   .mh-day__dot { background: var(--accent);      border-color: transparent; box-shadow: 0 0 7px var(--accent-glow); }
.mh-day.selected {
  color: var(--mh-on-accent);
  font-weight: 700;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-mid));
  box-shadow: 0 10px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.mh-day.selected .mh-day__dot { background: var(--mh-on-accent); border-color: transparent; box-shadow: none; }
.mh-legend { align-items: center; color: var(--mh-ink-soft); display: flex; flex-wrap: wrap; font-size: 12px; gap: 14px; margin-top: 18px; }
.mh-legend span { align-items: center; display: inline-flex; gap: 8px; }
.mh-legend-dot { display: inline-block; width: 4px; height: 4px; border-radius: 999px; background: var(--accent-soft); box-shadow: 0 0 6px var(--accent-glow); }
.mh-legend-dot.full { background: var(--accent); box-shadow: 0 0 7px var(--accent-glow); }
.mh-legend-dot.open { background: transparent; border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: none; }

/* ---------- Schedule ---------- */
.mh-schedule { border-left: 1px solid var(--mh-line); padding-left: 18px; }
/* Day header — capacity ring + title/sub + chip, mirrors cc-cal-dayhead. */
.mh-dayhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mh-dayhead-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mh-dayhead-title { font-family: var(--mh-display); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.mh-dayhead-sub { color: var(--mh-ink-soft); font-size: 12.5px; margin-top: 2px; }
.mh-ring { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; position: relative; }
.mh-ring::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.10) 0); }
/* inner hole matches the .mh-calendar surface so the ring reads as a ring */
.mh-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 999px; background: rgba(20, 26, 50, 0.94); }
.mh-ring-t { position: relative; z-index: 1; font-family: var(--mh-display); font-size: 13px; font-weight: 600; }
.mh-ring-t b { color: var(--accent-soft); }
.mh-chip { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: var(--accent-soft); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent-soft) 30%, transparent); }
/* Booking cards — mirror the in-app agenda (cc-cal-appt): left category bar,
   tabular time gutter, serif name, dot-led service line. */
.mh-appt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  margin-bottom: 9px;
  padding: 15px 14px 15px 18px;
  position: relative;
  overflow: hidden;
}
.mh-appt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--accent-soft);
  box-shadow: 2px 0 12px var(--accent-glow);
}
.mh-appt.featured {
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent-mid) 42%, transparent) 0%, color-mix(in srgb, var(--accent) 26%, transparent) 60%, color-mix(in srgb, var(--accent) 12%, transparent) 100%);
  border-color: color-mix(in srgb, var(--accent-soft) 45%, transparent);
  box-shadow: 0 14px 34px -16px var(--accent-glow);
}
.mh-time { color: var(--mh-ink-soft); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; width: 42px; flex: 0 0 42px; }
.mh-appt-body { flex: 1 1 auto; min-width: 0; }
.mh-client { display: block; font-family: var(--mh-display); font-size: 16px; font-weight: 600; line-height: 1.15; }
.mh-service { display: flex; align-items: center; gap: 7px; color: var(--mh-ink-soft); font-size: 12.5px; margin-top: 3px; white-space: nowrap; }
.mh-service span { color: rgba(255, 255, 255, 0.32); }
.mh-cat { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-soft); }
.mh-calendar-actions { display: flex; gap: 10px; margin-top: 18px; }
.mh-calendar-actions .mh-button { font-size: 12px; min-height: 38px; padding: 11px 14px; }

/* ---------- Story / quote / stats ---------- */
.mh-two-col { display: grid; gap: 68px; grid-template-columns: 0.9fr 1.1fr; }

/* ---------- About page: shared inset-card padding ---------- */
/* Same radius/padding rhythm as .mh-final-card and .mh-story-split__text -
   the page reads as a set of inset cards, so anything that used to be plain
   text-on-background (the quote, the values list) gets the same treatment
   rather than standing out as a different pattern. */
.mh-inset-card {
  background: var(--mh-surface);
  border-radius: 28px;
  padding: 90px 64px;
}

/* ---------- About page: "Our Story" split card ---------- */
.mh-story-split {
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  overflow: hidden;
}
.mh-story-split__text {
  align-items: center;
  background: var(--mh-surface);
  display: flex;
  padding: 90px 64px;
}
.mh-story-split__text .mh-paragraphs { max-width: 480px; }
.mh-story-split__photo { overflow: hidden; position: relative; }
.mh-story-split__photo img { display: block; height: 100%; object-fit: cover; width: 100%; }

/* ---------- About page: values rows ---------- */
.mh-values { margin-top: 40px; max-width: 900px; }
.mh-value-row {
  border-bottom: 1px solid var(--mh-line);
  display: grid;
  gap: 8px 48px;
  grid-template-columns: 220px 1fr;
  padding: 40px 0;
}
.mh-value-row:first-child { padding-top: 0; }
.mh-value-row:last-child { border-bottom: none; padding-bottom: 0; }
.mh-value-tag {
  color: var(--mh-magenta);
  font-family: var(--mh-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.1;
}
.mh-value-title { color: var(--mh-ink); font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.mh-value-copy { color: var(--mh-ink-dim); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Pricing page: plan cards ---------- */
.mh-plan-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  max-width: 900px;
}
.mh-plan-card {
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 28px;
  padding: 48px 40px;
  position: relative;
}
.mh-plan-card--featured { border-color: var(--mh-magenta); }
.mh-plan-badge {
  background: var(--mh-gradient);
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  position: absolute;
  right: 32px;
  top: -14px;
}
.mh-plan-name { color: var(--mh-ink-soft); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mh-plan-price { align-items: baseline; display: flex; gap: 6px; margin: 16px 0 0; }
.mh-plan-amount { color: var(--mh-ink); font-family: var(--mh-display); font-size: 48px; line-height: 1; }
.mh-plan-interval { color: var(--mh-ink-soft); font-size: 16px; }
.mh-plan-copy { color: var(--mh-ink-dim); font-size: 15px; line-height: 1.5; margin: 14px 0 0; }
.mh-plan-cta { margin-top: 28px; width: 100%; }
.mh-plan-features { display: grid; gap: 14px; list-style: none; margin: 32px 0 0; padding: 0; }
.mh-plan-features li { align-items: center; color: var(--mh-ink-dim); display: flex; font-size: 15px; gap: 10px; }
.mh-plan-features .cc-icon { color: var(--mh-magenta); flex-shrink: 0; }
.mh-plan-disclaimer { color: var(--mh-ink-soft); font-size: 13px; margin: 32px auto 0; max-width: 900px; text-align: center; }

/* ---------- The blog's index and category pages (CCPRO-1117) ---------- */
/* Friendo's reader pages: the newest post featured large, then a grid of
   cards (a list with thumbnails on a phone). Category pages are the grid. */
.mh-blog-index { padding-bottom: 96px; }
.mh-blog-index-head { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }
.mh-blog-index-title {
  font-family: var(--mh-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.mh-blog-index-intro { color: var(--mh-ink-dim); font-size: 19px; line-height: 1.55; margin: 0; max-width: 640px; }
.mh-blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mh-blog-chip {
  align-items: center;
  border: 1px solid var(--mh-line);
  border-radius: 999px;
  color: var(--mh-ink-dim);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}
.mh-blog-chip:hover { border-color: color-mix(in srgb, var(--mh-magenta) 45%, transparent); color: var(--mh-ink); }
.mh-blog-chip.is-active {
  background: color-mix(in srgb, var(--mh-magenta) 16%, transparent);
  border-color: color-mix(in srgb, var(--mh-magenta) 45%, transparent);
  color: var(--mh-ink);
}

.mh-blog-card-category { color: var(--mh-magenta); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.mh-blog-featured { align-items: center; display: grid; gap: 48px; grid-template-columns: 1.35fr 1fr; margin-top: 40px; }
.mh-blog-featured-image,
.mh-blog-card-image { background: var(--mh-surface); overflow: hidden; }
.mh-blog-featured-image { aspect-ratio: 4 / 3; border-radius: 28px; }
.mh-blog-featured-image picture,
.mh-blog-card-image picture { display: block; height: 100%; }
.mh-blog-featured-image img,
.mh-blog-card-image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.mh-blog-featured-text { display: flex; flex-direction: column; gap: 16px; }
.mh-blog-featured-title {
  color: var(--mh-ink);
  font-family: var(--mh-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  transition: color 0.15s ease;
}
.mh-blog-featured-summary { color: var(--mh-ink-dim); font-size: 18px; line-height: 1.6; margin: 0; }
.mh-blog-featured-byline { align-items: center; color: var(--mh-ink-soft); display: flex; font-size: 14px; gap: 12px; margin-top: 8px; }
.mh-blog-featured-byline p { margin: 0; }
.mh-blog-featured-byline strong { color: var(--mh-ink); display: block; font-size: 15px; font-weight: 600; }

.mh-blog-grid {
  border-top: 1px solid var(--mh-line);
  display: grid;
  gap: 48px 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  padding-top: 48px;
}
.mh-blog-index-head + .mh-blog-grid { margin-top: 48px; }
.mh-blog-card { display: flex; flex-direction: column; gap: 12px; }
.mh-blog-card-image { aspect-ratio: 3 / 2; border-radius: 20px; }
.mh-blog-card-title {
  color: var(--mh-ink);
  font-family: var(--mh-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 4px 0 0;
  text-wrap: balance;
  transition: color 0.15s ease;
}
.mh-blog-card-summary { color: var(--mh-ink-dim); font-size: 15px; line-height: 1.55; margin: 0; }
.mh-blog-card-when { color: var(--mh-ink-soft); font-size: 13px; font-weight: 500; }
.mh-blog-featured:hover .mh-blog-featured-title,
.mh-blog-card:hover .mh-blog-card-title { color: var(--mh-magenta); }

/* A post with no cover: the site's ground, a magenta glow, the title and the
   author. On a phone's thumbnail, the glow alone. */
.mh-blog-art {
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mh-magenta) 32%, transparent), transparent 55%) var(--mh-bg-alt);
  border: 1px solid var(--mh-line);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 22px;
}
.mh-blog-art-title { color: var(--mh-ink); font-family: var(--mh-display); font-size: 22px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.mh-blog-art-byline { align-items: center; color: var(--mh-ink-dim); display: flex; font-size: 12px; font-weight: 500; gap: 8px; }
.mh-blog-featured-image .mh-blog-art { padding: 36px; }
.mh-blog-featured-image .mh-blog-art-title { font-size: 34px; }

.mh-blog-empty { margin: 48px 0 0; }

/* Pagy's nav, each page 44px to a thumb (§6.6). */
.mh-blog-pagination { display: flex; justify-content: center; margin-top: 56px; }
.mh-blog-pagination .pagy { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mh-blog-pagination a {
  align-items: center;
  border-radius: 12px;
  color: var(--mh-ink-dim);
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
}
.mh-blog-pagination a[href]:hover { color: var(--mh-magenta); }
.mh-blog-pagination a[aria-current] { background: var(--mh-surface); color: var(--mh-ink); }
.mh-blog-pagination a[aria-disabled]:not([aria-current]) { opacity: 0.4; }

@media (max-width: 1023px) {
  .mh-blog-featured { gap: 32px; }
  .mh-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mh-blog-index-head { padding-top: 12px; }
  .mh-blog-index-title { font-size: 38px; }
  .mh-blog-index-intro { font-size: 17px; }
  /* One row that scrolls sideways, edge to edge, rather than chips cut off. */
  .mh-blog-chips { flex-wrap: nowrap; margin-inline: -20px; overflow-x: auto; padding-inline: 20px; scrollbar-width: none; }
  .mh-blog-chips::-webkit-scrollbar { display: none; }
  .mh-blog-featured { gap: 18px; grid-template-columns: 1fr; margin-top: 28px; }
  .mh-blog-featured-image { border-radius: 22px; }
  .mh-blog-featured-title { font-size: 28px; }
  .mh-blog-featured-summary { font-size: 16px; }
  .mh-blog-grid { gap: 32px; grid-template-columns: 1fr; margin-top: 40px; padding-top: 32px; }
  .mh-blog-index-head + .mh-blog-grid { margin-top: 28px; }
  .mh-blog-card { align-content: start; column-gap: 16px; display: grid; grid-template-columns: 1fr 112px; row-gap: 6px; }
  .mh-blog-card > * { grid-column: 1; }
  .mh-blog-card-image { aspect-ratio: 1; border-radius: 16px; grid-column: 2; grid-row: 1 / span 4; }
  .mh-blog-card-title { font-size: 19px; margin: 0; }
  .mh-blog-card-summary { display: none; }
  .mh-blog-card .mh-blog-art { padding: 0; }
  .mh-blog-card .mh-blog-art > * { display: none; }
}

/* ---------- A post (CCPRO-1117, friendo's reader pages) ---------- */
/* overflow:hidden above would stop the preview banner (and the contents rail)
   sticking; clip contains the same, and flow-root keeps the block formatting
   context hidden gave. */
.marketing-home:has(.mh-blog-post) { display: flow-root; overflow: clip; }

/* The hero: centred on a desktop, left-aligned on a phone. */
.mh-blog-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 1112px;
  padding: 40px 56px 0;
  text-align: center;
}
/* 15px to the eye, 45px to a thumb (§6.6). */
.mh-blog-category { position: relative; }
.mh-blog-category::after { content: ""; inset: -15px 0; position: absolute; }
.mh-blog-title {
  font-family: var(--mh-display);
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.mh-blog-excerpt { color: var(--mh-ink-dim); font-size: 21px; line-height: 1.55; margin: 0; max-width: 720px; text-wrap: pretty; }
.mh-blog-meta { align-items: center; color: var(--mh-ink-soft); display: flex; flex-wrap: wrap; font-size: 14px; gap: 8px 12px; justify-content: center; }
.mh-blog-meta p { margin: 0; }
.mh-blog-byline { align-items: center; display: flex; gap: 12px; text-align: left; }
.mh-blog-byline-name { color: var(--mh-ink); font-size: 15px; font-weight: 600; }
.mh-blog-byline + .mh-blog-when::before { content: "·"; margin-right: 12px; opacity: 0.6; }

.mh-blog-post picture { display: block; }
.mh-blog-cover {
  aspect-ratio: 2 / 1;
  border-radius: 28px;
  display: block;
  height: auto;
  margin: 48px auto 0;
  object-fit: cover;
  width: min(1120px, calc(100% - 112px));
}

/* A post's blocks (CCPRO-1112) on a grid: everything in the 680px column,
   wide pictures 140px further each side, full ones edge to edge. Renderer's
   IMAGE_SIZES tells the browser the same widths. */
.mh-blog-body {
  --mh-blog-gutter: 56px;
  color: var(--mh-ink-dim);
  display: grid;
  font-size: 18px;
  grid-template-columns:
    [full-start] minmax(var(--mh-blog-gutter), 1fr)
    [wide-start] minmax(0, 140px)
    [column-start] min(680px, calc(100% - 2 * var(--mh-blog-gutter))) [column-end]
    minmax(0, 140px) [wide-end]
    minmax(var(--mh-blog-gutter), 1fr) [full-end];
  line-height: 1.75;
  padding-top: 72px;
  row-gap: 24px;
}
.mh-blog-body > * { grid-column: column; margin-block: 0; min-width: 0; }
.mh-blog-body p { text-wrap: pretty; }
.mh-blog-body strong { color: var(--mh-ink); font-weight: 600; }
.mh-blog-body a { color: var(--mh-magenta); text-decoration: underline; text-underline-offset: 3px; }
.mh-blog-body h2,
.mh-blog-body h3 { color: var(--mh-ink); font-family: var(--mh-display); font-weight: 700; text-wrap: balance; }
.mh-blog-body h2 { font-size: 32px; line-height: 1.2; }
.mh-blog-body h3 { font-size: 24px; line-height: 1.25; }
.mh-blog-body h4 { color: var(--mh-ink); font-size: 18px; font-weight: 700; line-height: 1.4; }
.mh-blog-body > h2 { margin-top: 24px; }
.mh-blog-body > h3 { margin-top: 8px; }
.mh-blog-body ul,
.mh-blog-body ol { display: flex; flex-direction: column; gap: 10px; padding-left: 1.3em; }
.mh-blog-body li::marker { color: var(--mh-magenta); font-weight: 700; }
.mh-blog-body li > p { margin: 0; }
.mh-blog-body blockquote { color: var(--mh-ink); font-family: var(--mh-display); font-size: 28px; line-height: 1.42; }
.mh-blog-body > blockquote { margin-block: 16px; }
.mh-blog-body blockquote::before {
  background: var(--mh-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  content: "\201C";
  display: block;
  font-size: 64px;
  font-weight: 700;
  height: 30px;
  line-height: 0.9;
  margin-bottom: 12px;
}
.mh-blog-body blockquote p { margin: 0; }
.mh-blog-body blockquote p + p { margin-top: 12px; }
.mh-blog-body hr { background: var(--mh-gradient-text); border: 0; border-radius: 2px; height: 2px; justify-self: center; width: 72px; }
.mh-blog-body > hr { margin-block: 24px; }

.mh-blog-figure,
.mh-blog-video { display: flex; flex-direction: column; gap: 12px; }
.mh-blog-body > .mh-blog-figure,
.mh-blog-body > .mh-blog-video { margin-block: 16px; }
.mh-blog-body > .mh-blog-figure-wide { grid-column: wide; }
.mh-blog-body > .mh-blog-figure-full { grid-column: full; }
.mh-blog-figure img { border-radius: 20px; display: block; height: auto; width: 100%; }
.mh-blog-figure-full img { border-radius: 0; }
/* A wide or full picture's caption stays on the reading column. */
.mh-blog-body figcaption { color: var(--mh-ink-soft); font-size: 14px; line-height: 1.5; margin: 0 auto; max-width: 680px; width: 100%; }
.mh-blog-video iframe { aspect-ratio: 16 / 9; border: 0; border-radius: 20px; display: block; height: auto; width: 100%; }
/* A video's poster until the reader presses play (CCPRO-1117): its picture
   dimmed, or the dark ground and glow when it has none. */
.mh-blog-video-poster {
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--mh-magenta) 24%, transparent), transparent 55%) var(--mh-surface);
  border-radius: 20px;
  display: block;
  overflow: hidden;
  position: relative;
}
.mh-blog-video-poster picture { display: block; height: 100%; }
.mh-blog-video-poster img { display: block; filter: brightness(0.55) saturate(0.85); height: 100%; object-fit: cover; width: 100%; }
.mh-blog-video-play {
  align-items: center;
  background: color-mix(in srgb, var(--mh-ink) 92%, transparent);
  border-radius: 50%;
  color: var(--mh-on-accent);
  display: flex;
  height: 72px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
  width: 72px;
}
/* A drawn triangle: the ▶ glyph turns into an emoji on iOS. */
.mh-blog-video-play::before { border-bottom: 12px solid transparent; border-left: 20px solid currentColor; border-top: 12px solid transparent; content: ""; margin-left: 5px; }
.mh-blog-video-poster:hover .mh-blog-video-play { transform: translate(-50%, -50%) scale(1.06); }
.mh-blog-video-tag {
  background: color-mix(in srgb, var(--mh-bg) 70%, transparent);
  border-radius: 999px;
  bottom: 14px;
  color: var(--mh-ink);
  font-size: 12px;
  font-weight: 600;
  left: 14px;
  padding: 6px 10px;
  position: absolute;
}
.mh-blog-video-note { bottom: 14px; color: var(--mh-ink-dim); font-size: 12px; font-weight: 500; position: absolute; right: 14px; }

.mh-blog-body > .mh-blog-author {
  border-top: 1px solid var(--mh-line);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr;
  margin-top: 24px;
  padding-top: 32px;
}
.mh-blog-author p { margin: 0; }
.mh-blog-author-name { color: var(--mh-ink); font-family: var(--mh-display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.mh-blog-author-role { color: var(--mh-magenta); font-size: 14px; font-weight: 500; line-height: 1.4; margin-top: 2px; }
.mh-blog-author .mh-blog-author-bio { font-size: 16px; line-height: 1.6; margin-top: 10px; }

/* The contents (CCPRO-1117): a rail in the right margin from 1200px, where
   there's room beside the column, and a slim bar on anything narrower. Both
   pin under the preview banner when there is one. */
.marketing-home:has(.mh-blog-post) { --mh-blog-pinned: 0px; }
.marketing-home:has(.mh-blog-preview) { --mh-blog-pinned: 65px; }
.mh-blog-layout { position: relative; }
.mh-blog-body h2 { scroll-margin-top: calc(var(--mh-blog-pinned) + 32px); }
/* Pictures pass over the rail rather than under it: wide ones reach into the
   margin it sits in, and full ones cross it. */
.mh-blog-figure,
.mh-blog-video { position: relative; z-index: 1; }

.mh-blog-rail { bottom: 0; left: calc(50% + 396px); position: absolute; top: 72px; width: 200px; }
.mh-blog-contents {
  column-gap: 14px;
  display: grid;
  grid-template-columns: 2px 1fr;
  position: sticky;
  top: calc(var(--mh-blog-pinned) + 32px);
}
.mh-blog-contents-track { background: var(--mh-line); border-radius: 2px; grid-row: 1 / span 2; overflow: hidden; position: relative; }
.mh-blog-contents-track i,
.mh-blog-contents-progress i { background: var(--mh-magenta); inset: 0; position: absolute; }
.mh-blog-contents-track i { transform: scaleY(var(--progress, 0)); transform-origin: top; }
.mh-blog-contents-label { color: var(--mh-magenta); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; padding-bottom: 4px; text-transform: uppercase; }
.mh-blog-contents ol { list-style: none; margin: 0; padding: 0; }
/* 20px lines with 12px above and below: 44px to a thumb (§6.6). */
.mh-blog-contents a { color: var(--mh-ink-soft); display: block; font-size: 14px; font-weight: 500; line-height: 20px; padding: 12px 0; }
.mh-blog-contents a:hover,
.mh-blog-contents a[aria-current] { color: var(--mh-ink); }

/* Comes in once the intro has scrolled away (blog-contents adds is-shown). */
.mh-blog-contents-bar {
  background: color-mix(in srgb, var(--mh-bg) 96%, transparent);
  border-bottom: 1px solid var(--mh-line);
  left: 0;
  position: fixed;
  right: 0;
  top: var(--mh-blog-pinned);
  transform: translateY(-100%);
  transition: transform 0.2s ease, visibility 0.2s;
  visibility: hidden;
  z-index: 9;
}
.mh-blog-contents-bar.is-shown { transform: none; visibility: visible; }
.mh-blog-contents-bar summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  list-style: none;
  min-height: 48px;
  padding: 0 20px;
  position: relative;
}
.mh-blog-contents-bar summary::-webkit-details-marker { display: none; }
.mh-blog-contents-current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-blog-contents-bar .cc-icon { color: var(--mh-ink-dim); flex-shrink: 0; transition: transform 0.2s ease; }
.mh-blog-contents-bar[open] .cc-icon { transform: rotate(180deg); }
.mh-blog-contents-progress { bottom: -1px; height: 2px; left: 0; position: absolute; right: 0; }
.mh-blog-contents-progress i { transform: scaleX(var(--progress, 0)); transform-origin: left; }
.mh-blog-contents-bar nav { border-top: 1px solid var(--mh-line); max-height: calc(100svh - var(--mh-blog-pinned) - 96px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; }
.mh-blog-contents-bar ol { list-style: none; margin: 0; padding: 0; }
.mh-blog-contents-bar a { align-items: center; color: var(--mh-ink-dim); display: flex; font-size: 16px; font-weight: 500; gap: 10px; min-height: 48px; }
.mh-blog-contents-bar a[aria-current] { color: var(--mh-ink); font-weight: 600; }
.mh-blog-contents-bar a[aria-current]::before { background: var(--mh-magenta); border-radius: 50%; content: ""; flex-shrink: 0; height: 6px; width: 6px; }

@media (min-width: 1200px) {
  .mh-blog-contents-bar { display: none; }
}
@media (max-width: 1199px) {
  .mh-blog-rail { display: none; }
  .mh-blog-body h2 { scroll-margin-top: calc(var(--mh-blog-pinned) + 64px); }
}

/* Over a draft's preview (CCPRO-1113), pinned while she reads. Cyan, the
   app's live/info tone, so it can't be mistaken for the site. */
.mh-blog-preview {
  align-items: center;
  background: color-mix(in srgb, var(--mh-live) 14%, var(--mh-bg));
  border-bottom: 1px solid color-mix(in srgb, var(--mh-live) 40%, transparent);
  color: var(--mh-ink);
  display: flex;
  font-size: 14px;
  gap: 14px;
  line-height: 1.4;
  padding: 10px 16px 10px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.mh-blog-preview p { flex: 1; margin: 0; min-width: 0; }
.mh-blog-preview-tag {
  border: 1px solid color-mix(in srgb, var(--mh-live) 50%, transparent);
  border-radius: 999px;
  color: var(--mh-live);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  text-transform: uppercase;
}
.mh-blog-preview-back {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--mh-ink) 25%, transparent);
  border-radius: 999px;
  color: var(--mh-ink);
  display: inline-flex;
  font-weight: 600;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}
.mh-blog-preview-back:hover { border-color: var(--mh-live); }
.mh-blog-preview-short,
.mh-blog-preview-back .cc-icon { display: none; }

@media (max-width: 760px) {
  .mh-blog-hero { align-items: flex-start; gap: 16px; padding: 16px 20px 0; text-align: left; }
  .mh-blog-title { font-size: 34px; line-height: 1.12; }
  .mh-blog-excerpt { font-size: 18px; }
  .mh-blog-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mh-blog-byline + .mh-blog-when::before { content: none; }
  .mh-blog-cover { aspect-ratio: 4 / 3; border-radius: 0; margin-top: 28px; width: 100%; }
  .mh-blog-body { --mh-blog-gutter: 20px; font-size: 17px; padding-top: 36px; row-gap: 22px; }
  .mh-blog-body h2 { font-size: 26px; }
  .mh-blog-body h3 { font-size: 21px; }
  .mh-blog-body blockquote { font-size: 23px; }
  .mh-blog-body > .mh-blog-figure-wide { grid-column: full; }
  .mh-blog-figure-wide img { border-radius: 0; }
  .mh-blog-figure-wide figcaption,
  .mh-blog-figure-full figcaption { padding: 0 20px; }
  .mh-blog-video iframe,
  .mh-blog-video-poster { border-radius: 16px; }
  .mh-blog-video-play { height: 60px; width: 60px; }
  .mh-blog-video-note { display: none; }
  .mh-blog-body > .mh-blog-author { gap: 16px; }
  /* One line, so 8 + 44 + 8 + the border is the height the bar pins under. */
  .mh-blog-preview { font-size: 13px; padding: 8px 8px 8px 16px; }
  .mh-blog-preview p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mh-blog-preview-long,
  .mh-blog-preview-back span { display: none; }
  .mh-blog-preview-short { display: inline; }
  .mh-blog-preview-back { border: 0; justify-content: center; padding: 0; width: 44px; }
  .mh-blog-preview-back .cc-icon { display: block; }
  .marketing-home:has(.mh-blog-preview) { --mh-blog-pinned: 61px; }
}

.mh-paragraphs { display: grid; gap: 22px; }
.mh-paragraphs p { color: var(--mh-ink-dim); font-size: 18px; line-height: 1.75; margin: 0; }
.mh-quote {
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 18px;
  margin-top: 34px;
  padding: 28px 30px;
  position: relative;
}
.mh-quote::before { background: var(--mh-gradient); border-radius: 999px; content: ""; inset: 24px auto 24px 0; position: absolute; width: 2px; }
.mh-quote p { font-family: var(--mh-display); font-size: 28px; line-height: 1.2; margin: 0; }
.mh-quote cite { color: var(--mh-ink-soft); display: block; font-size: 13px; font-style: normal; margin-top: 18px; }
/* Lives inside .mh-inset-card, which already supplies the background/radius/
   padding - stripped here so it isn't a card inside a card. */
.mh-quote--centered {
  background: none;
  border: none;
  margin: 0 auto;
  max-width: 75%;
  padding: 0;
  text-align: center;
}
.mh-quote--centered::before { display: none; }
.mh-quote--centered .mh-quote-author { justify-content: center; }

/* Founder attribution — circular avatar + name/role. Avatar source is a
   pre-cropped square headshot, so object-fit:cover just drops it into the circle. */
.mh-quote-author { align-items: center; display: flex; gap: 18px; margin-top: 24px; }
.mh-quote-avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--mh-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.mh-quote-author cite { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.mh-quote-name { color: var(--mh-ink); font-size: 16px; font-weight: 600; }
.mh-quote-role { color: var(--mh-ink-soft); font-size: 13px; }
.mh-stats { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.mh-stat-value { font-family: var(--mh-display); font-size: 44px; line-height: 1; }
.mh-stat-label { color: var(--mh-ink-soft); font-family: var(--mh-mono); font-size: 11px; letter-spacing: 0.18em; margin-top: 10px; text-transform: uppercase; }

/* ---------- Section heading shared by steps/action station/faq ---------- */
.mh-section-head { align-items: end; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 44px; }
.mh-section-head .mh-copy { margin: 0; max-width: 470px; }
.mh-section-title { margin-top: 22px; }

/* ---------- Steps ---------- */
.mh-steps { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.mh-step {
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 18px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}
.mh-step::before {
  background: var(--mh-gradient);
  content: "";
  height: 2px;
  left: 0;
  opacity: var(--stripe-opacity, 0.6);
  position: absolute;
  right: 0;
  top: 0;
}
.mh-num { font-family: var(--mh-display); font-size: 30px; line-height: 1; }
.mh-card-title { font-size: 22px; font-weight: 700; line-height: 1.15; margin-top: 30px; }
.mh-card-copy { color: var(--mh-ink-dim); font-size: 14px; line-height: 1.65; margin-top: 14px; }

/* ---------- Feature cards (centered header + floating icon badge) ---------- */
/* Shared centered page-intro header - eyebrow, heading, short copy - used
   at the top of secondary marketing pages (Features, About) above whatever
   that page's own content section is. */
.mh-page-head { margin: 0 auto; max-width: 640px; text-align: center; }
.mh-page-head .mh-eyebrow { justify-content: center; }
.mh-page-head .mh-copy { margin: 20px auto 0; }
.mh-feature-cards { display: grid; gap: 40px 32px; grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
.mh-feature-card {
  background: var(--mh-surface);
  border: 1px solid var(--mh-line);
  border-radius: 16px;
  padding: 40px 24px 28px;
  position: relative;
}
.mh-feature-icon-badge {
  align-items: center;
  background: var(--mh-gradient);
  border-radius: 14px;
  box-shadow: 0 16px 32px -12px rgba(217, 107, 255, 0.5);
  color: white;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  width: 52px;
}
.mh-feature-card-title { font-size: 17px; font-weight: 700; margin-top: 8px; }
.mh-feature-card-copy { color: var(--mh-ink-dim); font-size: 14px; line-height: 1.65; margin-top: 10px; }

/* ---------- FAQ ---------- */
.mh-faq-layout { display: grid; gap: 70px; grid-template-columns: 0.78fr 1.22fr; }
.mh-faq-list { border-top: 1px solid var(--mh-line); }
.mh-faq { border-bottom: 1px solid var(--mh-line); padding: 0; }
.mh-faq summary {
  color: var(--mh-ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
  padding: 24px 0;
  position: relative;
}
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after { color: var(--mh-ink-soft); content: "+"; position: absolute; right: 0; top: 24px; }
.mh-faq[open] summary::after { content: "-"; }
.mh-faq p { color: var(--mh-ink-dim); font-size: 15px; line-height: 1.7; margin: 10px 48px 24px 0; }

/* ---------- Final CTA card ---------- */
.mh-final-card {
  background: var(--mh-gradient);
  border-radius: 28px;
  overflow: hidden;
  padding: 90px 64px;
  position: relative;
}
.mh-final-card::before {
  background:
    radial-gradient(420px 280px at 20% 0%, rgba(10, 14, 31, 0.48), transparent 65%),
    radial-gradient(520px 340px at 80% 100%, rgba(255, 255, 255, 0.18), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.mh-final-content { max-width: 760px; position: relative; z-index: 1; }
.mh-final-card .mh-h2 { color: white; }
.mh-final-card .mh-copy { color: rgba(255, 255, 255, 0.76); }

/* ---------- Footer ---------- */
.mh-footer { border-top: 1px solid var(--mh-line); padding: 72px 0 30px; }
.mh-footer-grid { display: grid; gap: 42px; grid-template-columns: 1.6fr repeat(4, 1fr); }
.mh-footer-logo { height: 52px; width: auto; }
.mh-footer-copy { color: var(--mh-ink-dim); font-size: 14px; line-height: 1.7; margin-top: 22px; max-width: 330px; }
.mh-footer h3 { font-family: var(--mh-mono); font-size: 11px; letter-spacing: 0.18em; margin: 0 0 18px; text-transform: uppercase; }
.mh-footer a { color: var(--mh-ink-dim); display: block; font-size: 14px; margin-top: 12px; text-decoration: none; }
.mh-footer a:hover { color: var(--mh-ink); }
.mh-legal {
  border-top: 1px solid var(--mh-line);
  color: var(--mh-ink-soft);
  display: flex;
  font-family: var(--mh-mono);
  font-size: 11px;
  justify-content: space-between;
  letter-spacing: 0.18em;
  margin-top: 58px;
  padding-top: 24px;
  text-transform: uppercase;
}

/* ---------- Beta signup form ---------- */
.mh-form { display: grid; gap: 18px; }
.mh-field { display: block; }
.mh-field-error { color: var(--danger); font-size: 12.5px; margin: 7px 0 0; }
.mh-form-error { color: var(--danger); font-size: 13px; margin: 0; }
.mh-form-submit { width: 100%; margin-top: 4px; }

/* Honeypot — off-screen, kept out of the tab order and the a11y tree. */
.mh-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Success state that replaces the form. */
.mh-form-confirmation { text-align: center; padding: 18px 0 8px; }
.mh-confirmation-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 26px;
  color: var(--mh-on-accent);
  background: var(--mh-gradient-text);
  box-shadow: 0 10px 26px -10px var(--accent-glow);
}
.mh-confirmation-title { font-family: var(--mh-display); font-size: 22px; font-weight: 600; margin: 0; }
.mh-confirmation-body { color: var(--mh-ink-dim); font-size: 15px; margin: 6px 0 0; }

/* Full-page /beta_signups/new (no-JS fallback). The dialog (Step 4b) reuses the
   form + confirmation partials with its own shell. */
.mh-beta { display: grid; place-items: center; min-height: 100vh; }
.mh-beta-shell { max-width: 520px; text-align: center; }
.mh-beta-title { margin: 14px 0 0; }
.mh-beta-copy { margin: 14px auto 0; }
.mh-beta-card {
  margin-top: 32px;
  padding: 28px;
  text-align: left;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-screen);
  background: var(--surface-glass);
  box-shadow: var(--shadow-screen);
  backdrop-filter: blur(4px);
}

/* ---------- Beta signup dialog (modal desktop / full-screen mobile) ---------- */
/* The <dialog> fills the viewport (transparent) and centers the card, so a click
   outside the card hits the dialog element = backdrop close. */
.mh-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mh-ink);
  overflow: hidden;
}
.mh-dialog[open] { display: flex; align-items: center; justify-content: center; }
.mh-dialog::backdrop {
  background: rgba(8, 6, 20, 0.62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.mh-dialog-card {
  position: relative;
  min-width: 0;
  width: calc(100% - 40px);
  max-width: 460px;
  max-height: calc(100% - 40px);
  overflow-y: auto;
  padding: 34px 28px 30px;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-screen);
  background: var(--mh-bg-alt);
  box-shadow: var(--shadow-screen);
}
.mh-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--mh-ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline);
}
.mh-dialog-close:hover { color: var(--mh-ink); border-color: var(--accent-soft); }
.mh-dialog-title { margin: 14px 0 0; }
.mh-dialog-copy { margin: 12px 0 24px; }

@media (max-width: 760px) {
  .mh-dialog-card {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    padding: calc(env(safe-area-inset-top) + 60px) 22px calc(env(safe-area-inset-bottom) + 28px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .marketing-home .mh-hero-grid,
  .marketing-home .mh-feature-block,
  .marketing-home .mh-two-col,
  .marketing-home .mh-story-split,
  .marketing-home .mh-faq-layout { grid-template-columns: 1fr; }
  .marketing-home .mh-story-split__photo { height: 360px; order: -1; }
  .marketing-home .mh-story-split__text,
  .marketing-home .mh-inset-card { padding: 56px 40px; }
  .marketing-home .mh-h1 { font-size: clamp(64px, 9vw, 96px); }
  .marketing-home .mh-calendar { grid-template-columns: 1.1fr 0.9fr; }
  .marketing-home .mh-steps,
  .marketing-home .mh-feature-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) and (max-width: 1180px) {
  .marketing-home .mh-faq-layout {
    gap: 48px;
    grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1fr);
  }
  .marketing-home .mh-faq-list {
    justify-self: end;
    max-width: 720px;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .marketing-home .mh-shell { padding: 0 20px; }
  .marketing-home .mh-section { padding: 60px 0; }
  /* Structural nav rules (flex layout, dropdown panel, hamburger) live in
     the shared @media (max-width: 1023px) block above, since tablet needs
     them too - this only overrides the size delta that should be smaller
     on an actual phone than on tablet. */
  .marketing-home .mh-logo img { height: 65px; }
  .marketing-home .mh-hero { min-height: auto; padding-bottom: 60px; }
  .marketing-home .mh-hero-grid { gap: 42px; padding-top: 24px; }
  /* Scale display headings with viewport width so the longest line
     ("The chair is yours." / "Software that respects the craft.")
     fits without forcing horizontal scroll on narrow phones. */
  .marketing-home .mh-h1 { font-size: clamp(40px, 12.5vw, 58px); }
  .marketing-home .mh-h2 { font-size: clamp(28px, 8.5vw, 38px); }
  .marketing-home .mh-copy { font-size: 16px; }
  .marketing-home .mh-hero-actions,
  .marketing-home .mh-calendar-actions { flex-direction: column; }
  .marketing-home .mh-button { width: 100%; }
  .marketing-home .mh-calendar { grid-template-columns: 1fr; min-height: auto; padding: 16px; }
  /* Stack the agenda below the month grid — the calendar card is already
     single-column on mobile. Drop the desktop left-divider. */
  .marketing-home .mh-schedule { border-left: 0; padding-left: 0; }
  /* Let the agenda service line wrap instead of forcing its nowrap min-content
     width (the thing that was widening the whole page on narrow phones). */
  .marketing-home .mh-service { white-space: normal; }
  .marketing-home .mh-grid { gap: 6px; }
  .marketing-home .mh-day { border-radius: 8px; font-size: 12px; }
  .marketing-home .mh-section-head { align-items: start; flex-direction: column; }
  .marketing-home .mh-steps,
  .marketing-home .mh-stats,
  .marketing-home .mh-feature-cards,
  .marketing-home .mh-footer-grid { grid-template-columns: 1fr; }
  .marketing-home .mh-feature-cards { margin-top: 56px; }
  .marketing-home .mh-quote p { font-size: 23px; }
  /* The 75% width works at tablet/desktop card widths but turns into an
     8-line-tall column of wrapped text once the card itself is down to a
     phone-width 24px-padded box - full width instead of a further squeeze. */
  .marketing-home .mh-quote--centered { max-width: 100%; }
  .marketing-home .mh-quote-avatar { flex-basis: 68px; width: 68px; height: 68px; }
  .marketing-home .mh-final-card { border-radius: 22px; padding: 44px 24px; }
  .marketing-home .mh-story-split,
  .marketing-home .mh-inset-card { border-radius: 22px; }
  .marketing-home .mh-story-split__text,
  .marketing-home .mh-inset-card { padding: 44px 24px; }
  .marketing-home .mh-legal { flex-direction: column; gap: 12px; line-height: 1.5; }
  .marketing-home .mh-value-row { grid-template-columns: 1fr; padding: 28px 0; }
  .marketing-home .mh-plan-grid { grid-template-columns: 1fr; }
  .marketing-home .mh-plan-card { padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-home *,
  .marketing-home *::before,
  .marketing-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* The optional line under the final CTA — quieter than the body copy it sits
   beneath, so it reads as a footnote rather than another claim. */
.mh-fineprint-note {
  color: var(--mh-ink-dim);
  font-size: 13px;
  margin-top: 18px;
}
