/* Marketing UI kit — near-black surface · operforma.com
   Tokens loaded via /assets/tokens.css (already linked in pages).
   Source: .claude/skills/operforma-design/ui_kits/marketing/marketing.css */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* Touch hardening (iOS Safari / Android Chrome): no tap-flash, no 300ms delay. */
a, button, summary, .mk-btn, .mk-hero-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── SKIP LINK (a11y) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--indigo);
  color: var(--white);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── VISUALLY HIDDEN (a11y) ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── HEADER ── */
.mk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-m);
  /* Respect the notch / rounded corners on iOS/Android landscape. */
  padding-left: max(var(--space-m), env(safe-area-inset-left));
  padding-right: max(var(--space-m), env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.mk-top--scrolled { border-bottom-color: var(--line-dark); }
.mk-top-right { display: flex; align-items: center; gap: var(--space-m); }
.mk-top-cta {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.mk-top--cta .mk-top-cta { opacity: 1; transform: none; pointer-events: auto; }
.mk-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: var(--track-wordmark);
  text-transform: lowercase;
  color: var(--white);
  cursor: pointer;
}
.mk-wordmark svg { display: block; opacity: 0.9; transition: opacity .15s ease; }
.mk-wordmark:hover svg { opacity: 1; }
.mk-lang {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.mk-lang-active { color: var(--white); }
.mk-lang-sep    { color: var(--grey-mid); }
.mk-lang-link   { color: var(--grey); cursor: pointer; opacity: 0.7; transition: opacity .15s ease; }
.mk-lang-link:hover { color: var(--white); opacity: 1; }

main { flex: 1; }

/* ── SHARED SECTION ── */
.mk-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-m);
  border-top: 1px solid var(--line-dark);
}
.mk-section--hero { border-top: none; padding-top: var(--space-xl); padding-bottom: var(--space-l); }

/* ── EYEBROW ── */
.mk-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: var(--space-m);
  display: inline-block;
}

/* ── Coordinate eyebrow (drafting-register hairline lead-in, mirrors como-funciona) ── */
.mk-eyebrow--coord {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}
.mk-eyebrow--coord::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Closing CTA */
.mk-section--closing { padding-top: var(--space-l); }
.mk-closing-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 22ch;
  margin-bottom: var(--space-l);
  text-wrap: pretty;
}

/* ── HERO ── */
.mk-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 22ch;
  margin-bottom: var(--space-m);
  text-wrap: balance;
}
.mk-h1 em { color: var(--indigo-soft); font-style: normal; font-weight: 300; }
.mk-subhead {
  font-size: 1.05rem;
  color: var(--grey-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-l);
  letter-spacing: -0.005em;
}

/* ── BUTTON ── */
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  padding: 18px var(--space-m);
  background: var(--indigo);
  color: var(--white);
  border: 1px solid var(--indigo);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.mk-btn:hover { background: var(--indigo-soft); border-color: var(--indigo-soft); color: var(--black); transform: translateY(-1px); }
.mk-btn-arrow { transition: transform .18s ease; }
.mk-btn:hover .mk-btn-arrow { transform: translateX(4px); }
.mk-btn:focus-visible,
.mk-lang-link:focus-visible,
.mk-lang-active:focus-visible {
  outline: 2px solid var(--indigo-soft);
  outline-offset: 3px;
}
.mk-btn--sm  { font-size: 10px; padding: 12px 20px; }

/* ── HERO ACTIONS (primary button + stacked secondary link) ── */
.mk-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.mk-hero-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
  text-underline-offset: 4px;
}
.mk-hero-link:hover { text-decoration: underline; }
.mk-hero-link:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; }
.mk-hero-note {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--grey-mid);
  margin-top: -4px;
}
.mk-section--closing .mk-hero-note { margin-top: var(--space-s); }

/* ── DEFINITION (plain-language gloss right under the hero) ── */
.mk-define {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 820px;
  text-wrap: pretty;
}
.mk-define-mut { color: var(--grey-mid); }

/* ── PROSE ── */
.mk-prose p {
  font-size: 1rem;
  color: var(--grey-mid);
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: var(--space-m);
  letter-spacing: -0.005em;
}
.mk-prose p:first-child {
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.7;
  font-weight: 300;
  letter-spacing: -0.015em;
  max-width: 760px;
}
.mk-prose p:last-child { margin-bottom: 0; }
.mk-prose strong { color: var(--white); font-weight: 400; }

