/* eKarma product page — page-specific; tokens from ../styles.css */

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

/* —— Hero mock —— */
.ek-hero {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.ek-hero-copy .hero-subline {
  display: block;
  margin-top: 0.28em;
  font-size: clamp(1.15rem, 3.2vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .ek-hero-copy .hero-subline { white-space: normal; }
}
.ek-hero-copy .lede {
  font-size: 1.08rem;
  max-width: 38rem;
}

.ek-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--elev);
  overflow: hidden;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.ek-mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--inset);
}
.ek-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.ek-mock-dot:nth-child(1) { background: #e07a6a; }
.ek-mock-dot:nth-child(2) { background: var(--accent); }
.ek-mock-dot:nth-child(3) { background: #6a9be0; }
.ek-mock-title {
  margin-left: 0.35rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  text-transform: uppercase;
}
.ek-mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  min-height: 280px;
}
.ek-bubble {
  max-width: 88%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ek-bubble-agent {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--ink);
  justify-self: start;
}
.ek-bubble-user {
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--mute);
  justify-self: end;
}
.ek-bubble strong {
  display: block;
  font-size: 0.72rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.ek-mock-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--inset);
}
.ek-mock-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--mute);
  background: var(--surface);
}
.ek-mock-send {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: "DM Sans", system-ui, sans-serif;
}

/* —— Day beats —— */
.ek-beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  box-shadow: var(--elev);
}
.ek-beats li {
  background: var(--surface);
  padding: 1.15rem 1.2rem 1.25rem;
  display: grid;
  gap: 0.35rem 1rem;
}
.ek-beat-time {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}
.ek-beat-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.ek-beat-role {
  font-size: 0.82rem;
  color: var(--mute);
  margin: 0;
}
.ek-beat-body {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--mute);
}
.ek-day-closer {
  margin-top: 1.5rem;
  max-width: 42rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-radius: 0 8px 8px 0;
}
.ek-day-closer p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

/* —— Three layers (house diagram) —— */
.ek-house {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
}
.ek-house img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev);
  border-radius: 2px;
}
.ek-house-caption {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: left;
  font-size: 0.98rem;
  color: var(--mute);
  line-height: 1.55;
}

/* Legacy layer cards (kept if reused elsewhere) */
.ek-layers {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}
.ek-layer {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--elev);
  position: relative;
}
.ek-layer-roof {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--surface)) 0%, var(--surface) 70%);
}
.ek-layer-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 0.4rem;
}
.ek-layer h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}
.ek-layer p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}
.ek-layer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ek-layer li {
  font-size: 0.78rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--inset);
  color: var(--mute);
}
.ek-layers-caption {
  margin-top: 1.25rem;
  max-width: 46rem;
  font-size: 0.98rem;
}

/* —— Outcome cards —— */
.ek-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.ek-outcome {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--elev);
  padding: 1.35rem 1.35rem 1.4rem 1.45rem;
  position: relative;
}
.ek-outcome::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.ek-outcome h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.ek-outcome p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}
.ek-micro {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0;
}

/* —— Proof tabs —— */
.ek-proof-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ek-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--mute);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}
.ek-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.ek-tab:hover { border-color: var(--accent); color: var(--ink); }
.ek-tab[aria-selected="true"]:hover { color: var(--accent-ink); }

.ek-proof-panel {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev);
  border-radius: 10px;
  overflow: hidden;
}
.ek-proof-panel.is-active { display: block; }

.ek-demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--inset);
}
.ek-demo-chrome h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.ek-demo-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.ek-demo-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.75rem;
}
.ek-demo-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--inset);
}
.ek-demo-row strong {
  font-size: 0.9rem;
}
.ek-demo-row span {
  font-size: 0.88rem;
  color: var(--mute);
}
.ek-demo-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}
.ek-proof-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 40rem;
}

/* —— Enroll + chat —— */
.ek-enroll {
  display: grid;
  gap: 1.5rem;
}
.ek-gate,
.ek-chat {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--elev);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border-radius: 10px;
}
.ek-gate[hidden],
.ek-chat[hidden] {
  display: none !important;
}
.ek-gate h3,
.ek-chat-head h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.ek-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.15rem;
  max-width: 28rem;
}
.ek-field {
  display: grid;
  gap: 0.35rem;
}
.ek-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}
.ek-field input {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
}
.ek-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.ek-disclosure {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--mute);
  max-width: 36rem;
}
.ek-chat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.ek-chat-status {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.ek-chat-log {
  display: grid;
  gap: 0.75rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
  margin-bottom: 1rem;
  min-height: 180px;
}
.ek-msg {
  max-width: 92%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ek-msg-bot {
  justify-self: start;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--ink);
}
.ek-msg-user {
  justify-self: end;
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--mute);
}
.ek-chat-compose {
  display: flex;
  gap: 0.5rem;
}
.ek-chat-compose input {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
}
.ek-chat-compose input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* —— Final CTA —— */
.ek-final-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.15rem) clamp(1.3rem, 4vw, 2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 48%),
    var(--surface);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--elev);
}
.ek-final-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.ek-final-cta-copy {
  max-width: 36rem;
  padding-left: 0.35rem;
}
.ek-final-cta-copy h2 {
  margin-bottom: 0.4rem;
}
.ek-final-cta-copy p {
  margin: 0;
}
.ek-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ek-footer-line {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-style: italic;
  font-family: "Instrument Serif", Georgia, serif;
}

