:root {
  --bg: #FFFFFF;
  --mist: #F6F8FB;
  --line: #E5E9F0;
  --line-2: #D3D9E4;
  --ink: #0B1020;
  --ink-2: #353C4E;
  --muted: #687084;
  --blue: #2443D6;
  --blue-soft: #EEF2FF;
  --teal: #0E9F79;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 16px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 8px 24px -12px rgba(11, 16, 32, .12);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body { background: var(--bg); color: var(--ink-2); font-family: var(--f-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 820px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.015em; line-height: 1.3; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; background: var(--blue); color: #fff; font-weight: 500; font-size: .96rem; letter-spacing: -0.005em; box-shadow: 0 1px 2px rgba(11,16,32,.1), inset 0 1px 0 rgba(255,255,255,.14); transition: transform .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { background: #1D38B8; transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 15px; font-size: .9rem; border-radius: 10px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #EEF2FF; }
.ghost { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: transparent; color: var(--ink-2); font-size: .88rem; padding: 7px 11px; border-radius: 10px; transition: background .2s; }
.ghost:hover { background: var(--mist); color: var(--ink); }
.ghost svg { width: 15px; height: 15px; }
.ghost-dark { color: #C9D0E0; }
.ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; height: 66px; gap: 20px; }
.logo img { height: 28px; width: auto; }
.top-links { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: .93rem; }
.top-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 720px) { .top-links a:not(.btn) { display: none; } }

/* hero */
.hero { padding-top: 44px; padding-bottom: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; color: var(--blue); margin-bottom: 14px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(14,159,121,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14,159,121,.45); } 70% { box-shadow: 0 0 0 9px rgba(14,159,121,0); } 100% { box-shadow: 0 0 0 0 rgba(14,159,121,0); } }
.lede { margin-top: 18px; font-size: 1.13rem; max-width: 640px; color: var(--ink-2); }

/* store picker */
.picker { padding-bottom: 18px; }
.stores { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.stores::-webkit-scrollbar { display: none; }
.store { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; cursor: pointer; text-align: left; padding: 11px 16px 11px 14px; min-width: 168px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s, transform .2s var(--ease); }
.store:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.store[aria-checked="true"] { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.store b { font-weight: 600; color: var(--ink); font-size: .95rem; letter-spacing: -0.01em; }
.store span { font-size: .8rem; color: var(--muted); }
.paste { margin-top: 6px; }
.paste-field { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 5px 5px 5px 14px; background: var(--mist); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background .2s; }
.paste-field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(36,67,214,.1); }
.paste-field svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.paste-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 38px; font-size: .95rem; color: var(--ink); }
.paste-field input::placeholder { color: #8A91A3; }
.paste-msg { min-height: 1.4em; margin-top: 8px; font-size: .88rem; color: var(--muted); }
.paste-msg.err { color: #B4380F; }
.paste-msg.ok { color: var(--teal); }

/* chat card */
.chat-card { display: flex; flex-direction: column; height: min(760px, calc(100svh - 110px)); min-height: 520px; background: var(--bg); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 2px 4px rgba(11,16,32,.03), 0 30px 60px -36px rgba(11,16,32,.28); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #FBFCFE); }
.chat-store { display: flex; align-items: center; gap: 12px; min-width: 0; }
.chat-store > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.chat-store strong { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-store .muted { font-size: .82rem; }
.store-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14,159,121,.14); flex: none; }
.chat-root { flex: 1; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(1200px 400px at 50% -200px, #F3F6FF, transparent 70%); }
.chat-loading { margin: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.disclaimer { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: center; }

/* how */
.how { padding-top: 96px; }
.head { max-width: 640px; margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 26px; border-radius: var(--r); background: var(--mist); }
.step .num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* embed */
.embed { padding-top: 96px; padding-bottom: 96px; }
.embed-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 40px; border-radius: 24px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.embed-copy p { margin: 14px 0 18px; font-size: 1.02rem; }
.ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; font-size: .95rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.embed-code { background: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,16,32,.5); min-width: 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #9AA3B8; font-family: var(--f-mono); }
.embed-code pre { padding: 20px 18px; overflow-x: auto; font-family: var(--f-mono); font-size: .84rem; line-height: 1.7; color: #E6EAF4; }
.embed-code .t { color: #7FA2FF; } .embed-code .a { color: #5FD3B2; } .embed-code .s { color: #FFC98A; }
.code-note { padding: 0 18px 16px; font-size: .78rem; color: #8A93A8; }
@media (max-width: 860px) { .embed-card { grid-template-columns: 1fr; padding: 24px; gap: 28px; } }

/* footer */
.foot { background: var(--ink); color: #C9D0E0; }
.foot-in { padding-top: 72px; padding-bottom: 36px; }
.cta h2 { color: #fff; max-width: 760px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.mail { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; font-size: .98rem; }
.mail:hover { border-color: #fff; }
.foot-small { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8A93A8; }
.foot-logo img { height: 22px; width: auto; }

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 32px; padding-bottom: 20px; }
  .lede { font-size: 1.02rem; }
  .chat-card { border-radius: 18px; height: calc(100svh - 84px); min-height: 480px; }
  .chat-head { padding: 12px 12px 12px 16px; }
  .paste-field .btn { padding: 0 12px; }
  .nc-label { display: none; }
  #new-chat { padding: 9px; }
  .how, .embed { padding-top: 64px; }
  .embed { padding-bottom: 64px; }
  .foot-in { padding-top: 56px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .cta h2 { font-size: 1.5rem; line-height: 1.2; }
  .cta-actions { gap: 18px; margin-top: 24px; }
  .cta-actions .btn { width: 100%; }
  .foot-small { margin-top: 44px; flex-direction: column; align-items: flex-start; }
  .embed-code pre { white-space: pre-wrap; word-break: break-all; font-size: .8rem; }
  .embed-card { padding: 20px; }
}
