/* ChekEasy marketing — tokens + motion (see DESIGN.md) */

:root {
  --mk-ground: #f2f5f8;
  --mk-ink: #14324a;
  --mk-muted: #5b6c7c;
  --mk-line: rgba(20, 50, 74, 0.12);
  --mk-accent: #e89b2d;
  --mk-sea: #1f7a8c;
  --mk-sea-deep: #176574;
  --mk-paper: #ffffff;
  --mk-curtain: #0e2436;
  --mk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mk-shadow: 0 12px 40px rgba(20, 50, 74, 0.08);
  --mk-shell-max: 72rem;
  --mk-gutter: 1.5rem;
  --font-display: "Funnel Display", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

@media (min-width: 1024px) {
  :root {
    --mk-gutter: 2.5rem;
  }
}

/* Shared content box — header, hero, sections, footer all align here */
.mk-shell,
.mk-wrap,
.mk-header-inner,
.mk-hero-grid,
.mk-footer-inner {
  width: 100%;
  max-width: var(--mk-shell-max);
  margin-inline: auto;
  padding-inline: var(--mk-gutter);
  box-sizing: border-box;
}

.mk-body {
  background: var(--mk-ground);
  color: var(--mk-ink);
  font-family: var(--font-body);
}

.mk-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.mk-underline {
  position: relative;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mk-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--mk-accent);
  border-radius: 999px;
  transform: scaleX(0.92) rotate(-0.6deg);
  transform-origin: left center;
  z-index: -1;
  opacity: 0.95;
}

/* Skip link */
.mk-skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--mk-ink);
  color: #fff;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.mk-skip:focus {
  top: 1rem;
}

/* Header */
.mk-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 30;
}

.mk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.mk-nav a:not(.mk-btn) {
  color: var(--mk-muted);
  text-decoration: none;
  transition: color 0.25s var(--mk-ease), transform 0.35s var(--mk-ease);
}

@media (hover: hover) {
  .mk-nav a:not(.mk-btn):hover {
    color: var(--mk-ink);
  }
}

.mk-nav a:not(.mk-btn):focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.mk-nav a.mk-btn-primary,
.mk-nav a.mk-btn-primary:hover {
  color: #fff;
}

/* Hide header trial CTA on small screens (.mk-btn display beats Tailwind `hidden`) */
@media (max-width: 639px) {
  .mk-nav a.mk-btn-ghost {
    display: none;
  }
}

/* Buttons */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--mk-ease), background-color 0.35s var(--mk-ease),
    border-color 0.35s var(--mk-ease), color 0.35s var(--mk-ease), box-shadow 0.35s var(--mk-ease);
}

.mk-btn:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 3px;
}

.mk-btn-primary {
  background: var(--mk-sea);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31, 122, 140, 0.28);
}

@media (hover: hover) {
  .mk-btn-primary:hover {
    background: var(--mk-sea-deep);
    transform: translateY(-2px);
  }
}

.mk-btn-primary:active {
  transform: scale(0.97);
}

.mk-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--mk-line);
  color: var(--mk-ink);
  backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .mk-btn-ghost:hover {
    background: #fff;
    transform: translateY(-2px);
  }
}

.mk-btn-ghost:active {
  transform: scale(0.97);
}

.mk-btn-light {
  background: #fff;
  color: var(--mk-curtain);
}

@media (hover: hover) {
  .mk-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--mk-shadow);
  }
}

.mk-btn .mk-btn-label {
  display: inline-block;
  transition: transform 0.35s var(--mk-ease);
}

@media (hover: hover) {
  .mk-btn:hover .mk-btn-label {
    transform: translateX(3px);
  }
}

/* Hero */
.mk-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(31, 122, 140, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(232, 155, 45, 0.16), transparent 50%),
    linear-gradient(168deg, #f7f9fb 0%, var(--mk-ground) 48%, #e8eef4 100%);
}

.mk-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: 100svh;
  padding-block: 7rem 3.5rem;
}

@media (min-width: 1024px) {
  .mk-hero-grid {
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 7.5rem 5rem;
  }
}

.mk-brand-lockup {
  margin-top: 0.85rem;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--mk-ink);
}

.mk-hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  max-width: 16ch;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.mk-hero-lead {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--mk-muted);
}

.mk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mk-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--mk-muted);
  list-style: none;
  padding: 0;
}

.mk-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mk-hero-meta i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--mk-accent);
}

/* Hero product mockup — breaks past the shared shell toward the viewport edge.
   Keep native 1672×941 ratio: flex stretch must not distort the <img>. */
