:root {
  --ink: #18242d;
  --muted: #647481;
  --line: #dbe5e9;
  --paper: #ffffff;
  --soft: #f4f8f8;
  --aqua: #0f8b8d;
  --aqua-dark: #0b6d70;
  --navy: #17354d;
  --sky: #d9eef5;
  --gold: #e2aa3b;
  --coral: #d85f4f;
  --green: #278965;
  --shadow: 0 24px 70px rgba(23, 53, 77, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7faf9;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 229, 233, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta,
.primary-action,
.secondary-action,
.test-card button,
.bot-input-row button {
  border-radius: 8px;
  font-weight: 780;
}

.nav-cta,
.primary-action,
.bot-input-row button {
  border: 0;
  background: var(--aqua);
  color: white;
}

.nav-cta {
  padding: 11px 16px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 54px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(247, 250, 249, 0.98), rgba(247, 250, 249, 0.82) 48%, rgba(247, 250, 249, 0.3)),
    radial-gradient(circle at 82% 20%, rgba(226, 170, 59, 0.26), transparent 26%),
    linear-gradient(180deg, #e6f4f7 0%, #fff8e8 53%, #dfe9e8 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -12vw;
  z-index: -1;
  width: 55vw;
  height: 35vw;
  min-width: 560px;
  min-height: 360px;
  background:
    linear-gradient(160deg, rgba(23, 53, 77, 0.08), rgba(15, 139, 141, 0.16)),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.38) 0 2px, transparent 2px 70px);
  clip-path: polygon(18% 0, 80% 0, 100% 100%, 0 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6.6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  color: #425361;
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 11px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 760;
}

.assistant-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.assistant-preview::before {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -50px;
  width: 230px;
  height: 70px;
  border-radius: 60% 45% 45% 60%;
  background: #f9fcfd;
  border-bottom: 9px solid #b8c8ce;
  transform: rotate(-7deg);
  box-shadow: 0 18px 34px rgba(23, 53, 77, 0.14);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(39, 137, 101, 0.12);
}

.preview-chat {
  display: grid;
  gap: 12px;
}

.preview-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.preview-message.bot {
  background: #e8f5f2;
}

.preview-message.user {
  justify-self: end;
  background: var(--navy);
  color: white;
}

.preview-lead {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.preview-lead strong {
  display: block;
  margin-bottom: 3px;
}

.preview-lead p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 72px clamp(18px, 4vw, 54px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.course-grid,
.test-grid,
.future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.test-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-card,
.test-card,
.future-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(23, 53, 77, 0.08);
}

.course-card {
  padding: 24px;
}

.course-tag {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.course-card h3,
.test-card h3,
.future-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.course-card p,
.test-card p,
.future-grid p {
  color: var(--muted);
}

dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 780;
}

.bot-tests {
  background: linear-gradient(180deg, #f7faf9, #eef6f4);
}

.test-card {
  padding: 22px;
}

.test-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff4d6;
  color: #806000;
  font-weight: 850;
}

.test-card button {
  min-height: 42px;
  margin-top: 8px;
  padding: 0 15px;
  border: 0;
  background: var(--navy);
  color: white;
}

.future-grid,
.crm-table-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.future-grid article {
  padding: 24px;
}

.crm-section {
  background: #f7faf9;
}

.crm-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.crm-toolbar p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.crm-toolbar div {
  display: flex;
  gap: 10px;
}

.crm-toolbar button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 780;
}

.crm-table-wrap {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 16px 42px rgba(23, 53, 77, 0.08);
}

.crm-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.crm-table th,
.crm-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.crm-table th {
  background: #eef6f4;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.crm-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.intent-pill,
.risk-pill,
.safe-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}

.intent-pill {
  background: #fff4d6;
  color: #806000;
}

.risk-pill {
  background: #ffe4df;
  color: #963a2f;
}

.safe-pill {
  background: #e4f5ed;
  color: var(--green);
}

.bot-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--aqua), var(--navy));
  color: white;
  box-shadow: 0 16px 45px rgba(15, 139, 141, 0.32);
  font-weight: 900;
}

