:root {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  color: #f3f4f5;
  background: #080a0c;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  display: flex;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 5px;
  outline: 2px solid #c9dfff;
}
body:before {
  content: "";
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(at 50% 35%, #26313c50, #0000 65%);
  position: fixed;
  inset: 0;
}
#wave {
  pointer-events: none;
  opacity: 1;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
}
header,
main,
footer {
  z-index: 1;
  position: relative;
}
header {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 4%;
  display: flex;
}
.header-label {
  letter-spacing: 0.19em;
  color: #9aabb9;
  font-size: 12px;
}
.contact {
  color: #dfe4e9;
  background: #ffffff06;
  border: 1px solid #ffffff30;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 14px;
}
.contact:hover {
  background: #ffffff12;
}
main {
  flex: 1;
  width: 100%;
  padding: clamp(80px, 16vh, 175px) 24px 60px;
}
.search-home {
  text-align: center;

  margin: auto;
}
.brand {
  letter-spacing: -0.06em;

  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
}
.brand span {
  color: #acb7c3;
  font-weight: 300;
}
.search-form {
  backdrop-filter: blur(16px);
  background: #192027b3;
  border: 1px solid #ffffff30;
  border-radius: 40px;

  gap: 18px;
  min-height: 64px;
  padding: 8px 9px 8px 23px;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: flex;
  box-shadow: 0 10px 45px #0003;
}
.search-form:hover {
  border-color: #ffffff50;
}
.search-form:focus-within {
  background: #202a34;
  border-color: #99b2ca;
}
.search-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.search-form input {
  color: #fff;
  background: 0 0;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  font-size: 17px;
}
.submit {
  color: #1c2731;
  background: #ebeff3;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}
.submit:hover {
  background: #fff;
}
.submit svg {
  width: 20px;
  height: 20px;
}
.actions {
  margin-top: 25px;
}
.search-button {
  color: #e3e7eb;
  background: #242b32;
  border: 1px solid #ffffff0c;
  border-radius: 7px;
  padding: 12px 24px;
  font-size: 14px;
}
.search-button:hover {
  border-color: #ffffff40;
}

.results {
  text-align: left;
  max-width: 760px;
  margin: 46px auto 0;
}
.results[hidden] {
  display: none;
}
.results-heading {
  color: #a9b5c0;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
}
.result {
  border-top: 1px solid #ffffff14;
  padding: 24px 0;
}
.result-category {
  letter-spacing: 0.1em;
  color: #9baaba;
  margin: 0 0 9px;
  font-size: 12px;
}
.result h2 {
  letter-spacing: -0.02em;
  color: #e4edf6;
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 400;
}
.result p {
  color: #aab5c0;
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.7;
}
.result button {
  color: #c4d8ed;
  background: 0 0;
  border: 0;
  padding: 0;
  font-size: 14px;
}
.result button:hover {
  text-decoration: underline;
}
.results-note {
  color: #82909c;
  margin: 25px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
body.has-results .brand {
  font-size: 42px;
}
footer {
  color: #7f8a94;
  background: #06090b80;
  border-top: 1px solid #ffffff08;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4%;
  font-size: 12px;
  display: flex;
}
dialog {
  color: #eee;
  background: #131a21;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  width: min(580px, 90%);
  padding: 30px;
  box-shadow: 0 24px 100px #000b;
}
dialog::backdrop {
  backdrop-filter: blur(8px);
  background: #0009;
}
.dialog-top {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  display: flex;
}
.dialog-top h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
}
.close {
  color: #bdc9d4;
  background: 0 0;
  border: 0;
  padding: 5px 10px;
  font-size: 28px;
}
dialog p {
  font-size: 15px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
  color: #e4e9ed;
  background: #090d12;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  width: 100%;
  min-height: 200px;
  margin: 10px 0 20px;
  padding: 18px;
  line-height: 1.6;
}
.copy {
  color: #111;
  background: #edf2f6;
  border: 0;
  border-radius: 30px;
  padding: 13px 24px;
}
.status {
  min-height: 24px;
  font-size: 13px;
  margin-bottom: 0 !important;
}
@media (max-width: 600px) {
  header {
    padding: 22px 6%;
  }
  .header-label {
    letter-spacing: 0.12em;
    font-size: 10px;
  }
  .contact {
    padding: 9px 15px;
    font-size: 13px;
  }
  main {
    padding: 110px 20px 50px;
  }
  .brand {
    font-size: 40px;
  }
  .tagline {
    margin: 0 auto 28px;
  }
  .search-form {
    gap: 12px;
    min-height: 60px;
    padding-left: 18px;
  }
  .search-form input {
    font-size: 15px;
  }
  .submit {
    width: 42px;
    height: 42px;
  }

  .result h2 {
    font-size: 21px;
  }
  body.has-results .brand {
    font-size: 33px;
  }
  footer {
    padding: 20px 6%;
    font-size: 11px;
    line-height: 1.6;
  }
  dialog {
    padding: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.brand {
  margin: 0 auto 12px;
  line-height: 0;
}
.brand-logo {
  filter: none;

  height: auto;
  margin: 0 auto;
  display: block;
}
.tagline {
  margin-bottom: 28px;
}
.comparison-title {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
.logo-comparison {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 30px;
  display: grid;
}
.logo-comparison figure {
  min-width: 0;
  margin: 0;
}
.logo-comparison img {
  width: 100%;
  height: auto;
  display: block;
}
.logo-comparison .transparent-logo {
  filter: none;
}
.logo-comparison figcaption {
  color: #a9b6c2;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.search-form,
.actions,
.suggestions {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
body.has-results .logo-comparison {
  max-width: 520px;
}
@media (max-width: 600px) {
  .logo-comparison {
    gap: 12px;
    margin-bottom: 25px;
  }
  .logo-comparison figcaption {
    font-size: 12px;
  }
  .search-home {
    max-width: 760px;
  }
}
.search-home {
  max-width: 760px;
}
.brand {
  margin-bottom: 28px;
}
.brand-logo {
  width: 360px;
  max-width: 100%;
}
body.has-results .brand-logo {
  width: 250px;
}
@media (max-width: 600px) {
  .brand-logo {
    width: 300px;
  }
  body.has-results .brand-logo {
    width: 220px;
  }
}
.ai-label {
  margin: 0 0 14px;
}
main {
  padding-top: clamp(80px, 16vh, 175px);
}
body.has-results main {
  padding-top: 40px;
}
@media (max-width: 600px) {
  main {
    padding-top: 65px;
  }
  body.has-results main {
    padding-top: 25px;
  }
}
.search-form {
  -webkit-backdrop-filter: blur(26px) saturate(140%) brightness(115%);
  background: linear-gradient(120deg, #ffffff04, #ffffff01);
  border: 1px solid #ffffff2e;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  box-shadow:
    inset 0 1px #ffffff17,
    inset 0 -1px #ffffff06,
    0 12px 36px #00000029;
}
.search-form:hover {
  background: linear-gradient(120deg, #ffffff06, #ffffff02);
  border-color: #ffffff45;
}
.search-form:focus-within {
  background: linear-gradient(120deg, #ffffff08, #ffffff03);
  border-color: #bbd5ee7a;
  box-shadow:
    inset 0 1px #ffffff21,
    0 12px 36px #00000029,
    0 0 0 3px #bbd5ee0b;
}
.search-form input::placeholder,
.search-icon {
  color: #b2bdc7;
}
@supports not (backdrop-filter: blur(1px)) {
  .search-form {
    background: #1920271f;
  }
}
.search-form {
  align-items: center;
}
.search-form #idea {
  resize: none;
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: #607080 transparent;
  background: 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;

  margin: 0;
  padding: 11px 0;
  font-size: 17px;
  line-height: 24px;
  transition: height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
  overflow-y: hidden;
}
.search-form.expanded {
  border-radius: 25px;
  align-items: flex-end;
}
.search-form.expanded .search-icon {
  align-self: flex-start;
  margin-top: 13px;
}
.search-form.expanded .submit {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .search-form #idea {
    font-size: 15px;
  }
  .search-form.expanded {
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-form #idea {
    transition: none;
  }
}
.brand-logo {
  transition: none;
}
.intro-copy {
  transition:
    opacity 0.25s,
    transform 0.35s;
}
.conversation[hidden] {
  display: none;
}
.conversation {
  text-align: left;
  max-width: 760px;
  margin: auto;
  animation: 0.45s both chatEnter;
}
.chat-meta {
  color: #8394a4;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 18px;
  font-size: 12px;
  display: flex;
}
.chat-meta button {
  background: 0 0;
  border: 0;
  padding: 8px;
  font-size: 13px;
}
.messages {
  max-height: calc(100dvh - 240px - var(--composer-height, 100px));
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #44525e transparent;
  scroll-behavior: smooth;
  padding: 12px 8px 28px;
  overflow-y: auto;
}
.message {
  gap: 14px;
  margin: 0 0 28px;
  animation: 0.4s cubic-bezier(0.22, 1, 0.36, 1) both chatEnter;
  display: flex;
}
.message.user {
  justify-content: flex-end;
}
.message.user .message-text {
  background: #ffffff07;
  border: 1px solid #ffffff14;
  border-radius: 20px 20px 5px;
  max-width: 85%;
  padding: 14px 20px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}
.assistant-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 6px;
}
.assistant-content {
  flex: 1;
  min-width: 0;
}
.message-action {
  color: #e1edf8;
  text-align: left;
  background: #ffffff07;
  border: 1px solid #ffffff30;
  border-radius: 24px;
  margin-top: 20px;
  padding: 12px 18px;
  font-size: 14px;
}
.thinking {
  align-items: center;
  gap: 6px;
  height: 28px;
  display: flex;
}
.thinking span {
  background: #a8bbcd;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: 1.2s ease-in-out infinite breathe;
}
.thinking span:nth-child(2) {
  animation-delay: 0.15s;
}
.thinking span:nth-child(3) {
  animation-delay: 0.3s;
}
.submit:disabled {
  opacity: 0.5;
  cursor: wait;
}
body.chat-active main {
  padding-top: 22px;
  padding-bottom: 0;
}
body.chat-active .brand {
  margin-bottom: 10px;
}
body.chat-active .brand-logo {
  width: 150px;
}
body.chat-active .ai-label,
body.chat-active .tagline,
body.chat-active .suggestions {
  display: none;
}
body.chat-active .composer {
  width: min(808px, 100%);
  padding: 14px 24px max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  background: linear-gradient(#080a0c00, #080a0ce8 35%, #080a0c 85%);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
}
body.chat-active .search-form {
  width: 100%;
}
.search-form #idea {
  max-height: 160px;
}
body.chat-active .search-form {
  -webkit-backdrop-filter: blur(26px) saturate(140%) brightness(115%);
}
@keyframes chatEnter {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes breathe {
  0%,
  80%,
  to {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (max-width: 600px) {
  body.chat-active main {
    padding: 16px 16px 0;
  }
  .messages {
    max-height: calc(100dvh - 200px - var(--composer-height, 100px));
    padding-left: 0;
    padding-right: 0;
  }
  .message {
    gap: 10px;
  }
  .message-text {
    font-size: 15px;
  }
  .message.user .message-text {
    padding: 12px 16px;
  }
  .message-action {
    font-size: 13px;
  }
  body.chat-active .composer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .conversation,
  .message,
  .thinking span {
    animation: none;
  }
  .messages {
    scroll-behavior: auto;
  }
}
.tagline {
  color: #c7d0d9;
}
.ai-label {
  color: #bdc9d5;
}

.search-form #idea::placeholder {
  color: #c4ced8;
}
.search-icon {
  color: #c4ced8;
}
.assistant-content {
  color: #e0e7ee;
}
.message.user .message-text {
  color: #edf2f7;
}
.chat-meta,
.demo-note {
  color: #aebbc8;
}
.chat-meta button {
  color: #d4dfea;
}
dialog p {
  color: #c7d0d9;
}
.status {
  color: #bdc9d5;
}
.demo-note {
  color: #b4c1cf;
  max-width: 650px;
  margin: 12px auto 0;
  font-size: 11px;
  line-height: 1.6;
}
.demo-note a,
.contact-card a {
  color: #dce8f5;
  text-underline-offset: 3px;
}
.contact-card {
  background: #111820e6;
  border: 1px solid #ffffff26;
  border-radius: 20px;
  margin-top: 20px;
  padding: 22px;
  animation: 0.3s chatEnter;
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
}
.contact-card p {
  color: #c1cedb;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}
.contact-fields {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}
.contact-card label {
  color: #d3deea;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  display: block;
}
.contact-card input,
.contact-card select {
  color: #f1f5fa;
  width: 100%;
  font: inherit;
  background: #ffffff06;
  border: 1px solid #ffffff30;
  border-radius: 10px;
  outline: none;
  margin-top: 5px;
  padding: 10px;
  display: block;
}
.contact-card input:focus,
.contact-card select:focus {
  border-color: #c4d8ed;
}
.contact-card .contact-consent {
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}
.contact-consent input {
  flex-shrink: 0;
  width: 16px;
  margin-top: 4px;
}
.contact-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}
.contact-actions .message-action {
  margin: 0;
}
.contact-cancel {
  color: #c9d7e6;
  background: 0 0;
  border: 0;
  padding: 10px 0;
  font-size: 13px;
}
.contact-card .contact-status {
  margin-top: 12px;
  margin-bottom: 0;
}
.chat-error {
  color: #ecc5bd;
}
body.chat-active .messages {
  max-height: calc(100dvh - 240px - var(--composer-height, 100px));
}
@media (max-width: 600px) {
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 16px;
  }
}
.intake-footer {
  text-align: center;
  background: 0 0;
  border: 0;
  padding: 22px 24px;
  display: block;
}
.intake-footer .demo-note {
  margin: 0 auto;
}
body.chat-active .intake-footer {
  display: none;
}
.conversation-reference {
  margin-top: 5px;
}
.conversation-reference summary {
  cursor: pointer;
}
.conversation-reference span {
  overflow-wrap: anywhere;
}
.message.user > .message-text {
  -webkit-backdrop-filter: blur(26px) saturate(140%) brightness(115%);
  background: linear-gradient(120deg, #ffffff04, #ffffff01);
  border: 1px solid #ffffff2e;
  border-radius: 20px 20px 5px;
  max-width: 85%;
  padding: 14px 20px;
  box-shadow:
    inset 0 1px #ffffff17,
    inset 0 -1px #ffffff06,
    0 12px 36px #00000029;
}
.message.user > .message-text > .message-text {
  max-width: 100%;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  background: 0 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
@media (max-width: 600px) {
  .message.user > .message-text {
    padding: 12px 16px;
  }
}
body.chat-active .composer {
  background: 0 0;
}
body.chat-active .search-form {
  -webkit-backdrop-filter: blur(26px) saturate(140%) brightness(115%);
  background: linear-gradient(120deg, #ffffff04, #ffffff01);
}
body.chat-active .search-form:hover {
  background: linear-gradient(120deg, #ffffff06, #ffffff02);
}
body.chat-active .search-form:focus-within {
  background: linear-gradient(120deg, #ffffff08, #ffffff03);
}
.footer-copyright {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .search-form,
  .search-form.expanded {
    border-radius: 24px;

    display: grid;
  }
  .search-form .search-icon,
  .search-form.expanded .search-icon {
    grid-area: 1/1;
  }
  .search-form #idea {
    grid-area: 1/2 / auto/4;
  }
  .search-form .submit {
    grid-area: 2/3;
    place-self: end;
    margin: 0;
  }
}
.tagline {
  max-width: 600px;
}
@media (max-width: 600px) {
  .tagline {
    max-width: 340px;
  }
}
.tagline {
  margin: 0 auto 100px;
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .tagline {
    margin-bottom: 65px;
    font-size: 15px;
  }
}
.ai-label {
  text-transform: none;
  font-variant: normal;

  margin-bottom: 100px;
}
@media (max-width: 600px) {
  .ai-label {
    margin-bottom: 65px;
  }
}
.seo-info {
  text-align: left;
  color: #aebbc8;
  max-width: 680px;
  margin: 0 auto 18px;
  font-size: 13px;
  line-height: 1.7;
}
.seo-info summary {
  text-align: center;
  cursor: pointer;
}
.seo-info h2 {
  font-size: 16px;
  font-weight: 500;
}
.seo-info a {
  color: #d4dfea;
}
body.chat-active .seo-info {
  display: none;
}
.privacy-modal {
  color: #e7eef6;
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  background: #11171ec7;
  border: 1px solid #fff3;
  border-radius: 26px;
  width: min(760px, 100% - 32px);
  max-height: 85dvh;
  padding: 0;
  font-family: inherit;
  overflow: hidden;
  box-shadow:
    inset 0 1px #ffffff16,
    0 24px 100px #0008;
}
.privacy-modal::backdrop {
  -webkit-backdrop-filter: blur(6px);
  background: #03060a7a;
}
.privacy-modal-header {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px 28px 18px;
  display: flex;
}
.privacy-modal-header h2 {
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}
.privacy-modal-close {
  color: #d4dfea;
  background: 0 0;
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
}
.privacy-modal-close:hover {
  background: #ffffff12;
}
.privacy-modal-content {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #607080 transparent;
  max-height: calc(85dvh - 82px);
  padding: 8px 28px 28px;
  overflow-y: auto;
}
.privacy-modal-content h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 500;
}
.privacy-modal-content p,
.privacy-modal-content li {
  color: #c7d0d9;
  font-size: 15px;
  line-height: 1.75;
}
.privacy-modal-content a {
  color: #d4e8fb;
  text-underline-offset: 3px;
}
.privacy-modal-content small {
  color: #aebbc8;
  font-size: 12px;
}
.privacy-modal-content button {
  color: #e7eef6;
  background: #ffffff08;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  padding: 10px 18px;
}
@media (max-width: 600px) {
  .privacy-modal {
    border-radius: 22px;
  }
  .privacy-modal-header {
    padding: 18px 20px 14px;
  }
  .privacy-modal-header h2 {
    font-size: 20px;
  }
  .privacy-modal-content {
    padding: 6px 20px 22px;
  }
  .privacy-modal-content p {
    font-size: 14px;
  }
}
.chat-meta {
  justify-content: flex-end;
}
.chat-meta #resetChat {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}
.chat-meta #resetChat svg {
  flex-shrink: 0;
}

/* Glass samples the actual dot canvas, in the same viewport coordinates. */
.search-form,
body.chat-active .search-form,
.message.user > .message-text,
.assistant-content {
  -webkit-backdrop-filter: blur(28px) saturate(140%) brightness(115%);
  backdrop-filter: blur(28px) saturate(140%) brightness(115%);
}
.assistant-content {
  background: linear-gradient(120deg, #ffffff04, #ffffff01);
  border: 1px solid #ffffff2e;
  border-radius: 5px 20px 20px;
  padding: 14px 20px;
  box-shadow:
    inset 0 1px #ffffff17,
    inset 0 -1px #ffffff06,
    0 12px 36px #00000029;
}
@media (max-width: 600px) {
  .assistant-content {
    padding: 12px 16px;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}
.search-form,
.button,
button,
a {
  touch-action: manipulation;
}
@media (max-width: 600px) {
  .search-form textarea,
  .search-form input {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .search-form,
  .search-form.expanded {
    grid-template-rows: auto;
    grid-template-columns: 22px minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 92px;
    padding: 16px 14px;
    gap: 12px;
  }
  .search-form .search-icon,
  .search-form.expanded .search-icon {
    grid-area: 1 / 1;
    align-self: center;
    margin-top: 0;
  }
  .search-form #idea {
    grid-area: 1 / 2;
    min-height: 46px;
    height: 46px;
    padding: 5px 0;
  }
  .search-form .submit {
    grid-area: 1 / 3;
    place-self: center;
  }

  .intake-footer {
    padding: 18px;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  body:not(.chat-active) .brand-logo {
    width: 240px;
  }
}
/* Release the entrance animation's backdrop root so bubbles sample the wave. */
.conversation,
.message {
  animation-fill-mode: backwards;
}
.search-form,
body.chat-active .search-form,
.message.user > .message-text,
.assistant-content {
  background: linear-gradient(120deg, #ffffff04, #ffffff01);
  border: 1px solid #ffffff2e;
  -webkit-backdrop-filter: blur(28px) saturate(140%) brightness(115%);
  backdrop-filter: blur(28px) saturate(140%) brightness(115%);
  box-shadow:
    inset 0 1px #ffffff17,
    inset 0 -1px #ffffff06,
    0 12px 36px #00000029;
}

/* Light frosted glass diffuses the wave behind readable text. */
.search-form,
.search-form:hover,
.search-form:focus-within,
body.chat-active .search-form,
body.chat-active .search-form:hover,
body.chat-active .search-form:focus-within,
.message.user > .message-text,
.assistant-content {
  background: linear-gradient(
    120deg,
    rgba(220, 232, 245, 0.12),
    rgba(200, 216, 234, 0.07)
  );
  -webkit-backdrop-filter: blur(28px) saturate(110%) brightness(100%);
  backdrop-filter: blur(28px) saturate(110%) brightness(100%);
  box-shadow:
    inset 0 1px #ffffff12,
    inset 0 -1px #ffffff04,
    0 8px 24px #00000008;
}

@keyframes chatPopIn {
  from {
    transform: translateY(10px) scale(0.985);
  }
  to {
    transform: none;
  }
}
.message,
.message.answer-arriving {
  animation: chatPopIn 340ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  transform-origin: left bottom;
}
.message.user {
  transform-origin: right bottom;
}
.messages {
  overflow-anchor: none;
}
@media (prefers-reduced-motion: reduce) {
  .message,
  .message.answer-arriving {
    animation: none;
  }
}

/* Incoming messages use an explicit animation, including reused loading bubbles. */
.message,
.message.answer-arriving {
  animation: none;
}

/* Preparation dots stay bare; the glass bubble arrives with the actual answer. */
.message.is-thinking .assistant-content {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 8px 0;
}

/* Reveal the glass underneath from the centre of the send button. */
@property --submit-clear {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.submit {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 2px solid #ebeff3;
  transition:
    color 380ms ease,
    border-color 380ms ease;
}
.submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #ebeff3;
  --submit-clear: 0%;
  -webkit-mask-image: radial-gradient(
    circle farthest-side,
    transparent calc(var(--submit-clear) - 1px),
    #000 var(--submit-clear)
  );
  mask-image: radial-gradient(
    circle farthest-side,
    transparent calc(var(--submit-clear) - 1px),
    #000 var(--submit-clear)
  );
  transition: --submit-clear 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.submit:hover {
  background: transparent;
}
.submit:not(:disabled):hover,
.submit:not(:disabled):focus-visible {
  color: #fff;
  border-color: #fff;
}
.submit:not(:disabled):hover::before,
.submit:not(:disabled):focus-visible::before {
  --submit-clear: 105%;
}
@media (prefers-reduced-motion: reduce) {
  .submit,
  .submit::before {
    transition: none;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  body:not(.chat-active) .ai-label {
    margin-bottom: 56px;
  }
}
/* Touch devices must not retain the desktop hover reveal after tapping. */
@media (hover: none), (pointer: coarse) {
  .submit,
  .submit:hover,
  .submit:focus-visible,
  .submit:not(:disabled):hover,
  .submit:not(:disabled):focus-visible {
    color: #1c2731;
    background: #ebeff3;
    border-color: #ebeff3;
  }
  .submit::before {
    display: none;
  }
  .submit:not(:disabled):active {
    background: #fff;
    border-color: #fff;
  }
}
/* Compact mobile chat header; the opening logo stays large and centred. */
@media (max-width: 600px) {
  body.chat-active .search-home {
    position: relative;
  }
  body.chat-active .brand {
    width: 80px;
    min-height: 47px;
    margin: 0 0 24px;
    text-align: left;
  }
  body.chat-active .brand-logo {
    display: block;
    width: 80px;
    height: auto;
  }
  body.chat-active .chat-meta {
    position: absolute;
    top: 0;

    height: 47px;
    padding: 0;
    margin: 0;
  }
  body.chat-active .chat-meta #resetChat {
    font-size: 12px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
  }
  body.chat-active .messages {
    max-height: calc(100dvh - 100px - var(--composer-height, 100px));
  }
}
/* Fade each glass surface itself, keeping the live backdrop available. */
.messages {
  padding-top: 42px;
  padding-bottom: 72px;
}
.message > .assistant-content,
.message.user > .message-text,
.assistant-mark {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent calc(var(--fade-top, -50px) - var(--fade-top-length, 40px)),
    #000 var(--fade-top, -50px),
    #000 var(--fade-bottom, 10000px),
    transparent calc(var(--fade-bottom, 10000px) + 64px)
  );
  mask-image: linear-gradient(
    to bottom,
    transparent calc(var(--fade-top, -50px) - var(--fade-top-length, 40px)),
    #000 var(--fade-top, -50px),
    #000 var(--fade-bottom, 10000px),
    transparent calc(var(--fade-bottom, 10000px) + 64px)
  );
}
@media (max-width: 600px) {
  .messages {
    padding-top: 42px;
    padding-bottom: 72px;
  }
}

@media (max-width: 600px) {
  body.chat-active .search-form {
    border-radius: 40px;
    min-height: 64px;
    padding: 8px 10px 8px 16px;
    gap: 10px;
  }
  body.chat-active .search-form.expanded {
    border-radius: 24px;
  }
  body.chat-active .search-form #idea {
    min-height: 46px;
    padding: 10px 0;
    line-height: 26px;
  }
}

@media (max-width: 600px) {
  body.chat-active .brand {
    position: relative;
    z-index: 5;
    pointer-events: none;
  }
  body.chat-active .chat-meta {
    z-index: 6;
  }
  body.chat-active .messages {
    position: relative;
    margin-top: -71px;
    padding-top: 112px;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 24px;
  }
}

/* Animate the shared composer from rounded ends to a multiline panel. */
body .search-form {
  border-radius: var(--input-pill-radius, 40px);
  transition:
    border-radius 360ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}
body .search-form.expanded,
body.chat-active .search-form.expanded {
  border-radius: 24px;
}
body .search-form #idea {
  transition: height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 600px) {
  body:not(.chat-active) .search-form,
  body.chat-active .search-form {
    border-radius: var(--input-pill-radius, 40px);
  }
  body:not(.chat-active) .search-form.expanded,
  body.chat-active .search-form.expanded {
    border-radius: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body .search-form,
  body .search-form #idea {
    transition: none;
  }
}
/* Keep controls anchored to opposite corners of the multiline composer. */
body .search-form.expanded .search-icon {
  align-self: flex-start;
  margin-top: 13px;
}
body .search-form.expanded .submit {
  align-self: flex-end;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  body .search-form.expanded .search-icon {
    align-self: start;
    margin-top: 10px;
  }
  body .search-form.expanded .submit {
    place-self: end;
  }
}
/* Spread the mobile welcome screen over the available viewport height. */
@media (max-width: 600px) {
  body:not(.chat-active) main {
    display: flex;
    flex-direction: column;

    padding-bottom: 38px;
  }
  body:not(.chat-active) .search-home {
    display: grid;

    flex: 1;
    width: 100%;
  }
  body:not(.chat-active) .brand {
    grid-row: 1;
    margin-bottom: 38px;
  }
  body:not(.chat-active) .ai-label {
    grid-row: 2;
    margin-bottom: 0;
  }
  body:not(.chat-active) .composer {
    grid-row: 4;
    width: 100%;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  body:not(.chat-active) main {
    padding-bottom: 28px;
  }
  body:not(.chat-active) .brand {
    margin-bottom: 28px;
  }
}
/* Keep the footer quieter than the main content. */
.intake-footer .demo-note {
  color: #788792;
}
.intake-footer .demo-note a {
  color: #8b99a4;
}
.intake-footer .demo-note a:hover,
.intake-footer .demo-note a:focus-visible {
  color: #b4c1cf;
}

/* Copy answers through their action button; keep editable fields selectable. */
body {
  -webkit-user-select: none;
  user-select: none;
}
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
.answer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  margin: 12px 0 -6px -8px;
  border: 0;
  border-radius: 10px;
  color: #8b99a4;
  background: transparent;
  transition:
    color 180ms ease,
    background 180ms ease;
}
.answer-copy svg {
  width: 20px;
  height: 20px;
}
.answer-copy:hover,
.answer-copy:focus-visible {
  color: #e0e7ee;
  background: #ffffff0a;
}
/* Let desktop messages fade behind the logo and reset control too. */
@media (min-width: 601px) {
  body.chat-active .brand {
    position: relative;
    z-index: 5;
    pointer-events: none;
  }
  body.chat-active .chat-meta {
    z-index: 6;
    pointer-events: none;
  }
  body.chat-active .chat-meta button {
    pointer-events: auto;
  }
  body.chat-active .messages {
    position: relative;
  }
}
/* Keep scrolling unobtrusive and the reset action clear of the chat edges. */
body.chat-active .messages {
  scrollbar-width: none;
}
body.chat-active .messages::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
@media (min-width: 601px) {
  body.chat-active .search-home {
    position: relative;
  }
  body.chat-active .chat-meta {
    position: absolute;
    top: 16px;
    right: 12px;
    padding: 0;
    margin: 0;
  }
  body.chat-active .chat-meta #resetChat {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 24px;
  }
  body.chat-active .messages {
    margin-top: -100px;
    padding-top: 142px;
  }
}
@media (max-width: 600px) {
  body.chat-active .chat-meta {
    right: 8px;
  }
}
/* Align the desktop chat header with the mobile left/right layout. */
@media (min-width: 601px) {
  body.chat-active .brand {
    width: 150px;
    margin: 0 0 10px;
    text-align: left;
  }
  body.chat-active .brand-logo {
    display: block;
    margin: 0;
  }
}
/* One quiet example at a time, inside the empty welcome composer. */
.search-form #idea::placeholder {
  opacity: 1;
  transition: opacity 240ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .search-form #idea::placeholder {
    transition: none;
  }
}
/* Plain-language introduction instead of the short English label. */
.ai-label {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: normal;
  font-weight: 400;
  text-wrap: pretty;
}
@media (max-width: 600px) {
  .ai-label {
    max-width: 350px;
    font-size: 15px;
    line-height: 1.6;
  }
}

/* Mobile composers use rounded rectangles; keep the footer on welcome only. */
@media (max-width: 600px) {
  body:not(.chat-active) .search-form,
  body:not(.chat-active) .search-form.expanded,
  body.chat-active .search-form,
  body.chat-active .search-form.expanded {
    border-radius: 24px;
  }
  body.chat-active .composer .demo-note {
    display: none;
  }
}
/* Give the mobile welcome logo a little more space above it. */
@media (max-width: 600px) {
  body:not(.chat-active) .brand-logo {
    width: 240px;
  }
}
/* Place the mobile welcome content lower without crowding the footer. */
@media (max-width: 600px) {
  body:not(.chat-active) main {
    padding-top: 104px;
  }
  body:not(.chat-active) .search-home {
    grid-template-rows: auto auto minmax(60px, 1.6fr) auto minmax(60px, 1fr);
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  body:not(.chat-active) main {
    padding-top: 84px;
  }
  body:not(.chat-active) .search-home {
    grid-template-rows: auto auto minmax(40px, 1.6fr) auto minmax(40px, 1fr);
  }
}
/* Align the mobile input icon with the first text line, including wrapped prompts. */
@media (max-width: 600px) {
  body .search-form #idea {
    align-self: start;
  }
  body .search-form .search-icon,
  body .search-form.expanded .search-icon {
    align-self: start;
    margin-top: 6px;
  }
  body.chat-active .search-form .search-icon,
  body.chat-active .search-form.expanded .search-icon {
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  body.chat-active .brand,
  body.chat-active .brand-logo {
    width: 92px;
  }
}

/* Align the mobile new-conversation action with the chat right edge. */
@media (max-width: 600px) {
  body.chat-active .chat-meta {
    right: 0;
  }
}
/* Keep navigation and button labels from selecting on touch devices. */
button,
[role="button"],
nav,
.chat-meta,
.suggestions {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Reset label follows the chat's right edge on every viewport. */
body.chat-active .chat-meta {
  right: 0;
  padding-right: 0;
}
body.chat-active .chat-meta #resetChat {
  padding-right: 0;
  margin-right: 0;
}

/* Anchor the reset action to the actual chat column, not the viewport. */
body.chat-active .conversation {
  transform: none;
  animation: none;
}
body.chat-active .chat-meta {
  position: absolute;
  left: auto;
  right: 0;
  width: max-content;
}
body.chat-active .chat-meta #resetChat {
  padding-right: 0;
  margin-right: 0;
}
body:not(.chat-active) .search-home > .chat-meta {
  display: none;
}
body.chat-active .search-home > .chat-meta {
  position: absolute;
  right: 0;
  left: auto;
  width: max-content;
  margin: 0;
  padding: 0;
}
body.chat-active .search-home > .chat-meta #resetChat {
  margin: 0;
  padding-right: 0;
} /* Center the welcome block in the available desktop viewport, above its footer. */
@media (min-width: 601px) {
  body:not(.chat-active) .site-home > main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
  }
  body:not(.chat-active) .site-home .search-home {
    width: 100%;
    margin: 0 auto;
  }
}

/* SVG arrows avoid platform emoji rendering. */
.inline-arrow { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.12em; }
