/* Platform landing and pricing pages. Calm and premium: one gradient,
used sparingly,
no glow. */
:root {
  --mk-bg: #f7f6fb;
  --mk-surface: #ffffff;
  --mk-ink: #12142b;
  --mk-ink-2: #474b68;
  --mk-ink-3: #6e7290;
  --mk-line: #e4e3ef;
  --mk-accent: #4b2fd6;
  --mk-accent-soft: #efecfd;
  --mk-gradient: linear-gradient(135deg, #20245a 0%, #4b2fd6 55%, #b44fa6 100%);
  --mk-bubble: #f0eff7;
  --mk-shadow: 0 1px 2px rgba(18, 20, 43, 0.05), 0 18px 40px -24px rgba(32, 36, 90, 0.28);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mk-bg: #0d0e1d;
    --mk-surface: #15172b;
    --mk-ink: #eceefa;
    --mk-ink-2: #b4b7d1;
    --mk-ink-3: #8e92ae;
    --mk-line: #272a4a;
    --mk-accent: #a493ff;
    --mk-accent-soft: #221f47;
    --mk-bubble: #1f2240;
    --mk-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body.mk {
  margin: 0;
  background: var(--mk-bg);
  color: var(--mk-ink);
  font:
    17px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mk img {
  max-width: 100%;
  height: auto;
}

.mk a {
  color: inherit;
}

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

.mk h1,
.mk h2,
.mk h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.mk-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mk-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--mk-ink);
  color: var(--mk-bg) !important;
  z-index: 10;
}

.mk-skip:focus {
  top: 12px;
}

.mk-nav,
.mk main > section,
.mk-foot {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ nav */

.mk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.mk-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.08rem;
}

.mk-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.mk-nav nav a:not(.mk-btn) {
  text-decoration: none;
  color: var(--mk-ink-2);
}

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

/* -------------------------------------------------------------- buttons */

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--mk-ink);
  color: var(--mk-bg) !important;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.mk-btn:hover {
  transform: translateY(-1px);
}

.mk-btn--small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.mk-btn--quiet {
  background: transparent;
  color: var(--mk-ink) !important;
  box-shadow: inset 0 0 0 1px var(--mk-line);
}

.mk-btn--light {
  background: #fff;
  color: #20245a !important;
}

.mk-link {
  font-weight: 600;
  color: var(--mk-accent) !important;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------- typography */

.mk-eyebrow {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--mk-accent);
}

.mk-lede {
  font-size: 1.15rem;
  color: var(--mk-ink-2);
  max-width: 50ch;
  margin: 20px 0 0;
}

.mk-fine {
  color: var(--mk-ink-3);
  font-size: 0.88rem;
  margin: 14px 0 0;
}

.mk-badge {
  font-size: 0.75rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mk-accent-soft);
  color: var(--mk-accent);
}

/* ----------------------------------------------------------------- hero */

.mk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-block: 56px 96px;
}

.mk-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.mk-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  margin: 32px 0 0;
}

.mk-hero__art {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
  padding-top: 112px; /* the mascot rests on the card's top edge without covering its header */
}

.mk-hero__mascot {
  position: absolute;
  top: 0;
  right: -18px;
  width: 132px;
  z-index: 1;
}

/* The one featured element: a calm conversation card. */
.mk-convo {
  position: relative;
  margin: 0;
  border-radius: 28px;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  padding: 18px;
  box-shadow: var(--mk-shadow);
}

.mk-convo::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  margin-inline: 28px;
  border-radius: 0 0 4px 4px;
  background: var(--mk-gradient);
}

.mk-convo__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-convo__who {
  display: grid;
  min-width: 0;
}

.mk-convo__who strong {
  font-size: 0.98rem;
}

.mk-convo__ai {
  color: var(--mk-ink-3);
  font-size: 0.8rem;
}

.mk-convo__via {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mk-accent-soft);
  color: var(--mk-accent);
  white-space: nowrap;
}

.mk-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #d9cfbf;
  color: #2b2418;
  font-weight: 700;
}

.mk-convo__thread {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.mk-msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 88%;
}

.mk-msg--agent {
  background: var(--mk-bubble);
  border-bottom-left-radius: 6px;
}

.mk-msg--you {
  justify-self: end;
  background: var(--mk-accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.mk-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--mk-line);
}

.mk-card strong {
  display: block;
  font-size: 0.9rem;
}

.mk-card__sub {
  color: var(--mk-ink-3);
  font-size: 0.8rem;
}

.mk-card__cta {
  background: var(--mk-ink);
  color: var(--mk-bg);
  font-weight: 650;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference) {
  .mk-convo__thread > * {
    opacity: 0;
    transform: translateY(6px);
    animation: mk-in 0.5s ease forwards;
  }

  .mk-convo__thread > :nth-child(1) {
    animation-delay: 0.3s;
  }

  .mk-convo__thread > :nth-child(2) {
    animation-delay: 1.2s;
  }

  .mk-convo__thread > :nth-child(3) {
    animation-delay: 2s;
  }

  .mk-convo__thread > :nth-child(4) {
    animation-delay: 2.7s;
  }
}

@keyframes mk-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- sections */

.mk-section {
  padding-block: 40px 88px;
}

.mk-section h2,
.mk-faq h2,
.mk-pricing__h {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 740;
}

.mk-section__head {
  max-width: 640px;
}

.mk-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.mk-split--flip > :first-child {
  order: 2;
}

/* Places */
.mk-doors {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mk-door {
  padding: 20px;
  border-radius: 18px;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 6px;
}

.mk-door h3 {
  font-size: 1.05rem;
}

.mk-door__where {
  margin: 0;
  color: var(--mk-ink-3);
  font-size: 0.88rem;
}

.mk-door__opener {
  align-self: end;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--mk-bubble);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Panels for example data */
.mk-panel {
  margin: 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-shadow);
}

