/* ─── marketing.css — Editorial apothecary shared patterns ──────────────
 * Loaded on every marketing page after the page-specific stylesheet.
 * Adds: atmospheric cloud-grass treatments, italic accent typography
 * across all h1s, refined eyebrows, card lift hovers, grain textures.
 * Non-destructive — pages keep their dedicated layouts but adopt the
 * brand's editorial polish.
 * ──────────────────────────────────────────────────────────────────── */

:root {
  --mk-teal-deep: var(--teal-deep, #086E66);
  --mk-teal: var(--teal, #0F948B);
  --mk-ink: #15161A;
  --mk-muted: #4A5071;
  --mk-display: var(--display);
  --mk-serif: var(--serif, "Domine", "Georgia", serif);
  --mk-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ── Italic accent — universal pattern across marketing pages ──────── */
.brand-italic,
main h1 em,
main h2 em {
  font-style: italic;
  color: var(--mk-teal-deep);
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* ── Editorial cream paper hero — replaces flat hero backgrounds ──── */
/* iter63: cloud-grass atmosphere reserved for the homepage only.
   Sub-pages get a quiet warm-cream paper band with a hairline rule. */
.mk-atmos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFAF6 0%, #F5F2EA 60%, #FAFAF6 100%) !important;
  border-bottom: 1px solid rgba(14, 30, 30, 0.06) !important;
  padding-top: clamp(120px, 14vh, 160px) !important;
  padding-bottom: clamp(48px, 6vh, 80px) !important;
}

/* ── Editorial eyebrow — universal small uppercase chip ───────────── */
.mk-eyebrow {
  display: inline-block;
  font-family: var(--mk-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-teal-deep);
  margin-bottom: 16px;
}

/* ── Editorial section — for body sections that follow the brand-hero ─ */
.mk-section {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
}
.mk-section .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}
.mk-section h2 {
  font-family: var(--mk-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw + 0.4rem, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--mk-ink);
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 22ch;
}
.mk-section h2 em {
  font-style: italic;
  color: var(--mk-teal-deep);
  font-weight: 500;
}
.mk-section .lede {
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.55;
  color: var(--mk-muted);
  max-width: 60ch;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.mk-section.is-centered .lede,
.mk-section.is-centered h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Editorial card — generic refined card pattern ────────────────── */
.mk-card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(20, 21, 26, 0.06), 0 12px 40px -10px rgba(20, 21, 26, 0.10);
  transition: transform 280ms cubic-bezier(.2, .9, .3, 1), box-shadow 280ms ease;
  overflow: hidden;
}
.mk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--mk-grain);
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.mk-card > * { position: relative; z-index: 1; }
.mk-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(20, 21, 26, 0.06), 0 20px 50px -10px rgba(20, 21, 26, 0.18);
}
.mk-card .mk-card-num {
  font-family: var(--mk-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mk-teal-deep);
  opacity: 0.55;
  margin-bottom: 12px;
}
.mk-card h3 {
  font-family: var(--mk-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--mk-ink);
}
.mk-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mk-muted);
  margin: 0;
}

/* ── Editorial FAQ accordion (reusable) ───────────────────────────── */
.mk-faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mk-faq details {
  border-bottom: 1px solid rgba(20, 21, 26, 0.10);
  padding: 22px 0;
}
.mk-faq details:last-of-type { border-bottom: 0; }
.mk-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mk-display);
  font-weight: 600;
  font-size: clamp(17px, 1.2vw, 20px);
  color: var(--mk-ink);
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 148, 139, 0.10);
  color: var(--mk-teal-deep);
  font-size: 18px;
  font-weight: 500;
  transition: transform 220ms cubic-bezier(.2, .9, .3, 1), background 220ms ease;
}
.mk-faq details[open] summary::after {
  content: "−";
  transform: rotate(360deg);
  background: var(--mk-teal-deep);
  color: #fff;
}
.mk-faq details p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mk-muted);
  max-width: 64ch;
}

/* ── Page-hero overrides — promote to brand typography ──────────── */
main .page-hero .headline-section,
main .page-hero h1.headline-section {
  font-family: var(--mk-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw + 0.4rem, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--mk-ink);
  text-wrap: balance;
}
main .page-hero .headline-section em {
  font-style: italic;
  color: var(--mk-teal-deep);
  font-weight: 500;
}

/* ── Refined link styling across marketing body ───────────────────── */
.mk-link {
  color: var(--mk-teal-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(8, 110, 102, 0.30);
  transition: border-color 160ms ease, color 160ms ease;
}
.mk-link:hover {
  color: var(--mk-teal);
  border-bottom-color: var(--mk-teal);
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mk-card { transition: none; }
}
