/* The VHS AI Career Toolkit: the landing page and the three tool pages.

   ONE STYLESHEET FOR ONE EXPERIENCE. board.css is the job board, and it
   carries the board's own assumptions (a centred `main`, a 640px
   `.narrow`, cards built for roles). The toolkit is a guided onboarding
   experience rather than a list of postings, so it gets its own layer on
   top of the same tokens: same white page, same Old Glory Blue
   furniture, same red accent, same four type families. A veteran who
   reads a role on the board and then opens Northstar should recognise
   the same firm; they should not feel they walked into a chatbot.

   THE DESIGN BRIEF, Justin, 2026-09-02: "warm, premium, trustworthy,
   and human ... Apple, Notion, Linear, Arc Browser, Stripe. NOT ChatGPT.
   NOT a generic chatbot. NOT a dashboard full of widgets." So: lots of
   whitespace, a strong type hierarchy, rounded corners, soft shadows, a
   quiet gradient wash behind the hero, and motion that is felt rather
   than seen. No dark heavy boxes. Nothing flashes.

   MOTION IS OPT-OUT BY THE READER, not by us. Every transition and
   every reveal is cancelled under prefers-reduced-motion, and the
   reveal classes render fully visible when scripting never arrives, so
   a blocked script cannot leave a section invisible.

   NOTHING HERE RANKS A TOOL. The steps are numbered because a
   transition has an order, not because one tool matters more; every
   step is reachable directly from every page. */

:root {
  --tk-radius-lg: 22px;
  --tk-radius-md: 14px;
  --tk-radius-sm: 10px;
  --tk-shadow-1: 0 1px 2px rgba(33, 32, 74, .05), 0 6px 20px rgba(33, 32, 74, .06);
  --tk-shadow-2: 0 2px 4px rgba(33, 32, 74, .06), 0 18px 44px rgba(33, 32, 74, .11);
  --tk-ease: cubic-bezier(.2, .7, .2, 1);
  --tk-measure: 62ch;
}

/* board.css centres `main` for the job board. The toolkit sets its own
   alignment per block. */
main.toolkit {
  text-align: left;
  max-width: none;
  padding: 0;
}

/* --- skip link, for keyboards and screen readers --------------------- */
.tk-skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--surface-dark); color: var(--text-on-dark);
  padding: 10px 16px; border-radius: var(--tk-radius-sm);
  font: var(--w-semi) var(--t-ui-md)/1 var(--font-ui);
  text-decoration: none;
  transition: top .2s var(--tk-ease);
}
.tk-skip:focus-visible { top: 16px; outline: 3px solid var(--accent); outline-offset: 2px; }

/* --- layout primitives ------------------------------------------------ */
.tk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.tk-wrap-narrow { max-width: 760px; }
.tk-section { padding: 88px 0; }
.tk-section + .tk-section { padding-top: 0; }
.tk-band { background: var(--surface-read); }
.tk-band.tk-section, .tk-band + .tk-section { padding-top: 88px; }

/* Section eyebrow, the brand's one recognisable type gesture. */
.tk-eyebrow {
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-on-paper);
  margin: 0 0 14px;
}
.tk-eyebrow a { color: inherit; text-decoration: none; }
.tk-eyebrow a:hover, .tk-eyebrow a:focus-visible { text-decoration: underline; }

.tk-h2 {
  font: var(--w-semi) clamp(30px, 4vw, 42px)/1.1 var(--font-display);
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0 0 18px;
  text-wrap: balance;
}
.tk-h3 {
  font: var(--w-semi) 22px/1.2 var(--font-display);
  margin: 0 0 8px;
  color: var(--text-primary);
}
.tk-p {
  font: var(--w-regular) 17px/1.6 var(--font-ui);
  color: var(--text-secondary);
  max-width: var(--tk-measure);
  margin: 0 0 16px;
}
.tk-p-lg { font-size: 19px; line-height: 1.55; }
.tk-p:last-child { margin-bottom: 0; }
.tk-center { text-align: center; }
.tk-center .tk-p, .tk-center .tk-h2 { margin-left: auto; margin-right: auto; }