.pulse {
  position: absolute;
  inset: -7px;
  border: 2px solid rgba(15, 139, 141, 0.26);
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.82);
    opacity: 1;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.bot-shell {
  position: fixed;
  right: 24px;
  bottom: 98px;
  z-index: 21;
  display: grid;
  grid-template-rows: auto auto auto;
  width: min(390px, calc(100vw - 32px));
  height: auto;
  max-height: min(640px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(23, 53, 77, 0.18);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: 0.18s ease;
  backdrop-filter: blur(18px);
}

.bot-shell.chat-ready {
  height: min(640px, calc(100vh - 118px));
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}

.bot-shell.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.embed-mode {
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

.embed-mode .topbar,
.embed-mode main,
.embed-mode .bot-launcher {
  display: none;
}

.embed-mode .bot-shell,
.embed-mode .bot-shell.chat-ready {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: none;
}

.embed-mode [data-close-bot] {
  display: none;
}

.bot-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 13px;
  background:
    linear-gradient(135deg, rgba(23, 53, 77, 0.96), rgba(15, 139, 141, 0.92)),
    var(--navy);
  color: white;
}

.assistant-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.bot-header strong,
.bot-header small {
  display: block;
}

.bot-header small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.human-note {
  display: grid;
  gap: 3px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(219, 229, 233, 0.7);
  background: #f8fbfa;
  color: var(--muted);
  font-size: 12px;
}

.human-note strong {
  color: var(--ink);
}

.human-note .trial-notice {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(219, 229, 233, 0.72);
  color: #52666f;
  line-height: 1.42;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-height: none;
  overflow-y: auto;
  padding: 12px 14px 16px;
  border-bottom: 0;
  background: #fbfdfd;
}

.lead-form.completed {
  display: none;
}

.lead-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.lead-form .full-field {
  grid-column: 1 / -1;
}

.privacy-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.42;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  min-width: 0;
  border: 1px solid rgba(219, 229, 233, 0.88);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.lead-form input,
.lead-form select {
  height: 36px;
  padding: 0 11px;
}

.lead-form textarea {
  resize: vertical;
  padding: 9px 11px;
}

.lead-form button {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: white;
  font-weight: 820;
  box-shadow: 0 10px 22px rgba(15, 139, 141, 0.2);
}

.bot-shell:not(.chat-ready) {
  grid-template-rows: auto auto auto;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  background:
    linear-gradient(180deg, rgba(247, 251, 250, 0.98), rgba(255, 255, 255, 0.96)),
    #f7fbfa;
}

.bot-shell:not(.chat-ready) .chat-log,
.bot-shell:not(.chat-ready) .quick-prompts,
.bot-shell:not(.chat-ready) .bot-input-row {
  display: none;
}

.message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.48;
}

.message.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid rgba(219, 229, 233, 0.72);
  border-bottom-left-radius: 7px;
  box-shadow: 0 10px 26px rgba(23, 53, 77, 0.055);
}

.message.staff-message {
  border-color: rgba(15, 139, 141, 0.25);
  background: #e8f5f2;
}

.service-rating-message {
  display: grid;
  gap: 10px;
}

.service-rating-card {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.service-rating-card strong {
  margin-bottom: 0;
  color: var(--aqua-dark);
  font-size: 12px;
}

.service-rating-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-rating-buttons button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 139, 141, 0.28);
  border-radius: 999px;
  background: #f5fbfa;
  color: var(--aqua-dark);
  cursor: pointer;
  font-weight: 850;
}

.service-rating-buttons button:hover,
.service-rating-buttons button:focus-visible,
.service-rating-buttons button.selected {
  background: var(--aqua);
  color: white;
}

.service-rating-buttons button:disabled {
  cursor: default;
  opacity: 0.75;
}

.service-rating-thanks {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.message.system-message {
  align-self: center;
  max-width: 92%;
  padding: 4px 10px;
  border-radius: 999px;
  background: transparent;
  color: #7b8a93;
  font-size: 12px;
  text-align: center;
}

.live-typing-message {
  animation: typingPulse 1.1s ease-in-out infinite;
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 1;
  }
}

.message.user {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: white;
}

.message strong {
  display: block;
  margin-bottom: 5px;
}

