/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  /* Palette + type lifted from LiteChat's SimGen console (blue-on-light, Fredoka/Inter). */
  --blue: #0780b5;
  --dark: #061820;
  --dark-grey: #8c9fa7;
  --light-blue: #96d2ed;
  --light: #f4fbfe;
  --white: #fefefe;

  --primary: var(--blue);
  --primary-light: rgba(7, 127, 180, 0.1);
  --text: var(--dark);
  --text-light: var(--dark-grey);
  --border: rgba(140, 159, 167, 0.2);
  --user-bg: rgba(150, 210, 237, 0.45);
  --assistant-bg: rgba(140, 159, 167, 0.1);
  --error: #b02e2e;

  --radius-sm: 6px;
  --radius-md: 10px;

  --heading-font: "Fredoka", system-ui, sans-serif;
  --body-font: "Inter", system-ui, sans-serif;

  font-family: var(--body-font);
  color: var(--text);
}
body { margin: 0; }

/* ---- console: three-pane shell --------------------------------------- */
.console {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
  height: 100vh;
  background: var(--light);
}

.console__sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--white); border-right: 1px solid var(--border);
  padding: 16px 14px;
}
.console__brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.console__brand-mark { width: 22px; height: 22px; display: block; }
.console__brand-name { font-family: var(--heading-font); font-size: 22px; font-weight: 600; }

.console__new-btn {
  font-family: var(--body-font); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--primary); border: 0; border-radius: var(--radius-md);
  padding: 10px 12px; cursor: pointer; transition: filter 0.18s ease;
}
.console__new-btn:hover { filter: brightness(1.07); }

.session-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 14px -2px; display: flex; flex-direction: column; gap: 4px; }
.session-list__empty { color: var(--text-light); font-style: italic; font-size: 13px; padding: 12px 8px; }
.session-list__item {
  display: flex; align-items: stretch; gap: 6px;
  border: 1px solid var(--border); border-left: 3px solid transparent;
  border-radius: var(--radius-sm); background: var(--light);
  padding: 9px 10px; transition: background 0.18s, border-color 0.18s;
}
.session-list__item:hover { background: #eef6fa; }
.session-list__item.is-active { background: #e8f5fc; border-left-color: var(--primary); }
.session-list__link {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--text); cursor: pointer;
}
.session-list__name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-list__meta { display: flex; align-items: center; gap: 6px; color: var(--text-light); font-size: 12px; text-transform: capitalize; }
.session-list__actions {
  display: flex; flex-direction: column; gap: 4px; flex: 0 0 auto;
  opacity: 0; transition: opacity 0.15s;
}
.session-list__item:hover .session-list__actions,
.session-list__item.is-active .session-list__actions,
.session-list__action:focus-visible { opacity: 1; }
.session-list__action {
  border: 0; background: transparent; cursor: pointer; color: var(--text-light);
  font-size: 13px; line-height: 1; padding: 2px 5px; border-radius: var(--radius-sm);
}
.session-list__action:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }

.console__who { border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; color: var(--text-light); display: flex; flex-direction: column; gap: 8px; }
.console__who strong { color: var(--text); }
.console__logout button { border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); padding: 5px 10px; cursor: pointer; font-size: 12px; }

/* ---- center: chat ---------------------------------------------------- */
.console__chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.chat__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--white); }
.chat__title { font-family: var(--heading-font); font-weight: 600; font-size: 18px; margin: 0; }

.status-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; background: var(--primary-light); color: var(--primary); white-space: nowrap; }
.status-pill--generating { background: rgba(7, 127, 180, 0.16); }
.status-pill--provisioning { background: rgba(140, 159, 167, 0.18); color: var(--text-light); }
.status-pill--error { background: rgba(176, 46, 46, 0.12); color: var(--error); }
.status-pill--none { background: transparent; color: var(--text-light); font-weight: 400; }