/* --- buttons ---------------------------------------------------------- */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: var(--w-semi) var(--t-ui-lg)/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s var(--tk-ease), box-shadow .18s var(--tk-ease),
              background-color .18s var(--tk-ease), border-color .18s var(--tk-ease);
}
.tk-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tk-btn-primary {
  background: var(--surface-dark); color: var(--text-on-dark);
  box-shadow: var(--tk-shadow-1);
}
.tk-btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--tk-shadow-2); }
.tk-btn-primary:active { transform: translateY(0); }
.tk-btn-quiet {
  background: transparent; color: var(--text-link);
  border-color: var(--gray-200);
}
.tk-btn-quiet:hover { background: var(--surface-inset); border-color: var(--blue-300); }
.tk-btn-lg { min-height: 60px; padding: 0 34px; font-size: 17px; }
.tk-btn .tk-arrow { transition: transform .18s var(--tk-ease); }
.tk-btn:hover .tk-arrow { transform: translateX(3px); }

/* Text link with an arrow, for secondary paths. */
.tk-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-link); text-decoration: none;
  font: var(--w-semi) var(--t-ui-lg)/1 var(--font-ui);
  border-bottom: 1px solid transparent;
}
.tk-link:hover, .tk-link:focus-visible { border-bottom-color: currentColor; }

/* --- hero -------------------------------------------------------------- */
.tk-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  text-align: center;
}
/* A quiet wash: the flag's blue and red at very low alpha, blurred into
   the white. It is felt as warmth rather than seen as a shape. */
.tk-hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto -20%; height: 140%;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(60, 59, 110, .10), transparent 70%),
    radial-gradient(45% 45% at 78% 30%, rgba(178, 34, 52, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.tk-hero > .tk-wrap { position: relative; z-index: 1; }
.tk-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--tk-shadow-1);
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 30px;
}
.tk-hero-eyebrow .tk-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.tk-h1 {
  font: var(--w-semi) clamp(40px, 6.5vw, 68px)/1.02 var(--font-display);
  letter-spacing: -.015em;
  color: var(--text-primary);
  margin: 0 0 22px;
  text-wrap: balance;
}
.tk-hero-tri {
  font: var(--w-regular) clamp(19px, 2.2vw, 23px)/1.4 var(--font-ui);
  color: var(--text-primary);
  margin: 0 0 30px;
}
.tk-hero-tri strong { font-weight: var(--w-semi); }
.tk-hero .tk-p { margin-left: auto; margin-right: auto; }
.tk-hero-lines {
  font: var(--w-medium) clamp(22px, 2.6vw, 28px)/1.3 var(--font-display);
  color: var(--text-primary);
  margin: 34px auto 18px;
  max-width: 30ch;
}
.tk-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 36px 0 0;
}
.tk-hero-trust {
  margin: 44px auto 0;
  padding: 26px 28px;
  max-width: 640px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-1);
  text-align: left;
}
.tk-hero-trust .tk-eyebrow { margin-bottom: 10px; }
.tk-hero-trust p { margin: 0; font: var(--w-regular) 16px/1.6 var(--font-ui); color: var(--text-secondary); }
.tk-hero-trust p + p { margin-top: 10px; }

/* --- the journey ------------------------------------------------------- */
.tk-journey {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 44px 0 0;
}
/* The thread that joins the three steps: a hairline down the left, under
   the numbered markers. Visible only where there is room for the rail. */