/* —— Responsive —— */
@media (min-width: 720px) {
  .ek-hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
  .ek-beats li {
    grid-template-columns: 4.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .ek-beat-time {
    grid-row: 1 / span 2;
    align-self: start;
    padding-top: 0.2rem;
  }
  .ek-outcomes {
    grid-template-columns: 1fr 1fr;
  }
  .ek-demo-body {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .ek-beats {
    grid-template-columns: 1fr 1fr;
  }
  .ek-layer-roles ul {
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .nav a:not(.nav-cta):not(.is-active) { display: none; }
}

/* —— Preview: Slack-on-Brain process section —— */
.ek-platform-lede {
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 40rem;
  margin: 0 0 0.85rem;
  font-weight: 500;
}
.ek-pain-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .ek-pain-grid { grid-template-columns: 1fr; }
}
.ek-pain {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  box-shadow: var(--elev);
}
.ek-pain-x {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, #e07a6a 18%, var(--surface));
  border: 1px solid color-mix(in srgb, #e07a6a 55%, var(--border));
  color: #c45a4a;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
.ek-pain h3 { margin: 0 0 0.3em; font-size: 1.02rem; }
.ek-pain p { margin: 0; font-size: 0.92rem; line-height: 1.45; }

.ek-acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--elev);
  max-width: 44rem;
}
.ek-acc-item + .ek-acc-item { border-top: 1px solid var(--border); }
.ek-acc-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  text-align: left;
  padding: 1.05rem 1.2rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ek-acc-btn:hover { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.ek-acc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ek-acc-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
}
.ek-acc-item.is-open .ek-acc-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.ek-acc-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--mute);
  font-weight: 500;
}
.ek-acc-item.is-open .ek-acc-num { color: var(--accent-soft); }
.ek-acc-panel {
  padding: 0 1.2rem 1.15rem 2.75rem;
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 38rem;
}
.ek-acc-panel[hidden] { display: none; }

.ek-counter {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-radius: 0 10px 10px 0;
  max-width: 44rem;
}
.ek-counter p { margin: 0; color: var(--ink); font-size: 0.98rem; }
.ek-counter p + p { margin-top: 0.55rem; color: var(--mute); }

/* Print / PDF: expand accordions, keep color, pack layout */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body { font-size: 0.95rem; }
  .section, .ek-problem, .ek-process, .ek-hero {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
  }
  .ek-hero {
    display: block !important;
    break-inside: auto;
    page-break-inside: auto;
  }
  .ek-hero-visual { margin-top: 1rem; max-width: 360px; }
  .ek-mock-body { min-height: 0 !important; }
  .ek-beats {
    display: block !important;
    background: transparent !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    overflow: hidden;
  }
  .ek-beats li {
    display: block !important;
    break-inside: avoid;
    page-break-inside: avoid;
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1rem !important;
  }
  .ek-beats li:last-child { border-bottom: 0; }
  .ek-beat-time { display: inline; margin-right: 0.75rem; }
  .ek-beat-title { display: inline; font-size: 1.05rem !important; }
  .ek-day-closer { break-inside: avoid; }

  .ek-acc-panel,
  .ek-acc-panel[hidden] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }
  .ek-acc-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .ek-acc-item .ek-acc-dot {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
  }
  .ek-acc-btn { padding: 0.75rem 1rem !important; }
  .ek-acc-panel { padding: 0 1rem 0.85rem 2.5rem !important; }

  .ek-pain-grid { gap: 0.65rem !important; }
  .ek-pain { break-inside: avoid; page-break-inside: avoid; padding: 0.85rem 1rem !important; }
  .ek-counter { break-inside: avoid; page-break-inside: avoid; }
  .ek-outcome { break-inside: avoid; page-break-inside: avoid; }
  .ek-outcomes { gap: 0.75rem !important; }
  .section-head { margin-bottom: 0.85rem !important; break-after: avoid; page-break-after: avoid; }
  .ek-house, .ek-house img { break-inside: avoid; page-break-inside: avoid; max-height: 420px; }
  .ek-proof-panel,
  .ek-proof-panel[hidden] {
    display: block !important;
    visibility: visible !important;
    margin-bottom: 0.75rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .ek-chat, .ek-gate { break-inside: avoid; page-break-inside: avoid; }
  .ek-chat-log { min-height: 0 !important; max-height: none !important; }
  .ek-enroll { break-inside: avoid; page-break-inside: avoid; }
  .ek-final-cta { break-inside: avoid; page-break-inside: avoid; margin-bottom: 0.5rem !important; }
  .masthead { position: static !important; }
  .theme-toggle, .skip { display: none !important; }
  a { text-decoration: none !important; }
  .footer {
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-before: avoid;
    break-before: avoid;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
  }
  /* Prefer keeping CTA+footer together near end */
  #cta, #enroll { break-inside: avoid; page-break-inside: avoid; }
  .ek-field { margin-bottom: 0.45rem !important; }
  .ek-gate, .ek-enroll { padding: 0.85rem !important; }
  .footer-inner {
    display: block !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .footer .brand { margin-bottom: 0.35rem !important; }
  .footer p { margin: 0.15rem 0 !important; }
  /* Keep last CTA block + footer on same sheet when possible */
  #cta { page-break-after: avoid; break-after: avoid; }
  .ek-preview-credit { break-inside: avoid; }
  .ek-print-hide-footer { display: none !important; }
}




/* Nav jump targets clear the sticky header */
#process, #outcomes { scroll-margin-top: 72px; }
