/* ============================================================
   KiriBook Ghost theme — kiribook.app
   Brand tokens, the design-system components this theme uses,
   marketing homepage layout, and blog/post/newsletter styles.
   Source: KiriBook "Kiri Bloom" design system (Claude Design).
   ============================================================ */

/* ---------- Tokens: color -------------------------------------------- */
:root {
  --lavender-50:  #FFEEF7;
  --lavender-100: #FBDCEC;
  --lavender-200: #F1C1DB;
  --lavender-300: #E09CC2;
  --lavender-400: #C976A6;
  --lavender-500: #AF548B;
  --lavender-600: #953972;
  --lavender-700: #7D2A5E;
  --lavender-800: #611E49;
  --lavender-900: #431231;

  --wood-50:  #FBF7EF;
  --wood-100: #F4EBD8;
  --wood-200: #E9D8BB;
  --wood-300: #DBC196;
  --wood-400: #CBA873;
  --wood-500: #B68F54;
  --wood-600: #997444;
  --wood-700: #785A37;
  --wood-800: #57432A;
  --wood-900: #3D2F1E;

  --sage-50:  #EFF4ED;
  --sage-100: #DCE8D6;
  --sage-200: #BFD4B5;
  --sage-300: #9CBB8F;
  --sage-400: #7C9E6E;
  --sage-500: #628253;
  --sage-600: #4E6A43;
  --sage-700: #3D5335;
  --sage-800: #2F4028;
  --sage-900: #212D1C;

  --bark-0:   #FFFFFF;
  --bark-50:  #FAF6F3;
  --bark-100: #F2ECEA;
  --bark-200: #E7DEDF;
  --bark-300: #D4C9CC;
  --bark-400: #B2A6AB;
  --bark-500: #8C8087;
  --bark-600: #6E626A;
  --bark-700: #4E454E;
  --bark-800: #372F38;
  --bark-900: #271F29;

  --color-bg-page:        var(--bark-50);
  --color-bg-sunken:      #F3EDE6;
  --color-surface:        #FFFFFF;
  --color-surface-bloom:  var(--lavender-50);

  --color-text-strong:    var(--bark-900);
  --color-text:           var(--bark-800);
  --color-text-muted:     var(--bark-600);
  --color-text-subtle:    var(--bark-500);
  --color-text-on-primary:#FFFFFF;

  --color-border:         #E8DFE1;
  --color-border-strong:  #D6CACD;
  --color-border-cream:   #EADFCB;
  --color-border-focus:   var(--lavender-500);
  --color-divider:        #EFE8E9;

  --color-primary:        var(--lavender-600);
  --color-primary-hover:  var(--lavender-700);
  --color-primary-active: var(--lavender-800);
  --color-primary-soft:   var(--lavender-100);
  --color-primary-soft-hover: var(--lavender-200);
  --color-primary-soft-text:  var(--lavender-700);

  --color-accent:         var(--sage-500);
  --color-accent-soft:    var(--sage-100);
  --color-accent-soft-text: var(--sage-700);

  --color-secondary:      var(--wood-500);
  --color-secondary-soft: var(--wood-100);
  --color-secondary-soft-text: var(--wood-800);

  --color-focus-ring:     color-mix(in oklab, var(--lavender-500) 48%, transparent);
}

/* ---------- Tokens: type ---------------------------------------------- */
:root {
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;

  --text-heading-xl: 31px;
  --text-heading-md: 22px;
  --text-heading-sm: 20px;
  --text-body-lg:    20px;
  --text-body:       18px;
  --text-body-sm:    16px;
  --text-caption:    14px;
  --text-overline:   13px;

  --leading-normal:  1.55;
  --leading-relaxed: 1.65;

  --tracking-tight:   -0.02em;
  --tracking-snug:    -0.01em;
  --tracking-overline:0.13em;
}

/* ---------- Tokens: space, radius, shadow, motion ---------------------- */
:root {
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  32px;
  --space-8:  40px;
  --space-9:  48px;
  --space-10: 64px;
  --space-11: 80px;

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  --shadow-xs:  0 1px 2px rgba(39, 31, 41, 0.06);
  --shadow-sm:  0 1px 2px rgba(39, 31, 41, 0.06), 0 2px 6px rgba(39, 31, 41, 0.05);
  --shadow-md:  0 2px 4px rgba(39, 31, 41, 0.05), 0 6px 16px rgba(39, 31, 41, 0.08);
  --shadow-lg:  0 4px 8px rgba(39, 31, 41, 0.06), 0 14px 32px rgba(39, 31, 41, 0.12);
  --shadow-xl:  0 8px 16px rgba(39, 31, 41, 0.08), 0 28px 56px rgba(39, 31, 41, 0.16);

  --ring: 0 0 0 3px var(--color-focus-ring);

  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast:   120ms;
  --duration-normal: 200ms;
}

/* ---------- Components used by this theme ------------------------------ */