.mk-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mk-panel__title {
  font-weight: 650;
}

.mk-table-wrap {
  overflow-x: auto;
}

.mk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  font-variant-numeric: tabular-nums;
}

.mk-table th,
.mk-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid var(--mk-line);
  white-space: nowrap;
}

.mk-table th:first-child {
  text-align: left;
}

.mk-table thead th {
  color: var(--mk-ink-3);
  font-weight: 600;
  font-size: 0.82rem;
}

.mk-table tbody th {
  font-weight: 600;
}

.mk-brief p {
  margin: 0;
  color: var(--mk-ink-2);
}

.mk-brief__from {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mk-brief__h {
  margin-top: 18px !important;
  font-size: 0.95rem;
}

.mk-brief ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--mk-ink-2);
  display: grid;
  gap: 6px;
}

/* Trust */
.mk-trust {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.mk-trust li {
  border-top: 2px solid var(--mk-ink);
  padding-top: 16px;
}

.mk-trust h3 {
  font-size: 1.15rem;
}

.mk-trust p {
  margin: 8px 0 0;
  color: var(--mk-ink-2);
}

/* Ladder */
.mk-built {
  margin: 24px 0 0;
  color: var(--mk-ink-2);
}

/* -------------------------------------------------------------- pricing */

.mk-pricing-intro {
  padding-block: 48px 8px;
  text-align: center;
}

.mk-pricing-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.mk-pricing-intro .mk-lede {
  margin-inline: auto;
}

.mk-pricing {
  padding-block: 40px 72px;
}

.mk-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

/* Plan cards: name and promise, a large monthly price, one action, then what is included. */
.mk-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mk-line);
  border-radius: 20px;
  background: var(--mk-surface);
  overflow: hidden;
}

.mk-plan--featured {
  /* A ring outside the 1px border, so the featured card's content lines up with the others. */
  border-color: var(--mk-accent);
  box-shadow:
    0 0 0 1px var(--mk-accent),
    var(--mk-shadow);
}

/* Cards without the band start lower, so every price and button lines up. */
.mk-plans .mk-plan:not(.mk-plan--featured) {
  margin-top: 38px;
}

.mk-plan__band {
  margin: 0;
  padding: 9px 16px;
  background: var(--mk-accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

.mk-plan__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 32px;
}

.mk-plan__head {
  min-height: 7.2em;
}

.mk-plan h3 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.mk-plan__tagline {
  margin: 0;
  color: var(--mk-ink-2, #4a4e6b);
  font-size: 0.97rem;
  line-height: 1.5;
}

.mk-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 2px;
}

.mk-plan__amount {
  font-size: 3rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mk-plan__per {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mk-ink-2, #4a4e6b);
}

.mk-plan__note {
  margin: 4px 0 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.mk-btn--block {
  display: flex;
  width: 100%;
}

.mk-btn--outline {
  background: transparent;
  color: var(--mk-accent) !important;
  box-shadow: inset 0 0 0 1.5px var(--mk-accent);
}

.mk-plan--featured .mk-btn--block {
  background: var(--mk-accent);
  color: #fff !important;
}

.mk-plan__features {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--mk-line);
  display: grid;
  gap: 12px;
}

.mk-plan__features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.mk-plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  background: var(--mk-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.mk-pack {
  text-align: center;
  color: var(--mk-ink-2);
  margin: 28px 0 0;
}

/* ------------------------------------------------------------------ faq */

.mk-faq {
  padding-block: 24px 88px;
  max-width: 760px;
}

.mk-faq h2 {
  margin-bottom: 18px;
}

.mk-faq details {
  border-bottom: 1px solid var(--mk-line);
  padding: 18px 0;
}

.mk-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mk-faq summary::-webkit-details-marker {
  display: none;
}

.mk-faq summary::after {
  content: '+';
  color: var(--mk-ink-3);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

.mk-faq details[open] summary::after {
  content: '\2212';
}

.mk-faq p {
  color: var(--mk-ink-2);
  margin: 10px 0 0;
  max-width: 62ch;
}

/* -------------------------------------------------------------- closing */

.mk-close {
  margin-bottom: 72px;
  padding: 56px 32px;
  border-radius: 28px;
  background: var(--mk-gradient);
  color: #fff;
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.mk-close img {
  width: 104px;
}

.mk-close h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 760;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------- footer */

.mk-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--mk-line);
  color: var(--mk-ink-3);
  font-size: 0.9rem;
}

.mk-foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mk-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.mk-foot a {
  text-decoration: none;
}

.mk-foot a:hover {
  color: var(--mk-ink);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .mk-doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  /* Plans stack; offsets that align side-by-side cards are no longer needed. */
  .mk-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin-inline: auto;
  }

  .mk-plans .mk-plan:not(.mk-plan--featured) {
    margin-top: 0;
  }

  .mk-plan__head {
    min-height: 0;
  }

  .mk-hero,
  .mk-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .mk-hero {
    padding-block: 28px 64px;
  }

  .mk-split--flip > :first-child {
    order: 0;
  }

  .mk-trust {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .mk-doors {
    grid-template-columns: minmax(0, 1fr);
  }

  .mk-hero__art {
    padding-top: 88px;
  }

  .mk-hero__mascot {
    width: 104px;
    right: 0;
  }
}

@media (max-width: 520px) {
  .mk-nav nav {
    gap: 14px;
  }

  .mk-nav nav a[href='/pricing'] {
    display: none;
  }

  .mk-close {
    padding: 44px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-btn {
    transition: none;
  }

  .mk-btn:hover {
    transform: none;
  }
}