.tk-journey::before {
  content: "";
  position: absolute; left: 35px; top: 40px; bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gray-200), var(--blue-300), var(--gray-200));
  z-index: 0;
}
.tk-step {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0 28px;
  align-items: start;
  padding: 34px 34px 34px 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-1);
  transition: transform .25s var(--tk-ease), box-shadow .25s var(--tk-ease), border-color .25s var(--tk-ease);
}
.tk-step:hover, .tk-step:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--tk-shadow-2);
  border-color: var(--blue-300);
}
.tk-step-n {
  justify-self: center;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-dark); color: var(--text-on-dark);
  font: var(--w-semi) 18px/1 var(--font-display);
  box-shadow: 0 0 0 6px var(--white);
}
.tk-step-body { min-width: 0; }
.tk-step-body .tk-eyebrow { margin-bottom: 8px; }
.tk-step-title {
  font: var(--w-semi) clamp(24px, 3vw, 30px)/1.15 var(--font-display);
  margin: 0 0 6px; color: var(--text-primary);
}
.tk-step-title a { color: inherit; text-decoration: none; }
.tk-step-title a:hover, .tk-step-title a:focus-visible { color: var(--text-link); }
.tk-step-who {
  font: var(--w-medium) var(--t-ui-md)/1.3 var(--font-ui);
  color: var(--text-tertiary);
  margin: 0 0 16px;
}
.tk-step-who strong { color: var(--text-primary); font-weight: var(--w-semi); }
.tk-step-body .tk-p { font-size: 16px; }
.tk-outcome {
  margin: 18px 0 0;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-read);
  border-radius: 0 var(--tk-radius-sm) var(--tk-radius-sm) 0;
  font: var(--w-regular) 15px/1.55 var(--font-ui);
  color: var(--text-secondary);
  max-width: var(--tk-measure);
}
.tk-outcome strong {
  display: block;
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.tk-step-aside {
  display: grid; gap: 12px; justify-items: end; align-content: start;
  padding-top: 4px;
}
.tk-time {
  font: var(--w-regular) var(--t-ui-md)/1 var(--font-ui);
  color: var(--text-tertiary);
  white-space: nowrap;
}
.tk-step-good {
  font: var(--w-regular) var(--t-ui-md)/1.5 var(--font-ui);
  color: var(--text-tertiary);
  margin: 14px 0 0;
  font-style: italic;
}

/* --- why three --------------------------------------------------------- */
.tk-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0 0;
}
.tk-three-card {
  padding: 26px 26px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-md);
  box-shadow: var(--tk-shadow-1);
}
.tk-three-card .tk-eyebrow { margin-bottom: 10px; }
.tk-three-card h3 { font: var(--w-semi) 21px/1.2 var(--font-display); margin: 0 0 8px; }
.tk-three-card p { margin: 0; font: var(--w-regular) 15px/1.55 var(--font-ui); color: var(--text-secondary); }

/* --- privacy ----------------------------------------------------------- */
.tk-privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 0;
}
.tk-check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 22px 22px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-md);
  box-shadow: var(--tk-shadow-1);
  transition: transform .2s var(--tk-ease), box-shadow .2s var(--tk-ease);
}
.tk-check:hover { transform: translateY(-2px); box-shadow: var(--tk-shadow-2); }
.tk-check-mark {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-dark); color: var(--white);
  flex: 0 0 auto;
}
.tk-check-mark svg { width: 15px; height: 15px; display: block; }
.tk-check p { margin: 0; font: var(--w-medium) 16px/1.45 var(--font-ui); color: var(--text-primary); }
.tk-check p small {
  display: block; margin-top: 6px;
  font: var(--w-regular) 14px/1.5 var(--font-ui); color: var(--text-tertiary);
}
.tk-privacy-foot {
  margin: 26px auto 0;
  font: var(--w-regular) 15px/1.6 var(--font-ui);
  color: var(--text-tertiary);
  max-width: var(--tk-measure);
  text-align: center;
}

/* --- founders ---------------------------------------------------------- */
.tk-founder {
  position: relative;
  padding: 54px 56px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-radius: var(--tk-radius-lg);
  overflow: hidden;
}
.tk-founder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(232, 144, 156, .16), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(156, 155, 200, .18), transparent 60%);
  pointer-events: none;
}
.tk-founder > * { position: relative; }
.tk-founder .tk-eyebrow { color: var(--accent-on-dark); }
.tk-founder .tk-h2 { color: var(--white); }
.tk-founder .tk-p { color: rgba(255, 255, 255, .84); font-size: 18px; }
.tk-founder-close {
  margin: 28px 0 0;
  font: var(--w-medium) clamp(22px, 2.6vw, 28px)/1.3 var(--font-display);
  color: var(--white);
}
.tk-founder-sig {
  margin: 26px 0 0;
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-on-dark);
}