/* Button */
.ki-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  font-size: var(--text-body-sm); line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 0 var(--space-4); height: 40px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.ki-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.ki-btn:active { transform: scale(0.98); }
.ki-btn--sm { height: 32px; font-size: var(--text-caption); padding: 0 var(--space-3); border-radius: var(--radius-sm); }
.ki-btn--lg { height: 48px; font-size: var(--text-body); padding: 0 var(--space-6); border-radius: var(--radius-lg); }
.ki-btn--block { width: 100%; }
.ki-btn--primary { background: var(--color-primary); color: var(--color-text-on-primary); box-shadow: var(--shadow-xs); }
.ki-btn--primary:hover { background: var(--color-primary-hover); }
.ki-btn--primary:active { background: var(--color-primary-active); }
.ki-btn--secondary { background: var(--color-surface); color: var(--color-text-strong); border-color: var(--color-border-strong); box-shadow: var(--shadow-xs); }
.ki-btn--secondary:hover { background: var(--color-bg-sunken); border-color: var(--bark-300); }
.ki-btn--ghost { background: transparent; color: var(--color-text); }
.ki-btn--ghost:hover { background: var(--color-bg-sunken); }

/* Badge */
.ki-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  font-size: var(--text-overline); line-height: 1;
  padding: 4px 9px; border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
}
.ki-badge--primary { background: var(--color-primary-soft); color: var(--color-primary-soft-text); }
.ki-badge--sage    { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.ki-badge--wood    { background: var(--color-secondary-soft); color: var(--color-secondary-soft-text); text-decoration: none; }
.ki-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Avatar */
.ki-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); overflow: hidden;
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  color: #fff; background: var(--color-primary);
  width: 40px; height: 40px; font-size: 15px; flex: none;
  user-select: none;
}

/* RelationshipPill */
.ki-relpill { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-weight: var(--weight-medium); font-size: var(--text-caption); padding: 4px 12px 4px 8px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.ki-relpill__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ki-relpill--family { background: var(--color-secondary-soft); color: var(--color-secondary-soft-text); }
.ki-relpill--family .ki-relpill__dot { background: var(--wood-500); }
.ki-relpill--friend { background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.ki-relpill--friend .ki-relpill__dot { background: var(--sage-500); }
.ki-relpill--household { background: var(--color-primary-soft); color: var(--color-primary-soft-text); }
.ki-relpill--household .ki-relpill__dot { background: var(--lavender-500); }

/* AddressHistory */
.ki-addrhist { display: flex; flex-direction: column; }
.ki-addrhist__item { display: flex; gap: var(--space-3); padding-bottom: var(--space-5); position: relative; }
.ki-addrhist__item:last-child { padding-bottom: 0; }
.ki-addrhist__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.ki-addrhist__node { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--color-surface); background: var(--bark-300); box-shadow: 0 0 0 1.5px var(--bark-300); margin-top: 3px; }
.ki-addrhist__item--current .ki-addrhist__node { background: var(--color-primary); box-shadow: 0 0 0 1.5px var(--color-primary); }
.ki-addrhist__line { width: 2px; flex: 1; background: var(--color-border); margin: 4px 0; }
.ki-addrhist__addr { font-family: var(--font-mono); font-size: var(--text-body-sm); color: var(--color-text-strong); }
.ki-addrhist__when { font-family: var(--font-sans); font-size: var(--text-caption); color: var(--color-text-muted); margin-top: 2px; }
.ki-addrhist__item--past .ki-addrhist__addr { color: var(--color-text-muted); }

/* ============================================================
   Base + page shell
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-surface); -webkit-font-smoothing: antialiased; }
.ph { line-height: 1; }
a { color: inherit; text-decoration: none; }

.mk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------------------------------------- */
/* The nav is sticky at ~69px, so a jump to #pricing or #how would otherwise
   land with the section heading hidden underneath it. Every anchor target
   needs to clear the header, not just the ones currently in the nav. */
.mk-section[id], .mk-hero[id] { scroll-margin-top: 88px; }
.mk-nav { position: sticky; top: 0; z-index: 100; background: color-mix(in oklab, var(--color-surface) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.mk-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.mk-nav__links { display: flex; align-items: center; gap: var(--space-7); }
.mk-nav__links a { font-size: var(--text-body-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); transition: color var(--duration-fast) var(--ease-standard); }
.mk-nav__links a:hover { color: var(--color-text-strong); }
.mk-nav__cta { display: flex; align-items: center; gap: var(--space-3); }
.mk-nav__toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; background: transparent; color: var(--color-text-strong); font-size: 24px; border-radius: var(--radius-md); cursor: pointer; }
.mk-nav__toggle:hover { background: var(--color-bg-sunken); }
.mk-nav__mobile { display: none; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 24px var(--space-6); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.mk-nav__mobile a { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--color-text); padding: var(--space-3) var(--space-2); border-radius: var(--radius-md); }
.mk-nav__mobile a:hover { background: var(--color-bg-sunken); }
.mk-nav__mobile-signin { display: block; border-bottom: 1px solid var(--color-divider); margin-bottom: var(--space-3); padding-bottom: var(--space-4) !important; }
.mk-nav.is-open .mk-nav__mobile { display: flex; }

/* ---------- Hero ---------------------------------------- */
.mk-hero { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 85% -10%, var(--color-surface-bloom) 0%, transparent 55%),
  linear-gradient(180deg, var(--wood-50) 0%, var(--color-surface) 70%); }
.mk-hero__tex { position: absolute; inset: 0; background-image: url(../images/kiri-leaf-tile.svg); background-size: 260px; opacity: 0.5; pointer-events: none; }
.mk-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); align-items: center; padding: var(--space-11) 0; }
.mk-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); font-size: var(--text-overline); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--color-primary); background: var(--color-primary-soft); padding: 6px 12px; border-radius: var(--radius-pill); }
.mk-h1 { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: var(--tracking-tight); color: var(--color-text-strong); margin: var(--space-5) 0 0; text-wrap: balance; }
.mk-h1 em { font-style: italic; color: var(--color-primary); }
.mk-lede { font-size: var(--text-body-lg); line-height: var(--leading-relaxed); color: var(--color-text-muted); margin: var(--space-5) 0 var(--space-7); max-width: 46ch; text-wrap: pretty; }
.mk-hero__cta { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.mk-hero__note { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-5); font-size: var(--text-caption); color: var(--color-text-subtle); }

