/* ============================================================
   Public marketing / landing page.
   Foundation seeds a complete landing; the marketing slice may refine it.
   ============================================================ */

/* sticky, lightly frosted nav so the brand stays anchored as the page scrolls */
.mk-nav{ position:sticky; top:0; z-index:60; display:flex; align-items:center; gap:6px; padding:14px 32px; background:rgba(255,255,255,0.88); backdrop-filter:blur(10px); border-bottom:1px solid transparent; }
.mk-nav-inner{ display:flex; align-items:center; gap:6px; width:100%; max-width:1180px; margin:0 auto; }
.mk-nav.scrolled{ border-bottom-color:var(--rule); }
.mk-nav .brand{ font-size:15px; gap:9px; }
.mk-nav .brand .mark{ width:22px; height:22px; font-size:11px; }
.mk-nav .sp{ flex:1; }
.mk-nav a.link{ font-size:13px; color:var(--ink-2); padding:7px 11px; border-radius:6px; }
.mk-nav a.link:hover{ background:var(--surface-2); color:var(--ink); }
.mk-nav a.link.cur{ color:var(--ink); font-weight:500; }
@media (max-width:560px){ .mk-nav{ padding:12px 18px; } .mk-nav a.link{ padding:6px 8px; } }

.mk-hero{ max-width:1180px; margin:0 auto; padding:64px 32px 40px; text-align:center; }
.mk-hero .eyebrow{ justify-content:center; display:flex; }
.mk-hero h1{ font-family:var(--serif); font-size:56px; line-height:1.04; letter-spacing:-0.03em; font-weight:500; margin:14px auto 18px; max-width:760px; text-wrap:balance; }
.mk-hero h1 em{ font-style:italic; color:var(--accent-ink); }
.mk-hero p.lead{ font-size:18px; color:var(--ink-2); max-width:600px; margin:0 auto 28px; line-height:1.5; text-wrap:pretty; }
.mk-cta{ display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
@media (max-width:560px){ .mk-hero{ padding:44px 20px 32px; } .mk-hero h1{ font-size:38px; } .mk-hero p.lead{ font-size:16px; } }

.mk-screenshot{ max-width:1080px; margin:40px auto 0; padding:0 32px; }
.mk-screenshot .frame{ border:1px solid var(--rule-2); border-radius:12px; box-shadow:var(--shadow-2); outline:1px solid rgba(0,0,0,0.04); outline-offset:-1px; overflow:hidden; background:var(--surface); }
.mk-screenshot .frame .mk-shot-cell{ }
.mk-screenshot .frame:hover .mk-shot-cell{ background:var(--surface); }

.mk-section{ max-width:1080px; margin:0 auto; padding:64px 32px; }
.mk-section h2{ font-family:var(--serif); font-size:34px; font-weight:500; letter-spacing:-0.02em; text-align:center; margin:0 0 12px; }
.mk-section .sub{ text-align:center; color:var(--ink-3); font-size:15px; margin:0 auto 40px; max-width:560px; }
.mk-features{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--rule); border:1px solid var(--rule); border-radius:12px; overflow:hidden; }
@media (max-width:820px){ .mk-features{ grid-template-columns:1fr; } }
.mk-feature{ background:var(--surface); padding:28px 24px; position:relative; }
/* Hover tint crossfades via opacity (compositor) instead of background (paint). */
.mk-feature::after{ content:""; position:absolute; inset:0; background:var(--surface-2); opacity:0; transition:opacity .15s ease; pointer-events:none; z-index:-1; }
.mk-feature:hover::after{ opacity:1; }
.mk-feature .ico{ width:34px; height:34px; border-radius:8px; background:var(--accent-soft); color:var(--accent-ink); display:grid; place-items:center; margin-bottom:14px; transition:transform .2s cubic-bezier(0.2,0,0,1); }
@media (prefers-reduced-motion: no-preference){ .mk-feature:hover .ico{ transform:translateY(-1px) scale(1.04); } }
.mk-feature h3{ font-size:15px; font-weight:500; margin:0 0 6px; }
.mk-feature p{ font-size:13px; color:var(--ink-3); line-height:1.5; margin:0; text-wrap:pretty; }

