/* Keel marketing site — page-specific styles.
   Depends on tokens.css (variables) and base.css (k-* primitives);
   only m-* classes and dark-surface overrides live here. */

/* ---------- Shared layout ---------- */
.m-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

[id] { scroll-margin-top: 84px; }

.m-section { padding: 88px 0; }
.m-section--panel {
  background: var(--panel-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.m-section h2,
.m-roi h2,
.m-relief h2,
.m-band h2 {
  font-size: clamp(24px, 3vw, 33px);
  line-height: 1.15;
  max-width: 26ch;
}
.m-kicker { display: block; color: var(--teal); margin-bottom: 12px; }
.m-section__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 64ch;
}

/* ---------- Header ---------- */
.m-header {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  background: rgba(15, 28, 45, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.m-header__in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.m-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.m-logo:hover { text-decoration: none; color: #fff; }
.m-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #fff;
}
.m-nav { display: flex; gap: 22px; }
.m-nav a {
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  font-weight: 600;
}
.m-nav a:hover { color: #fff; text-decoration: none; }
.m-header__cta { margin-left: auto; display: flex; gap: 9px; }
.m-header .k-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .85);
}
.m-header .k-btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

/* ---------- Hero ---------- */
.m-hero {
  background: linear-gradient(165deg, #0F1C2D, #122A3D 55%, #0C4441);
  color: #fff;
  padding: 84px 0 96px;
}
.m-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
/* Grid items default to min-width:auto — long unbroken content inside the
   tool card would otherwise inflate its column and crush the headline. */
.m-hero__grid > * { min-width: 0; }
.m-hero__kicker { color: var(--aqua); }
.m-hero__copy h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 16px 0 18px;
}
.m-hero__sub {
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
}
.m-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.m-btn--heroghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.m-btn--heroghost:hover { background: rgba(255, 255, 255, .14); }
.m-hero__trustline { display: block; margin-top: 16px; color: rgba(255, 255, 255, .5); }

/* ---------- Hero tool card (compliance quick-check) ---------- */
.m-tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  padding: 22px;
  color: var(--ink);
}
.m-tool__kicker { display: block; color: var(--teal); margin-bottom: 16px; }
.m-tool__step { margin-bottom: 14px; }
.m-tool__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.m-chips { display: flex; gap: 7px; }
.m-chip {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--card-alt);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.m-chip:hover { border-color: var(--line-hover); color: var(--ink); }
.m-chip--on,
.m-chip--on:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.m-cc__results {
  margin: 6px 0 16px;
  padding: 6px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--panel);
  min-height: 88px;
  max-height: 264px;
  overflow-y: auto;
}
.m-cc__empty { padding: 12px 0; color: var(--faint); font-size: 13px; }
.m-cc__count {
  padding: 10px 0 4px;
  border-bottom: 1px solid var(--line-faint);
}
.m-cc__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-faint);
  animation: kfade .18s ease both;
}
.m-cc__item:last-child { border-bottom: none; }
.m-cc__item .k-badge { margin-top: 1px; }
.m-cc__body { min-width: 0; }
.m-cc__title { font-size: 13px; font-weight: 700; color: var(--heading); }
.m-cc__sum {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.m-tool__gate { margin: 2px 0 14px; }
.m-tool__foot { display: block; margin-top: 12px; color: var(--faint); text-align: center; }

/* ---------- Lead-capture forms ---------- */
.m-lead { margin: 0; }
.m-hp {
  position: absolute;
  left: -5000px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.m-lead__row { display: flex; gap: 9px; }
.m-lead__email { flex: 1; min-width: 0; }
.m-lead__msg { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.m-lead__consent { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--faint); }
.m-lead__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.m-band .m-lead__consent { color: rgba(255,255,255,.62); }
.m-lead__msg--ok { color: var(--green-deep); }
.m-lead__msg--err { color: var(--red-deep); }

/* ---------- Landed-cost calculator ---------- */
.m-lc { margin-top: 32px; }
.m-lc__table { width: 100%; border-collapse: collapse; min-width: 900px; }
.m-lc__table th {
  padding: 11px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  text-align: left;
  white-space: nowrap;
}
.m-lc__table th.m-lc__outhead { color: var(--teal); background: var(--teal-soft); }
.m-lc__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-faint);
}
.m-lc__table tr:last-child td { border-bottom: none; }
.m-lc__in { padding: 8px 9px; font-size: 13.5px; min-width: 84px; }
.m-lc__in--name { min-width: 170px; }
.m-lc__center { text-align: center; }
.m-lc__chk { width: 16px; height: 16px; accent-color: var(--teal); cursor: pointer; }
.m-lc__out {
  font-weight: 600;
  font-size: 13.5px;
  text-align: right;
  white-space: nowrap;
  background: var(--panel-3);
}
.m-lc__note { margin-top: 12px; color: var(--faint); }
.m-lc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}
.m-lead--inline { flex: 1 1 340px; max-width: 480px; }