.mk-mock { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); padding: var(--space-5); transform: rotate(0.6deg); }
.mk-mock__bar { display: flex; align-items: center; gap: 6px; padding: 0 var(--space-2) var(--space-4); }
.mk-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bark-200); }
.mk-mock__row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); }
.mk-mock__row + .mk-mock__row { margin-top: var(--space-2); }
.mk-mock__row--hl { background: var(--color-surface-bloom); }
.mk-mock__crest { width: 40px; height: 40px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; flex: none; }
.mk-mock__nm { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--color-text-strong); }
.mk-mock__ad { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-muted); }

/* ---------- Section scaffolding ---------------------------------------- */
.mk-section { padding: var(--space-11) 0; }
.mk-section--cream { background: var(--wood-50); border-block: 1px solid var(--color-border-cream); }
.mk-section--bloom { background: var(--color-surface-bloom); }
.mk-sec-head { max-width: 640px; margin: 0 auto var(--space-9); text-align: center; }
.mk-kicker { font-weight: var(--weight-semibold); font-size: var(--text-overline); letter-spacing: var(--tracking-overline); text-transform: uppercase; color: var(--color-secondary); }
.mk-h2 { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; letter-spacing: var(--tracking-tight); color: var(--color-text-strong); margin: var(--space-3) 0 0; text-wrap: balance; }
.mk-p { font-size: var(--text-body-lg); line-height: var(--leading-relaxed); color: var(--color-text-muted); margin: var(--space-4) 0 0; text-wrap: pretty; }

/* ---------- Feature grid ---------------------------------------- */
.mk-feature-shot { margin: 0 0 var(--space-9); position: relative; }
.mk-feature-shot img { display: block; width: 100%; height: clamp(280px, 42vw, 460px); object-fit: cover; object-position: center 42%; border-radius: var(--radius-xl); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.mk-feature-shot__cap { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: var(--space-2); padding: 8px 14px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-surface) 90%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--color-border); font-size: var(--text-body-sm); font-weight: var(--weight-medium); color: var(--color-text-strong); box-shadow: var(--shadow-sm); }
.mk-feature-shot__cap .ph { font-size: 18px; color: var(--color-primary); }
.mk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mk-feature { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard); }
.mk-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mk-feature__ico { width: 48px; height: 48px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: var(--space-4); }
.mk-feature__t { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-md); color: var(--color-text-strong); letter-spacing: var(--tracking-snug); }
.mk-feature__d { font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--color-text-muted); margin-top: var(--space-2); }

/* Pain points */
.mk-pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.mk-pain { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-xs); }
.mk-pain__ico { width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: var(--space-3); background: var(--color-secondary-soft); color: var(--color-secondary-soft-text); }
.mk-pain__t { font-size: var(--text-body); line-height: var(--leading-normal); font-weight: var(--weight-medium); color: var(--color-text-strong); }
.mk-bridge { text-align: center; margin-top: var(--space-8); font-family: var(--font-display); font-weight: var(--weight-medium); font-size: var(--text-heading-md); color: var(--color-text-strong); }

/* ---------- Showcase split rows ---------------------------------------- */
.mk-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.mk-split--rev .mk-split__media { order: 2; }
.mk-split + .mk-split { margin-top: var(--space-10); }
.mk-split__panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: var(--space-7); }
.mk-h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-xl); line-height: 1.12; letter-spacing: var(--tracking-snug); color: var(--color-text-strong); margin: var(--space-3) 0 0; }
.mk-ul { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mk-ul li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-body); color: var(--color-text); }
.mk-ul .ph { color: var(--color-accent); font-size: 20px; margin-top: 1px; flex: none; }

/* tree mini */
.mk-treebox { height: 360px; background:
  radial-gradient(80% 80% at 50% 40%, var(--color-surface-bloom), var(--color-surface));
  border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.mk-treebox__legend { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 14px; font-size: 12px; color: var(--color-text-muted); }
.mk-treebox__legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk-treebox__legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ---------- Story ---------------------------------------- */
.mk-story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-9); align-items: center; }
.mk-story__mark { display: flex; align-items: center; justify-content: center; }
.mk-story__mark img { width: 200px; filter: drop-shadow(var(--shadow-md)); }
.mk-story blockquote { margin: 0; }
.mk-story__big { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.32; color: var(--color-text-strong); letter-spacing: var(--tracking-snug); }
.mk-story__big em { font-style: italic; color: var(--color-primary); }