.transcript { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.transcript__hello { margin: auto 0; text-align: center; color: var(--text-light); }
.transcript__hello h2 { font-family: var(--heading-font); color: var(--text); font-weight: 600; }
.transcript__hello p { max-width: 32rem; margin: 0 auto; line-height: 1.55; }
.transcript__empty { color: var(--text-light); font-style: italic; }

.turn { border-radius: var(--radius-md); padding: 12px 14px; max-width: 90%; }
.turn__role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); margin-bottom: 4px; }
.turn__body { line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.turn--user { align-self: flex-end; background: var(--user-bg); }
.turn--assistant { align-self: flex-start; background: var(--assistant-bg); }

/* Transient "working" placeholder shown between send and the engine's first chunk
   (console.js showPending/clearPending). Three pulsing dots in the brand blue. */
.turn__pending { display: flex; align-items: center; gap: 8px; color: var(--text-light); font-size: 13px; }
.turn__pending-dots { display: inline-flex; gap: 4px; }
.turn__pending-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: 0.35; animation: turn-pending-pulse 1.2s ease-in-out infinite; }
.turn__pending-dots i:nth-child(2) { animation-delay: 0.2s; }
.turn__pending-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes turn-pending-pulse { 0%, 80%, 100% { opacity: 0.35; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .turn__pending-dots i { animation: none; opacity: 0.6; } }

/* Markdown-rendered answer body: real block flow (not pre-wrap), with compact spacing
   so a one-line answer doesn't grow leading/trailing margins. Mirrors the live + server
   render (console.js renderMarkdown / renderPersistedBodies). */
.turn__body--md { white-space: normal; }
.turn__body--md > :first-child { margin-top: 0; }
.turn__body--md > :last-child { margin-bottom: 0; }
.turn__body--md p { margin: 0 0 0.6em; }
.turn__body--md ul, .turn__body--md ol { margin: 0 0 0.6em; padding-left: 1.4em; }
.turn__body--md li { margin: 0.15em 0; }
.turn__body--md h1, .turn__body--md h2, .turn__body--md h3,
.turn__body--md h4, .turn__body--md h5, .turn__body--md h6 { margin: 0.8em 0 0.4em; line-height: 1.25; font-weight: 600; }
.turn__body--md h1 { font-size: 1.3em; }
.turn__body--md h2 { font-size: 1.2em; }
.turn__body--md h3 { font-size: 1.1em; }
.turn__body--md a { color: var(--primary); }
.turn__body--md code { font-family: var(--mono-font, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.9em; background: rgba(0, 0, 0, 0.06); padding: 0.1em 0.35em; border-radius: var(--radius-sm, 4px); }
.turn__body--md pre { margin: 0 0 0.6em; padding: 10px 12px; background: rgba(0, 0, 0, 0.06); border-radius: var(--radius-md); overflow-x: auto; }
.turn__body--md pre code { background: none; padding: 0; font-size: 0.85em; }
.turn__body--md blockquote { margin: 0 0 0.6em; padding-left: 10px; border-left: 2px solid var(--border); color: var(--text-light); }
.turn__body--md table { border-collapse: collapse; margin: 0 0 0.6em; font-size: 0.95em; }
.turn__body--md th, .turn__body--md td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
.turn__body--md img { max-width: 100%; }

/* Reasoning: subordinate to the answer — a quiet, collapsed "Thinking" disclosure. */
.turn__reasoning { margin-bottom: 8px; font-size: 13px; }
.turn__reasoning > summary { cursor: pointer; color: var(--text-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; list-style: none; user-select: none; }
.turn__reasoning > summary::before { content: "▸ "; display: inline-block; }
.turn__reasoning[open] > summary::before { content: "▾ "; }
.turn__reasoning > summary::-webkit-details-marker { display: none; }
.turn__reasoning-body { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--border); color: var(--text-light); font-style: italic; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* Tool activity: a compact step log, not prose. */
.turn__activity { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--mono-font, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12px; color: var(--text-light); }
.turn__activity li::before { content: "→ "; color: var(--primary); }

.turn__errors { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.turn--error { color: var(--error); font-style: italic; }
.turn__usage { margin-top: 8px; font-size: 11px; color: var(--text-light); }

.composer { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--white); }
.composer__input { flex: 1 1 auto; resize: none; font-family: var(--body-font); font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--light); }
.composer__input:focus { outline: none; border-color: var(--primary); }
.composer__input:disabled { opacity: 0.6; }
.composer__send { align-self: flex-end; font-weight: 600; color: #fff; background: var(--primary); border: 0; border-radius: var(--radius-md); padding: 10px 18px; cursor: pointer; }
.composer__send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- right: preview -------------------------------------------------- */
.console__preview { display: flex; flex-direction: column; min-height: 0; }
.preview__header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--white); }
.preview__label { font-family: var(--heading-font); font-weight: 600; font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.preview__nav { display: flex; gap: 6px; }
.preview__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; text-decoration: none; border: 1px solid var(--border); background: var(--light); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.preview__btn:disabled { opacity: 0.4; cursor: default; }
.preview__btn--primary { width: auto; padding: 0 14px; background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.preview__btn--primary:disabled { background: var(--primary); border-color: var(--primary); }
.console__preview { position: relative; }
.preview__frame-wrap { flex: 1 1 auto; min-height: 0; background: var(--white); }

/* share modal (after publishing, and from the manage page's Share action) */
.share-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 24, 32, 0.45); }
.share-modal__card { position: relative; width: 340px; max-width: 100%; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); }
.share-modal__title { font-family: var(--heading-font); font-weight: 600; font-size: 17px; }
.share-modal__hint { margin: 4px 0 12px; font-size: 13px; color: var(--text-light); }
.share-modal__qr { display: flex; justify-content: center; margin: 0 0 14px; }
.share-modal__qr svg { width: 168px; height: 168px; }
.share-modal__actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; }
.share-modal__actions a { color: var(--primary); text-decoration: none; }
.share-modal__actions a:hover { text-decoration: underline; }
.share-modal__rotate { border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 13px; }
.share-modal__rotate:disabled { opacity: 0.5; cursor: default; }
.share-pop__row { display: flex; gap: 6px; }
.share-pop__url { flex: 1 1 auto; min-width: 0; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; background: var(--light); color: var(--text); }
.share-pop__copy { padding: 0 12px; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 600; }
.share-pop__close { margin-left: auto; border: 0; background: none; color: var(--text-light); cursor: pointer; font-size: 13px; }