.message ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.booking-panel {
  display: grid;
  gap: 10px;
  max-height: 245px;
  overflow-y: auto;
  padding: 12px;
  border-top: 1px solid rgba(219, 229, 233, 0.72);
  background: #fbfdfd;
  scrollbar-gutter: stable;
}

.booking-panel.collapsed {
  max-height: none;
  overflow: visible;
  padding-block: 9px;
}

.booking-panel[hidden] {
  display: none;
}

.booking-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.booking-panel-header strong {
  display: block;
}

.booking-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.booking-panel.collapsed .booking-slots,
.booking-panel.collapsed .booking-payment-form,
.booking-panel.collapsed .booking-message,
.booking-panel.collapsed #refreshBookingSlots {
  display: none;
}

.booking-message,
.booking-payment-form p {
  color: var(--muted);
  font-size: 11px;
}

.booking-panel-header button,
.booking-slots button,
.booking-payment-form button {
  border-radius: 8px;
  font-weight: 820;
}

.booking-panel-header button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  background: white;
  color: var(--aqua-dark);
  font-size: 11px;
}

.booking-slots {
  display: grid;
  gap: 8px;
}

.booking-slots > p,
.booking-message {
  margin: 0;
}

.booking-slots button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  text-align: left;
}

.booking-slots button:hover,
.booking-slots button.selected {
  border-color: rgba(15, 139, 141, 0.48);
  box-shadow: 0 8px 20px rgba(23, 53, 77, 0.08);
}

.booking-slots button.selected {
  background: #e8f5f2;
}

.booking-slots span,
.booking-slots small {
  color: var(--muted);
  font-size: 11px;
}

.booking-payment-form {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
  background: white;
}

.booking-payment-form[hidden] {
  display: none;
}

.payment-details {
  display: grid;
  gap: 6px;
}

.payment-details dl {
  gap: 5px;
  margin: 0;
}

.payment-details dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding-top: 5px;
}

.payment-details dt,
.payment-details dd {
  font-size: 11px;
}

.payment-details dd {
  overflow-wrap: anywhere;
}

.booking-payment-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.booking-payment-form input {
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(219, 229, 233, 0.88);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.booking-payment-form button {
  min-height: 38px;
  border: 0;
  background: var(--aqua);
  color: white;
}

.booking-payment-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 16px;
  background: #f7fbfa;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: #076d70;
  font-weight: 700;
}

.online-booking-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: white;
  font: inherit;
  font-weight: 820;
}

.compact-contact-card {
  gap: 8px;
}

.wechat-toggle {
  width: fit-content;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: white;
  font-weight: 820;
}

.routing-actions {
  display: grid;
  gap: 8px;
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  color: white;
  font-weight: 820;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.secondary-route {
  border: 1px solid rgba(15, 139, 141, 0.18);
  background: white;
  color: var(--aqua-dark);
}

.wechat-panel {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.wechat-panel[hidden] {
  display: none;
}

.wechat-panel img {
  width: min(210px, 100%);
  border-radius: 8px;
}

.wechat-panel small {
  color: var(--muted);
  text-align: center;
}

.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1s ease-in-out infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.48;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.quick-prompts {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  overflow-x: auto;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(219, 229, 233, 0.72);
  background: white;
}

.quick-prompts button {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 999px;
  background: #f7fbfa;
  color: var(--aqua-dark);
  font-size: 12px;
  font-weight: 780;
}

.bot-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 0;
  background: white;
}

.bot-input-row input {
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(219, 229, 233, 0.95);
  border-radius: 999px;
  color: var(--ink);
  background: #fbfdfd;
}

.bot-input-row input:disabled,
.bot-input-row button:disabled,
.quick-prompts button:disabled,
.test-card button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.bot-input-row button {
  width: 72px;
  border: 0;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .course-grid,
  .test-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 68px;
  }

  .brand small,
  .nav-cta {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .course-grid,
  .test-grid,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .crm-toolbar {
    display: grid;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .bot-shell {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
    max-height: min(680px, calc(100vh - 100px));
  }

  .bot-shell.chat-ready {
    height: min(680px, calc(100vh - 100px));
  }

  .bot-launcher {
    right: 16px;
    bottom: 16px;
  }
}