/* ---------- Quote ---------------------------------------- */
.mk-quote-shot { max-width: 640px; margin: 0 auto var(--space-8); }
.mk-quote-shot img { display: block; width: 100%; height: clamp(220px, 30vw, 340px); object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.mk-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.mk-quote__q { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; color: var(--color-text-strong); letter-spacing: var(--tracking-snug); text-wrap: balance; }
.mk-quote__by { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.mk-quote__nm { font-weight: var(--weight-semibold); font-size: var(--text-body-sm); color: var(--color-text-strong); }
.mk-quote__rl { font-size: var(--text-caption); color: var(--color-text-muted); }

/* ---------- FAQ ---------------------------------------- */
.mk-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.mk-faq__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.mk-faq__item[open] { box-shadow: var(--shadow-sm); }
.mk-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-sm); color: var(--color-text-strong); cursor: pointer; list-style: none; }
.mk-faq__q::-webkit-details-marker { display: none; }
.mk-faq__ico { flex: none; font-size: 20px; color: var(--color-primary); transition: transform var(--duration-fast) var(--ease-standard); }
.mk-faq__item[open] .mk-faq__ico { transform: rotate(45deg); }
.mk-faq__a { padding: 0 var(--space-6) var(--space-5); font-size: var(--text-body-sm); line-height: var(--leading-relaxed); color: var(--color-text-muted); }
.mk-faq__a p { margin: 0; }

/* ---------- CTA / newsletter band ---------------------------------------- */
.mk-cta { background: linear-gradient(135deg, var(--lavender-700), var(--lavender-500)); color: #fff; border-radius: var(--radius-2xl); padding: var(--space-10) var(--space-9); text-align: center; position: relative; overflow: hidden; }
.mk-cta__tex { position: absolute; inset: 0; background-image: url(../images/kiri-leaf-tile.svg); background-size: 220px; opacity: 0.25; filter: brightness(3); }
.mk-cta h2 { position: relative; font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: var(--tracking-tight); margin: 0; color: #fff; text-wrap: balance; }
.mk-cta p { position: relative; font-size: var(--text-body-lg); color: var(--lavender-100); margin: var(--space-4) auto var(--space-7); max-width: 48ch; }
.mk-cta--newsletter .mk-eyebrow { position: relative; display: inline-flex; margin-bottom: var(--space-3); }

/* Newsletter signup form (wired to Ghost Portal via data-members-form) */
.kb-newsletter-form { position: relative; max-width: 420px; margin: 0 auto; }
.kb-newsletter-form__row { display: flex; gap: var(--space-2); }
.kb-newsletter-form input[type="email"] {
  flex: 1; min-width: 0; height: 48px; border-radius: var(--radius-lg); border: 1px solid transparent;
  padding: 0 var(--space-4); font-family: var(--font-sans); font-size: var(--text-body-sm);
  background: rgba(255,255,255,0.94); color: var(--color-text-strong);
}
.kb-newsletter-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }
.kb-newsletter-form .message-success, .kb-newsletter-form .message-error { display: none; margin-top: var(--space-3); font-size: var(--text-caption); }
.kb-newsletter-form.success .message-success { display: block; color: #fff; }
.kb-newsletter-form.error .message-error { display: block; color: #FFD9CF; }
.kb-newsletter-form.loading .ki-btn { opacity: 0.7; pointer-events: none; }

/* ---------- Footer ---------------------------------------- */
.mk-footer { border-top: 1px solid var(--color-border); padding: var(--space-9) 0 var(--space-7); }
.mk-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); }
.mk-footer__col h4 { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--color-text-strong); margin: 0 0 var(--space-4); }
.mk-footer__col a { display: block; font-size: var(--text-body-sm); color: var(--color-text-muted); padding: 5px 0; }
.mk-footer__col a:hover { color: var(--color-text-strong); }
.mk-footer__about { font-size: var(--text-body-sm); color: var(--color-text-muted); line-height: var(--leading-normal); margin: var(--space-4) 0 0; max-width: 30ch; }
.mk-footer__social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mk-footer__social-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1px solid transparent; color: var(--color-text-muted); font-size: 17px; transition: color 120ms ease, background-color 120ms ease; }
.mk-footer__social-link:hover { color: var(--color-primary); background: var(--color-bg-sunken); }
.mk-footer__base { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--color-divider); font-size: var(--text-caption); color: var(--color-text-subtle); }

/* ============================================================
   Blog listing (index.hbs, served at /blog/ and /tag/ archives)
   ============================================================ */
.kb-blog { padding: var(--space-11) 0 var(--space-11); background: var(--color-bg-page); }
.kb-blog__head { max-width: 660px; margin: 0 auto var(--space-8); text-align: center; }

/* Filter chips + search */
.kb-filter { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; padding-bottom: var(--space-7); border-bottom: 1px solid var(--color-divider); margin-bottom: var(--space-9); }
.kb-filter__chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.kb-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; font-size: 15px; font-weight: var(--weight-medium); color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); transition: all var(--duration-fast) var(--ease-standard); }
.kb-chip:hover { border-color: var(--color-border-strong); color: var(--color-text-strong); }
.kb-chip--active { background: var(--color-primary-soft); color: var(--color-primary-soft-text); border-color: var(--color-primary-soft); font-weight: var(--weight-semibold); }
.kb-search { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 20px 0 16px; font-family: var(--font-sans); font-size: 15px; color: var(--color-text-subtle); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); cursor: pointer; transition: all var(--duration-fast) var(--ease-standard); }
.kb-search:hover { border-color: var(--color-primary); color: var(--color-text-muted); }
.kb-search .ph { font-size: 18px; }