.mk-cta-band{ background:var(--ink); color:#FFFFFF; border-radius:14px; padding:48px; text-align:center; max-width:1016px; margin:0 auto 64px; }
.mk-cta-band h2{ font-family:var(--serif); font-size:32px; font-weight:500; margin:0 0 10px; color:#FFFFFF; }
.mk-cta-band p{ color:var(--ink-5); font-size:15px; margin:0 0 24px; }
.mk-cta-band .btn{ background:var(--surface); color:var(--ink); border-color:var(--surface); }

.mk-foot{ border-top:1px solid var(--rule); padding:32px; color:var(--ink-4); font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.05em; }
.mk-foot-inner{ max-width:1080px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.mk-foot .mk-foot-links{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.mk-foot .mk-foot-links a{ color:var(--ink-3); padding:4px 7px; border-radius:5px; }
.mk-foot .mk-foot-links a:hover{ background:var(--surface-2); color:var(--ink-2); }
@media (max-width:560px){ .mk-foot-inner{ justify-content:center; text-align:center; } }

/* pricing */
.mk-plans{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:920px){ .mk-plans{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .mk-plans{ grid-template-columns:1fr; } }
.mk-plan{ position:relative; border:1px solid var(--rule-2); border-radius:12px; padding:24px; background:var(--surface); display:flex; flex-direction:column; gap:12px; }
/* Hover lift: crossfade the raised shadow on a compositor layer (opacity)
   instead of transitioning box-shadow (paint). Border color snaps. */
.mk-plan::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:var(--shadow-1); opacity:0; transition:opacity .2s ease; pointer-events:none; z-index:-1; }
.mk-plan:hover::after{ opacity:1; }
.mk-plan:hover{ border-color:var(--rule-3); }
.mk-plan.featured{ border-color:var(--accent-edge); box-shadow:var(--shadow-2); }
.mk-plan.featured:hover{ border-color:var(--accent); }
.mk-plan .badge{ position:absolute; top:-9px; left:24px; height:18px; padding:0 8px; display:inline-flex; align-items:center; border-radius:9px; background:var(--accent); color:#fff; font-family:var(--mono); font-size:9.5px; font-weight:500; text-transform:uppercase; letter-spacing:0.06em; box-shadow:var(--shadow-1); }
.mk-plan .name{ font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-3); }
.mk-plan .price{ font-size:32px; font-weight:600; letter-spacing:-0.02em; font-variant-numeric:tabular-nums; }
.mk-plan .price .per{ font-size:13px; color:var(--ink-4); font-weight:400; margin-left:2px; }
.mk-plan .blurb{ font-size:12.5px; color:var(--ink-3); line-height:1.45; margin:-2px 0 2px; text-wrap:pretty; }
.mk-plan ul{ list-style:none; margin:0 0 4px; padding:0; display:flex; flex-direction:column; gap:8px; font-size:13px; color:var(--ink-2); flex:1; }
.mk-plan ul li{ display:flex; gap:8px; align-items:flex-start; }
.mk-plan ul li::before{ content:'✓'; color:var(--ok-ink); font-weight:600; flex-shrink:0; }
.mk-plan .btn{ width:100%; justify-content:center; margin-top:auto; }

/* ============================================================
   Polish: focus-visible, tactile press, and scroll-reveal motion.
   Scoped to .mk-* so the FROZEN design.css .btn rules stay untouched.
   ============================================================ */

/* Keyboard focus rings — visible only for keyboard users, never on click. */
.mk-nav a:focus-visible,
.mk-foot a:focus-visible,
.mk-section .btn:focus-visible,
.mk-hero .btn:focus-visible,
.mk-cta-band .btn:focus-visible,
.mk-plan .btn:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:6px;
}

/* Tactile press feedback on the marketing CTAs (compositor-only transform). */
@media (prefers-reduced-motion: no-preference){
  .mk-hero .btn,
  .mk-cta-band .btn,
  .mk-plan .btn,
  .mk-section > .mk-cta .btn{ transition:transform .08s ease; }
  .mk-hero .btn:active,
  .mk-cta-band .btn:active,
  .mk-plan .btn:active,
  .mk-section > .mk-cta .btn:active{ transform:scale(0.96); }
}

/* Scroll reveal — progressive enhancement.
   Default (no-JS / reduced-motion): everything is fully visible.
   The Stimulus controller adds `.mk-reveal-ready` to opt in to the
   start-hidden-then-reveal behaviour, and `.mk-in` once each element
   scrolls into view. Transform + opacity only. */
@media (prefers-reduced-motion: no-preference){
  .mk-reveal-ready [data-marketing-target="reveal"]{
    opacity:0;
    transform:translateY(14px);
    transition:opacity .55s cubic-bezier(0.2,0,0,1), transform .55s cubic-bezier(0.2,0,0,1);
    transition-delay:var(--reveal-delay, 0ms);
  }
  .mk-reveal-ready [data-marketing-target="reveal"].mk-in{
    opacity:1;
    transform:none;
  }
}