.mk-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.mk-hero-mockup {
  display: block;
  width: min(100%, 36rem);
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  max-width: none;
  flex: 0 0 auto;
  align-self: center;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .mk-hero-visual {
    justify-content: flex-end;
    align-self: center;
    /* Bleed from shell padding out to the right viewport edge */
    width: calc(100% + var(--mk-gutter) + max(0px, (100vw - var(--mk-shell-max)) / 2));
    margin-right: calc(-1 * (var(--mk-gutter) + max(0px, (100vw - var(--mk-shell-max)) / 2)));
  }

  .mk-hero-mockup {
    width: min(88vw, 74rem);
    transform: translateX(34%);
  }
}

@media (min-width: 1400px) {
  .mk-hero-mockup {
    width: min(70vw, 70rem);
    transform: translateX(25%);
  }
}

.mk-circle {
  position: relative;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #dfe8f0 0%, #c5d4e2 100%);
  box-shadow: var(--mk-shadow);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mk-circle {
    width: min(100%, 26rem);
  }
}

.mk-circle-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.mk-circle-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.mk-circle-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--mk-ink);
  opacity: 0.7;
  max-width: 12rem;
}

.mk-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  background: var(--mk-paper);
  box-shadow: var(--mk-shadow);
  border: 1px solid var(--mk-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mk-ink);
  will-change: transform;
}

.mk-chip-desk {
  left: 4%;
  top: 18%;
}

.mk-chip-phone {
  right: 2%;
  bottom: 16%;
}

.mk-chip-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
}

.mk-chip-desk .mk-chip-dot {
  background: var(--mk-ink);
}

.mk-chip-phone .mk-chip-dot {
  background: var(--mk-sea);
}

.mk-chip-doc {
  left: 42%;
  top: 46%;
  padding: 0.55rem 0.75rem;
  background: var(--mk-accent);
  color: #1a2a14;
  border: none;
  z-index: 2;
}

/* Sections — vertical rhythm only; horizontal box comes from .mk-wrap */
.mk-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  padding-inline: 0;
}

.mk-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-sea);
}

.mk-section h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  max-width: 16ch;
}

.mk-section-lead {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--mk-muted);
}

.mk-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mk-split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .mk-split-flip .mk-split-media {
    order: -1;
  }
}

.mk-media-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  background:
    linear-gradient(160deg, rgba(31, 122, 140, 0.08), transparent 55%),
    linear-gradient(20deg, #e4ebf2, #d5e0ea);
  border: 1px dashed rgba(20, 50, 74, 0.18);
  overflow: hidden;
  box-shadow: var(--mk-shadow);
}

.mk-media-slot-tall {
  aspect-ratio: 3 / 4;
  max-height: 28rem;
  margin-inline: auto;
  width: min(100%, 22rem);
}

.mk-media-slot-fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.mk-media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-media-slot-illustration {
  aspect-ratio: 1448 / 1086;
  background: transparent;
  border: none;
  box-shadow: none;
}

.mk-media-slot-illustration img {
  object-fit: contain;
}

.mk-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.mk-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--mk-ink);
}

.mk-list-mark {
  margin-top: 0.2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.12);
  color: var(--mk-sea);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Steps — process spine, not equal cards */
.mk-steps {
  margin-top: 3rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mk-line);
}

@media (min-width: 768px) {
  .mk-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mk-step {
  padding: 1.75rem 0 0;
  border-bottom: 1px solid var(--mk-line);
}

@media (min-width: 768px) {
  .mk-step {
    padding: 1.75rem 1.5rem 0 0;
    border-bottom: none;
    border-right: 1px solid var(--mk-line);
  }

  .mk-step:last-child {
    border-right: none;
    padding-right: 0;
  }

  .mk-step:not(:first-child) {
    padding-left: 1.5rem;
  }
}

.mk-step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mk-accent);
  line-height: 1;
}

.mk-step h3 {
  margin-top: 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.mk-step p {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mk-muted);
  max-width: 28ch;
}

.mk-step-slot {
  margin-top: 1.25rem;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  border: 1px dashed rgba(20, 50, 74, 0.16);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

/* Pricing */
.mk-pricing {
  background: #e8eef4;
}

.mk-plans {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 800px) {
  .mk-plans {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    row-gap: 0.55rem;
    /* name | price | desc | 6 shared features | 2 premium extras | CTA */
    grid-template-rows: auto auto auto repeat(6, auto) auto auto auto;
  }

  .mk-plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 12;
    align-items: start;
  }
}

.mk-plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--mk-paper);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-shadow);
}

.mk-plan-featured {
  border-color: rgba(31, 122, 140, 0.35);
  box-shadow: 0 16px 48px rgba(31, 122, 140, 0.14);
  position: relative;
}

.mk-plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mk-sea);
  background: rgba(31, 122, 140, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.mk-plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mk-sea);
}

.mk-plan-price {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mk-plan-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mk-muted);
  letter-spacing: 0;
}