/* --- closing invitation ----------------------------------------------- */
.tk-close { text-align: center; }
.tk-close .tk-hero-actions { margin-top: 28px; }

/* --- footer ------------------------------------------------------------ */
main.toolkit footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 24px 64px;
  text-align: center;
  font: var(--w-regular) var(--t-body-md)/1.6 var(--font-ui);
  color: var(--text-tertiary);
  border-top: 0;
}

/* --- reveal-on-scroll -------------------------------------------------
   `.tk-reveal` starts fully visible. Only once toolkit.js has confirmed
   an IntersectionObserver exists does it add `.tk-reveal-armed` to
   <html>, and only then does the element start hidden and fade in as it
   enters the viewport. A blocked script therefore shows the page whole. */
.tk-reveal-armed .tk-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--tk-ease), transform .6s var(--tk-ease);
}
.tk-reveal-armed .tk-reveal.is-visible { opacity: 1; transform: none; }
.tk-reveal-armed .tk-reveal[data-delay="1"] { transition-delay: .08s; }
.tk-reveal-armed .tk-reveal[data-delay="2"] { transition-delay: .16s; }
.tk-reveal-armed .tk-reveal[data-delay="3"] { transition-delay: .24s; }

/* ======================================================================
   THE TOOL PAGE: welcome, then the conversation
   ====================================================================== */
.tk-tool-head { padding: 64px 0 28px; text-align: center; }
.tk-tool-head .tk-h1 { font-size: clamp(38px, 5.5vw, 56px); margin-bottom: 10px; }
.tk-tool-tagline {
  font: var(--w-regular) 19px/1.4 var(--font-ui);
  color: var(--text-secondary);
  margin: 0;
}

.tk-welcome {
  margin: 0 auto;
  max-width: 720px;
  padding: 40px 44px 44px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-2);
}
.tk-welcome-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin: 0 0 26px;
  font: var(--w-regular) var(--t-ui-md)/1.3 var(--font-ui);
  color: var(--text-tertiary);
}
.tk-welcome-meta strong { color: var(--text-primary); font-weight: var(--w-semi); }
.tk-welcome h2 {
  font: var(--w-semi) 24px/1.2 var(--font-display);
  margin: 0 0 16px; color: var(--text-primary);
}
.tk-checklist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.tk-checklist li {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  font: var(--w-regular) 17px/1.45 var(--font-ui); color: var(--text-primary);
}
.tk-checklist .tk-check-mark { width: 26px; height: 26px; }
.tk-checklist .tk-check-mark svg { width: 13px; height: 13px; }
.tk-welcome-private {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 16px 18px;
  border-radius: var(--tk-radius-sm);
  background: var(--surface-read);
  font: var(--w-regular) 15px/1.55 var(--font-ui);
  color: var(--text-secondary);
  margin: 0 0 30px;
}
.tk-welcome-private svg { width: 20px; height: 20px; display: block; color: var(--blue-700); margin-top: 1px; }
.tk-welcome-private .tk-eyebrow { margin-bottom: 4px; color: var(--text-primary); }
.tk-welcome-actions { display: grid; gap: 14px; justify-items: center; }
.tk-welcome-actions .tk-btn { width: min(100%, 360px); }
.tk-welcome-actions .tk-note {
  font: var(--w-regular) var(--t-ui-md)/1.4 var(--font-ui);
  color: var(--text-tertiary); margin: 0; text-align: center;
}
.tk-welcome-actions .tk-note a { color: var(--text-link); }

