/* ============================================================
   STELAAH — CONNECTED CORE (connected-core.css)
   The site-wide half of the 2026 "Connected" design language.
   Everything here is shared by EVERY marketing page; the homepage
   loads this first and then styles/home-connected.css on top for
   its own hero/diagram/chat sections.

   Load order on a page: stelaah.css -> mkt*.css -> connected-core.css
   (-> home-connected.css on the homepage only).

   Two mechanisms, deliberately:
   1. TOKEN RETUNE — the existing `mk-` pages already read the shared
      design tokens, so retuning those tokens under `html.mkt` moves the
      whole site onto the connected palette without touching any markup.
      Dark bands declare their own values ON the section element
      (`.dark` in stelaah.css), and a direct declaration always beats an
      inherited one, so they are unaffected by this.
   2. `hc-` PRIMITIVES — the new shared components (kicker, section
      heading, button, icon slot) for any page that wants to opt in.
   ============================================================ */

html.mkt {
  /* ---- connected palette (single source; home-connected.css reads these) ---- */
  --hc-bg: #ffffff;
  --hc-bg-soft: #f8f8f5;
  --hc-bg-cta: #f5f6f0;
  --hc-ink: #14161a;
  --hc-ink-2: #5d646e;
  --hc-ink-3: #8a919b;
  --hc-line: #e9e9e4;
  --hc-line-soft: #f1f1ec;
  --hc-green: #4e7d45;
  --hc-green-deep: #3f6a38;
  --hc-leaf: #79a552;
  --hc-green-soft: #eef3e6;
  --hc-green-dot: #6fa544;
  --hc-black: #101214;
  --hc-black-hover: #23262b;
  --hc-r-card: 16px;
  --hc-r-btn: 11px;
  --hc-sh-xs: 0 1px 2px rgba(20, 22, 26, 0.05);
  --hc-sh-card: 0 1px 2px rgba(20, 22, 26, 0.04), 0 16px 40px -20px rgba(20, 22, 26, 0.12);
  --hc-sh-app: 0 2px 6px rgba(20, 22, 26, 0.05), 0 40px 80px -32px rgba(20, 22, 26, 0.22);
  --hc-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --hc-spring: cubic-bezier(0.34, 1.45, 0.5, 1);

  /* ---- retune the shared marketing tokens onto that palette ---- */
  --bg: var(--hc-bg);
  --bg-sunken: var(--hc-bg-soft);
  --surface: #ffffff;
  --border: var(--hc-line);
  --border-subtle: var(--hc-line-soft);
  --border-strong: #dcdcd5;
  --ink: var(--hc-ink);
  --ink-2: var(--hc-ink-2);
  --ink-3: var(--hc-ink-3);
  --ink-4: #a8aeb6;
  --mk-dark-bg: var(--hc-black);
  --mk-dark-bg-2: #0b0d0e;
}

.mkt body { background: var(--hc-bg); }

/* ============================================================
   NAV — white bar, black "Start free" pill, leaf mark
   ============================================================ */