/* Featured (hero) post */
.kb-featured { margin-bottom: var(--space-10); }
.kb-featured__link { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard); }
.kb-featured__link:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.kb-featured__media { position: relative; overflow: hidden; min-height: 340px; background: var(--lavender-100); }
.kb-featured__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-featured__badge { position: absolute; top: var(--space-6); left: var(--space-6); z-index: 2; }
.kb-featured__body { padding: var(--space-8); display: flex; flex-direction: column; justify-content: center; }
.kb-featured__label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-overline); font-weight: var(--weight-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-primary); }
.kb-featured__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: var(--tracking-snug); color: var(--color-text-strong); margin: var(--space-3) 0 0; text-wrap: balance; }
.kb-featured__dek { font-size: var(--text-body); line-height: var(--leading-normal); color: var(--color-text-muted); margin: var(--space-4) 0 0; text-wrap: pretty; }
.kb-featured__author { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-7); }
.kb-featured__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; font-size: 15px; }
.kb-featured__author-meta { display: flex; flex-direction: column; }
.kb-featured__author-name { font-size: 15px; font-weight: var(--weight-semibold); color: var(--color-text-strong); }
.kb-featured__author-date { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-subtle); }

/* Card grid */
.kb-post-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
.kb-post-card { display: flex; --kb-tint-bg: var(--lavender-100); --kb-tint-fg: var(--lavender-700); --kb-badge-bg: var(--color-primary-soft); --kb-badge-fg: var(--color-primary-soft-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard); }
.kb-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.kb-post-card:nth-child(3n+2) { --kb-tint-bg: var(--wood-100); --kb-tint-fg: var(--wood-800); --kb-badge-bg: var(--color-secondary-soft); --kb-badge-fg: var(--color-secondary-soft-text); }
.kb-post-card:nth-child(3n) { --kb-tint-bg: var(--sage-100); --kb-tint-fg: var(--sage-700); --kb-badge-bg: var(--color-accent-soft); --kb-badge-fg: var(--color-accent-soft-text); }
.kb-post-card__link { display: flex; flex-direction: column; width: 100%; }
.kb-post-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--kb-tint-bg); }
.kb-post-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-post-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.kb-post-card__badge { align-self: flex-start; background: var(--kb-badge-bg); color: var(--kb-badge-fg); }
.kb-post-card__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-sm); line-height: 1.2; color: var(--color-text-strong); letter-spacing: var(--tracking-snug); margin: var(--space-3) 0 0; }
.kb-post-card__excerpt { font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--color-text-muted); margin: var(--space-2) 0 0; text-wrap: pretty; }
.kb-post-card__meta { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: 13px; color: var(--color-text-subtle); margin-top: auto; padding-top: var(--space-5); }

/* Branded placeholder (posts with no feature image) */
.kb-post-card__ph, .kb-featured__ph, .kb-post__feature-ph { position: absolute; inset: 0; }
.kb-post-card__ph-tex, .kb-featured__ph-tex, .kb-post__feature-tex { position: absolute; inset: 0; background-size: 170px; opacity: 0.13; }
.kb-post-card__ph-blossom, .kb-featured__ph-blossom, .kb-post__feature-blossom { position: absolute; opacity: 0.2; }
.kb-post-card__ph-blossom { right: -26px; bottom: -26px; width: 130px; }
.kb-post-card__ph .ph { position: absolute; left: 22px; bottom: 20px; font-size: 40px; color: var(--kb-tint-fg); opacity: 0.9; }
.kb-featured__ph { background: var(--lavender-100); }
.kb-featured__ph-tex { background-size: 220px; opacity: 0.14; }
.kb-featured__ph-blossom { right: -40px; bottom: -40px; width: 230px; opacity: 0.22; }
.kb-featured__ph .ph { position: absolute; left: 28px; bottom: 26px; font-size: 52px; color: var(--color-primary); opacity: 0.85; }

/* Empty state */
.kb-empty { text-align: center; padding: var(--space-11) 0; }
.kb-empty img { width: 64px; opacity: 0.5; }
.kb-empty__title { font-family: var(--font-display); font-size: 24px; color: var(--color-text-strong); margin: var(--space-4) 0 0; }
.kb-empty__sub { font-size: var(--text-body-sm); color: var(--color-text-muted); margin: var(--space-2) 0 0; }

/* Pagination (Ghost's {{pagination}} helper) */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); font-size: var(--text-body-sm); color: var(--color-text-muted); }
.pagination a { font-weight: var(--weight-semibold); color: var(--color-primary); }
.pagination-location { color: var(--color-text-subtle); }

/* ============================================================
   Single post / page
   ============================================================ */
.kb-post { padding-top: var(--space-9); background: var(--color-bg-page); }
.kb-post__wrap { max-width: 760px; }
.kb-post__back { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 15px; font-weight: var(--weight-medium); color: var(--color-text-muted); transition: color var(--duration-fast) var(--ease-standard); }
.kb-post__back:hover { color: var(--color-text-strong); }
.kb-post__head { padding: var(--space-7) 0 0; }
.kb-post__head .ki-badge { margin-bottom: var(--space-4); }
.kb-post__title { font-family: var(--font-display); font-weight: var(--weight-medium); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: var(--tracking-tight); color: var(--color-text-strong); margin: 0; text-wrap: balance; }
.kb-post__dek { font-size: var(--text-body-lg); line-height: var(--leading-normal); color: var(--color-text-muted); margin: var(--space-5) 0 0; text-wrap: pretty; }
.kb-post__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-7); padding: var(--space-6) 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.kb-post__byline { display: flex; align-items: center; gap: var(--space-3); }
.kb-post__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; font-size: 15px; }
.kb-post__byline-meta { display: flex; flex-direction: column; }
.kb-post__author-name { font-size: 15px; font-weight: var(--weight-semibold); color: var(--color-text-strong); }
.kb-post__author-date { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-subtle); }
.kb-post__share { display: flex; align-items: center; gap: var(--space-2); }
.kb-post__share-label { font-size: 13px; font-weight: var(--weight-semibold); color: var(--color-text-subtle); margin-right: var(--space-1); }
.kb-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 18px; color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 50%; cursor: pointer; transition: all var(--duration-fast) var(--ease-standard); }
.kb-share-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.kb-share-btn.is-copied { color: var(--color-accent); border-color: var(--color-accent); }