/* "Not switched on yet", said in the same card and the same tone. */
.tk-offline {
  padding: 18px 20px;
  border-radius: var(--tk-radius-sm);
  background: var(--red-100);
  color: var(--text-primary);
  font: var(--w-regular) 16px/1.55 var(--font-ui);
  margin: 0 0 24px;
}
.tk-offline .tk-eyebrow { color: var(--red-900); margin-bottom: 6px; }
.tk-offline p { margin: 0; }

/* Where else to go, under the welcome card. */
.tk-others {
  margin: 34px auto 0; max-width: 720px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.tk-other {
  display: grid; gap: 4px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--tk-radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform .2s var(--tk-ease), box-shadow .2s var(--tk-ease), border-color .2s var(--tk-ease);
}
.tk-other:hover, .tk-other:focus-visible { transform: translateY(-2px); box-shadow: var(--tk-shadow-1); border-color: var(--blue-300); }
.tk-other .tk-eyebrow { margin: 0; color: var(--text-tertiary); }
.tk-other strong { font: var(--w-semi) 18px/1.2 var(--font-display); }
.tk-other span { font: var(--w-regular) var(--t-ui-md)/1.4 var(--font-ui); color: var(--text-secondary); }

/* --- the conversation --------------------------------------------------
   Not a chat app. A calm page with the tool's words on the left rail and
   the veteran's on the right, generous line-height, one composer at the
   bottom that grows with what is typed. */
.tk-chat {
  margin: 0 auto; max-width: 760px;
  padding: 0 0 40px;
}
.tk-chat-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--gray-200);
  margin: 0 0 26px;
}
.tk-chat-bar .tk-eyebrow { margin: 0; color: var(--text-tertiary); line-height: 1.6; }
.tk-chat-bar .tk-eyebrow strong { color: var(--text-primary); font-weight: var(--w-semi); }
.tk-restart {
  background: none; border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  font: var(--w-medium) var(--t-ui-md)/1 var(--font-ui); color: var(--text-secondary);
  white-space: nowrap; flex: 0 0 auto;
  transition: background-color .18s var(--tk-ease), border-color .18s var(--tk-ease);
}
.tk-restart:hover { background: var(--surface-inset); border-color: var(--blue-300); }
.tk-restart:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.tk-transcript { display: grid; gap: 18px; }
.tk-msg {
  display: grid; gap: 6px;
  max-width: 88%;
  animation: tk-msg-in .32s var(--tk-ease) both;
}
.tk-msg-bot { justify-self: start; }
.tk-msg-you { justify-self: end; text-align: right; }
.tk-msg-who {
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0 4px;
}
.tk-msg-body {
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--tk-radius-md);
  font: var(--w-regular) 17px/1.6 var(--font-ui);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}
.tk-msg-bot .tk-msg-body {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top-left-radius: 6px;
  color: var(--text-primary);
  box-shadow: var(--tk-shadow-1);
}
.tk-msg-you .tk-msg-body {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-top-right-radius: 6px;
}
@keyframes tk-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* The thinking indicator: three quiet dots, only while a reply is on
   its way, and never a fabricated sentence standing in for one. */