.mk-plan-desc {
  margin-top: 0.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
  color: var(--mk-muted);
  line-height: 1.45;
  min-height: 2.9em;
}

.mk-plan-features,
.mk-plan-extras {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.mk-plan-features {
  margin-top: 0;
}

.mk-plan-extras {
  margin-top: 0.65rem;
}

.mk-plan li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--mk-ink);
}

.mk-plan li::before {
  content: "";
  margin-top: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--mk-sea);
}

.mk-plan .mk-btn {
  margin-top: 1.5rem;
  width: 100%;
  align-self: stretch;
}

@media (min-width: 800px) {
  .mk-plan-features {
    display: contents;
  }

  .mk-plan-extras:not(:empty) {
    display: contents;
  }

  .mk-plan-extras:empty {
    display: block;
    grid-row: span 2;
    margin: 0;
    min-height: 0;
  }

  .mk-plan-extras {
    margin-top: 0;
  }

  .mk-plan .mk-btn {
    margin-top: 1.5rem;
    align-self: end;
  }
}

.mk-compare {
  margin-top: 2rem;
  overflow-x: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--mk-line);
  background: var(--mk-paper);
}

.mk-compare table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  table-layout: fixed;
}

.mk-compare th,
.mk-compare td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--mk-line);
  vertical-align: middle;
}

.mk-compare th:first-child,
.mk-compare td:first-child {
  width: 48%;
}

.mk-compare th:not(:first-child),
.mk-compare td:not(:first-child) {
  width: 26%;
}

.mk-compare th {
  font-weight: 600;
  background: rgba(20, 50, 74, 0.03);
}

.mk-compare tr:last-child td {
  border-bottom: none;
}

.mk-compare td:not(:first-child),
.mk-compare th:not(:first-child) {
  text-align: center;
}

.mk-yes {
  color: var(--mk-sea);
  font-weight: 700;
}

.mk-no {
  color: var(--mk-muted);
}

/* Finale */
.mk-finale {
  background: var(--mk-curtain);
  color: #e8eef4;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.mk-finale-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mk-finale-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }
}

.mk-finale-copy {
  text-align: center;
}

@media (min-width: 900px) {
  .mk-finale-copy {
    text-align: left;
  }
}

.mk-finale h2 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: #fff;
}

@media (min-width: 900px) {
  .mk-finale h2 {
    margin-inline: 0;
  }
}

.mk-finale p {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: rgba(232, 238, 244, 0.72);
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .mk-finale p {
    margin-inline: 0;
  }
}

.mk-finale .mk-btn {
  margin-top: 1.75rem;
}

.mk-finale-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mk-finale-illustration {
  display: block;
  width: min(100%, 36rem);
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
}

@media (min-width: 900px) {
  .mk-finale-illustration {
    width: 100%;
    max-width: 40rem;
  }
}

/* Footer */
.mk-footer {
  background: var(--mk-curtain);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 244, 0.55);
  font-size: 0.8125rem;
}

.mk-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 1.75rem;
}

.mk-footer-legal {
  display: grid;
  gap: 0.2rem;
  line-height: 1.45;
}

.mk-footer-legal strong {
  color: rgba(232, 238, 244, 0.85);
  font-weight: 600;
}

.mk-footer a {
  color: rgba(232, 238, 244, 0.65);
  text-decoration: none;
}

@media (hover: hover) {
  .mk-footer a:hover {
    color: #fff;
  }
}

.mk-footer a:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reveal + idle (Stimulus adds .is-pending only when motion is allowed) */
.mk-reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}

.mk-reveal {
  transition: opacity 0.8s var(--mk-ease), transform 0.8s var(--mk-ease);
}

.mk-reveal.is-in {
  opacity: 1;
  transform: none;
}

.mk-reveal-delay-1 {
  transition-delay: 0.06s;
}
.mk-reveal-delay-2 {
  transition-delay: 0.12s;
}
.mk-reveal-delay-3 {
  transition-delay: 0.18s;
}

@keyframes mk-hand-off {
  0%,
  100% {
    transform: translate(-8px, 4px) rotate(-4deg);
  }
  50% {
    transform: translate(10px, -6px) rotate(3deg);
  }
}

.mk-chip-doc.is-idle {
  animation: mk-hand-off 5.5s var(--mk-ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mk-reveal.is-pending {
    opacity: 1;
    transform: none;
  }

  .mk-reveal {
    transition: none;
  }

  .mk-chip-doc.is-idle {
    animation: none;
  }

  .mk-btn,
  .mk-btn .mk-btn-label,
  .mk-nav a {
    transition: none;
  }

  @media (hover: hover) {
    .mk-btn:hover,
    .mk-btn:hover .mk-btn-label {
      transform: none;
    }
  }
}

::selection {
  background: rgba(232, 155, 45, 0.35);
  color: var(--mk-ink);
}
