* { box-sizing: border-box; }
html { background: var(--ck-bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(121, 79, 119, .27), transparent 42%),
    linear-gradient(180deg, #0d0b13 0%, #0a0910 100%);
  color: var(--ck-text);
  font-family: var(--ck-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--ck-rose); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.chat-legal {display:flex;justify-content:center;gap:24px;margin:16px 0 0;font-size:12px;color:var(--ck-text-muted)}
.chat-legal a,.chat-legal button {color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer}
.chat-status {min-height:1.4em;text-align:center;font-size:13px;color:var(--ck-rose)}
.paid-report {line-height:1.7;color:var(--ck-text);padding:18px;background:#211b29;border-radius:20px;margin-top:20px}
.report-markdown h1,.report-markdown h2,.report-markdown h3,.report-markdown h4{line-height:1.35;margin:1.3em 0 .55em}
.report-markdown p,.report-markdown ul,.report-markdown ol{margin:.65em 0}
.report-markdown ul,.report-markdown ol{padding-inline-start:1.4em}
.report-markdown li{margin:.35em 0}
.report-markdown pre{white-space:pre-wrap;overflow-wrap:anywhere}

.app-shell {
  width: min(100%, 440px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(12px + env(safe-area-inset-top))
    14px
    calc(22px + env(safe-area-inset-bottom));
  position: relative;
  overflow: clip;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 10px;
}
.brand-line { display: flex; align-items: center; gap: 7px; }
.brand {
  font-family: var(--ck-font-serif);
  font-size: clamp(28px, 7.5vw, 34px);
  line-height: 1;
  letter-spacing: .03em;
  font-weight: 700;
  color: #fff5ed;
  text-shadow: 0 6px 18px rgba(244, 158, 181, .12);
}
.brand-sparkle { color: var(--ck-rose); font-size: 23px; transform: translateY(-5px); }
.tagline { margin: 7px 0 0; color: var(--ck-text-muted); font-size: 13px; letter-spacing: .04em; }
.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: var(--ck-radius-pill);
  border: 1px solid var(--ck-border);
  background: rgba(24, 19, 30, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.language-button {
  border: 0;
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ck-radius-pill);
  background: transparent;
  color: var(--ck-text-soft);
  cursor: pointer;
  transition: background var(--ck-motion-fast), color var(--ck-motion-fast), transform var(--ck-motion-fast);
}
.language-button[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffd4dc, #f0a5b8);
  color: #21141b;
  box-shadow: 0 8px 24px rgba(238, 151, 177, .2), inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.language-button:active { transform: scale(.96); }

.hero-card {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(219, 146, 184, .55);
  background:
    url('../chat-assets/layers/hero-glow.svg') center/cover no-repeat,
    url('../chat-assets/layers/hero-background.svg') center/cover no-repeat,
    #211720;
  box-shadow: var(--ck-shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  isolation: isolate;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(21, 15, 24, .08) 0%, rgba(21, 15, 24, 0) 52%, rgba(18, 13, 22, .04) 100%);
}
.hero-copy {
  position: relative;
  z-index: 5;
  width: 68%;
  min-height: 218px;
  padding: 20px 0 17px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--ck-radius-pill);
  border: 1px solid rgba(255, 186, 205, .28);
  background: rgba(143, 87, 113, .44);
  color: #ffdae2;
  font-size: 12px;
  letter-spacing: .04em;
  backdrop-filter: blur(9px);
}
.hero-title {
  margin: 13px 0 7px;
  font-size: clamp(29px, 8vw, 36px);
  line-height: 1.13;
  letter-spacing: -.045em;
  color: #fff8f3;
  text-shadow: 0 7px 24px rgba(0, 0, 0, .25);
}
.hero-title > span:first-child { display: block; }
.hero-line-two {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .18em;
  margin-top: 4px;
  font-size: .72em;
  letter-spacing: -.025em;
}
.hero-line-two strong {
  position: relative;
  color: #f7a2b7;
  font-weight: 800;
}
.hero-line-two strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ck-rose), transparent);
  transform: rotate(-1.5deg);
}
.hero-description {
  width: min(100%, 278px);
  margin: 6px 0 0;
  color: #e5dce3;
  font-size: 13px;
  line-height: 1.55;
}
.support-scribble {
  margin: auto 0 0 4px;
  font-family: var(--ck-font-hand);
  color: #f3a2b3;
  font-size: 19px;
  transform: rotate(-4deg);
  letter-spacing: .06em;
}
.hero-portrait {
  position: absolute;
  z-index: 2;
  right: -42px;
  bottom: -75px;
  width: 69%;
  max-width: 300px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: saturate(.93) contrast(1.02);
}
.advisor-chip {
  position: absolute;
  z-index: 6;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px 9px 10px;
  border: 1px solid rgba(239, 169, 195, .48);
  border-radius: 17px;
  background: rgba(35, 24, 36, .76);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
.status-dot {
  width: 10px; height: 10px; margin-top: 4px; flex: 0 0 auto;
  border-radius: 50%; background: var(--ck-green);
  box-shadow: 0 0 0 3px rgba(48, 213, 120, .12), 0 0 13px rgba(48, 213, 120, .45);
}
.advisor-chip div { display: grid; gap: 1px; }
.advisor-chip strong { font-size: 13px; }
.advisor-chip span:last-child { color: #e7dce4; font-size: 11px; }

.trust-strip {
  margin-top: 7px;
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1px;
  border: 1px solid rgba(119, 86, 117, .38);
  border-radius: 18px;
  background: rgba(20, 17, 25, .8);
  overflow: hidden;
}
.trust-item {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 6px;
  color: #d8cbd6;
  font-size: 10.5px;
  text-align: left;
  line-height: 1.3;
}
.trust-item + .trust-item { border-left: 1px solid rgba(115, 83, 112, .24); }
.trust-item .icon { color: var(--ck-rose); width: 21px; height: 21px; flex: 0 0 auto; }
.trust-item:nth-child(2) .icon { color: var(--ck-lavender); }

.chat-panel { padding-top: 14px; }
.message-list { display: grid; gap: 11px; }
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  opacity: 0;
  transform: translateY(10px);
  animation: message-in var(--ck-motion-normal) var(--ck-ease-out) forwards;
}
.assistant-message { padding-right: 36px; }
.user-message { justify-content: flex-end; padding-left: 45px; }
.message-avatar {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(255, 229, 232, .78);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}
.message-bubble {
  position: relative;
  max-width: 100%;
  padding: 15px 17px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(54, 44, 61, .96), rgba(39, 32, 47, .98));
  border: 1px solid rgba(126, 94, 124, .34);
  color: #fbf5fa;
  font-size: 16px;
  line-height: 1.62;
  white-space: pre-line;
  box-shadow: 0 11px 26px rgba(0, 0, 0, .2);
}
.assistant-message .message-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 15px;
  width: 14px; height: 14px;
  background: #342b3c;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.user-message .message-bubble {
  color: #fff7fa;
  background: linear-gradient(135deg, rgba(154, 79, 111, .88), rgba(99, 55, 88, .92));
  border-color: rgba(241, 158, 184, .54);
}
.typing-bubble { display: inline-flex; gap: 5px; padding: 15px 18px; }
.typing-bubble span {
  width: 7px; height: 7px; border-radius: 50%; background: #d7bdcf;
  animation: typing 1.05s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .15s; }