.tk-thinking { display: inline-flex; gap: 5px; align-items: center; padding: 14px 18px; }
.tk-thinking i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300);
  animation: tk-pulse 1.2s infinite ease-in-out;
}
.tk-thinking i:nth-child(2) { animation-delay: .15s; }
.tk-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes tk-pulse {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.tk-composer {
  position: sticky; bottom: 0;
  margin: 28px 0 0;
  padding: 14px 0 18px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white) 28%);
}
.tk-composer-box {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
  padding: 10px 10px 10px 18px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--tk-radius-lg);
  box-shadow: var(--tk-shadow-2);
  transition: border-color .18s var(--tk-ease), box-shadow .18s var(--tk-ease);
}
.tk-composer-box:focus-within { border-color: var(--blue-700); }
.tk-composer label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.tk-composer textarea {
  width: 100%; min-height: 44px; max-height: 40vh;
  padding: 10px 0;
  border: 0; outline: 0; resize: none; background: transparent;
  font: var(--w-regular) 17px/1.5 var(--font-ui);
  color: var(--text-primary);
}
.tk-composer textarea::placeholder { color: var(--text-tertiary); }
.tk-send {
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--surface-dark); color: var(--white);
  display: grid; place-items: center;
  transition: background-color .18s var(--tk-ease), transform .18s var(--tk-ease);
}
.tk-send svg { width: 20px; height: 20px; display: block; }
.tk-send:hover { background: var(--blue-700); transform: translateY(-1px); }
.tk-send:disabled { background: var(--gray-200); color: var(--white); cursor: default; transform: none; }
.tk-send:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tk-composer-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 18px 0;
  font: var(--w-regular) var(--t-ui-sm)/1.4 var(--font-ui);
  color: var(--text-tertiary);
}
.tk-status { min-height: 1.4em; color: var(--red-900); }
.tk-status:empty { display: none; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .tk-three, .tk-privacy { grid-template-columns: 1fr 1fr; }
  .tk-step { grid-template-columns: 60px 1fr; padding-right: 26px; }
  .tk-step-aside { grid-column: 2; justify-items: start; padding-top: 18px; }
  .tk-journey::before { left: 29px; }
}
@media (max-width: 640px) {
  .tk-section, .tk-band.tk-section, .tk-band + .tk-section { padding: 64px 0; }
  .tk-section + .tk-section { padding-top: 0; }
  .tk-hero { padding: 64px 0 48px; }
  .tk-three, .tk-privacy, .tk-others { grid-template-columns: 1fr; }
  .tk-journey::before { display: none; }
  .tk-step { grid-template-columns: 1fr; padding: 26px 22px; gap: 0; }
  .tk-step-n { justify-self: start; margin-bottom: 16px; box-shadow: none; }
  .tk-step-aside { grid-column: 1; }
  .tk-step-aside .tk-btn { width: 100%; }
  .tk-founder { padding: 38px 26px; }
  .tk-welcome { padding: 28px 22px 30px; border-radius: var(--tk-radius-md); }
  .tk-tool-head { padding: 44px 0 22px; }
  .tk-msg { max-width: 96%; }
  .tk-hero-actions .tk-btn { width: 100%; }
  .tk-composer-box { border-radius: var(--tk-radius-md); }
  .tk-composer-foot span:last-child { display: none; }
}

/* iOS zooms on focus under 16px and stays zoomed. */
@media (hover: none) and (pointer: coarse) {
  .tk-composer textarea { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-reveal-armed .tk-reveal { opacity: 1; transform: none; transition: none; }
  .tk-msg { animation: none; }
  .tk-thinking i { animation: none; opacity: .7; }
  .tk-btn, .tk-step, .tk-check, .tk-other, .tk-send, .tk-skip,
  .tk-btn .tk-arrow, .tk-composer-box, .tk-restart { transition: none; }
  .tk-btn:hover, .tk-step:hover, .tk-check:hover, .tk-other:hover, .tk-send:hover { transform: none; }
}

/* --- optional identity on the welcome card (2026-09-02) ---------------- */
.tk-identity { margin: 0 0 28px; }
.tk-identity-lead {
  margin: 0 0 12px;
  font: var(--w-regular) 15px/1.55 var(--font-ui);
  color: var(--text-secondary);
}
.tk-identity-lead strong { color: var(--text-primary); font-weight: var(--w-semi); }
.tk-identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-field { display: grid; gap: 6px; }
.tk-field > span {
  font: var(--w-medium) var(--t-ui-sm)/1 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tk-field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--tk-radius-sm);
  background: var(--white); color: var(--text-primary);
  font: var(--w-regular) 16px/1.4 var(--font-ui);
  transition: border-color .18s var(--tk-ease);
}
.tk-field input:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(60, 59, 110, .12); }
@media (max-width: 640px) { .tk-identity-fields { grid-template-columns: 1fr; } }