.kb-post__feature { position: relative; max-width: 1000px; margin: var(--space-8) auto 0; padding: 0 24px; }
.kb-post__feature img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: block; }
.kb-post__feature-ph { position: relative; inset: auto; height: 420px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); background: linear-gradient(135deg, var(--lavender-100), var(--wood-100)); }
.kb-post__feature-tex { background-size: 260px; opacity: 0.16; }
.kb-post__feature-blossom { right: 6%; bottom: -70px; width: 340px; opacity: 0.3; }
.kb-post__feature-ph .ph { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); font-size: 96px; color: var(--color-primary); opacity: 0.8; }

.kb-post .kb-content { padding-top: var(--space-9); }

/* Author bio card */
.kb-author { display: flex; align-items: flex-start; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); margin-bottom: var(--space-10); }
.kb-author__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; font-size: 18px; flex: none; }
.kb-author__name { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-sm); color: var(--color-text-strong); }
.kb-author__bio { font-size: var(--text-body-sm); line-height: var(--leading-normal); color: var(--color-text-muted); margin: var(--space-2) 0 0; }

/* Related posts band */
.kb-related { background: var(--wood-50); border-top: 1px solid var(--color-border-cream); padding: var(--space-11) 0; }
.kb-related__title { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-xl); letter-spacing: var(--tracking-snug); color: var(--color-text-strong); margin: 0 0 var(--space-7); }

/* Prose styling for Ghost's rendered {{content}} */
.kb-content { font-size: var(--text-body); line-height: var(--leading-relaxed); color: var(--color-text); padding-bottom: var(--space-10); }
.kb-content > * + * { margin-top: var(--space-5); }
.kb-content h2 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-xl); letter-spacing: var(--tracking-snug); color: var(--color-text-strong); margin-top: var(--space-9); }
.kb-content h3 { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-heading-md); letter-spacing: var(--tracking-snug); color: var(--color-text-strong); margin-top: var(--space-8); }
.kb-content p { margin: var(--space-5) 0 0; }
.kb-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.kb-content ul, .kb-content ol { padding-left: 1.3em; }
.kb-content li + li { margin-top: var(--space-2); }
.kb-content blockquote { margin: var(--space-7) 0; padding-left: var(--space-5); border-left: 3px solid var(--color-primary); font-family: var(--font-display); font-style: italic; font-size: var(--text-body-lg); color: var(--color-text-strong); }
.kb-content img { max-width: 100%; border-radius: var(--radius-lg); display: block; }
.kb-content figcaption { font-size: var(--text-caption); color: var(--color-text-subtle); text-align: center; margin-top: var(--space-2); }
.kb-content hr { border: none; border-top: 1px solid var(--color-divider); margin: var(--space-9) 0; }
.kb-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-bg-sunken); padding: 2px 6px; border-radius: var(--radius-xs); }
.kb-content pre { font-family: var(--font-mono); font-size: 0.9em; background: var(--bark-900); color: var(--bark-50); padding: var(--space-5); border-radius: var(--radius-md); overflow-x: auto; }
.kb-content table { width: 100%; border-collapse: collapse; font-size: var(--text-body-sm); }
.kb-content th, .kb-content td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-divider); }
.kb-content th { font-weight: var(--weight-semibold); color: var(--color-text-strong); }
.kb-content pre code { background: none; padding: 0; }

/* Koenig editor breakout widths */
.kb-content .kg-width-wide {
  width: 85vw;
  max-width: 1040px;
  margin-left: 50%;
  transform: translateX(-50%);
}
.kb-content .kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.kb-content .kg-width-full img { border-radius: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mk-hero__grid { gap: var(--space-7); padding: var(--space-10) 0; }
  .mk-features { grid-template-columns: 1fr 1fr; }
  .mk-pains { grid-template-columns: 1fr 1fr; }
  .mk-split, .mk-story { gap: var(--space-7); }
  .mk-section { padding: var(--space-10) 0; }
  .kb-post-feed { grid-template-columns: 1fr 1fr; }
  .kb-featured__link { grid-template-columns: 1fr; }
  .kb-featured__media { min-height: 240px; }
}
@media (max-width: 860px) {
  .mk-nav__links, .mk-nav__cta { display: none; }
  .mk-nav__toggle { display: inline-flex; }
}
@media (max-width: 768px) {
  .mk-wrap { padding: 0 20px; }
  .mk-hero__grid { grid-template-columns: 1fr; padding: var(--space-9) 0; }
  .mk-mock { transform: none; }
  .mk-feature-shot__cap { left: 14px; bottom: 14px; font-size: 13px; padding: 6px 12px; }
  .mk-features { grid-template-columns: 1fr; }
  .mk-pains { grid-template-columns: 1fr; }
  .mk-split, .mk-story { grid-template-columns: 1fr; }
  .mk-split--rev .mk-split__media { order: 0; }
  .mk-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .mk-footer__col--about { grid-column: 1 / -1; }
  .mk-section { padding: var(--space-9) 0; }
  .mk-cta { padding: var(--space-9) var(--space-6); }
  .kb-post-feed { grid-template-columns: 1fr; }
  .kb-newsletter-form__row { flex-direction: column; }
  .kb-filter { justify-content: stretch; }
  .kb-search { width: 100%; justify-content: flex-start; }
  .kb-post__meta { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .kb-post__feature-ph { height: 280px; }
  .kb-post__feature-blossom { width: 220px; bottom: -50px; }
}
@media (max-width: 520px) {
  .mk-wrap { padding: 0 16px; }
  .mk-split__panel { padding: var(--space-5); }
  .mk-footer__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .mk-footer__base { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  .mk-treebox { height: 300px; }
}


/* ============================================================
   MARKETING — added 2026-07-31 with the pricing section, the
   how-it-works strip, the deep feature rows, and real product
   screenshots replacing the hand-drawn hero mock.
   ============================================================ */

/* ---------- Hero product shot (replaces .mk-mock) ---------------------- */
.mk-hero__shot { margin: 0; }
.mk-hero__shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-xl);
  transform: rotate(0.6deg);
}