/* ---------- Platform modules ---------- */
.m-modgroup {
  display: block;
  margin: 38px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
}
.m-mods { display: grid; gap: 16px; }
.m-mods--2 { grid-template-columns: repeat(2, 1fr); }
.m-mods--3 { grid-template-columns: repeat(3, 1fr); }
.m-mod { display: flex; align-items: flex-start; gap: 14px; padding: 20px; }
.m-mod__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-md);
}
.m-mod h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 6px;
}
.m-mod__tag {
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--wash);
}
.m-mod p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- ROI strip ---------- */
.m-roi {
  background: linear-gradient(165deg, #0F1C2D, #122A3D 55%, #0C4441);
  color: #fff;
  padding: 88px 0;
}
.m-roi h2 { color: #fff; margin: 0 auto; text-align: center; }
.m-roi__sub {
  margin: 14px auto 0;
  max-width: 62ch;
  text-align: center;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.65;
}
.m-roi__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 800px;
  margin: 40px auto 0;
}
.m-roi__card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
}
.m-roi__card--keel {
  background: rgba(94, 200, 194, .10);
  border-color: rgba(94, 200, 194, .45);
}
.m-roi__label { display: block; color: rgba(255, 255, 255, .55); }
.m-roi__card--keel .m-roi__label { color: var(--aqua); }
.m-roi__big { margin: 10px 0 8px; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.m-roi__lines .k-kv { border-color: rgba(255, 255, 255, .10); }
.m-roi__lines .k-kv__k { color: rgba(255, 255, 255, .62); }
.m-roi__lines .k-kv__v { color: #fff; }
.m-roi__bad { color: #F2A196 !important; }
.m-roi__good { color: var(--aqua-2) !important; }

/* ---------- Compliance fear → relief ---------- */
.m-relief__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.m-relief__calm {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-lg);
  background: var(--card);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- Pricing ---------- */
.m-billwrap { margin: 28px 0 34px; }
.m-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.m-plan { position: relative; display: flex; flex-direction: column; padding: 22px; }
.m-plan--popular {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-card);
}
.m-plan__flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 99px;
  background: var(--teal);
  color: #fff;
  white-space: nowrap;
}
.m-plan__name { display: block; margin-bottom: 12px; color: var(--muted); }
.m-plan__price { display: flex; align-items: baseline; gap: 5px; }
.m-plan__amt {
  font-size: 32px;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -.02em;
}
.m-plan__per { font-size: 13px; color: var(--faint); }
.m-plan__note { margin-top: 6px; min-height: 18px; font-size: 12px; color: var(--faint); }
.m-plan__list {
  flex: 1;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 13.5px;
  color: var(--ink);
}
.m-plan__list li { padding-left: 20px; position: relative; line-height: 1.45; }
.m-plan__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.m-alacarte { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Trust strip ---------- */
.m-trust {
  background: var(--navy);
  padding: 18px 0;
}
.m-trust__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
}
.m-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  white-space: nowrap;
}
.m-trust__item svg { color: var(--aqua); flex: none; }

/* ---------- FAQ ---------- */
.m-faq { max-width: 780px; }
.m-faq h2 { margin-bottom: 14px; }
.m-faq details {
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.m-faq details[open] { border-color: var(--line-strong); }
.m-faq summary {
  position: relative;
  padding: 15px 30px 15px 0;
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--heading);
}
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--faint);
}
.m-faq details[open] summary::after { content: '−'; }
.m-faq details p {
  padding: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Email band ---------- */
.m-band {
  background: linear-gradient(165deg, #0F1C2D, #122A3D 55%, #0C4441);
  color: #fff;
  padding: 68px 0;
}
.m-band__in {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.m-band h2 { color: #fff; }
.m-band__sub {
  margin-top: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 50ch;
}
.m-lead--band .m-lead__msg--ok { color: var(--aqua-2); }
.m-lead--band .m-lead__msg--err { color: #F2A196; }
.m-lead--band .m-lead__msg { color: rgba(255, 255, 255, .65); }
.m-lead--band .m-lead__msg--ok,
.m-lead--band .m-lead__msg--err { font-weight: 600; }

/* ---------- Footer ---------- */
.m-footer {
  background: #0B1622;
  padding: 44px 0 30px;
  color: rgba(255, 255, 255, .6);
}
.m-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.m-logo--footer { color: #fff; }
.m-footer__links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.m-footer__links a { color: rgba(255, 255, 255, .62); font-size: 13px; }
.m-footer__links a:hover { color: #fff; text-decoration: none; }
.m-footer__legal {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
  max-width: 90ch;
}
.m-footer__copy { display: block; margin-top: 14px; color: rgba(255, 255, 255, .35); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .m-plans { grid-template-columns: repeat(2, 1fr); }
  .m-mods--3 { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .m-section { padding: 60px 0; }
  .m-hero { padding: 52px 0 64px; }
  .m-hero__grid,
  .m-relief__grid,
  .m-band__in,
  .m-roi__compare,
  .m-mods--2 { grid-template-columns: 1fr; }
  .m-hero__grid { gap: 40px; }
  .m-nav { order: 3; width: 100%; gap: 18px; }
}

@media (max-width: 640px) {
  .m-plans { grid-template-columns: 1fr; }
  .m-lc__actions { flex-direction: column; align-items: stretch; }
  .m-lead--inline { max-width: none; }
}

@media (max-width: 520px) {
  .m-tool__row { grid-template-columns: 1fr; }
  .m-lead__row { flex-direction: column; }
  .m-hero__cta .k-btn { width: 100%; }
}