/* new-simulator template picker (reuses .share-modal shell) */
.picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--light); color: var(--text); font-size: 14px; cursor: pointer; }
.picker-item:hover { border-color: var(--primary); background: var(--primary-light); }
.picker-item small { color: var(--text-light); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }

/* per-sim capability toggles (chat-header button + reuses .share-modal shell) */
.chat__actions { display: inline-flex; align-items: center; gap: 8px; }
.chat__caps-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid var(--border); background: var(--light); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chat__caps-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.chat__caps-btn:disabled { opacity: 0.5; cursor: default; }

/* Asset manager modal (uploaded-asset panel) */
.asset-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; margin-bottom: 12px; }
.asset-list__empty { font-size: 13px; color: var(--text-light); margin: 8px 0; }
.asset-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--light); }
.asset-row__name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-row__meta { font-size: 11px; color: var(--text-light); margin-left: auto; white-space: nowrap; }
.asset-row__btn { height: 26px; padding: 0 8px; border: 1px solid var(--border); background: var(--white); color: var(--text); border-radius: var(--radius-sm); cursor: pointer; font-size: 12px; }
.asset-row__btn:hover { border-color: var(--primary); color: var(--primary); }
.asset-row__btn--danger:hover { border-color: #c0392b; color: #c0392b; }
.asset-upload { display: inline-block; }
.asset-upload__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); }
.asset-upload__btn:hover { border-color: var(--primary); background: var(--light); }
.asset-upload__error { margin: 8px 0 0; font-size: 12px; color: #c0392b; }
.cap-toggles { display: flex; flex-direction: column; gap: 8px; }
.cap-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--light); cursor: pointer; }
.cap-toggle:hover { border-color: var(--primary); }
.cap-toggle__input { margin-top: 2px; }
.cap-toggle__text { display: flex; flex-direction: column; gap: 2px; }
.cap-toggle__label { font-size: 14px; font-weight: 600; color: var(--text); }
.cap-toggle__desc { font-size: 12px; color: var(--text-light); }
.cap-toggles__note { margin: 12px 0 0; font-size: 12px; color: var(--text-light); }
/* Student sign-in (auth capability) block in the capabilities modal. */
.login-mode { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.login-mode__select { margin-top: 4px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--light); font-size: 14px; color: var(--text); }
.login-mode__email { margin-top: 6px; }
/* The "Technical mode" opt-out: deliberately de-emphasized so it doesn't compete with the
   capability toggles — separated, borderless, muted (doc/plan/1780822556 Phase D). */
.cap-toggle--advanced { margin-top: 14px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; opacity: 0.85; }
.cap-toggle--advanced:hover { border-color: var(--border); opacity: 1; }
.cap-toggle--advanced .cap-toggle__label { font-weight: 500; color: var(--text-light); }
.preview__frame { width: 100%; height: 100%; border: 0; background: #fff; }
.preview__placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-style: italic; }

