/* Ask Konnex question-first entry page (AK-ENTRY-PAGE-01; Matt brief 3f72300f, mock-up approved 13 Oct).
   Loads AFTER colors_and_type.css, styles.css, homepage.css; reuses kx-nav, kx-chip, kx-ask-send, kx-ev-badge
   and the full-screen kx-chat. Entry-page-only rules are prefixed ake- (ak- is taken by v2/ak.css). */
/* ---- Ask Konnex entry (proposed) ---- */
body.ake { background: var(--panel-bg); color: var(--panel-text); min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; }
/* Quiet nav: same component, solid dark, no scroll transition, secondary links dimmed */
body.ake .kx-nav { background: var(--panel-bg); border-bottom: 1px solid var(--panel-border); }
body.ake .kx-nav-link { color: var(--panel-text-tertiary); }
body.ake .kx-nav-link:hover { color: var(--panel-text); }
body.ake .kx-nav-link[aria-current="page"] { color: var(--panel-text); }
body.ake .kx-nav-cta { background: transparent; border: 1px solid var(--panel-border); color: var(--panel-text-secondary); box-shadow: none; }

.ake-main { flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: calc(72px + 6vh) var(--gutter) 8vh; }
.ake-col { width: 100%; max-width: 720px; margin: 0 auto; }
.ake-title { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0;
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.022em; color: var(--panel-text); }
.ake-invite { margin: 14px auto 30px; text-align: center; max-width: 560px;
  font-family: var(--font-body); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.55; color: var(--panel-text-secondary); }

/* Composer: same white field as the chat composer, so entry -> chat feels like one surface */
.kx-ask.ake-ask { max-width: none; }
.ake-composer { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 16px 48px rgba(0,0,0,0.38);
  padding: 16px 14px 12px 20px; transition: box-shadow .2s; }
.ake-composer:focus-within { box-shadow: 0 0 0 3px rgba(232,112,58,0.55), 0 16px 48px rgba(0,0,0,0.38); }
.ake-composer label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ake-composer textarea { display: block; width: 100%; resize: none; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 1.06rem; line-height: 1.5; color: var(--fg1); min-height: 3em; max-height: 9em; }
.ake-composer textarea::placeholder { color: var(--fg3); }
.ake-composer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ake-hint { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--fg3); }
.ake-hint kbd { font: inherit; padding: 1px 6px; border: 1px solid var(--border-light); border-radius: 4px; background: var(--warm-bg); color: var(--fg2); }
.ake-composer .kx-ask-send { width: 44px; height: 44px; margin-left: auto; }
.ake-composer .kx-ask-send:focus-visible { outline: 2px solid var(--terracotta-deep); outline-offset: 2px; }

.ake-examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.ake-examples-lab { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--panel-text-secondary); margin-right: 2px; }
.ake-examples .kx-chip { min-height: 40px; cursor: pointer; }
.ake-examples .kx-chip:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Scope line: expectation-setting, so readable body type in the invitation's colour, but smaller, so it never
   outweighs the invitation (Walter's review via Matt 2ef4cc5f; colour Marcus 257bca27). */
.ake-scope { margin: 22px auto 0; text-align: center; max-width: 620px;
  font-family: var(--font-body); font-size: clamp(0.9rem, 1.1vw, 0.98rem); line-height: 1.55;
  color: var(--panel-text-secondary); }
.ake-scope b { color: var(--panel-text); font-weight: 500; }

/* Disclosure: native <details>, content is in the initial HTML even while closed */
.ake-more { margin: 26px auto 0; max-width: 640px; border-top: 1px solid var(--panel-border); }
.ake-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 0 6px; min-height: 44px; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; color: var(--panel-text); }
.ake-more summary::-webkit-details-marker { display: none; }
.ake-more summary:hover { color: var(--terracotta); }
.ake-more summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 6px; }
.ake-more summary svg { transition: transform .2s; }
.ake-more[open] summary svg { transform: rotate(180deg); }
.ake-more-body { padding: 14px 4px 4px; font-family: var(--font-body); font-size: 0.95rem; line-height: 1.65; color: var(--panel-text-secondary); }
.ake-more-body h2 { margin: 18px 0 6px; font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; color: var(--panel-text); }
.ake-more-body h2:first-child { margin-top: 0; }
.ake-more-body p { margin: 0 0 8px; }
.ake-classes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ake-classes li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: baseline; }
.ake-classes .kx-ev-badge { justify-self: start; }
.ake-classes .ake-ev-abn { border-color: var(--terracotta-line); }
.ake-more-body .ake-rule { margin-top: 14px; }
.ake-more-body .ake-classes + p:not(.ake-rule) { margin-top: 18px; }
.ake-list { margin: 6px 0 12px; padding-left: 18px; display: grid; gap: 6px; }
.ake-list b { color: var(--panel-text); font-weight: 600; }
.ake-more-body a { color: var(--terracotta); text-underline-offset: 3px; }

.ake-foot { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--panel-border);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--panel-text-secondary); }
.ake-foot a { color: var(--panel-text-secondary); text-decoration: none; }
.ake-foot a:hover { color: var(--panel-text); }

@media (max-width: 600px) {
  .ake-main { justify-content: flex-start; padding-top: calc(64px + 9vh); }
  .ake-hint { display: none; }
  .ake-classes li { grid-template-columns: 1fr; gap: 4px; }
  .ake-examples-lab { width: 100%; text-align: center; }
}
  

/* Free-question line on www (Matt's 5-question cap, Marcus d53774c4): a quiet count above the chat note. Hidden
   until an answer carries questions_remaining, so uat (no field) shows nothing. */
.kx-chat-quota { max-width: 760px; margin: 10px auto 0; text-align: center; font-family: var(--font-body);
  font-size: 0.8rem; line-height: 1.5; color: var(--panel-text-secondary); }
.kx-chat-quota[hidden] { display: none; }
.kx-chat-quota + .kx-chat-note { margin-top: 4px; }