/* ---------- Pain-section photo + signed maker's note ------------------- */
.mk-pain-shot { max-width: 620px; margin: 0 auto var(--space-8); }
.mk-pain-shot img {
  display: block; width: 100%; height: clamp(200px, 26vw, 300px); object-fit: cover;
  border-radius: var(--radius-xl); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
}
/* A note, not a testimonial. No quotation marks and no centred serif: that
   visual grammar reads as "a customer said this", and this is the maker
   talking. Letter styling keeps the warmth without the implied endorsement. */
.mk-note {
  max-width: 640px; margin: var(--space-8) auto 0; padding: var(--space-6) var(--space-7);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.mk-note__body {
  font-family: var(--font-display); font-size: var(--text-heading-sm); line-height: 1.5;
  color: var(--color-text-strong); margin: 0; font-style: italic;
}
.mk-note__sign {
  margin: var(--space-4) 0 0; font-size: var(--text-caption);
  color: var(--color-text-muted); font-weight: var(--weight-semibold);
}

/* ---------- How it works ---------------------------------------------- */
.mk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.mk-step {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.mk-step__n {
  width: 34px; height: 34px; border-radius: var(--radius-pill);
  background: var(--color-primary); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: var(--weight-semibold); font-size: 16px; margin-bottom: var(--space-4);
}
.mk-step__t {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-heading-sm); color: var(--color-text-strong); margin-bottom: var(--space-2);
}
.mk-step__d { font-size: var(--text-body-sm); line-height: var(--leading-relaxed); color: var(--color-text-muted); }
.mk-step__shot { margin: var(--space-5) 0 0; }
.mk-step__shot img {
  display: block; width: 100%; height: 180px; object-fit: cover; object-position: top left;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
}

/* ---------- Deep feature rows ----------------------------------------- */
.mk-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8);
  align-items: center; margin-bottom: var(--space-9);
}
.mk-row--flip .mk-row__txt { order: 2; }
.mk-row__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  font-size: var(--text-caption); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-3);
}
.mk-h3 {
  font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.14; letter-spacing: var(--tracking-tight);
  color: var(--color-text-strong); margin: 0 0 var(--space-3); text-wrap: balance;
}
.mk-row__note {
  margin: var(--space-4) 0 0; font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold); color: var(--color-text-strong);
  background: var(--color-surface-cream); border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: inline-block;
}
.mk-row__shot { margin: 0; }
.mk-row__shot img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
}
.mk-row__shot--photo img { height: clamp(260px, 30vw, 380px); object-fit: cover; }

/* ---------- Pricing table (landing section + /pricing/) ---------------- */
.mk-price {
  border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-sm);
  max-width: 880px; margin: 0 auto;
}
.mk-price--full { max-width: 940px; }
.mk-price__grid { display: grid; grid-template-columns: 1fr 150px 170px; }
.mk-price__cell { padding: 13px 20px; display: flex; align-items: center; border-top: 1px solid var(--color-divider); }
.mk-price__cell--feat { font-size: var(--text-body-sm); color: var(--color-text); font-weight: var(--weight-medium); }
.mk-price__cell--val { justify-content: center; text-align: center; }
.mk-price__h { border-top: none; padding-top: 20px; padding-bottom: 20px; flex-direction: column; align-items: flex-start; gap: 5px; }
.mk-price__col { align-items: center; }
.mk-price__col--feature { background: var(--color-surface-bloom); }
.mk-price__colname { font-family: var(--font-sans); font-weight: var(--weight-bold); font-size: var(--text-body-sm); color: var(--color-text-strong); }
.mk-price__colprice { font-family: var(--font-mono); font-size: var(--text-overline); color: var(--color-text-muted); }
.mk-price__h--feat { justify-content: flex-end; }
.mk-price__lead {
  font-family: var(--font-sans); font-weight: var(--weight-semibold); font-size: var(--text-overline);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-subtle);
}
.mk-price__group {
  border-top: 1px solid var(--color-border); background: var(--color-bg-sunken);
  padding: 10px 20px; font-family: var(--font-sans); font-weight: var(--weight-bold);
  font-size: var(--text-overline); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--color-text-muted); display: flex; align-items: center;
}
.mk-price__group--sp { padding: 0; }
/* Unicode marks, not the Phosphor webfont. The plan table is the page's core
   trust artifact; if a CDN font fails, icon cells vanish and the table reads
   as "nothing is included", which is the exact opposite of the truth. */