/* ── HOW STEPS ── */
.mk-how {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 720px;
}
.mk-how li { display: flex; gap: 24px; align-items: baseline; }
.mk-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: var(--indigo-soft);
  flex-shrink: 0;
  min-width: 28px;
}
.mk-step-body { font-size: 1rem; line-height: 1.65; color: var(--grey-mid); }
.mk-step-body strong { display: block; color: var(--white); font-weight: 400; margin-bottom: 6px; letter-spacing: -0.01em; font-size: 1.05rem; }
.mk-step-body em { font-style: normal; color: var(--indigo-soft); font-weight: 400; }

/* ── DIAGNOSIS REVEAL (what the RAD shows) ── */
.mk-reveal-lead {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: -0.015em;
  max-width: 720px;
  margin-bottom: var(--space-m);
}
.mk-reveal-lead strong { color: var(--white); font-weight: 400; }
.mk-reveal { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.mk-reveal li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-s);
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.mk-reveal li:last-child { border-bottom: 1px solid var(--line-dark); }
.mk-reveal-mark { width: 24px; height: 1px; background: var(--indigo-soft); margin-top: 0.85em; }
.mk-reveal-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--white);
  text-wrap: pretty;
}

/* ── FLOW (connected step rail) ── */
.mk-flow-intro {
  font-size: 1rem;
  color: var(--grey-mid);
  max-width: 620px;
  line-height: 1.7;
  margin: calc(-1 * var(--space-xs)) 0 var(--space-l);
  letter-spacing: -0.005em;
}
.mk-flow { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.mk-flow > li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-m);
  padding-bottom: 44px;
}
.mk-flow > li:last-child { padding-bottom: 0; }
.mk-flow > li::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--line-dark);
}
.mk-flow > li:last-child::before { display: none; }
.mk-flow-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--indigo-soft);
  background: var(--ink);
}
.mk-flow > li:last-child .mk-flow-num {
  border-color: var(--indigo-soft);
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 0 22px -4px rgba(161, 167, 208, 0.55);
}
/* Final node — premium "seal": filled disc + detached halo ring */
.mk-flow > li:last-child .mk-flow-num::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(161, 167, 208, 0.45);
}

/* First node — "you are here" beacon */
.mk-flow > li:first-child .mk-flow-num {
  border-color: var(--indigo-soft);
  color: var(--indigo-soft);
}
.mk-flow > li:first-child .mk-flow-num::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--indigo-soft);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .mk-flow > li:first-child .mk-flow-num::after {
    animation: mk-beacon 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  }
}
@keyframes mk-beacon {
  0%        { transform: scale(1);   opacity: 0.6; }
  70%, 100% { transform: scale(1.9); opacity: 0;   }
}

/* Stage tags on the start / finish nodes */
.mk-flow-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 8px;
}
.mk-flow-tag--final { color: var(--indigo-soft); }
.mk-flow-body { padding-top: 8px; }
.mk-flow-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}
.mk-flow-desc {
  font-size: 0.98rem;
  color: var(--grey-mid);
  line-height: 1.65;
  max-width: 52ch;
}

/* ── NEXT STEPS (paired nav cards after the steps list) ── */
.mk-nextsteps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-s);
  max-width: 720px;
  margin-top: var(--space-l);
}
.mk-nextcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--space-m);
  border: 1px solid var(--line-dark);
  color: var(--white);
  transition: border-color .15s ease, transform .15s ease;
}
.mk-nextcard:hover { border-color: var(--indigo-soft); transform: translateY(-2px); }
.mk-nextcard:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; }
.mk-nextcard-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
}
.mk-nextcard-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
}
.mk-nextcard-arrow {
  margin-top: auto;
  font-family: var(--font-mono);
  color: var(--indigo-soft);
  transition: transform .15s ease;
}
.mk-nextcard:hover .mk-nextcard-arrow { transform: translateX(4px); }
.mk-nextsteps-label { margin-top: var(--space-l); margin-bottom: var(--space-s); }
.mk-nextsteps-label + .mk-nextsteps { margin-top: 0; }

/* ── WHO ── */
.mk-who {
  list-style: none; padding: 0; margin-top: var(--space-l);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-l);
  max-width: 820px;
}
.mk-who li {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--white);
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
}
.mk-who-note {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--grey-mid);
  margin-top: var(--space-m);
}
.mk-who-note a { color: var(--indigo-soft); text-underline-offset: 3px; }
.mk-who-note a:hover { text-decoration: underline; }