.typing-bubble span:nth-child(3) { animation-delay: .3s; }

.interaction-zone { margin-top: 12px; }
.quick-options-wrap, .free-input-wrap {
  transition:
    opacity var(--ck-motion-normal) var(--ck-ease-out),
    transform var(--ck-motion-normal) var(--ck-ease-out),
    max-height var(--ck-motion-slow) var(--ck-ease-out),
    margin var(--ck-motion-normal) var(--ck-ease-out);
}
.quick-options-wrap { max-height: 430px; opacity: 1; transform: translateY(0); }
.quick-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.quick-option, .custom-trigger, .back-to-quick, .send-button, .unlock-button {
  border: 0;
  cursor: pointer;
}
.quick-option {
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(151, 109, 143, .44);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(39, 31, 45, .96), rgba(27, 23, 34, .98));
  color: #f8f1f6;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform var(--ck-motion-fast), border-color var(--ck-motion-fast), background var(--ck-motion-fast), opacity var(--ck-motion-fast);
}
.quick-option:hover { border-color: rgba(240, 164, 190, .62); }
.quick-option:active { transform: scale(.975); }
.quick-option:disabled { opacity: .45; cursor: default; }
.quick-option .option-label { font-size: 14px; line-height: 1.35; }
.quick-option .icon:first-child { width: 25px; height: 25px; color: #f4a6b9; }
.quick-option .icon-arrow-right { width: 17px; height: 17px; color: #9c789a; }
.custom-trigger {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 25px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(151, 109, 143, .42);
  background: rgba(30, 25, 37, .92);
  color: #dacbd8;
  text-align: left;
  transition: transform var(--ck-motion-fast), border-color var(--ck-motion-fast), background var(--ck-motion-fast);
}
.custom-trigger:hover { border-color: rgba(239, 157, 187, .58); background: rgba(39, 30, 45, .96); }
.custom-trigger:active { transform: scale(.985); }
.custom-trigger .icon-chat { color: var(--ck-lavender); }
.custom-trigger .icon-arrow-right { color: #a47da1; }

.free-input-wrap {
  max-height: 0;
  opacity: 0;
  transform: translateY(14px);
  overflow: hidden;
  pointer-events: none;
}
.interaction-zone[data-mode="free"] .quick-options-wrap {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  overflow: hidden;
  margin: 0;
  pointer-events: none;
}
.interaction-zone[data-mode="free"] .free-input-wrap {
  max-height: 390px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
  pointer-events: auto;
}
.back-to-quick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin: 0 0 7px;
  padding: 0 7px;
  background: transparent;
  color: #f0a6b7;
  font-size: 14px;
}
.back-to-quick .icon { width: 18px; height: 18px; }
.composer-card {
  min-height: 176px;
  padding: 13px;
  border: 1px solid rgba(181, 127, 165, .56);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(43, 34, 50, .98), rgba(27, 23, 35, .98));
  box-shadow: 0 15px 32px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.composer-card textarea {
  width: 100%;
  min-height: 112px;
  max-height: 190px;
  resize: vertical;
  border: 0;
  padding: 2px 3px;
  background: transparent;
  color: #fff7fb;
  font-size: 15px;
  line-height: 1.6;
}
.composer-card textarea::placeholder { color: #a99aab; }
.composer-card textarea:focus { outline: 0; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.char-count { color: #a99dac; font-size: 12px; }
.send-button {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #4a3043;
  background: linear-gradient(135deg, #ffd1da, #f19caf);
  box-shadow: 0 11px 25px rgba(232, 139, 168, .23), inset 0 0 0 1px rgba(255, 255, 255, .46);
  transition: transform var(--ck-motion-fast), opacity var(--ck-motion-fast), filter var(--ck-motion-fast);
}
.send-button .icon { width: 25px; height: 25px; }
.send-button:active:not(:disabled) { transform: scale(.94); }
.send-button:disabled { opacity: .38; filter: grayscale(.25); cursor: default; }
.inline-error { min-height: 18px; margin: 6px 4px 0; color: #ff9ea9; font-size: 12px; }

.paywall-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(235, 157, 189, .62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 161, 190, .22), transparent 43%),
    linear-gradient(145deg, #2a1e2a, #18141f);
  box-shadow: var(--ck-shadow);
  animation: message-in var(--ck-motion-slow) var(--ck-ease-out) both;
}
.paywall-kicker {
  display: inline-flex; padding: 5px 10px; border-radius: 999px;
  background: rgba(242, 160, 181, .15); color: #ffc5d1; font-size: 12px;
}
.paywall-card h2 { margin: 12px 0 8px; font-size: 22px; line-height: 1.3; }
.paywall-card p { margin: 0; color: #d1c4d0; font-size: 14px; line-height: 1.65; }
.fact-summary { margin-top: 16px; padding: 13px; border: 1px solid rgba(235, 157, 189, .3); border-radius: 16px; background: rgba(20, 16, 26, .48); }
.fact-summary h3 { margin: 0 0 5px; color: #fff1f5; font-size: 15px; }
.fact-summary p { margin: 0 0 11px; font-size: 12px; }
.fact-row { display: grid; gap: 4px; margin-top: 9px; color: #eedce6; font-size: 12px; line-height: 1.4; }
.fact-row select { width: 100%; min-height: 42px; padding: 6px 10px; border: 1px solid rgba(235, 157, 189, .4); border-radius: 10px; background: #322735; color: #fff7fa; font: inherit; font-size: 13px; }
.fact-row select:focus-visible { outline: 2px solid var(--ck-rose); outline-offset: 2px; }
.paywall-card ul { margin: 14px 0 17px; padding: 0; list-style: none; display: grid; gap: 8px; }
.paywall-card li { position: relative; padding-left: 23px; color: #eee4ec; font-size: 13px; line-height: 1.4; }
.paywall-card li::before { content: '✓'; position: absolute; left: 0; color: var(--ck-rose); font-weight: 800; }
.unlock-button {
  width: 100%; min-height: 56px; padding: 0 15px;
  display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f4a1b8, #d887a4);
  color: #25131c;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 13px 30px rgba(220, 126, 159, .24);
}
.unlock-button strong { white-space: nowrap; }
.unlock-button .icon { width: 18px; height: 18px; }

.privacy-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 8px 6px;
  color: #a99dab;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}
.privacy-note .icon { width: 17px; height: 17px; color: #c9b8d2; flex: 0 0 auto; }

.icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}
.icon-arrow-right { --icon-url: url('../chat-assets/icons/arrow-right.svg'); }
.icon-arrow-left { --icon-url: url('../chat-assets/icons/arrow-left.svg'); }
.icon-calendar { --icon-url: url('../chat-assets/icons/calendar.svg'); }
.icon-clock { --icon-url: url('../chat-assets/icons/clock.svg'); }
.icon-broken-heart { --icon-url: url('../chat-assets/icons/broken-heart.svg'); }
.icon-chat { --icon-url: url('../chat-assets/icons/chat.svg'); }
.icon-shield-check { --icon-url: url('../chat-assets/icons/shield-check.svg'); }
.icon-users { --icon-url: url('../chat-assets/icons/users.svg'); }
.icon-user { --icon-url: url('../chat-assets/icons/user.svg'); }
.icon-send { --icon-url: url('../chat-assets/icons/send.svg'); }
.icon-file-text { --icon-url: url('../chat-assets/icons/file-text.svg'); }
.icon-lightning { --icon-url: url('../chat-assets/icons/lightning.svg'); }
.icon-question { --icon-url: url('../chat-assets/icons/question.svg'); }
.icon-check { --icon-url: url('../chat-assets/icons/check.svg'); }
.icon-lock { --icon-url: url('../chat-assets/icons/lock.svg'); }
.icon-heart { --icon-url: url('../chat-assets/icons/heart.svg'); }
.icon-close { --icon-url: url('../chat-assets/icons/close.svg'); }

@keyframes message-in { to { opacity: 1; transform: translateY(0); } }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 370px) {
  .app-shell { padding-inline: 10px; }
  .site-header { min-height: 62px; }
  .brand { font-size: 27px; }
  .language-button { min-width: 38px; padding-inline: 9px; }
  .hero-card { min-height: 208px; }
  .hero-copy { min-height: 208px; padding-left: 16px; width: 70%; }
  .hero-title { font-size: 28px; }
  .hero-portrait { right: -52px; width: 72%; }
  .advisor-chip { padding: 7px 9px; }
  .trust-item { font-size: 9.5px; gap: 4px; }
  .quick-option { padding-inline: 10px; grid-template-columns: 24px minmax(0, 1fr) 15px; }
  .quick-option .option-label { font-size: 13px; }
}

@media (min-width: 600px) {
  body { padding: 28px 0; }
  .app-shell {
    min-height: auto;
    border: 1px solid rgba(149, 110, 149, .33);
    border-radius: 38px;
    background: rgba(12, 10, 16, .91);
    box-shadow: 0 36px 90px rgba(0, 0, 0, .52);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