.mk-price__yes { color: var(--color-success); font-size: 18px; font-weight: var(--weight-bold); line-height: 1; }
.mk-price__no { color: var(--color-text-subtle); font-size: 15px; line-height: 1; }
.mk-price__txt { font-family: var(--font-mono); font-size: var(--text-overline); color: var(--color-text-strong); font-weight: var(--weight-medium); }
.mk-price__muted { font-family: var(--font-mono); font-size: var(--text-overline); color: var(--color-text-muted); }
/* A metered free allowance, never the not-included dash. "5 free" is a gift;
   a dash is a wall, and reading it as a wall is exactly why four separate
   reviewers concluded envelope scanning was paid-only when it never was. */
.mk-price__taste {
  font-family: var(--font-mono); font-size: var(--text-overline); font-weight: var(--weight-medium);
  color: var(--wood-800); background: var(--color-surface-cream);
  border: 1px solid var(--color-border-cream); border-radius: var(--radius-pill);
  padding: 2px 9px; white-space: nowrap;
}
/* Homepage pricing footer. The homepage carries the number and the two plan
   cards; the feature-by-feature table lives on /pricing/ only, so there is one
   hand-maintained copy of the free/paid answer rather than two. */
.mk-price__foot {
  max-width: 62ch; margin: var(--space-7) auto 0; text-align: center;
  font-size: var(--text-body-sm); line-height: var(--leading-relaxed); color: var(--color-text-muted);
}
.mk-price__foot a { font-weight: var(--weight-semibold); color: var(--color-primary); white-space: nowrap; }
.mk-price__foot a:hover { text-decoration: underline; }

/* ---------- Promise band ---------------------------------------------- */
.mk-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.mk-promise {
  background: var(--color-surface-cream); border: 1px solid var(--color-border-cream);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5);
}
.mk-promise__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--wood-700); font-size: 19px; margin-bottom: var(--space-3);
}
.mk-promise__t { font-weight: var(--weight-semibold); font-size: var(--text-body-sm); color: var(--color-text-strong); margin-bottom: 6px; }
.mk-promise__d { font-size: var(--text-caption); line-height: var(--leading-relaxed); color: var(--color-text-muted); }

/* ---------- Pricing page ---------------------------------------------- */
.mk-h1--page { font-size: clamp(34px, 4.4vw, 52px); }
.mk-plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); max-width: 880px; margin: 0 auto; }
.mk-plan {
  position: relative; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-sm); padding: var(--space-7) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
/* The paid card gets emphasis, never at the free card's expense: the free tier
   is the persuasive asset on this page, so it keeps full contrast. */
.mk-plan--feature { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.mk-plan__flag {
  position: absolute; top: -12px; left: var(--space-6);
  background: var(--color-primary); color: #fff; border-radius: var(--radius-pill);
  padding: 3px 12px; font-size: var(--text-overline); font-weight: var(--weight-bold);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.mk-plan__name {
  font-family: var(--font-sans); font-weight: var(--weight-bold); font-size: var(--text-caption);
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--color-text-muted);
}
.mk-plan__price { display: flex; align-items: baseline; gap: 7px; }
.mk-plan__amt { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 46px; line-height: 1; color: var(--color-text-strong); }
.mk-plan__per { font-family: var(--font-mono); font-size: var(--text-overline); color: var(--color-text-subtle); }
.mk-plan__line { font-size: var(--text-body-sm); line-height: var(--leading-relaxed); color: var(--color-text); margin: 0; min-height: 3em; }
.mk-plan__list { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.mk-plan__list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-body-sm); line-height: 1.45; color: var(--color-text); }
/* Unicode, for the same reason as the comparison table: a plan card whose
   bullets vanish with a failed webfont looks like an empty promise. */
.mk-plan__tick { color: var(--color-success); font-size: 16px; font-weight: var(--weight-bold); flex: none; line-height: 1.35; }
.mk-plan__tick--gift { color: var(--wood-600); }
.mk-pricing-hero .mk-sec-head { margin-bottom: var(--space-8); }

/* ---------- CTA fine print -------------------------------------------- */
.mk-cta__fine {
  position: relative; margin: var(--space-5) auto 0; font-size: var(--text-caption);
  color: var(--lavender-100); opacity: 0.92;
}

/* ---------- Trimmed story band ---------------------------------------- */
.mk-story--slim .mk-story__mark img { width: 140px; }
.mk-story--slim { grid-template-columns: 0.5fr 1.5fr; }

@media (max-width: 1024px) {
  .mk-steps { grid-template-columns: 1fr; }
  .mk-promises { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mk-hero__shot img { transform: none; }
  .mk-row { grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-8); }
  .mk-row--flip .mk-row__txt { order: 0; }
  .mk-plans { grid-template-columns: 1fr; }
  .mk-story--slim { grid-template-columns: 1fr; }
  .mk-price__grid { grid-template-columns: 1fr 82px 96px; }
  .mk-price__cell { padding: 11px 10px; }
  .mk-price__cell--feat { font-size: var(--text-caption); padding-left: 16px; }
  .mk-price__group { padding: 9px 16px; }
  .mk-price__taste { padding: 2px 6px; }
  .mk-step__shot img { height: 200px; }
}
