/* Owline marketing site (2026-08-21) — refined, open, few words.
 * Ground: warm near-white; ink primaries; vista panels stand in for
 * photography with layered light. Tokens come from tokens.css. */

* { box-sizing: border-box; }

body.mk {
  /* Brand blue — the shared token family (packages/tokens): the same
   * steel blue and ink every Owline surface now uses. */
  --mk-blue: var(--action, #2f455c);
  --mk-blue-deep: #24374b;
  /* CONSTANT dark (2026-09-02): every --mk-dark surface pairs with
     hardcoded cream text, so it must NOT flip with --ink in dark theme —
     the drawer went cream-on-cream. */
  --mk-dark: #16202c;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mk h1, .mk h2, .mk h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.015em;
}

/* ── header ─────────────────────────────────────────────────────────── */
.mk-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  /* Bar height as if the (now-fixed) login/burger were still in the row:
     1.1rem padding × 2 + their 2.4rem line. */
  min-height: 4.6rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px);
  transition: background 240ms ease, backdrop-filter 240ms ease;
}
/* At the top of the page the bar dissolves into what's beneath it — on
   home that's the photo hero (which slides under the fixed header); the
   wash is strongest up there, so the ink wordmark stays legible. */
body.mk-at-top:not(.mk-menu-open) .mk-header {
  background: transparent;
  backdrop-filter: none;
}
.mk-wordmark {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
/* Login + burger are fixed outside the header (body children): the fixed
   header is a stacking context at z 50, so nothing inside it can ever
   paint above the z-70 drawer. Both sit at the exact spots they would
   occupy in the bar, z 80 — above drawer and scrim — and recolor light
   when the dark panel slides beneath them. */
.mk-login {
  position: fixed; top: 1.1rem; z-index: 80;
  right: calc(clamp(1.2rem, 4vw, 3rem) + 3.8rem); /* burger 2.4rem + 1.4rem gap */
  height: 2.4rem; display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  opacity: 0.75;
  transition: color 200ms ease, opacity 200ms ease;
}
.mk-login:hover { opacity: 1; }
body.mk-menu-open .mk-login { color: #f4f2ee; }
.mk-burger {
  position: fixed; top: 1.1rem; right: clamp(1.2rem, 4vw, 3rem); z-index: 80;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.mk-burger-bars, .mk-burger-bars::before, .mk-burger-bars::after {
  content: ''; display: block; width: 1.5rem; height: 2px;
  background: var(--ink); border-radius: 2px; position: relative;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease;
}
.mk-burger-bars::before { position: absolute; top: -7px; }
.mk-burger-bars::after { position: absolute; top: 7px; }
/* Open: the burger IS the close button — it morphs to an X in place and
   the bars flip light against the dark panel now beneath them. */
body.mk-menu-open .mk-burger-bars { background: transparent; }
body.mk-menu-open .mk-burger-bars::before,
body.mk-menu-open .mk-burger-bars::after { background: #f4f2ee; }
body.mk-menu-open .mk-burger-bars::before { transform: translateY(7px) rotate(45deg); }
body.mk-menu-open .mk-burger-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ── offcanvas menu (every screen size) ─────────────────────────────── */
.mk-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgb(22 32 44 / 0.45); opacity: 0;
  transition: opacity 240ms ease;
}
body.mk-menu-open .mk-scrim { opacity: 1; }
.mk-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(22rem, 88vw);
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 5.5rem clamp(1.6rem, 5vw, 2.6rem) 2rem;
  background: var(--mk-dark); color: #f4f2ee;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
body.mk-menu-open .mk-menu { transform: translateX(0); }
.mk-menu > a {
  font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600;
  color: inherit; text-decoration: none; padding: 0.45rem 0;
  opacity: 0.85;
}
.mk-menu > a:hover, .mk-menu > a.current { opacity: 1; }
.mk-menu > a.current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mk-menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.mk-menu-login { display: none; color: inherit; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; opacity: 0.75; }
.mk-menu-login:hover { opacity: 1; }
.mk-menu-cta {
  display: block; text-align: center; padding: 0.85rem 1rem;
  background: #f4f2ee; color: var(--mk-dark); text-decoration: none;
  font-weight: 700; letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .mk-login { display: none; }
  .mk-menu-login { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-menu, .mk-scrim, .mk-login, .mk-burger-bars, .mk-burger-bars::before, .mk-burger-bars::after { transition: none; }
}

/* ── shared page anatomy ────────────────────────────────────────────── */
.mk-main { padding-top: 4.2rem; }
.mk-eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0 0 1.1rem;
  color: var(--pop-strong, #8a5f22);
}
.mk-line { font-size: 1.05rem; opacity: 0.8; margin: 1.2rem 0 0; max-width: 26rem; }
.mk-lede { font-size: 1.15rem; opacity: 0.75; margin: 1.4rem auto 0; max-width: 34rem; }

/* begin field */
.mk-begin {
  display: flex; margin-top: 2.4rem; max-width: 28rem;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  background: var(--panel);
}
.mk-begin input {
  flex: 1; min-width: 0; border: 0; padding: 1rem 1.2rem;
  font: inherit; font-size: 1rem; background: transparent; color: inherit;
}
.mk-begin input:focus-visible, .mk-begin button:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: -3px; }
.mk-begin button {
  border: 0; cursor: pointer; padding: 1rem 1.8rem;
  background: var(--mk-blue); color: #f4f2ee;
  font: inherit; font-weight: 700; letter-spacing: 0.04em;
}
.mk-begin button:hover { background: var(--mk-blue-deep); }
.mk-begin-hint { font-size: 0.8rem; opacity: 0.55; margin: 0.7rem 0 0; }

/* ── home hero (2026-08-21): a photo behind the text, faded wash over
   it. The photo lives at /assets/hero.webp (owner-supplied, graded to
   the palette); the layered gradient beneath stands in if it's ever
   missing. ── */
.mk-hero {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  min-height: calc(100svh - 4.2rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 6vw, 5rem);
  overflow: hidden;
}
/* The photo hero slides up under the fixed header so the shot shows
   through the transparent bar at the top of the page. */
.mk-hero-photo {
  margin-top: -4.2rem;
  min-height: 100svh;
  padding-top: calc(4.2rem + clamp(2rem, 6vw, 4rem));
}
.mk-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgb(250 249 247 / 0.88), rgb(250 249 247 / 0.72) 55%, rgb(250 249 247 / 0.92)),
    url('/assets/hero.webp'),
    radial-gradient(110% 80% at 50% 12%, rgb(255 253 248 / 0.9), transparent 55%),
    linear-gradient(150deg, #d7cbb8 0%, #b3a288 52%, #7d6c52 100%);
  background-size: cover, cover, cover, cover;
  background-position: center;
}
.mk-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.mk-hero .mk-begin { margin-left: auto; margin-right: auto; width: min(28rem, 100%); }
.mk-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); white-space: nowrap; }
@media (max-width: 1100px) { .mk-hero h1 { white-space: normal; } }