/* state dots in the session list */
.state-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--dark-grey); display: inline-block; }
.state-dot--ready, .state-dot--idle { background: #3aa655; }
.state-dot--generating { background: var(--primary); }
.state-dot--provisioning { background: #d6a429; }
.state-dot--error { background: var(--error); }

@media (max-width: 1024px) {
  .console { grid-template-columns: 260px minmax(0, 1fr); }
  .console__preview { display: none; }
}

.console__manage-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.console__manage-link:hover { text-decoration: underline; }

/* ---- manage deployments page ------------------------------------------ */
.manage { max-width: 960px; margin: 0 auto; padding: 28px 24px 56px; }
.manage__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.manage__brand { display: flex; align-items: center; gap: 10px; }
.manage__title { font-family: var(--heading-font); font-weight: 600; font-size: 24px; margin: 0; }
.manage__back { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 600; }
.manage__back:hover { text-decoration: underline; }
.manage__tabs { display: flex; gap: 4px; margin: 22px 0 18px; border-bottom: 1px solid var(--border); }
.manage__tab { border: 0; background: none; padding: 10px 16px; font-family: var(--body-font); font-size: 14px; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 2px solid transparent; }
.manage__tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.manage__panel.is-hidden { display: none; }
.manage__empty { color: var(--text-light); font-size: 14px; padding: 28px 4px; }

.deploy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.deploy-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.deploy-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.deploy-row__name { font-weight: 600; }
.deploy-row__from, .deploy-row__date { color: var(--text-light); }
.deploy-table__actions-head, .deploy-row__actions { text-align: right; white-space: nowrap; }
.deploy-row__actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.deploy-row__link, .deploy-row__btn { font-size: 13px; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); color: var(--text); cursor: pointer; text-decoration: none; }
.deploy-row__link { color: var(--primary); border-color: var(--primary); }
.deploy-row__btn--danger { color: var(--error); border-color: rgba(176, 46, 46, 0.4); }
.deploy-row__btn:disabled { opacity: 0.5; cursor: default; }

.cap-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; background: var(--primary-light); color: var(--primary); margin-right: 4px; }
.cap-chip--none { background: rgba(140, 159, 167, 0.15); color: var(--text-light); }

/* ---- login (LiteChat-style: carded form on a soft gradient) ----------- */
.login {
  min-height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 5% 0%, var(--primary-light) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(140, 159, 167, 0.12) 0%, transparent 62%),
    var(--light);
}
.login__header { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.login__logo { width: 56px; height: 56px; display: block; }
.login__title { margin: 0; font-family: var(--heading-font); font-size: 40px; line-height: 1; font-weight: 600; }
.login__subtitle { margin: 0; color: var(--text-light); font-size: 14px; }

.login__form {
  width: 100%; max-width: 420px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(254, 254, 254, 0.92); box-shadow: 0 18px 42px rgba(6, 24, 32, 0.08);
}
.login__group { display: flex; flex-direction: column; gap: 8px; }
.login__label { color: var(--text-light); font-size: 13px; }
.login__input {
  padding: 12px 14px; font-family: var(--body-font); font-size: 15px;
  color: var(--text); background: var(--light);
  border: 1px solid rgba(140, 159, 167, 0.35); border-radius: var(--radius-sm);
}
.login__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.login__submit {
  padding: 12px; cursor: pointer;
  font-family: var(--body-font); font-weight: 600; font-size: 14px;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: #fff; background: var(--primary); border: 0; border-radius: var(--radius-md);
}
.login__submit:hover { filter: brightness(1.08); }
.login__error { margin: 0; color: var(--error); font-size: 14px; }

.login__separator { display: flex; align-items: center; gap: 0.9rem; color: var(--text-light); }
.login__separator hr { flex: 1; border: none; border-top: 1px solid rgba(140, 159, 167, 0.35); }
.login__separator span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.login__google {
  display: flex; justify-content: center; align-items: center; gap: 0.7rem;
  width: 100%; box-sizing: border-box; padding: 0.75rem;
  border: 1px solid rgba(140, 159, 167, 0.35); border-radius: var(--radius-md);
  background: var(--white); color: #3e535c; text-decoration: none;
  font-family: var(--body-font); font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.login__google:hover { background: #f4f8fa; border-color: rgba(7, 128, 181, 0.45); }

@media (max-width: 640px) {
  .login__title { font-size: 32px; }
  .login__form { padding: 20px; }
}

/* ---- landing page (lp) ------------------------------------------------ */
.lp { font-family: var(--body-font); color: var(--text); }
.lp h1, .lp h2, .lp h3 { font-family: var(--heading-font); font-weight: 500; }
.lp__container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.lp__header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(254, 254, 254, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.lp__header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.lp__logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.lp__logo-mark { width: 26px; height: 26px; display: block; }
.lp__logo-name { font-family: var(--heading-font); font-weight: 600; font-size: 1.25rem; }
.lp__nav { margin-left: auto; }
.lp__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.lp__nav a { color: var(--text-light); text-decoration: none; font-size: 0.95rem; }
.lp__nav a:hover { color: var(--primary); }

/* Buttons */
.lp__btn {
  display: inline-block; text-decoration: none; padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer; white-space: nowrap;
}
.lp__btn--primary { background: var(--primary); color: var(--white); }
.lp__btn--primary:hover { background: #0a6f9c; }
.lp__btn--ghost { background: transparent; color: var(--primary); border-color: rgba(7, 128, 181, 0.4); }
.lp__btn--ghost:hover { background: var(--primary-light); }
.lp__btn--lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; }

/* Hero */
.lp__hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--light) 0%, var(--white) 70%); }
.lp__hero-inner { text-align: center; }
.lp__hero h1 { font-size: 3.25rem; line-height: 1.1; letter-spacing: -1px; margin: 0 auto; max-width: 18ch; }
.lp__subtitle { font-size: 1.2rem; color: var(--text-light); line-height: 1.6; max-width: 42rem; margin: 1.25rem auto 0; }
.lp__hero-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Hero mockup */
.lp__mockup {
  margin: 3.5rem auto 0; max-width: 920px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(6, 24, 32, 0.35);
}
.lp__mockup-bar { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--light); }
.lp__mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(140, 159, 167, 0.45); }
.lp__mockup-body { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 280px; }
.lp__mockup-chat { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; border-right: 1px solid var(--border); }
.lp__bubble { margin: 0; padding: 0.6rem 0.85rem; border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.45; max-width: 88%; }
.lp__bubble--user { background: var(--user-bg); align-self: flex-end; }
.lp__bubble--app { background: var(--assistant-bg); align-self: flex-start; }
.lp__mockup-preview { padding: 1.25rem; display: flex; flex-direction: column; }
.lp__mockup-preview-head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.75rem; }
.lp__mockup-chart { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.9rem; }
.lp__mockup-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 150px; }
.lp__mockup-bars i { flex: 1; background: linear-gradient(180deg, var(--light-blue), var(--primary)); border-radius: 4px 4px 0 0; }
.lp__mockup-slider { height: 6px; border-radius: 3px; background: var(--border); position: relative; }
.lp__mockup-slider span { position: absolute; left: 60%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); transform: translate(-50%, -50%); }