.mkt .mk-nav-bar { background: color-mix(in srgb, #ffffff 92%, transparent); border-bottom: 1px solid transparent; }
.mkt .mk-nav.scrolled .mk-nav-bar { background: color-mix(in srgb, #ffffff 88%, transparent); border-bottom-color: var(--hc-line); }
.mkt .mk-logo .mark { color: var(--hc-leaf); }
.mkt .mk-nav-link { color: var(--hc-ink); font-weight: 520; }
.mkt .mk-nav-link:hover { color: var(--hc-green-deep); }
.mkt .mk-nav-signin { color: var(--hc-ink); font-weight: 520; }
.mkt .mk-nav-cta .mk-btn.primary.sm {
  background: var(--hc-black); color: #fff; border-radius: 999px; height: 38px; padding: 0 18px;
  box-shadow: none; border-color: transparent;
}
.mkt .mk-nav-cta .mk-btn.primary.sm:hover { background: var(--hc-black-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(16, 18, 20, 0.45); }

/* ============================================================
   BUTTONS — primary is near-black everywhere on light ground,
   and inverts to white inside a dark band so it never disappears
   ============================================================ */
.mkt .mk-btn.primary { background: var(--hc-black); color: #fff; box-shadow: var(--hc-sh-xs); border-color: transparent; }
.mkt .mk-btn.primary:hover { background: var(--hc-black-hover); transform: translateY(-1.5px); box-shadow: 0 14px 28px -14px rgba(16, 18, 20, 0.5); }
.mkt .mk-btn.secondary { background: #fff; color: var(--hc-ink); border-color: var(--hc-line); box-shadow: var(--hc-sh-xs); }
.mkt .mk-btn.secondary:hover { border-color: #d8d8d2; transform: translateY(-1.5px); box-shadow: 0 12px 24px -16px rgba(16, 18, 20, 0.25); }
.mkt .mk-btn.link { color: var(--hc-green); }

.mkt .mk-section.mk-dark .mk-btn.primary { background: #fff; color: var(--hc-black); }
.mkt .mk-section.mk-dark .mk-btn.primary:hover { background: #f0f0ec; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.6); }

/* ============================================================
   TYPOGRAPHY — one weight/tracking system across every page
   ============================================================ */
.mkt .mk-display { letter-spacing: -0.033em; font-weight: 650; color: var(--hc-ink); }
.mkt .mk-h1, .mkt .mk-h2 { letter-spacing: -0.028em; font-weight: 640; color: var(--hc-ink); }
.mkt .mk-h3, .mkt .mk-h4 { letter-spacing: -0.022em; font-weight: 600; color: var(--hc-ink); }
.mkt .mk-lede { color: var(--hc-ink-2); }
.mkt .mk-section.mk-dark .mk-display,
.mkt .mk-section.mk-dark .mk-h1,
.mkt .mk-section.mk-dark .mk-h2,
.mkt .mk-section.mk-dark .mk-h3 { color: var(--ink); }

/* ============================================================
   SURFACES — calmer cards, warmer hairlines
   ============================================================ */
.mkt .mk-card { border-radius: var(--hc-r-card); border-color: var(--hc-line); box-shadow: var(--hc-sh-xs); }
.mkt .mk-card.hover:hover { border-color: #dcdcd5; box-shadow: 0 14px 30px -16px rgba(20, 22, 26, 0.2); }
.mkt .mk-shot { border-radius: 18px; border-color: var(--hc-line); }

/* ============================================================
   SHARED `hc-` PRIMITIVES
   ============================================================ */
.hc-sec { position: relative; border-top: 1px solid var(--hc-line-soft); }
.hc-sec:first-of-type { border-top: 0; }

.hc-kicker {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border-radius: 999px; background: var(--hc-green-soft); color: #47523f;
  font-size: 12.5px; font-weight: 540; letter-spacing: 0.005em; white-space: nowrap;
}
.hc-kicker.plain { background: #f2f2ee; color: #565c55; }
.hc-kicker .hc-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--hc-green-dot); flex: none; }
.hc-kicker .hc-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--hc-green-dot); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hc-kicker .hc-dot::after { animation: hc-dot-ping 2.6s var(--hc-ease) infinite; }
}
@keyframes hc-dot-ping {
  0% { opacity: 0.55; transform: scale(0.6); }
  60% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}
.hc-kicker .hc-kicker-mark { width: 13px; height: 13px; color: var(--hc-green); flex: none; }

.hc-h2 {
  margin: 0; font-size: clamp(28px, 3.3vw, 42px); line-height: 1.14; font-weight: 640;
  letter-spacing: -0.028em; color: var(--hc-ink);
}
.hc-h2 .g { color: var(--hc-green); }
.hc-sub { margin: 18px 0 0; font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.6; color: var(--hc-ink-2); max-width: 54ch; }
.hc-center { text-align: center; }
.hc-center .hc-sub { margin-inline: auto; }

.hc-ic { display: inline-flex; flex: none; }
.hc-ic svg { width: 100%; height: 100%; display: block; }

.hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border-radius: var(--hc-r-btn);
  font-size: 15px; font-weight: 560; letter-spacing: -0.005em; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.24s var(--hc-ease), box-shadow 0.24s var(--hc-ease),
    background 0.24s var(--hc-ease), border-color 0.24s var(--hc-ease), color 0.24s var(--hc-ease);
}
.hc-btn:active { transform: scale(0.975); }
.hc-btn.dark { background: var(--hc-black); color: #fff; box-shadow: var(--hc-sh-xs); }
.hc-btn.dark:hover { background: var(--hc-black-hover); transform: translateY(-1.5px); box-shadow: 0 14px 28px -14px rgba(16, 18, 20, 0.5); }
.hc-btn.lite { background: #fff; color: var(--hc-ink); border-color: var(--hc-line); box-shadow: var(--hc-sh-xs); }
.hc-btn.lite:hover { border-color: #d8d8d2; transform: translateY(-1.5px); box-shadow: 0 12px 24px -16px rgba(16, 18, 20, 0.25); }
.hc-btn .hc-arr { width: 15px; height: 15px; transition: transform 0.24s var(--hc-ease); }
.hc-btn:hover .hc-arr { transform: translateX(3px); }
.hc-btn .hc-play { width: 14px; height: 14px; color: var(--hc-ink); transition: color 0.24s var(--hc-ease), transform 0.24s var(--hc-ease); }
.hc-btn:hover .hc-play { color: var(--hc-green); transform: scale(1.12); }

/* ============================================================
   FAQ — the connected accordion, site-wide
   ============================================================ */
.mkt .mk-faq details { border-top: 1px solid var(--hc-line); }
.mkt .mk-faq details:last-child { border-bottom: 1px solid var(--hc-line); }
.mkt .mk-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 2px; font-size: 16.5px; font-weight: 560; letter-spacing: -0.015em; color: var(--hc-ink);
  transition: color 0.2s var(--hc-ease);
}
.mkt .mk-faq summary::-webkit-details-marker { display: none; }
.mkt .mk-faq summary:hover { color: var(--hc-green-deep); }
.mkt .mk-faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; margin: 0; border: 0; background: none; transform: none; }
.mkt .mk-faq summary .pm::before, .mkt .mk-faq summary .pm::after {
  content: ""; position: absolute; inset: auto; left: 0; right: auto; top: 6.2px; bottom: auto; margin: 0;
  width: 14px; height: 1.6px; border-radius: 2px; opacity: 1;
  background: currentColor; transform: none; transform-origin: 50% 50%; transition: transform 0.3s var(--hc-ease);
}
.mkt .mk-faq summary .pm::after { transform: rotate(90deg); }
.mkt .mk-faq details[open] summary .pm::after { transform: rotate(0deg); }
.mkt .mk-faq .ans { overflow: hidden; }
.mkt .mk-faq .ans p { margin: 0; padding: 0 32px 20px 2px; font-size: 15px; line-height: 1.62; color: var(--hc-ink-2); max-width: 62ch; }