/* the product, drawn: a refined mini-site in a browser frame */
.mk-hero-media { position: relative; }
.mk-browser {
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgb(20 24 30 / 0.12);
}
.mk-browser-bar {
  display: flex; gap: 0.35rem; padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.mk-browser-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.mk-browser-page { padding: 1.6rem 1.8rem 2rem; }
.mkb-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.2rem; }
.mkb-mark { width: 4.5rem; height: 0.6rem; background: #1d232b; }
.mkb-links { width: 7rem; height: 0.35rem; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.mkb-headline { width: 82%; height: 1.5rem; background: #1d232b; margin-bottom: 0.7rem; }
.mkb-subline { width: 55%; height: 0.55rem; background: #d9d3c7; margin-bottom: 1.6rem; }
.mkb-image {
  height: 11rem; margin-bottom: 1.4rem;
  background:
    radial-gradient(120% 90% at 75% 8%, rgb(250 247 240 / 0.85), transparent 55%),
    linear-gradient(160deg, #cbb69a 0%, #a98d68 48%, #6f5940 100%);
}
.mkb-row { display: flex; align-items: center; gap: 1rem; }
.mkb-btn { width: 6.5rem; height: 2rem; background: #6f5940; }
.mkb-line { flex: 1; height: 0.45rem; background: color-mix(in srgb, var(--ink) 14%, transparent); }

.mk-ask-chip {
  position: absolute; right: -1rem; bottom: -1.4rem;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem; background: var(--mk-dark); color: #f4f2ee;
  box-shadow: 0 16px 44px rgb(20 24 30 / 0.3);
}
.mk-ask-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.6; white-space: nowrap;
}
.mk-ask-text { font-size: 0.88rem; white-space: nowrap; }

/* ── vista bands ────────────────────────────────────────────────────── */
.mk-band {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 82rem; margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 6vw, 5rem);
}
.mk-band-flip { grid-template-columns: 1.25fr 1fr; }
.mk-band-flip .mk-band-copy { order: 2; }
.mk-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.mk-vista { aspect-ratio: 16 / 10; }
.mk-vista-a {
  background:
    radial-gradient(110% 80% at 20% 10%, rgb(255 253 248 / 0.9), transparent 50%),
    linear-gradient(150deg, #d7cbb8 0%, #b3a288 52%, #7d6c52 100%);
}
.mk-vista-b {
  background:
    radial-gradient(120% 90% at 80% 12%, rgb(250 251 250 / 0.85), transparent 52%),
    linear-gradient(160deg, #c3ccc2 0%, #93a294 50%, #5a6a5e 100%);
}
.mk-vista-c {
  background:
    radial-gradient(110% 85% at 25% 8%, rgb(252 250 250 / 0.85), transparent 55%),
    linear-gradient(155deg, #d8c9c2 0%, #b09388 50%, #6e544c 100%);
}
.mk-vista-d {
  background:
    radial-gradient(115% 85% at 75% 10%, rgb(249 250 252 / 0.85), transparent 52%),
    linear-gradient(165deg, #c2cbd6 0%, #91a0b3 50%, #525f73 100%);
}

/* ── inner-page anatomy ─────────────────────────────────────────────── */
.mk-page-hero {
  text-align: center;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.2rem, 6vw, 3rem) clamp(2rem, 6vh, 3.5rem);
  max-width: 60rem; margin: 0 auto;
}
.mk-page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.mk-prose { max-width: 38rem; margin: 0 auto; padding: 0 1.4rem clamp(2rem, 6vh, 3.5rem); }
.mk-prose p { margin: 0 0 1.3rem; font-size: 1.05rem; opacity: 0.85; }

.mk-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  max-width: 62rem; margin: 0 auto; padding: 0 1.4rem clamp(3rem, 8vh, 5rem);
}
.mk-value h3 { font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.mk-value p { margin: 0; font-size: 0.92rem; opacity: 0.7; }
@media (max-width: 720px) { .mk-values { grid-template-columns: 1fr; } }

/* ── pricing ────────────────────────────────────────────────────────── */
.mk-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem;
  max-width: 72rem; margin: 0 auto; padding: 0 1.4rem;
}
.mk-plan {
  background: var(--panel); border: 1px solid var(--line); padding: 2.2rem 1.9rem;
  display: flex; flex-direction: column;
}
.mk-plan-featured { border-color: var(--mk-blue); box-shadow: 0 22px 60px rgb(20 24 30 / 0.1); }
.mk-plan h2 { font-size: 1.3rem; letter-spacing: 0.02em; }
.mk-plan-tagline { font-size: 0.88rem; opacity: 0.65; margin: 0.4rem 0 1.4rem; }
.mk-plan-price { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.mk-plan-price strong { font-family: var(--font-heading); font-size: 3.1rem; font-weight: 600; color: var(--mk-blue); letter-spacing: -0.02em; }
.mk-plan-price-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop-strong, #8a5f22); }
.mk-plan-then { font-weight: 600; opacity: 0.75; }
.mk-plan-meta { font-size: 0.8rem; opacity: 0.6; margin: 0.25rem 0 0; }
.mk-plan-includes { margin: 1.2rem 0 -1rem; font-size: 0.85rem; font-weight: 600; opacity: 0.75; }
.mk-plan-features { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; }
.mk-plan-features li {
  font-size: 0.88rem; opacity: 0.8; padding: 0.42rem 0;
  border-top: 1px solid var(--line);
}
.mk-plan-cta {
  margin-top: auto; display: block; text-align: center;
  padding: 0.85rem 1rem; background: var(--mk-blue); color: #f4f2ee;
  text-decoration: none; font-weight: 700; letter-spacing: 0.04em;;
  /* stays visible while its card scrolls (2026-08-23) */
  position: sticky; bottom: 0.9rem; margin-top: auto;
  box-shadow: 0 -0.9rem 0 0.9rem var(--panel), 0 6px 18px rgb(20 24 30 / 0.14);
}
.mk-plan-cta:hover { background: var(--mk-blue-deep); }
.mk-plans-note { text-align: center; font-size: 0.85rem; opacity: 0.6; margin: 2rem 1.4rem 0; }

/* ── faq ────────────────────────────────────────────────────────────── */
.mk-faq { max-width: 42rem; margin: 0 auto; padding: 0 1.4rem clamp(2rem, 6vh, 3.5rem); }
.mk-faq details { border-top: 1px solid var(--line); }
.mk-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.mk-faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  padding: 1.1rem 2.2rem 1.1rem 0;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: '+'; position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%); font-weight: 400; font-size: 1.3rem; opacity: 0.5;
}
.mk-faq details[open] summary::after { content: '–'; }
.mk-faq details p { margin: 0 0 1.2rem; font-size: 0.95rem; opacity: 0.8; max-width: 36rem; }
.mk-faq details a { color: inherit; }

/* ── closing band ───────────────────────────────────────────────────── */
.mk-cta {
  margin-top: clamp(5rem, 12vh, 8rem);
  background: var(--mk-dark); color: #f4f2ee;
  text-align: center;
  padding: clamp(3.5rem, 10vh, 6rem) 1.4rem;
}
.mk-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.mk-cta .mk-begin { margin: 2.2rem auto 0; border-color: rgb(244 242 238 / 0.3); background: rgb(244 242 238 / 0.06); }
.mk-cta .mk-begin input { color: #f4f2ee; }
.mk-cta .mk-begin input::placeholder { color: rgb(244 242 238 / 0.5); }
.mk-cta .mk-begin button { background: #f4f2ee; color: var(--mk-dark); }
.mk-cta .mk-begin-hint { opacity: 0.5; }

/* ── footer ─────────────────────────────────────────────────────────── */
.mk-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
  font-size: 0.8rem; opacity: 0.65;
  background: var(--mk-dark); color: #f4f2ee;
  border-top: 1px solid rgb(244 242 238 / 0.12);
}
.mk-footer a { color: inherit; text-decoration: none; margin-left: 1.2rem; }
.mk-footer a:hover { text-decoration: underline; }

/* ── small screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mk-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 3rem; }
  .mk-hero-media { margin-top: 1rem; }
  .mk-ask-chip { right: 0.4rem; }
  .mk-band, .mk-band-flip { grid-template-columns: 1fr; }
  .mk-band-flip .mk-band-copy { order: 0; }
}

/* ── text-your-site band (2026-08-21): a FULL phone, thread reveals on
   scroll — dark bezel, status bar, conversation header, input bar. ── */
.mk-phone {
  width: min(19.5rem, 100%); margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border-radius: 3rem;
  border: 9px solid #141a22;
  background: #141a22;
  box-shadow: 0 40px 100px rgb(20 24 30 / 0.28);
  overflow: hidden;
}
.mk-phone-screen {
  height: 100%; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 2.4rem; overflow: hidden;
}
.mk-phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.65rem 1.3rem 0.3rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.75;
}
.mk-phone-signal { letter-spacing: 0.12em; font-size: 0.55rem; }
.mk-phone-contact {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.5rem 1rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.mk-phone-avatar {
  width: 2.3rem; height: 2.3rem; padding: 0.45rem;
  border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, var(--panel)); object-fit: contain;
}
.mk-phone-contact strong { font-size: 0.8rem; font-weight: 600; }
.mk-phone-contact-sub { font-size: 0.62rem; opacity: 0.5; }
.mk-phone-input {
  display: flex; align-items: center; justify-content: space-between;
  margin: auto 0.9rem 1rem; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.78rem; color: rgb(22 32 44 / 0.4);
}
.mk-phone-input i {
  font-style: normal; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mk-blue); color: #f4f2ee; font-size: 0.8rem;
}
.mk-sms { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 0.9rem 0.6rem; }
.mk-sms-bubble {
  max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 1.1rem;
  font-size: 0.88rem; line-height: 1.45;
  opacity: 0; transform: translateY(0.8rem);
  transition: opacity 380ms ease, transform 380ms ease;
}
.mk-sms-out { align-self: flex-end; background: var(--mk-blue); color: #f4f2ee; border-bottom-right-radius: 0.3rem; }
.mk-sms-in { align-self: flex-start; background: color-mix(in srgb, var(--ink) 9%, var(--panel)); color: var(--ink); border-bottom-left-radius: 0.3rem; }
.mk-seen .mk-sms-bubble:nth-child(1) { transition-delay: 120ms; }
.mk-seen .mk-sms-bubble:nth-child(2) { transition-delay: 900ms; }
.mk-seen .mk-sms-bubble:nth-child(3) { transition-delay: 1700ms; }
.mk-seen .mk-sms-bubble:nth-child(4) { transition-delay: 2400ms; }
.mk-seen .mk-sms-bubble { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .mk-sms-bubble { transition: none; opacity: 1; transform: none; }
}

/* ── faq: smooth open/close (heights animated by faq.pug's script) ── */
.mk-faq-body { overflow: hidden; }
.mk-faq-body p { padding-top: 0.1rem; }

/* Brand lockup: the owl mark beside the Owline title (2026-08-21). */
.mk-wordmark { display: inline-flex; align-items: center; gap: 0.55rem; }
.mk-mark { height: 1.55rem; width: auto; display: block; }

/* ── plans page: billing-cycle toggle (2026-08-21) ─────────────────── */
.mk-cycle { display: flex; justify-content: center; gap: 0.4rem; margin: 0 auto clamp(1.6rem, 4vh, 2.4rem); }
.mk-cycle-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.5rem 1.3rem; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); cursor: pointer;
}
.mk-cycle-btn.is-selected { background: var(--mk-blue); color: #f4f2ee; border-color: var(--mk-blue); }
.mk-cycle-note { font-size: 0.66rem; margin-left: 0.45rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pop, #b68235); }
.mk-cycle-btn.is-selected .mk-cycle-note { color: #f0d9ae; }
.mk-cycle-pane[hidden] { display: none; }

/* Online store badge on plan cards (2026-08-21) */
.mk-plan-store {
  display: inline-block;
  margin: 0.15rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pop-strong);
  border: 1px solid color-mix(in srgb, var(--pop) 45%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

/* ── design lab (2026-08-25): operator branch workbench ─────────────── */
.mk-lab { padding: 6.5rem clamp(1.2rem, 4vw, 3rem) 4rem; max-width: 78rem; margin: 0 auto; }
.mk-lab-head { margin-bottom: 2.4rem; }
.mk-lab-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.mk-lab-head .mk-lede { margin-left: 0; }
.mk-lab-back { display: inline-block; margin-bottom: 1.2rem; color: var(--ink); opacity: 0.6; text-decoration: none; font-size: 0.9rem; }
.mk-lab-back:hover { opacity: 1; }

.mk-lab-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}
.mk-lab-card {
  display: flex; flex-direction: column; background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.mk-lab-shot {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 6%, #fff);
}
.mk-lab-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform 300ms ease;
}
.mk-lab-shot:hover img { transform: scale(1.03); }
.mk-lab-shot-empty {
  display: grid; place-items: center; height: 100%;
  font-size: 0.85rem; opacity: 0.5;
}
.mk-lab-feel {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff;
  background: rgb(22 32 44 / 0.72); padding: 0.2rem 0.55rem; border-radius: 999px;
}
.mk-lab-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.mk-lab-name { font-size: 1.25rem; }
.mk-lab-mood {
  margin: 0; font-size: 0.9rem; opacity: 0.72; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mk-lab-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; }
.mk-lab-step {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); opacity: 0.5;
}
.mk-lab-step.is-active { opacity: 1; color: var(--pop-strong, #8a5f22); }
.mk-lab-go { margin: 0; }
.mk-lab-btn {
  font: inherit; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem; cursor: pointer;
  background: var(--mk-dark); color: #f4f2ee; border: 0;
}
.mk-lab-btn:hover { background: var(--mk-blue); }

.mk-lab-hero-shot { max-width: 56rem; margin: 0 0 2.4rem; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.mk-lab-hero-shot img { width: 100%; display: block; }
.mk-lab-room h2 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.mk-lab-room p { max-width: 40rem; opacity: 0.75; }

/* design lab — inspiration library */
.mk-lab-room-grid { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
@media (max-width: 900px) { .mk-lab-room-grid { grid-template-columns: 1fr; } }
.mk-lab-inspo-head { display: flex; align-items: baseline; gap: 0.8rem; }
.mk-lab-inspo-head h2 { font-size: 1.3rem; }
.mk-lab-inspo-count { font-size: 0.8rem; opacity: 0.55; letter-spacing: 0.06em; text-transform: uppercase; }
.mk-lab-inspo-hint { max-width: 40rem; opacity: 0.7; font-size: 0.95rem; margin: 0.4rem 0 1.2rem; }
.mk-lab-note { font-size: 0.9rem; margin: 0 0 0.8rem; color: var(--mk-blue); }
.mk-lab-note.is-err { color: #a33b2e; }
.mk-lab-upload { margin: 0 0 1.4rem; }
.mk-lab-drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 2rem 1.4rem; cursor: pointer; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  background: var(--panel); transition: border-color 160ms ease, background 160ms ease;
}
.mk-lab-drop:hover, .mk-lab-drop.is-over { border-color: var(--mk-blue); background: color-mix(in srgb, var(--mk-blue) 6%, #fff); }
.mk-lab-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mk-lab-drop-big { font-weight: 600; }
.mk-lab-drop-small { font-size: 0.8rem; opacity: 0.55; }
.mk-lab-inspo-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.mk-lab-inspo-item { position: relative; margin: 0; border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); background: var(--panel); }
.mk-lab-inspo-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.mk-lab-inspo-del {
  position: absolute; top: 0.35rem; right: 0.35rem;
  width: 1.6rem; height: 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(22 32 44 / 0.72); color: #fff; font-size: 1rem; line-height: 1;
  opacity: 0; transition: opacity 140ms ease;
}
.mk-lab-inspo-item:hover .mk-lab-inspo-del, .mk-lab-inspo-del:focus-visible { opacity: 1; }
.mk-lab-inspo-empty { opacity: 0.55; font-size: 0.95rem; }
.mk-lab-side-shot { border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); margin-bottom: 1.6rem; }
.mk-lab-side-shot img { width: 100%; display: block; }
.mk-lab-side-cap { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; padding: 0.5rem 0.7rem; }
.mk-lab-side .mk-lab-room h2 { font-size: 1.05rem; }
.mk-lab-side .mk-lab-room p { font-size: 0.9rem; opacity: 0.65; }

/* design lab — component selection */
.mk-lab-setlink { margin: 0.8rem 0 0; font-size: 0.95rem; }
.mk-lab-setlink a { color: var(--mk-blue); text-decoration: none; font-weight: 600; }
.mk-lab-setlink a:hover { text-decoration: underline; }
.mk-lab-cats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.8rem; }
.mk-lab-cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 0.35rem 0.85rem; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-radius: 999px; background: var(--panel); opacity: 0.8;
}
.mk-lab-cat:hover { opacity: 1; }
.mk-lab-cat.is-active { background: var(--mk-dark); color: #f4f2ee; border-color: var(--mk-dark); opacity: 1; }
.mk-lab-cat-count {
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  background: var(--pop-strong, #8a5f22); color: #fff;
  border-radius: 999px; padding: 0.18rem 0.42rem;
}
.mk-lab-comp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.mk-lab-comp { margin: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.mk-lab-comp.is-picked { border-color: var(--mk-blue); box-shadow: 0 0 0 1px var(--mk-blue); }
.mk-lab-comp-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, #fff); }
.mk-lab-comp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-lab-pro {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgb(22 32 44 / 0.78); color: #f6c66b; padding: 0.16rem 0.5rem; border-radius: 999px;
}
.mk-lab-comp-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.6rem 0.75rem; }
.mk-lab-comp-text { min-width: 0; }
.mk-lab-comp-text b { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-lab-comp-text small { font-size: 0.74rem; opacity: 0.6; }
.mk-lab-comp-text small a { color: inherit; }
.mk-lab-pick {
  flex-shrink: 0; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  padding: 0.38rem 0.85rem; border: 1px solid var(--mk-dark); background: var(--panel); color: var(--mk-dark);
}
.mk-lab-pick[aria-pressed="true"] { background: var(--mk-blue); border-color: var(--mk-blue); color: #f4f2ee; }
.mk-lab-pick:hover { background: var(--mk-dark); color: #f4f2ee; }
.mk-lab-unpick { border-color: #a33b2e; color: #a33b2e; }
.mk-lab-unpick:hover { background: #a33b2e; color: #fff; }
.mk-lab-set-group { margin-bottom: 2.2rem; }
.mk-lab-set-title { display: flex; align-items: baseline; gap: 0.7rem; font-size: 1.15rem; margin-bottom: 0.8rem; }
.mk-lab-stations { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.8rem 0 1rem; }
.mk-lab-station {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--panel);
  padding: 0.7rem 0.9rem; transition: border-color 140ms ease;
}
.mk-lab-station:hover { border-color: var(--mk-blue); }
.mk-lab-station b { display: block; font-size: 0.95rem; }
.mk-lab-station small { opacity: 0.65; font-size: 0.8rem; }

/* design lab — room grid placement + global prompt + test creation */
.mk-lab-room-grid > section { grid-column: 1; }
.mk-lab-side { grid-column: 2; grid-row: 1 / span 8; }
@media (max-width: 900px) { .mk-lab-room-grid > section, .mk-lab-side { grid-column: 1; } .mk-lab-side { grid-row: auto; } }
.mk-lab-prompt h2 { font-size: 1.3rem; }
.mk-lab-prompt-text {
  width: 100%; font: inherit; font-size: 0.95rem; line-height: 1.55; color: var(--ink);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  padding: 0.85rem 1rem; resize: vertical; min-height: 8rem;
}
.mk-lab-prompt-text:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: -3px; }
.mk-lab-prompt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.6rem; }
.mk-lab-prompt-count { font-size: 0.78rem; opacity: 0.5; }
.mk-lab-dormant {
  border: 1px solid color-mix(in srgb, var(--pop-strong, #8a5f22) 50%, transparent);
  background: color-mix(in srgb, var(--pop-strong, #8a5f22) 8%, #fff);
  padding: 0.9rem 1.1rem; font-size: 0.95rem; margin: 0 0 1.6rem;
}
/* Billing-token health banner (2026-08-26): appears only when the Claude
   account token is missing, near expiry, or rejected. */
.mk-lab-token-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.7rem;
  padding: 0.8rem 1.1rem; margin: 0 0 1.6rem; font-size: 0.92rem;
}
.mk-lab-token-banner b { white-space: nowrap; }
.mk-lab-token-banner.is-warn {
  border: 1px solid color-mix(in srgb, var(--pop-strong, #8a5f22) 55%, transparent);
  background: color-mix(in srgb, var(--pop-strong, #8a5f22) 9%, #fff);
}
.mk-lab-token-banner.is-expired {
  border: 1px solid color-mix(in srgb, #a33b2e 60%, transparent);
  background: color-mix(in srgb, #a33b2e 9%, #fff);
}
.mk-lab-token-banner.is-expired b { color: #a33b2e; }
.mk-lab-token-banner.is-info {
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: color-mix(in srgb, var(--ink) 4%, #fff);
}
/* Mobile/desktop viewport toggle (2026-08-27): narrows the live take
   frame to phone width. */
.mk-lab-frame-tools { display: flex; justify-content: flex-end; gap: 0; margin: 0.6rem 0 0.4rem; }
.mk-lab-vp-btn {
  font: inherit; font-size: 0.78rem; color: var(--ink); background: var(--panel); cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 0.3rem 0.8rem;
}
.mk-lab-vp-btn + .mk-lab-vp-btn { border-left: 0; }
.mk-lab-vp-btn[aria-pressed="true"] { background: var(--ink); color: var(--mk-bg, #fff); }
.mk-lab-mockup-frame.is-mobile {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem 1rem; box-sizing: border-box; overflow: hidden;
}
.mk-lab-mockup-frame.is-mobile .mk-lab-mockup {
  width: 390px; max-width: 100%; height: 100%; max-height: 760px; margin: 0;
  border: 3px solid color-mix(in srgb, var(--ink) 75%, transparent);
  border-radius: 1.1rem; background: var(--panel); flex: none;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 22%, transparent);
}

/* Publish-identity diff modal (2026-08-26). */
.mk-lab-diff-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.88rem; flex-wrap: wrap; }
.mk-lab-diff-row b { min-width: 11rem; font-size: 0.8rem; }
.mk-lab-diff-row s { opacity: 0.5; }
.mk-lab-diff-row em { font-style: normal; font-weight: 600; }
.mk-lab-diff-row small { opacity: 0.5; }
.mk-lab-swatch {
  width: 1.4rem; height: 1.4rem; border-radius: 4px; display: inline-block;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

/* Studio write-back toggle (2026-08-26): per-card switch putting the
   branch's studio direction into client concept/build generation. */
.mk-lab-live-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); }
.mk-lab-live-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-size: 0.82rem;
  color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
}
.mk-lab-live-knob {
  width: 2rem; height: 1.1rem; border-radius: 1rem; position: relative; flex: none;
  background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background 0.15s ease;
}
.mk-lab-live-knob::after {
  content: ''; position: absolute; top: 0.12rem; left: 0.14rem; width: 0.86rem; height: 0.86rem;
  border-radius: 50%; background: var(--panel); transition: transform 0.15s ease;
}
.mk-lab-live-toggle[aria-pressed="true"] .mk-lab-live-knob { background: var(--mk-blue); }
.mk-lab-live-toggle[aria-pressed="true"] .mk-lab-live-knob::after { transform: translateX(0.86rem); }
.mk-lab-live-toggle:disabled { opacity: 0.5; cursor: default; }
.mk-lab-live-state { font-size: 0.78rem; opacity: 0.55; }
.mk-lab-run-stage { margin: 0.4rem 0 0; font-size: 0.85rem; opacity: 0.75; font-style: italic; }
.mk-lab-run-stage[hidden] { display: none; }
.mk-lab-scouted { margin: 0.5rem 0 0; font-size: 0.82rem; opacity: 0.6; }
.mk-lab-scouted[hidden] { display: none; }
.mk-lab-ask--run { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.mk-lab-run-row { display: flex; gap: 0.6rem; align-items: center; }
.mk-lab-run-direction {
  font: inherit; font-size: 0.92rem; color: var(--ink); line-height: 1.5;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  padding: 0.6rem 0.8rem; resize: vertical; min-height: 3.2rem;
}
.mk-lab-run-direction:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: -3px; }
.mk-lab-count-label { font-size: 0.82rem; align-self: center; opacity: 0.7; }
#run-count {
  flex: none; width: 4.2rem; font: inherit; font-size: 0.95rem; color: var(--ink); text-align: center;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 0.55rem 0.4rem;
}
.mk-lab-ask { display: flex; gap: 0.6rem; margin: 0 0 1.8rem; max-width: 44rem; }
.mk-lab-ask input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 0.7rem 0.9rem;
}
.mk-lab-runs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; max-width: 44rem; }
.mk-lab-run { }
.mk-lab-run a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  text-decoration: none; color: var(--ink); background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 0.6rem 0.9rem;
}
.mk-lab-run a:hover { border-color: var(--mk-blue); }
.mk-lab-run .is-err-dot { color: #a33b2e; font-weight: 700; }
.mk-lab-run small { opacity: 0.55; flex-shrink: 0; }
.mk-lab-gen-detail { margin-top: 2rem; }
.mk-lab-gen-detail h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.mk-lab-gen-block {
  background: #16202c; color: #e8e6e1; font-family: ui-monospace, monospace; font-size: 0.8rem;
  line-height: 1.5; padding: 1rem 1.2rem; overflow-x: auto; white-space: pre-wrap;
  max-height: 34rem; overflow-y: auto; margin: 0 0 1.4rem;
}
.mk-lab-gen-block.is-request { background: var(--panel); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }

/* design lab — specimen preview */
.mk-lab-specimen { width: 100%; height: 34rem; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--panel); margin: 0 0 1.4rem; }
.mk-lab-gen-fold { margin: 0 0 1rem; }
.mk-lab-gen-fold summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; opacity: 0.7; margin-bottom: 0.5rem; }

/* design lab — component search */
.mk-lab-search { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; max-width: 44rem; }
.mk-lab-search input[type="search"] {
  flex: 1; min-width: 0; font: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 0.55rem 0.85rem;
}
.mk-lab-search input[type="search"]:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: -3px; }
.mk-lab-search-clear { font-size: 0.82rem; color: var(--mk-blue); text-decoration: none; white-space: nowrap; }
.mk-lab-search-clear:hover { text-decoration: underline; }
.mk-lab-search-count { font-size: 0.8rem; opacity: 0.6; margin: 0 0 1rem; }

/* design lab — live preview modal */
.mk-lab-comp-shot[role="button"] { cursor: zoom-in; }
.mk-lab-comp-zoom {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: rgb(22 32 44 / 0.72); color: #fff; border-radius: 999px;
  font-size: 0.9rem; opacity: 0; transition: opacity 140ms ease; pointer-events: none;
}
.mk-lab-comp-shot:hover .mk-lab-comp-zoom, .mk-lab-comp-shot:focus-visible .mk-lab-comp-zoom { opacity: 1; }
.mk-lab-comp-shot:focus-visible { outline: 3px solid var(--mk-blue); outline-offset: -3px; }
.mk-lab-modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgb(22 32 44 / 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
/* display:flex/grid/block rules beat the hidden attribute's UA
   display:none — without these the invisible overlay eats clicks and
   the loading text / stale frames keep painting over each other. */
.mk-lab-modal-overlay[hidden] { display: none; }
.mk-lab-modal [hidden] { display: none !important; }
.mk-lab-modal-loading { pointer-events: none; }
.mk-lab-modal {
  width: min(72rem, 100%); height: min(46rem, 92vh);
  background: var(--surface); display: flex; flex-direction: column;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  box-shadow: 0 24px 60px rgb(22 32 44 / 0.35);
}
.mk-lab-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.mk-lab-modal-head b { font-size: 1rem; }
.mk-lab-modal-head small { opacity: 0.6; margin-left: 0.5rem; }
.mk-lab-modal-actions { display: flex; align-items: center; gap: 1rem; }
.mk-lab-modal-actions a { font-size: 0.85rem; color: var(--mk-blue); text-decoration: none; white-space: nowrap; }
.mk-lab-modal-actions a:hover { text-decoration: underline; }
.mk-lab-modal-x {
  background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1;
  color: var(--ink); opacity: 0.6; padding: 0.2rem 0.4rem;
}
.mk-lab-modal-x:hover { opacity: 1; }
.mk-lab-modal-body { position: relative; flex: 1; min-height: 0; background: var(--panel); }
/* The frame layers ABOVE the loading text: the moment the bundle paints
   (even its blank page background) the loader is covered — its cleanup
   is cosmetic, never load-bearing. */
.mk-lab-modal-body iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.mk-lab-modal-body video, .mk-lab-modal-body img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: var(--panel);
}
.mk-lab-modal-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  margin: 0; font-size: 0.9rem; opacity: 0.55;
}
@media (max-width: 720px) { .mk-lab-modal-overlay { padding: 0.6rem; } .mk-lab-modal { height: 94vh; } }

/* design lab — rename */
.mk-lab-title-row { display: flex; align-items: baseline; gap: 0.7rem; }
.mk-lab-title-row[hidden] { display: none; }
.mk-lab-rename-btn {
  background: none; border: 0; cursor: pointer; font-size: 1.1rem;
  color: var(--ink); opacity: 0.35; padding: 0.2rem; transition: opacity 140ms ease;
}
.mk-lab-title-row:hover .mk-lab-rename-btn, .mk-lab-rename-btn:focus-visible { opacity: 0.8; }
.mk-lab-rename { display: flex; gap: 0.6rem; align-items: center; margin: 0.4rem 0; }
.mk-lab-rename[hidden] { display: none; }
.mk-lab-rename input {
  font-family: var(--font-heading); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600;
  color: var(--ink); background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 0.3rem 0.7rem; min-width: 0; width: min(24rem, 60vw);
}
.mk-lab-btn-quiet { background: none; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.mk-lab-btn-quiet:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

/* design lab — design runs */
.mk-lab-q { display: block; margin: 0 0 0.9rem; }
.mk-lab-q b { display: block; font-size: 0.92rem; }
.mk-lab-q small { display: block; opacity: 0.6; font-size: 0.8rem; margin: 0.1rem 0 0.35rem; }
.mk-lab-reqs { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-weight: 400; }
.mk-lab-reqs li.is-met { opacity: 0.65; }
.mk-lab-reqs a { color: var(--mk-blue); }
.mk-lab-run-cost { font-size: 0.8rem; opacity: 0.55; align-self: center; }
.mk-lab-tabs { display: flex; gap: 0.4rem; margin: 1.4rem 0 0; }
.mk-lab-tab {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 1.1rem; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  border-bottom: 0; background: color-mix(in srgb, var(--ink) 5%, #fff); color: var(--ink); opacity: 0.7;
}
.mk-lab-tab.is-active { background: var(--panel); opacity: 1; }
.mk-lab-tab.is-failed { cursor: default; color: #a33b2e; opacity: 0.6; }
.mk-lab-mockup-frame { border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: var(--panel); height: min(52rem, 78vh); }
.mk-lab-mockup { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.mk-lab-mockup[hidden] { display: none; }
.mk-lab-mockup-actions { margin-top: 0.8rem; }
.mk-lab-mockup-actions form[hidden] { display: none; }

/* design lab — refinement toolbar + command modal */
.mk-lab-refine { margin-top: 1.6rem; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--panel); padding: 1rem 1.2rem; }
.mk-lab-refine-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.mk-lab-refine-head h2 { font-size: 1.05rem; }
.mk-lab-refine-status { font-size: 0.85rem; color: var(--mk-blue); }
.mk-lab-cmds { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.9rem; }
.mk-lab-cmd { display: inline-flex; align-items: stretch; }
.mk-lab-cmd-btn {
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  padding: 0.4rem 0.75rem; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-right: 0; background: var(--panel); color: var(--ink); border-radius: 999px 0 0 999px;
}
.mk-lab-cmd-btn:hover:not(:disabled) { background: var(--mk-dark); color: #f4f2ee; }
.mk-lab-cmd-btn:disabled, .mk-lab-cmd-info:disabled { opacity: 0.45; cursor: default; }
.mk-lab-cmd-info {
  font: inherit; font-size: 0.7rem; font-weight: 700; cursor: pointer; width: 1.6rem;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  background: color-mix(in srgb, var(--ink) 6%, #fff); color: var(--ink); opacity: 0.7;
  border-radius: 0 999px 999px 0;
}
.mk-lab-cmd-info:hover { opacity: 1; }
.mk-lab-refine .mk-lab-ask { margin: 0 0 0.8rem; max-width: none; }
.mk-lab-refine-foot { display: flex; align-items: center; gap: 0.8rem; }
.mk-lab-refine-versions { font-size: 0.8rem; opacity: 0.55; }
.mk-lab-modal--small { width: min(34rem, 100%); height: auto; max-height: 80vh; }
.mk-lab-modal-text { padding: 1rem 1.2rem; overflow-y: auto; }
.mk-lab-modal-text p { margin: 0 0 0.8rem; }
.mk-lab-modal-note { font-size: 0.82rem; opacity: 0.6; }

/* design lab — take bar (rename/archive) + view switch */
.mk-lab-viewbar { margin: 0.6rem 0; }
.mk-lab-take-bar { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem; }
.mk-lab-take-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mk-lab-take-rename { display: flex; gap: 0.5rem; align-items: center; }
.mk-lab-take-rename[hidden] { display: none; }
.mk-lab-take-rename input {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 0.4rem 0.7rem; width: min(18rem, 50vw);
}
.mk-lab-tabs { flex-wrap: wrap; }

/* design lab — feedback rail + edit toggles + report */
.mk-lab-stage { display: flex; gap: 0.8rem; align-items: stretch; }
.mk-lab-fb-rail {
  display: flex; flex-direction: column; gap: 0.5rem; width: 9.5rem; flex-shrink: 0;
  padding: 0.8rem 0.7rem; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--panel);
}
.mk-lab-fb-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.5; }
.mk-lab-fb-item { display: flex; align-items: stretch; }
.mk-lab-fb-btn {
  flex: 1; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  padding: 0.5rem 0.6rem; border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-right: 0; background: var(--panel); color: var(--ink); border-radius: 0.4rem 0 0 0.4rem; text-align: left;
}
.mk-lab-fb-btn:hover:not(:disabled) { background: var(--mk-dark); color: #f4f2ee; }
.mk-lab-fb-btn:disabled { opacity: 0.5; cursor: default; }
.mk-lab-fb-item .mk-lab-cmd-info { border-radius: 0 0.4rem 0.4rem 0; }
.mk-lab-fb-report {
  font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  border: 0; background: none; color: var(--mk-blue); text-align: left; padding: 0.2rem 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.mk-lab-fb-status { font-size: 0.75rem; opacity: 0.6; min-height: 1.1em; }
.mk-lab-stage .mk-lab-mockup-frame { flex: 1; min-width: 0; }
.mk-lab-cmd-btn[aria-pressed="true"], .mk-lab-cmd-btn.is-on { background: var(--mk-blue); border-color: var(--mk-blue); color: #f4f2ee; }
.mk-lab-report-text { font-family: inherit; font-size: 0.9rem; line-height: 1.6; white-space: pre-wrap; margin: 0; }
@media (max-width: 860px) { .mk-lab-stage { flex-direction: column; } .mk-lab-fb-rail { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* design lab — the design-run page runs nearly full-bleed so the mockup
   frame gets real estate; text blocks keep their own max-widths. */
.mk-lab--wide { max-width: min(120rem, 97vw); }

/* ── Design lab on phones (2026-08-27): every station comfortable at
   390px. Rows wrap instead of squeezing; grids drop to one column;
   modals use the whole screen; the take viewer gets phone-sane
   heights. ── */
@media (max-width: 700px) {
  .mk-lab-run-row { flex-wrap: wrap; }
  .mk-lab-run-row .mk-lab-btn { flex: 1 1 auto; }
  .mk-lab-run-cost { flex-basis: 100%; }
  .mk-lab-ask { flex-wrap: wrap; }
  .mk-lab-ask input { min-width: 0; flex: 1 1 12rem; }
  .mk-lab-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; flex-wrap: nowrap; }
  .mk-lab-tab { flex: none; }
  .mk-lab-frame-tools { justify-content: stretch; }
  .mk-lab-vp-btn { flex: 1; }
  .mk-lab-mockup-frame { height: 75vh; }
  .mk-lab--wide .mk-lab-mockup-frame { height: 75vh; }
  .mk-lab-mockup-frame.is-mobile { padding: 0.6rem 0.4rem; }
  .mk-lab-take-bar, .mk-lab-take-actions { flex-wrap: wrap; }
  .mk-lab-take-actions .mk-lab-btn { flex: 1 1 45%; }
  .mk-lab-take-rename { flex-wrap: wrap; }
  .mk-lab-take-rename input { flex: 1 1 100%; min-width: 0; }
  .mk-lab-refine { padding: 0.8rem; }
  .mk-lab-refine-head { flex-wrap: wrap; gap: 0.3rem; }
  .mk-lab-modal-overlay { padding: 0.7rem; }
  .mk-lab-modal { height: min(46rem, 94vh); }
  .mk-lab-modal--small { max-height: 92vh; overflow-y: auto; }
  .mk-lab-diff-row b { min-width: 100%; }
  .mk-lab-inspo-grid { grid-template-columns: 1fr 1fr; }
  .mk-lab-prompt-foot { flex-wrap: wrap; gap: 0.5rem; }
  .mk-lab-foot { flex-wrap: wrap; gap: 0.5rem; }
  .mk-lab-fb-rail { gap: 0.4rem; }
  .mk-lab-scouted { font-size: 0.78rem; }
}
.mk-lab--wide .mk-lab-mockup-frame { height: min(56rem, 82vh); }

/* ── lab style-tags station (2026-08-30) ── */
.mk-lab-broad { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.3rem 1rem; margin: 0.8rem 0; }
.mk-lab-broad-box { display: flex; align-items: center; gap: 0.55rem; min-height: 40px; font-size: 0.92rem; cursor: pointer; }
.mk-lab-broad-box input { width: 1.05rem; height: 1.05rem; accent-color: var(--mk-blue); }
.mk-lab-detail-row { display: flex; gap: 0.6rem; margin-top: 0.4rem; }
.mk-lab-detail-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent); padding: 0.55rem 0.8rem;
}
.mk-lab-detail-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.mk-lab-detail-chip {
  display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 0.2rem 0.3rem 0.2rem 0.6rem; border-radius: 999px;
}
.mk-lab-detail-chip button { border: 0; background: none; font: inherit; cursor: pointer; opacity: 0.55; min-width: 24px; min-height: 24px; }
.mk-lab-detail-chip button:hover { opacity: 1; }

/* ══ Home "Framework" (2026-09-02) ════════════════════════════════════
   An engineered ruled grid with a luxury voice: every section is a
   bordered cell inside one hairline frame, with crosshair ticks, hatched
   divider strips, slanted index tabs, and a single diagonal on the CTA.
   Fraunces serif carries headlines, stat figures, and prices; Space
   Grotesk keeps the labels technical. Light rides the token palette with
   warm sand hairlines; dark goes gold-hairline-on-navy. */

/* Fraunces @font-face now lives in the shared tokens.css (2026-09-02) —
   every platform surface carries the display serif. */
:root {
  --fw-serif: var(--font-display, Georgia, serif);
  --fw-line: #ddd6c9;
  --fw-tab-bg: #16202c;
  --fw-tab-ink: #e8dfc9;
  --fw-figure: var(--action, #2f455c); /* serif stat figures + prices */
  --fw-hatch: rgba(182, 130, 53, 0.18);
  --fw-chatline: rgba(47, 69, 92, 0.06);
  --fw-bubin-bg: #fff;
  --fw-begin-bg: #fff;
  /* The 10%: one vivid marigold reserved for actions — everything else
     stays in the quiet navy/cream/muted-gold voice so this lands hard. */
  --fw-accent: #e8890f;
  --fw-accent-ink: #16202c;
  --fw-begin-btn: var(--fw-accent);
  --fw-begin-btn-ink: var(--fw-accent-ink);
  --fw-row-hover: rgba(22, 32, 44, 0.04);
  --fw-plan-hi: #2f455c;
  --fw-plan-hi-h: #34506b;
  --fw-mark: #2f455c;
  --fw-mark-corner: #16202c;
  --fw-cta: linear-gradient(115deg, #16202c 0 62%, #2f455c 62% 100%);
}
:root[data-theme='dark'] {
  --fw-line: rgba(201, 154, 78, 0.26);
  --fw-tab-bg: #c99a4e;
  --fw-tab-ink: #16202c;
  --fw-figure: #d9b45f;
  --fw-hatch: rgba(201, 154, 78, 0.16);
  --fw-chatline: rgba(244, 242, 238, 0.05);
  --fw-bubin-bg: #1a2532;
  --fw-begin-bg: #1a2532;
  --fw-accent: #f2a63c;
  --fw-accent-ink: #10161e;
  --fw-begin-btn: var(--fw-accent);
  --fw-begin-btn-ink: var(--fw-accent-ink);
  --fw-row-hover: rgba(244, 242, 238, 0.05);
  --fw-plan-hi: #24344a;
  --fw-plan-hi-h: #2a3d57;
  --fw-mark: #24344a;
  --fw-mark-corner: #10161e;
  --fw-cta: linear-gradient(115deg, #10161e 0 62%, #24344a 62% 100%);
}

html, body.mk { overflow-x: clip; }

/* Theme toggle button (fixed beside Log in / burger) */
.mk-theme {
  position: fixed; top: 1.1rem; z-index: 80;
  right: calc(clamp(1.2rem, 4vw, 3rem) + 9.6rem);
  height: 2.4rem; width: 2.4rem; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; opacity: 0.75;
  transition: opacity 200ms ease, color 200ms ease;
}
.mk-theme:hover { opacity: 1; }
.mk-theme svg { width: 1.1rem; height: 1.1rem; }
.mk-theme-sun { display: none; }
:root[data-theme='dark'] .mk-theme-sun { display: block; }
:root[data-theme='dark'] .mk-theme-moon { display: none; }
body.mk-menu-open .mk-theme { color: #f4f2ee; }
@media (max-width: 720px) {
  .mk-theme { right: calc(clamp(1.2rem, 4vw, 3rem) + 3.8rem); }
}

/* ── Funnel chrome (2026-09-08): the funnel and the dashboard login wear
   the MAIN SITE's header and footer — the fw CTA band included. ─────── */
.funnel-foot { margin-top: auto; }
/* The band's serif + tokens come with it; the wrapper adds breathing
   room above so page content never sits flush against the dark band. */
.funnel-foot .fw-cta { margin-top: 4rem; }

/* Funnel pages under the fixed marketing header: clear it, and pin the
   footer to the bottom of short pages. */
body.funnel-chrome {
  /* The chrome variables live on body.mk on marketing pages — the funnel
     body needs the same set or the drawer/CTA surfaces go transparent. */
  --mk-blue: var(--action, #2f455c);
  --mk-blue-deep: #24374b;
  --mk-dark: #16202c;
  padding-top: 4.6rem;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body.funnel-chrome > main { width: 100%; }
/* The signed-in chip ducks under the fixed header instead of colliding
   with its login/burger cluster. */
body.funnel-chrome .session-chip { top: 5.2rem; }
/* The pages' own corner lockup predates the shared header — with the
   real header present it's a double brand. */
body.funnel-chrome .corner-brand { display: none; }

/* ── Owline Agent chat (2026-09-04, interface) ──────────────────────────
   FAB = the living owl on a slant-notched plate; the panel is a ruled
   Framework cell: header band, thread, composer. Sits UNDER the offcanvas
   menu + scrim (z 60/70) so the menu always wins. */
/* The owl PERCHES: no plate, primary blue, wings folded, the whole head
   sitting above the bottom edge with a curious tilt. agent-chat.js owns
   the transform: a continuous distance-driven rise as the cursor
   approaches (tracking the whole way), then a springy pop past the
   cutoff. Wings unfurl only on the pop. All of it goes still while the
   chat panel is open. */
.fw-agent-fab {
  position: fixed; right: 1.5rem; bottom: 0; z-index: 55;
  width: 56px; height: 60px; display: grid; place-items: center;
  background: transparent; color: var(--action);
  border: 0; cursor: pointer; padding: 0;
}
/* Open state: the perch becomes a BUTTON again — the slant-notched navy
   plate fades in and the owl brightens to light blue. (The plate is a
   ::before because JS rewrites the fab's inline transition for the
   movement; opacity here keeps the fade independent of that.) */
.fw-agent-fab::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: #16202c;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  opacity: 0; transition: opacity 220ms ease;
}
.fw-agent-fab.is-open::before { opacity: 1; }
:root[data-theme='dark'] .fw-agent-fab.is-open::before { background: #1a2532; }
/* Light mode: the deep navy — the footer band's LEFT color — so the mark
   reads against the page AND against the lighter steel wedge the fab
   actually sits over down there. Dark mode keeps the light steel. */
.fw-agent-fab .owl {
  pointer-events: none;
  color: #16202c;
  transition: color 220ms ease, transform 220ms ease;
}
:root[data-theme='dark'] .fw-agent-fab .owl { color: var(--action); }
/* Scaled down on the plate = breathing room around the mark. */
.fw-agent-fab.is-open .owl { color: #b9cfe4; transform: scale(0.72); }

/* Touch screens (hover: none): none of the choreography — a small plated
   full logo sitting still above the edge, like any FAB. Defined AFTER the
   open rules so the static geometry wins while the chat is open too. */
.fw-agent-fab.is-static {
  bottom: 1rem; width: 52px; height: 52px;
}
.fw-agent-fab.is-static::before { opacity: 1; }
.fw-agent-fab.is-static .owl { color: #b9cfe4; transform: scale(0.62); }
.fw-agent-fab.is-static .owl .wing-l, .fw-agent-fab.is-static .owl .wing-r { opacity: 1; transition: none; }
.fw-agent-fab .owl .wing-l, .fw-agent-fab .owl .wing-r {
  opacity: 0; transition: opacity 240ms ease;
}
.fw-agent-fab.is-out .owl .wing-l, .fw-agent-fab.is-out .owl .wing-r,
.fw-agent-fab.is-open .owl .wing-l, .fw-agent-fab.is-open .owl .wing-r {
  opacity: 1; transition-delay: 170ms;
}

.fw-agent-panel {
  position: fixed; right: 1.4rem; bottom: calc(80px + 0.9rem); z-index: 55;
  display: flex; flex-direction: column;
  width: min(24rem, calc(100vw - 2rem));
  height: min(32rem, calc(100vh - 10rem));
  /* Dynamic viewport where supported — the panel shrinks with the
     on-screen keyboard instead of hiding the composer under it. */
  height: min(32rem, calc(100dvh - 10rem));
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--fw-line);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.22);
}
.fw-agent-panel[hidden] { display: none; }

.fw-agent-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; background: var(--fw-tab-bg); color: var(--fw-tab-ink);
}
.fw-agent-head .owl { color: var(--fw-accent); }
/* Dark mode: the header band goes gold — marigold-on-gold vanishes, so
   the mark flips to the band's ink instead. */
:root[data-theme='dark'] .fw-agent-head .owl { color: var(--fw-tab-ink); }
.fw-agent-title {
  font: 500 0.78rem var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase;
}
.fw-agent-close {
  margin-left: auto; border: 0; background: transparent; color: inherit;
  font: 400 1.5rem/1 var(--fw-serif); cursor: pointer; opacity: 0.7; padding: 0 0.2rem;
}
.fw-agent-close:hover, .fw-agent-close:focus-visible { opacity: 1; }

.fw-agent-thread {
  flex: 1; overflow-y: auto; padding: 1.1rem 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.fw-agent-msg {
  max-width: 85%; padding: 0.65rem 0.9rem;
  font-size: 0.92rem; line-height: 1.55; white-space: pre-wrap;
}
.fw-agent-msg.is-agent {
  align-self: flex-start;
  background: color-mix(in srgb, var(--ink) 5%, var(--surface));
  border: 1px solid var(--fw-line); border-left: 3px solid var(--fw-accent);
}
.fw-agent-msg.is-user {
  align-self: flex-end;
  background: var(--fw-tab-bg); color: var(--fw-tab-ink);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  padding-left: 1.1rem;
}
.fw-agent-msg a { color: var(--pop-strong); text-decoration: underline; text-underline-offset: 2px; }
.fw-agent-msg.is-user a { color: inherit; }
.fw-agent-typing { display: flex; gap: 0.3rem; align-items: center; }
.fw-agent-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fw-accent);
  animation: fw-agent-blink 1.1s infinite;
}
.fw-agent-typing span:nth-child(2) { animation-delay: 0.18s; }
.fw-agent-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes fw-agent-blink { 0%, 70%, 100% { opacity: 0.25; } 35% { opacity: 1; } }

.fw-agent-composer {
  display: flex; border-top: 1px solid var(--fw-line);
}
.fw-agent-composer input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  padding: 0.95rem 1rem; font: 400 0.92rem var(--font-body); outline: none;
}
.fw-agent-composer input::placeholder { color: var(--ink); opacity: 0.45; }
.fw-agent-send {
  position: relative; z-index: 0; border: 0; cursor: pointer;
  background: transparent; color: var(--fw-accent-ink);
  padding: 0 1.4rem 0 1.6rem;
  font: 500 0.78rem var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase;
}
.fw-agent-send::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fw-accent); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
  transition: left 180ms ease;
}
.fw-agent-send:hover::before, .fw-agent-send:focus-visible::before { left: -8px; }

@media (max-width: 560px) {
  .fw-agent-fab { right: 1rem; }
  .fw-agent-panel {
    right: 0.75rem; left: 0.75rem; bottom: calc(80px + 0.75rem);
    width: auto;
    height: min(30rem, calc(100vh - 8rem));
    height: min(30rem, calc(100dvh - 6rem));
  }
  /* 16px stops iOS from auto-zooming into the input — half the
     keyboard confusion was that zoom jump. */
  .fw-agent-composer input { font-size: 16px; }
}
@media (hover: none) {
  .fw-agent-panel { bottom: calc(52px + 1.75rem); }
}
@media (prefers-reduced-motion: reduce) {
  .fw-agent-send::before,
  .fw-agent-fab .owl .wing-l, .fw-agent-fab .owl .wing-r { transition: none; }
  .fw-agent-typing span { animation: none; opacity: 0.6; }
}

/* Invite banner: a quiet ruled strip above the frame, accent mark only. */
.fw-invite {
  display: flex; align-items: baseline; justify-content: center; gap: 0.6rem;
  padding: 0.8rem clamp(1.6rem, 4vw, 4rem);
  border-bottom: 1px solid var(--fw-line);
  font: 500 0.78rem var(--font-heading); letter-spacing: 0.08em;
}
.fw-invite-mark { color: var(--fw-accent); }

/* ── frame ── */
.fw { padding-top: 4.6rem; background: var(--surface); color: var(--ink); }
.fw-frame { border-top: 1px solid var(--fw-line); }
/* Serif voice: overrides the .mk heading defaults. */
.fw h1, .fw-sec-head h2, .fw-cta h2, .fw-duo-copy h3 {
  font-family: var(--fw-serif); font-weight: 500; letter-spacing: 0;
}
.fw-hero-photo img, .fw-photo-cell img {
  filter: saturate(0.82) sepia(0.06) contrast(0.98);
}

/* crosshair tick at a cell's top-right grid intersection */
.fw-tick::before, .fw-tick::after {
  content: ''; position: absolute; background: var(--ink); z-index: 3;
}
.fw-tick::before { width: 13px; height: 1px; right: -6px; top: -1px; }
.fw-tick::after { width: 1px; height: 13px; right: 0; top: -7px; }

/* hatched divider strip */
.fw-hatch {
  height: 3.4rem; border-bottom: 1px solid var(--fw-line);
  background: repeating-linear-gradient(-45deg, transparent, transparent 12px, var(--fw-hatch) 12px, var(--fw-hatch) 13px);
}

/* slanted index tab */
.fw-tab {
  display: inline-block; white-space: nowrap; background: var(--fw-tab-bg); color: var(--fw-tab-ink);
  font: 500 0.68rem var(--font-heading); letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.6rem 1.9rem 0.6rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* ── the fold: hero flexes so hero + hatch + stats fill the viewport ── */
.fw-fold { min-height: calc(100svh - 4.6rem); display: flex; flex-direction: column; }

/* ── hero: captioned photo cell left, balanced copy cell right ── */
.fw-hero {
  flex: 1 1 auto;
  display: grid; grid-template-columns: 1fr 560px;
  border-bottom: 1px solid var(--fw-line);
}
/* The copy block floats centered in its cell — no dead gulf between the
   text column and the photo. */
.fw-hero-copy {
  display: flex; border-right: 1px solid var(--fw-line);
  padding: clamp(4rem, 7vw, 7.5rem) clamp(2rem, 5vw, 5.5rem);
}
.fw-hero-in { margin: auto; width: 100%; max-width: 44rem; }
.fw-eyebrow {
  margin: 0 0 2.2rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--pop-strong);
}
.fw-hero h1 { margin: 0; font-size: clamp(2.6rem, 4.8vw, 4.4rem); line-height: 1.1; letter-spacing: -0.01em; }
.fw-hero h1 em { font-style: italic; color: var(--action); }
:root[data-theme='dark'] .fw-hero h1 em { color: var(--pop); }
.fw-lede { margin: 2rem 0 2.8rem; max-width: 32rem; font-size: 1.1rem; line-height: 1.75; opacity: 0.72; }
.fw-hint { margin: 1.1rem 0 0; font-size: 0.85rem; opacity: 0.6; }

.fw-begin { display: flex; max-width: min(30rem, 100%); }
.fw-begin input {
  flex: 1; width: 0; min-width: 0;
  border: 1px solid var(--ink); border-right: 0; background: var(--fw-begin-bg);
  padding: 1.05rem 2.4rem 1.05rem 1.3rem; font: 400 1rem var(--font-body); color: var(--ink); outline: none;
}
.fw-begin input::placeholder { color: var(--ink); opacity: 0.45; }
.fw-begin input:focus-visible, .fw-begin button:focus-visible { outline: 3px solid var(--pop); outline-offset: -3px; }
.fw-begin button {
  /* The input runs behind the slant; the 1px vertical overhang keeps its
     border from ever peeking out below the button on fractional pixels. */
  position: relative; z-index: 0; margin: -1px 0 -1px -18px;
  border: 0; background: transparent; color: var(--fw-begin-btn-ink); cursor: pointer;
  font: 500 0.82rem var(--font-heading); text-transform: uppercase; letter-spacing: 0.18em;
  padding: 0 2.4rem 0 2.8rem;
}
/* The background is its own layer so hover can grow IT leftward while
   the text stays put. */
.fw-begin button::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fw-begin-btn);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  transition: left 180ms ease;
}
.fw-begin button:hover::before { left: -12px; }

.fw-hero-side { display: grid; grid-template-rows: 1fr auto; }
.fw-hero-photo { position: relative; overflow: hidden; min-height: 24rem; }
.fw-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw-hero-num {
  position: absolute; right: 1.4rem; bottom: 1rem; z-index: 2;
  font: italic 400 7.5rem/1 var(--fw-serif);
  color: transparent; -webkit-text-stroke: 1px #f2d59c;
}
.fw-cap { margin: 0; border-top: 1px solid var(--fw-line); padding: 1.9rem 2.4rem; font-size: 0.85rem; opacity: 0.75; }
.fw-cap b { font-weight: 600; }

/* ── stat cells ── */
.fw-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--fw-line); }
.fw-stats > div { position: relative; padding: 4rem 3.6rem; border-right: 1px solid var(--fw-line); }
.fw-stats > div:last-child { border-right: 0; }
.fw-stats b { display: block; font: 400 2.8rem/1.2 var(--fw-serif); color: var(--fw-figure); }
.fw-stats span { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
/* First cell: an empty steel plate with an ink corner cut on the angle. */
.fw-stat-mark { background: linear-gradient(135deg, var(--fw-mark-corner) 0 32%, var(--fw-mark) 32%); }

/* ── section shell: index tab cell + serif title cell ── */
.fw-sec { border-bottom: 1px solid var(--fw-line); }
.fw-sec-head { display: grid; grid-template-columns: 230px 1fr; border-bottom: 1px solid var(--fw-line); }
.fw-sec-idx { padding: 2.6rem 0 2.6rem 2.4rem; border-right: 1px solid var(--fw-line); }
.fw-sec-head h2 { margin: 0; padding: 2.5rem 3rem; font-size: 1.9rem; line-height: 1.2; }
.fw-sec-head h2 em { font-style: italic; color: var(--pop-strong); }

/* 01: framed photo cell + stacked ruled items */
.fw-craft { display: grid; grid-template-columns: 460px 1fr; }
.fw-photo-cell { position: relative; border-right: 1px solid var(--fw-line); overflow: hidden; min-height: 30rem; }
.fw-photo-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw-fig {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--surface); border-top: 1px solid var(--fw-line); border-right: 1px solid var(--fw-line);
  padding: 0.6rem 1.3rem; font: 500 0.68rem var(--font-heading);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--pop-strong);
}
.fw-stack > div { padding: 3.6rem 4.2rem; border-bottom: 1px solid var(--fw-line); }
.fw-stack > div:last-child { border-bottom: 0; }
.fw-stack h3 { margin: 0 0 0.7rem; font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
.fw-stack h3 i { font-style: normal; font-weight: 500; color: var(--pop-strong); margin-right: 0.45rem; }
.fw-stack p { margin: 0; font-size: 0.95rem; opacity: 0.72; max-width: 36rem; }

/* 02: copy cell + ledger-ruled chat cell */
.fw-duo { display: grid; grid-template-columns: 1fr 1fr; }
.fw-duo-copy { padding: 7rem 5rem 7rem 3.6rem; border-right: 1px solid var(--fw-line); }
.fw-duo-copy h3 { margin: 0; font-size: 1.55rem; line-height: 1.3; }
.fw-duo-copy p { margin: 1.1rem 0 0; max-width: 27rem; opacity: 0.72; }
.fw-chat { padding: 6.5rem 5rem; display: flex; flex-direction: column; gap: 1rem; }
.fw-bub {
  max-width: 78%; padding: 0.7rem 1.05rem; font-size: 0.93rem; line-height: 1.45;
  opacity: 0; transform: translateY(0.6rem);
  transition: opacity 400ms ease, transform 400ms ease;
}
.fw-in {
  align-self: flex-start; background: var(--fw-bubin-bg);
  border: 1px solid var(--fw-line); border-radius: 0 10px 10px 10px;
}
.fw-out {
  align-self: flex-end; background: var(--action); color: #f4f2ee;
  border: 1px solid var(--action); border-radius: 10px 0 10px 10px;
}
.fw-chat.mk-seen .fw-bub, .fw-chat:not([data-reveal]) .fw-bub { opacity: 1; transform: none; }
.fw-chat.mk-seen .fw-bub:nth-child(1) { transition-delay: 0ms; }
.fw-chat.mk-seen .fw-bub:nth-child(2) { transition-delay: 350ms; }
.fw-chat.mk-seen .fw-bub:nth-child(3) { transition-delay: 700ms; }
.fw-chat.mk-seen .fw-bub:nth-child(4) { transition-delay: 1050ms; }
.fw-tag { align-self: flex-end; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; }

/* 03: plans as three ruled cards, the middle one recommended */
.fw-pcards { display: grid; grid-template-columns: repeat(3, 1fr); }
.fw-pcard {
  position: relative; display: flex; flex-direction: column;
  padding: 4.2rem 3.4rem 3.8rem; border-right: 1px solid var(--fw-line);
  color: inherit;
}
.fw-pcard:last-child { border-right: 0; }
.fw-pcard h3 { margin: 0 0 0.6rem; font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
.fw-ptag { margin: 0 0 2rem; font-size: 0.95rem; opacity: 0.72; flex: 1; }
.fw-pr { display: flex; align-items: baseline; gap: 0.6rem; font: 400 2.6rem/1.1 var(--fw-serif); color: var(--fw-figure); }
.fw-pr small { font: 500 0.68rem var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pop-strong); }
.fw-pafter { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.55; }
/* Card actions: a real Get-started CTA, with Learn more kept quiet. */
.fw-pcard-actions { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.fw-pgo {
  display: inline-block; background: var(--fw-begin-btn); color: var(--fw-begin-btn-ink);
  padding: 0.85rem 1.7rem 0.85rem 2.1rem; clip-path: var(--slant);
  font: 500 0.78rem var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
}
.fw-pcard-hi .fw-pgo { background: var(--fw-accent); color: var(--fw-accent-ink); }
.fw-learn { font-size: 0.82rem; color: inherit; opacity: 0.55; text-decoration: underline; text-underline-offset: 3px; }
.fw-learn:hover, .fw-learn:focus-visible { opacity: 0.85; }
.fw-pcard-hi .fw-learn { color: #d6dde5; opacity: 0.75; }
/* Recommended: a slanted gold tab hanging from the card's top rule. */
.fw-rec {
  position: absolute; top: -1px; left: 2.8rem;
  background: var(--fw-accent); color: var(--fw-accent-ink);
  font: 500 0.66rem var(--font-heading); letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.5rem 1.7rem 0.5rem 1.2rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.fw-pcard-hi { background: var(--fw-plan-hi); }
.fw-pcard-hi h3, .fw-pcard-hi .fw-go { color: #f4f2ee; }
.fw-pcard-hi .fw-ptag { color: #b9c2cc; opacity: 1; }
.fw-pcard-hi .fw-pr, .fw-pcard-hi .fw-pr small { color: #d9b45f; }
.fw-pcard-hi .fw-pafter { color: #b9c2cc; opacity: 1; }

/* ── CTA: one diagonal split ── */
.fw-cta { position: relative; display: grid; grid-template-columns: 1fr 420px; background: var(--fw-cta); color: #f4f2ee; }
/* Bottom padding reserves the row the absolutely-anchored legal line sits in. */
.fw-cta-copy { padding: 7.5rem 3.6rem 5.4rem; }
/* The legal line replaces the shared grey footer bar on Framework pages. */
body.fw-home .mk-footer, body.fw-page .mk-footer { display: none; }
/* Anchored to the BAND, not the copy cell: the band's 115deg gradient
   puts the light wedge's bottom boundary near 58% of the band width, so
   the row's right edge stops short of it — the product credit right-
   justifies against dark ground, on the same line as the legal links. */
.fw-legal {
  position: absolute; left: 3.6rem; right: calc(42% + 2.5rem); bottom: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; align-items: baseline;
  font-size: 0.78rem; color: rgba(244, 242, 238, 0.55);
}
/* Mid widths: the row can't hold all four items — the credit takes its
   own left-aligned line (bottom-left stays dark at every width). */
@media (max-width: 1240px) and (min-width: 881px) {
  .fw-product { margin-left: 0; flex-basis: 100%; }
  .fw-cta-copy { padding-bottom: 7.5rem; }
}
/* Product credit rides the same legal row, pushed to the right edge. */
.fw-product { margin-left: auto; }
.fw-legal a { color: inherit; text-decoration: none; }
.fw-product a { text-decoration: underline; text-underline-offset: 3px; }
.fw-legal a:hover, .fw-legal a:focus-visible { color: #f4f2ee; text-decoration: underline; text-underline-offset: 3px; }
.fw-cta h2 { margin: 0; font-size: 2.6rem; line-height: 1.15; }
.fw-cta h2 b { font-style: italic; font-weight: 400; color: #d9b45f; }
.fw-cta .fw-begin { margin-top: 2.4rem; }
.fw-cta .fw-begin input { background: rgba(244, 242, 238, 0.07); border-color: rgba(244, 242, 238, 0.45); color: #f4f2ee; }
.fw-cta .fw-begin input::placeholder { color: #f4f2ee; opacity: 0.55; }
.fw-cta .fw-begin button { color: var(--fw-accent-ink); }
.fw-cta .fw-begin button::before { background: var(--fw-accent); }
/* The arrow is a door to the plans page: a ringed compass needle that
   leans into the corner on hover while its label fades up. */
.fw-cta-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  color: #d9b45f; text-decoration: none;
}
.fw-cta-ring { display: grid; place-items: center; }
.fw-cta-ring svg {
  width: 7.5rem; height: 7.5rem; transform: rotate(-45deg);
  transition: transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fw-cta-side-label {
  font: 500 0.72rem var(--font-heading); letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.55; transform: translateY(2px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.fw-cta-side:hover .fw-cta-ring svg,
.fw-cta-side:focus-visible .fw-cta-ring svg { transform: rotate(-45deg) translateX(9px); }
.fw-cta-side:hover .fw-cta-side-label,
.fw-cta-side:focus-visible .fw-cta-side-label { opacity: 1; transform: none; }

/* ── subpages (about / plans / faq) ── */
.fw-phero { display: grid; grid-template-columns: 1fr 420px; border-bottom: 1px solid var(--fw-line); }
.fw-phero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4.5rem, 8vw, 8rem) clamp(2rem, 5vw, 5.5rem); }
.fw-phero-copy h1 { margin: 0; font-family: var(--fw-serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: 0; }
.fw-phero-copy h1 em { font-style: italic; color: var(--action); }
:root[data-theme='dark'] .fw-phero-copy h1 em { color: var(--pop); }
.fw-phero-copy .fw-lede { margin-bottom: 0; }
.fw-phero-plate {
  background: linear-gradient(135deg, var(--fw-mark-corner) 0 26%, var(--fw-mark) 26%);
  display: grid; place-items: center;
}
.fw-phero-plate img { width: 5.5rem; filter: brightness(0) invert(1); opacity: 0.85; }

.fw-prose { padding: clamp(3.4rem, 6vw, 6rem) clamp(2rem, 5vw, 5.5rem); }
.fw-prose p { margin: 0 0 1.4rem; max-width: 46rem; line-height: 1.75; opacity: 0.8; }
.fw-prose p:last-child { margin-bottom: 0; }

.fw-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.fw-cols3 > div { padding: 4.2rem clamp(2rem, 3.5vw, 3.6rem) 4.6rem; border-right: 1px solid var(--fw-line); }
.fw-cols3 > div:last-child { border-right: 0; }
.fw-cols3 h3 { margin: 0 0 0.7rem; font-size: 1.08rem; font-weight: 600; letter-spacing: 0; }
.fw-cols3 h3 i { font-style: normal; font-weight: 500; color: var(--pop-strong); margin-right: 0.45rem; }
.fw-cols3 p { margin: 0; font-size: 0.95rem; opacity: 0.72; }

/* plans page: billing cycle toggle in its own ruled row */
/* plans page: title + intro over the catalog, air above and below (2026-09-03) */
.fw-plans-sec { padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(3.6rem, 8vw, 6.5rem); }
.fw-plans-head { padding: 0 clamp(2rem, 5vw, 5.5rem) 2.8rem; }
.fw-plans-head h1 { margin: 0; font-family: var(--fw-serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.12; letter-spacing: 0; }
.fw-plans-head h1 em { font-style: italic; color: var(--action); }
:root[data-theme='dark'] .fw-plans-head h1 em { color: var(--pop); }
.fw-plans-head p { margin: 1.1rem 0 0; max-width: 40rem; font-size: 1.05rem; line-height: 1.7; opacity: 0.72; }

.fw-cycle-row { padding: 2.4rem clamp(2rem, 5vw, 5.5rem); border-bottom: 1px solid var(--fw-line); }
.fw-cycle { display: inline-flex; border: 1px solid var(--ink); }
.fw-cycle-btn {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 500 0.78rem var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.75rem 1.6rem; display: inline-flex; align-items: center; gap: 0.6rem;
  transition: background var(--motion-base) ease, color var(--motion-base) ease;
}
.fw-cycle-btn.is-selected { background: var(--ink); color: var(--surface); }
.fw-cycle-note { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--pop-strong); }
.fw-cycle-btn.is-selected .fw-cycle-note { color: var(--pop); }
.fw-cycle-pane[hidden] { display: none; }

/* plans page: full plan cards (ruled cells like the home trio) */
.fw-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 4.2rem 3.4rem 3.8rem; border-right: 1px solid var(--fw-line);
}
.fw-plan:last-child { border-right: 0; }
.fw-plan h3 { margin: 0 0 0.6rem; font-size: 1.3rem; font-weight: 600; letter-spacing: 0; }
.fw-plan .fw-ptag { flex: 0 0 auto; margin-bottom: 1.6rem; }
.fw-plan-store {
  align-self: flex-start; margin: -0.6rem 0 1.6rem;
  border: 1px solid var(--pop); color: var(--pop-strong);
  font: 500 0.64rem var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.8rem;
}
.fw-plan .fw-pafter { display: block; }
.fw-plan-includes {
  margin: 1.8rem 0 0; font: 500 0.68rem var(--font-heading);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--pop-strong);
}
.fw-plan-features { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.fw-plan-features li { position: relative; padding: 0.55rem 0; border-top: 1px solid var(--fw-line); font-size: 0.9rem; opacity: 0.8; }

/* Feature-note popovers (2026-09-04): operator rich text behind an ⓘ. */
.fw-finfo {
  display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem;
  margin-left: 0.4rem; border-radius: 50%; vertical-align: text-bottom;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  background: transparent; color: inherit; opacity: 0.7; cursor: pointer;
  font: italic 700 0.68rem/1 var(--fw-serif);
}
.fw-finfo:hover, .fw-finfo:focus-visible, .fw-finfo[aria-expanded="true"] { opacity: 1; border-color: var(--fw-accent); color: var(--fw-accent); }
/* Overlays the card — an open note must never push features out of view.
   Surface ground + ink text hold on any card color in both themes. */
.fw-finfo-pop {
  position: absolute; left: 0; top: calc(100% + 0.3rem); z-index: 30;
  display: block; width: min(19rem, 78vw); padding: 0.8rem 0.95rem;
  font-size: 0.82rem; line-height: 1.55; opacity: 1;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--fw-line); border-left: 3px solid var(--fw-accent);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.18);
}
.fw-finfo-pop[hidden] { display: none; }
.fw-finfo-pop p { margin: 0 0 0.5em; }
.fw-finfo-pop p:last-child { margin-bottom: 0; }
.fw-finfo-pop a { color: var(--pop-strong); }
.fw-plan-features li:first-child { border-top: 0; }
.fw-plan-cta {
  /* Sticky: while a tall card scrolls, its Begin stays pinned at the
     viewport bottom until the card ends. */
  position: sticky; bottom: 1.2rem; z-index: 2;
  margin-top: auto; padding: 0.95rem 1rem 0.95rem 1.4rem; align-self: stretch;
  background: var(--fw-begin-btn); color: var(--fw-begin-btn-ink); text-align: center; text-decoration: none;
  font: 500 0.82rem var(--font-heading); letter-spacing: 0.18em; text-transform: uppercase;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}
.fw-plan-features { margin-bottom: 2.4rem; }
.fw-plan-hi { background: var(--fw-plan-hi); }
.fw-plan-hi h3 { color: #f4f2ee; }
.fw-plan-hi .fw-ptag { color: #b9c2cc; opacity: 1; }
.fw-plan-hi .fw-pr, .fw-plan-hi .fw-pr small { color: #d9b45f; }
.fw-plan-hi .fw-pafter { color: #b9c2cc; opacity: 1; }
.fw-plan-hi .fw-plan-includes, .fw-plan-hi .fw-plan-store { color: #d9b45f; border-color: #c99a4e; }
.fw-plan-hi .fw-plan-features li { color: #d6dde5; opacity: 1; border-top-color: rgba(244, 242, 238, 0.16); }
.fw-plan-hi .fw-plan-cta { background: var(--fw-accent); color: var(--fw-accent-ink); }
.fw-note { padding: 2.2rem clamp(2rem, 5vw, 5.5rem); border-top: 1px solid var(--fw-line); }
.fw-note p { margin: 0; font-size: 0.85rem; opacity: 0.6; }

/* faq: numbered ruled rows */
.fw-faq { counter-reset: q; }
.fw-faq details { border-bottom: 1px solid var(--fw-line); }
.fw-faq details:last-child { border-bottom: 0; }
.fw-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 2.2rem clamp(2rem, 5vw, 5.5rem);
  font: 600 1.05rem var(--font-heading); letter-spacing: 0;
}
.fw-faq summary::-webkit-details-marker { display: none; }
.fw-faq summary::before {
  counter-increment: q; content: '— ' counter(q, decimal-leading-zero);
  font: 500 0.72rem var(--font-heading); letter-spacing: 0.18em; color: var(--pop-strong);
}
.fw-faq summary::after {
  content: '+'; margin-left: auto;
  font: 400 1.5rem/1 var(--fw-serif); color: var(--pop-strong);
  transition: transform 240ms ease;
}
.fw-faq details[open] summary::after { transform: rotate(45deg); }
.fw-faq-body { overflow: hidden; }
.fw-faq-body p {
  margin: 0; max-width: 44rem; line-height: 1.7; opacity: 0.75;
  padding: 0 clamp(2rem, 5vw, 5.5rem) 2.4rem calc(clamp(2rem, 5vw, 5.5rem) + 3.4rem);
}
.fw-faq-body a { color: var(--pop-strong); }

/* ── mobile ── */
@media (max-width: 880px) {
  .fw-phero { grid-template-columns: 1fr; }
  .fw-phero-copy { padding: 3.3rem 1.4rem; }
  .fw-phero-plate { min-height: 7.5rem; }
  .fw-phero-plate img { width: 3.6rem; }
  .fw-cols3 { grid-template-columns: 1fr; }
  .fw-cols3 > div { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 2.2rem 1.4rem; }
  .fw-cols3 > div:last-child { border-bottom: 0; }
  .fw-cycle-row { padding: 1.6rem 1.4rem; }
  .fw-plans-sec { padding: 2rem 0 2.4rem; }
  .fw-plans-head { padding: 0 1.4rem 1.6rem; }
  .fw-plan { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 3.1rem 1.4rem 2.9rem; }
  .fw-plan:last-child { border-bottom: 0; }
  .fw-prose { padding: 2.7rem 1.4rem; }
  .fw-faq summary { padding: 1.4rem 1.4rem; gap: 1rem; }
  .fw-faq-body p { padding: 0 1.4rem 1.6rem calc(1.4rem + 2.9rem); }
  .fw-fold { min-height: 0; }
  .fw-hero { grid-template-columns: 1fr; }
  .fw-hero-copy { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 3.4rem 1.4rem; }
  .fw-hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .fw-hero-num { font-size: 5rem; }
  .fw-tick::before, .fw-tick::after { display: none; }
  .fw-stats { grid-template-columns: 1fr; }
  .fw-stats > div { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 1.7rem 1.4rem; }
  .fw-stats > div:last-child { border-bottom: 0; }
  .fw-stat-mark { display: none; }
  .fw-sec-head { grid-template-columns: 1fr; }
  .fw-sec-idx { border-right: 0; padding: 1.6rem 1.4rem 0; }
  .fw-sec-head h2 { padding: 0.9rem 1.4rem 1.6rem; }
  .fw-craft { grid-template-columns: 1fr; }
  .fw-photo-cell { border-right: 0; border-bottom: 1px solid var(--fw-line); min-height: 0; aspect-ratio: 3 / 2; }
  .fw-stack > div { padding: 2.5rem 1.4rem; }
  .fw-duo { grid-template-columns: 1fr; }
  .fw-duo-copy { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 2.9rem 1.4rem; }
  .fw-chat { padding: 2.9rem 1.4rem; }
  .fw-bub { max-width: 88%; }
  .fw-pcards { grid-template-columns: 1fr; }
  .fw-pcard { border-right: 0; border-bottom: 1px solid var(--fw-line); padding: 3.1rem 1.4rem 2.9rem; }
  .fw-pcard:last-child { border-bottom: 0; }
  .fw-rec { left: 1.4rem; }
  .fw-cta { grid-template-columns: 1fr; }
  .fw-cta-copy { padding: 4.2rem 1.4rem 2rem; }
  .fw-legal { position: static; margin-top: 3rem; }
  .fw-product { margin-left: 0; flex-basis: 100%; }
  .fw-cta-side { display: none; }
  .fw-cap { padding: 1.2rem 1.4rem; }
}
/* Button hover (2026-09-03, owner): ONLY the background grows, and only
   to the LEFT — the background is a ::before layer whose left edge
   slides out; the text and layout never move. */
.fw-pgo, .fw-cycle-btn, .mk-menu-cta, .mk-begin button {
  position: relative; z-index: 0; background: transparent; clip-path: none;
}
/* The plan-card Begin keeps its STICKY position (a plain position:
   relative here silently killed it once — 2026-09-04) and gets a backing
   plate: an ::after in the card's own ground, so content scrolling under
   the stuck button (and through its slant notch) is masked. */
.fw-plan-cta { z-index: 2; background: transparent; clip-path: none; }
.fw-plan-cta::after {
  content: ''; position: absolute; inset: -0.9rem -0.6rem -1.2rem; z-index: -2;
  background: var(--surface);
}
.fw-plan-hi .fw-plan-cta::after { background: var(--fw-plan-hi); }
.fw-pcard-hi .fw-pgo, .fw-plan-hi .fw-plan-cta, .fw-cycle-btn.is-selected { background: transparent; }
.fw-pgo::before, .fw-plan-cta::before, .fw-cycle-btn::before, .mk-menu-cta::before, .mk-begin button::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transition: left 180ms ease;
}
.fw-pgo::before { background: var(--fw-begin-btn); clip-path: var(--slant); }
.fw-pcard-hi .fw-pgo::before { background: var(--fw-accent); }
.fw-plan-cta::before { background: var(--fw-begin-btn); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }
.fw-plan-hi .fw-plan-cta::before { background: var(--fw-accent); }
/* Grouped buttons (segmented controls) stay in the background-growth
   family but move VERTICALLY — a leftward slide would bleed into the
   neighboring segment. Unselected: the fill rises from the bottom edge;
   selected: the ink fill nudges up past the group frame, mirroring how
   standalone buttons overgrow to the left. */
.fw-cycle-btn::before { background: color-mix(in srgb, var(--ink) 12%, transparent); top: 100%; transition: top 180ms ease; }
.fw-cycle-btn.is-selected::before { top: 0; background: var(--ink); }
.mk-menu-cta::before { background: var(--fw-accent, #f4f2ee); }
.mk-begin button::before { background: var(--mk-blue); }
.fw-pgo:hover::before, .fw-plan-cta:hover::before, .mk-menu-cta:hover::before, .mk-begin button:hover::before { left: -10px; }
.fw-cycle-btn:hover::before, .fw-cycle-btn:focus-visible::before { top: 0; }
.fw-cycle-btn.is-selected:hover::before, .fw-cycle-btn.is-selected:focus-visible::before { top: -6px; }

@media (prefers-reduced-motion: reduce) {
  .fw-bub { opacity: 1; transform: none; transition: none; }
  .fw-begin button::before, .fw-cta-ring, .fw-cta-ring svg, .fw-cta-side-label { transition: none; }
  .fw-pgo::before, .fw-plan-cta::before, .fw-cycle-btn::before, .mk-menu-cta::before, .mk-begin button::before { transition: none; }
  .fw-begin button:hover::before, .fw-pgo:hover::before, .fw-plan-cta:hover::before, .mk-menu-cta:hover::before, .mk-begin button:hover::before { left: 0; }
  .fw-cycle-btn.is-selected:hover::before, .fw-cycle-btn.is-selected:focus-visible::before { top: 0; }
}

/* ══ Operator copy edit mode (2026-09-02) ═════════════════════════════
   Only active under html.mc-editing (signed operator cookie). */
/* Theme-scoped edit-mode colors (2026-09-03): spans carry per-theme
   values as inline custom props; a color set for one theme simply never
   defines the other's prop, so the other theme keeps its own color.
   These rules run for ALL visitors — they resolve saved overrides. */
.mcc { color: var(--mcc-l, inherit); }
:root[data-theme='dark'] .mcc { color: var(--mcc-d, inherit); }

.mc-editing [data-mc] {
  outline: 1px dashed rgba(182, 130, 53, 0.5); outline-offset: 3px;
  cursor: text; min-width: 1.5rem; min-height: 1em;
}
.mc-editing [data-mc]:hover { outline-color: var(--pop); }
.mc-editing [data-mc]:focus { outline: 2px solid var(--pop); outline-offset: 3px; }
.mc-editing .fw-bub { opacity: 1; transform: none; }
.mc-src { position: relative; }
/* Image tools: chip + panel over [data-mc-img] holders; focal mode turns
   the cursor into a crosshair until the click lands. */
.mc-imgchip {
  position: absolute; left: 0.6rem; top: 0.6rem; z-index: 40;
  background: #16202c; color: #f2d59c; border: 1px solid #c99a4e; cursor: pointer;
  font: 500 0.68rem var(--font-heading); letter-spacing: 0.08em; padding: 0.45rem 0.9rem;
}
.mc-imgchip:hover { background: #c99a4e; color: #16202c; }
.mc-imgpanel {
  position: absolute; left: 0.6rem; top: 2.9rem; z-index: 41;
  display: flex; flex-direction: column; gap: 2px;
  background: #16202c; border: 1px solid #c99a4e; padding: 0.35rem;
}
.mc-imgpanel[hidden] { display: none; }
.mc-imgpanel button {
  border: 0; background: #1c2836; color: #f4f2ee; cursor: pointer; text-align: left;
  font: 500 0.72rem var(--font-heading); letter-spacing: 0.06em; padding: 0.5rem 0.9rem;
}
.mc-imgpanel button:hover { background: #c99a4e; color: #16202c; }
html.mc-focal, html.mc-focal img[data-mc-img] { cursor: crosshair !important; }
.mc-chip {
  position: absolute; right: 0.6rem; z-index: 40;
  background: #16202c; color: #f2d59c; text-decoration: none;
  font: 500 0.68rem var(--font-heading); letter-spacing: 0.08em;
  padding: 0.45rem 0.9rem; border: 1px solid #c99a4e;
}
.mc-chip:hover { background: #c99a4e; color: #16202c; }
.mc-bar {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 0.55rem;
  background: #16202c; color: #f4f2ee; border: 1px solid #c99a4e;
  padding: 0.7rem 1.1rem; box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
  font: 500 0.82rem var(--font-body); white-space: nowrap;
  max-width: calc(100vw - 2rem);
}
.mc-actions { display: flex; align-items: center; gap: 1rem; }
/* Formatting row: dim until the caret lands in a copy slot. */
.mc-fmt { display: flex; align-items: center; gap: 0.3rem; opacity: 0.35; pointer-events: none; transition: opacity 160ms ease; flex-wrap: wrap; }
.mc-fmt.is-active { opacity: 1; pointer-events: auto; }
.mc-fmt button {
  min-width: 1.9rem; height: 1.9rem; padding: 0 0.45rem;
  background: #1c2836; color: #f4f2ee; border: 1px solid rgba(244, 242, 238, 0.25);
  font: 600 0.76rem var(--font-heading); cursor: pointer;
}
.mc-fmt button:hover { border-color: #c99a4e; color: #f2d59c; }
.mc-fmt .mc-serif { font-family: var(--font-display); }
.mc-fmt .mc-swatch { min-width: 1.4rem; width: 1.4rem; border: 1px solid rgba(244, 242, 238, 0.4); }
.mc-fmt .mc-swatch:hover { border-color: #f2d59c; }
.mc-pick { width: 1.9rem; height: 1.9rem; padding: 0; border: 1px solid rgba(244, 242, 238, 0.25); background: #1c2836; cursor: pointer; }
.mc-scope { min-width: 6.4rem; white-space: nowrap; }
.mc-scope.is-scoped { border-color: #c99a4e; color: #f2d59c; }
.mc-sep { width: 1px; height: 1.4rem; background: rgba(244, 242, 238, 0.2); margin: 0 0.35rem; }
.mc-linkrow { display: flex; gap: 0.4rem; }
.mc-linkrow[hidden] { display: none; }
.mc-linkurl {
  flex: 1; min-width: 16rem; background: #1c2836; color: #f4f2ee;
  border: 1px solid rgba(244, 242, 238, 0.3); padding: 0.4rem 0.6rem; font: 400 0.82rem var(--font-body);
}
.mc-linkrow button {
  border: 0; cursor: pointer; padding: 0.4rem 0.9rem;
  font: 600 0.72rem var(--font-heading); letter-spacing: 0.1em; text-transform: uppercase;
}
.mc-linkapply { background: #c99a4e; color: #16202c; }
.mc-linkcancel { background: transparent; color: #f4f2ee; border: 1px solid rgba(244, 242, 238, 0.35) !important; }
.mc-bar .mc-count { color: #e8dfc9; letter-spacing: 0.02em; }
.mc-bar button {
  border: 0; cursor: pointer; font: 600 0.74rem var(--font-heading);
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.55rem 1.1rem;
}
.mc-bar button:disabled { opacity: 0.4; cursor: default; }
.mc-bar .mc-save { background: #c99a4e; color: #16202c; }
.mc-bar .mc-discard { background: transparent; color: #f4f2ee; border: 1px solid rgba(244, 242, 238, 0.4); }
.mc-bar .mc-exit { color: #e8dfc9; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; opacity: 0.8; }
.mc-bar .mc-exit:hover { opacity: 1; text-decoration: underline; }

/* design lab — layout styles station (2026-09-02) */
.mk-lab-layoutstyle {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 0.55rem 0; border-top: 1px solid var(--line);
}
.mk-lab-layoutstyle:first-child { border-top: 0; }
.mk-lab-layoutstyle b { font-family: var(--font-heading); font-size: 0.92rem; white-space: nowrap; }
.mk-lab-layoutstyle span { font-size: 0.85rem; opacity: 0.7; }