/* Section shared */
.lp__how, .lp__features { padding: 5rem 0; text-align: center; }
.lp__features { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp h2 { font-size: 2.25rem; letter-spacing: -0.5px; margin: 0; }
.lp__section-lede { font-size: 1.1rem; color: var(--text-light); line-height: 1.6; max-width: 44rem; margin: 1rem auto 0; }

/* How-it-works steps */
.lp__steps {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; text-align: left;
}
.lp__step { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.lp__step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-family: var(--heading-font); font-weight: 600; margin-bottom: 0.75rem;
}
.lp__step h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.lp__step p { margin: 0; color: var(--text-light); line-height: 1.5; }

/* Capabilities grid */
.lp__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem; margin-top: 3rem; text-align: left;
}
.lp__card { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); transition: transform 0.2s, box-shadow 0.2s; }
.lp__card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(6, 24, 32, 0.4); }
.lp__card-icon { font-size: 1.75rem; }
.lp__card h3 { margin: 0.75rem 0 0.4rem; font-size: 1.2rem; }
.lp__card p { margin: 0; color: var(--text-light); line-height: 1.5; }

/* CTA */
.lp__cta { padding: 5rem 0; text-align: center; }
.lp__cta p { font-size: 1.15rem; color: var(--text-light); max-width: 36rem; margin: 1rem auto 2rem; line-height: 1.6; }

/* Footer */
.lp__footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.lp__footer .lp__container { display: flex; align-items: center; gap: 0.6rem; }
.lp__footer p { margin: 0; font-size: 0.9rem; color: var(--text-light); }

@media (max-width: 768px) {
  .lp__nav { display: none; }
  .lp__hero { padding: 3.5rem 0 2.5rem; }
  .lp__hero h1 { font-size: 2.4rem; }
  .lp h2 { font-size: 1.8rem; }
  .lp__mockup-body { grid-template-columns: 1fr; }
  .lp__mockup-chat { border-right: none; border-bottom: 1px solid var(--border); }
  .lp__how, .lp__features, .lp__cta { padding: 3.5rem 0; }
}