/* ── SECTION H2 (eyebrow-style) ── */
.mk-section h2.mk-eyebrow {
  font-size: 11px;
  letter-spacing: var(--track-eyebrow);
  line-height: 1.6;
  max-width: none;
  font-weight: 400;
}

/* ── FAQ ── */
.mk-faq { max-width: 820px; margin-top: var(--space-m); }
.mk-faq-item { border-top: 1px solid var(--line-dark); padding: var(--space-s) 0; }
.mk-faq-item:last-child { border-bottom: 1px solid var(--line-dark); }
.mk-faq-summary {
  font-size: 0.95rem;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding: 10px 0;
}
.mk-faq-summary::-webkit-details-marker { display: none; }
.mk-faq-summary::-moz-list-bullet { display: none; }
.mk-faq-summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--indigo-soft);
  flex-shrink: 0;
}
.mk-faq-item[open] .mk-faq-summary::after { content: '−'; }
.mk-faq-answer {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.75;
  margin-top: var(--space-s);
  max-width: 580px;
}
.mk-faq-answer a { color: var(--indigo-soft); text-underline-offset: 3px; }

/* ── CTA / SCARCITY ── */
.mk-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: var(--space-m);
  display: inline-block;
}
.mk-cta-scarcity {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: var(--grey-mid);
  margin-top: var(--space-m);
}

/* ── FOOTER (editorial, white-on-ink) ──
   Manifesto line · quiet diagnostic link · full-width nav rows · baseline.
   Muted text uses --grey-mid (#B8B2A8 = 8.4:1 on ink); never an opacity multiplier
   that would push it below AA. */
.mk-footer {
  display: flex;
  flex-direction: column;
  padding: var(--space-l) var(--space-m);
  padding-left: max(var(--space-m), env(safe-area-inset-left));
  padding-right: max(var(--space-m), env(safe-area-inset-right));
  border-top: 1px solid var(--line-dark);
}
.mk-footer-manifesto {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 22ch;
  text-wrap: balance;
}
.mk-footer-manifesto em { color: var(--indigo-soft); font-style: normal; font-weight: 300; }
.mk-footer-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-m);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--indigo-soft);
}
.mk-footer-cta-arrow { transition: transform .18s ease; }
.mk-footer-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.mk-footer-cta:hover .mk-footer-cta-arrow { transform: translateX(4px); }
.mk-footer-cta:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; }

.mk-footer-nav {
  margin-top: var(--space-l);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}
/* De-duplicated footer leads with the nav — no manifesto/CTA above it. */
.mk-footer-nav:first-child { margin-top: 0; border-top: none; }
.mk-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: color .15s ease;
}
.mk-footer-arrow {
  font-family: var(--font-mono);
  color: var(--indigo-soft);
  transition: transform .18s ease;
}
.mk-footer-row:hover { color: var(--indigo-soft); }
.mk-footer-row:hover .mk-footer-arrow { transform: translateX(4px); }
.mk-footer-row:focus-visible { outline: 2px solid var(--indigo-soft); outline-offset: 3px; }

.mk-footer-base {
  margin-top: var(--space-l);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
}
.mk-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--grey-mid);
}
.mk-footer-mark svg { opacity: 0.6; }
.mk-footer-fine {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--grey-mid);
}

/* Tablet band (≤960, the --bp-md token): reclaim section padding and collapse the
   paired multi-column grids to a single column before they get cramped. */
@media (max-width: 960px) {
  .mk-section { padding: var(--space-l) var(--space-m); }
  .mk-nextsteps { grid-template-columns: 1fr; }
  .mk-who { grid-template-columns: 1fr; gap: 0; }
}

/* Phone band (≤600): compact chrome; the language switcher is desktop-only
   (a CTA beats a rarely-used toggle on the conversion-first mobile surface). */
@media (max-width: 600px) {
  .mk-top {
    padding: var(--space-s);
    padding-left: max(var(--space-s), env(safe-area-inset-left));
    padding-right: max(var(--space-s), env(safe-area-inset-right));
  }
  .mk-top-right { gap: var(--space-s); }
  .mk-lang { display: none; }
  .mk-top-cta { padding: 10px 14px; }
  .mk-section { padding: var(--space-l) var(--space-s); }
  .mk-eyebrow--coord::before { width: 24px; }
  .mk-footer {
    padding: var(--space-l) var(--space-s) var(--space-m);
    padding-left: max(var(--space-s), env(safe-area-inset-left));
    padding-right: max(var(--space-s), env(safe-area-inset-right));
  }
  .mk-footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
