/* Storeside landing. Sections: 1 Tokens, 2 Base, 3 Components, 4 Home, 5 Thanks, 6 Privacy, 7 Footer, 8 Motion, 9 Responsive */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #f4f4f5;
  --white: #ffffff;
  --ink: #09090b;
  --z900: #18181b;
  --z800: #27272a;
  --z700: #3f3f46;
  --z600: #52525b;
  --z500: #71717a;
  --z400: #a1a1aa;
  --z300: #d4d4d8;
  --line: #ececee;
  --soft: #f4f4f5;
  --orange: #ff5a00;
  --orange-d: #e65100;
  --error: #c4210f;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(48px, 8.333vw, 120px);
  --content: 1200px;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--pad), var(--content)); margin-inline: auto; }
.h1 { font-weight: 600; font-size: 64px; line-height: 72px; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.h2 { font-weight: 600; font-size: 48px; line-height: 56px; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.sub { font-size: 18px; line-height: 26px; color: var(--z600); }
.fine { font-size: 14px; line-height: 18px; color: var(--z500); }

/* 3. Components ------------------------------------------------------------ */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: -0.01em; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 500; font-size: 12px; line-height: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px;
  border: 1.5px solid #2c2e34; border-radius: 14px; background: var(--ink); color: #fff;
  font-weight: 500; font-size: 16px; line-height: 21px; white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { background: #27272a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--white); color: var(--z900); border-color: var(--line); }
.btn--light:hover { background: #fafafa; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.8; cursor: progress; transform: none; }
.btn__short { display: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; transition: background-size 0.2s var(--ease); padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-size: 100% 1.5px; }

/* Waitlist form */
.wl { display: flex; flex-direction: column; gap: 8px; }
.wl__row { display: flex; gap: 8px; align-items: stretch; }
.wl__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 14px 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; font-size: 16px; line-height: 21px; color: var(--z900);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.wl__input::placeholder { color: var(--z400); opacity: 1; }
.wl__input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.25); }
.wl.has-error .wl__input { border: 1.5px solid var(--error); }
.wl__error { display: none; font-size: 14px; line-height: 18px; color: var(--error); }
.wl.has-error .wl__error { display: block; }
.wl__status { font-size: 14px; line-height: 18px; color: var(--error); }
.wl__status[hidden] { display: none; }
.wl--dark .wl__error, .wl--dark .wl__status { color: #ff9a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-weight: 500; font-size: 16px; line-height: 21px; color: var(--z700); }
.nav a:not(.btn):hover { color: var(--ink); }
.header-back { font-weight: 500; font-size: 16px; line-height: 21px; color: var(--z900); }

/* 4. Home ------------------------------------------------------------------ */
.hero { padding: 64px 0 96px; }
.hero .wrap { display: flex; align-items: center; gap: 64px; }
.hero__copy { flex: none; width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__copy .sub { max-width: 640px; }
.hero__copy .wl { width: 100%; }
.proof { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; line-height: 18px; color: var(--z900); }
.proof__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 36px; }
.chat__head { font-weight: 600; font-size: 14px; line-height: 18px; color: var(--z500); }
.bubble { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--soft); border-radius: 20px; }
.bubble b { font-weight: 500; font-size: 12px; line-height: 16px; color: var(--z500); }
.bubble span { font-size: 16px; line-height: 21px; color: var(--z900); }
.draft { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 24px; }
.draft__row { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; color: var(--z500); }
.draft__text { font-size: 16px; line-height: 24px; color: var(--z900); }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; }
.src { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--z900); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__foot { font-size: 12px; line-height: 16px; color: var(--z500); }

.section { padding: 80px 0; }
.section > .wrap { display: flex; flex-direction: column; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 36px; }
.card img { width: 100%; aspect-ratio: 361 / 230; object-fit: cover; border-radius: 26px; }
.card__text { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.card h3 { font-weight: 600; font-size: 20px; line-height: 26px; color: var(--z900); }
.card p { font-size: 16px; line-height: 24px; color: var(--z600); }

.chamber-outer { padding: 24px 40px; }
.chamber { max-width: 1360px; margin-inline: auto; background: var(--z800); border-radius: 36px; padding: 64px; display: flex; flex-direction: column; gap: 36px; }
.chamber .h2 { color: #fff; }
.chamber .sub { color: var(--z300); }
.chamber__head { display: flex; flex-direction: column; gap: 24px; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-start; }
.tab { position: relative; z-index: 1; padding: 12px 20px; border: 1px solid var(--z600); border-radius: 999px; font-weight: 500; font-size: 16px; line-height: 21px; color: var(--z300); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.tab:hover { border-color: var(--z400); }
.tab[aria-selected="true"] { color: var(--ink); border-color: transparent; }
.tabs__pill { position: absolute; z-index: 0; left: 0; top: 0; height: 0; width: 0; border-radius: 999px; background: #fff; pointer-events: none; transition: left 0.2s var(--ease), top 0.2s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease); }
.no-pill .tab[aria-selected="true"] { background: #fff; }
.panel { display: grid; padding: 28px; background: var(--z900); border-radius: 28px; }
.reply { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; visibility: hidden; opacity: 0; transition: opacity 0.12s linear; }
.reply.is-active { visibility: visible; opacity: 1; }
.reply.is-out { opacity: 0; }
.ask { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--z800); border-radius: 20px; }
.ask b { font-weight: 500; font-size: 12px; line-height: 16px; color: var(--z400); }
.ask span { font-size: 18px; line-height: 23px; color: #fff; }
.draft--light { gap: 12px; padding: 24px; border-color: #fff; }
.draft--light .draft__text { font-size: 18px; line-height: 26px; }
.chamber__foot { font-size: 14px; line-height: 18px; color: var(--z400); }

.source .wrap { flex-direction: row; align-items: center; gap: 80px; }
.source__copy { flex: none; width: 468px; display: flex; flex-direction: column; gap: 20px; }
.diagram { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 36px; }
.diagram__col { display: flex; flex-direction: column; gap: 10px; }
.chip { display: block; padding: 12px 16px; background: var(--soft); border-radius: 14px; font-weight: 500; font-size: 14px; line-height: 18px; color: var(--z900); white-space: nowrap; }
.chip small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; line-height: 16px; color: var(--z500); }
.chip--hand { background: var(--white); border: 1.5px solid var(--orange); }
.arrow { flex: none; width: 28px; height: 28px; color: var(--z500); }
.core { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; background: var(--ink); border-radius: 20px; min-height: 87px; }
.core b { font-weight: 600; font-size: 18px; line-height: 23px; color: #fff; white-space: nowrap; }
.core span { font-size: 14px; line-height: 18px; color: var(--z400); white-space: nowrap; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 36px; }
.step h3 { font-weight: 600; font-size: 24px; line-height: 31px; color: var(--z900); }
.step p { font-size: 16px; line-height: 24px; color: var(--z600); }

.inbox .wrap { flex-direction: row; align-items: center; gap: 64px; }
.inbox__copy { flex: none; width: 420px; display: flex; flex-direction: column; gap: 20px; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; line-height: 23px; color: var(--z900); }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.mock { flex: 1; min-width: 0; display: flex; overflow: hidden; background: var(--white); border: 1px solid #b6b6b6; border-radius: 36px; }
.mock__threads { flex: none; width: 200px; display: flex; flex-direction: column; padding: 16px; background: var(--soft); }
.mock__label { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--z500); }
.thread { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; }
.thread:first-of-type { background: var(--white); }
.mock__threads .mock__label { margin-bottom: 0; }
.thread b { font-weight: 600; font-size: 14px; line-height: 18px; color: var(--z900); }
.thread span { font-size: 12px; line-height: 16px; color: var(--z500); white-space: nowrap; }
.mock__detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.mock__detail p { font-size: 16px; line-height: 24px; color: var(--z900); }
.mock__src { flex: none; width: 190px; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--soft); }
.mock__src .src { padding: 8px 12px; border-radius: 10px; background: var(--white); }

.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; text-align: left; font-weight: 600; font-size: 20px; line-height: 26px; color: var(--z900); }
.faq__q svg { flex: none; width: 19px; height: 19px; color: var(--z500); transition: transform 0.2s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq__q .v { transition: opacity 0.2s var(--ease); }
.faq__q[aria-expanded="true"] .v { opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.25s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 28px 24px; font-size: 16px; line-height: 24px; color: var(--z600); opacity: 0; transition: opacity 0.2s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; }

.cta { padding: 24px 40px; }
.cta__box { max-width: 1360px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 80px 24px; background: var(--ink); border-radius: 36px; text-align: center; }
.cta__box .h2 { color: #fff; font-size: 56px; line-height: 64px; max-width: 900px; }
.cta .wl { width: min(100%, 530px); }
.cta .wl__input { border-color: transparent; }
.cta .fine { color: var(--z400); }

/* 5. Thanks ---------------------------------------------------------------- */
.thanks { padding: 88px 0; }
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.thanks__img { width: 400px; max-width: 100%; aspect-ratio: 400 / 299; object-fit: cover; border-radius: 36px; }
.thanks .sub { font-size: 20px; line-height: 30px; max-width: 700px; }
.thanks .link { font-weight: 500; color: var(--z900); }

/* 6. Privacy --------------------------------------------------------------- */
.pol-title { padding: 72px 0 24px; }
.pol-title .wrap { display: flex; flex-direction: column; gap: 16px; }
.pol-title .h1 { font-size: 64px; }
.pol-title p { font-size: 18px; line-height: 28px; color: var(--z600); }
.pol { padding: 48px 0 96px; }
.pol .wrap { display: flex; align-items: flex-start; gap: 96px; }
.toc { flex: none; width: 240px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.toc__title { font-weight: 600; font-size: 12px; line-height: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--z500); }
.toc a { font-weight: 500; font-size: 16px; line-height: 19px; color: var(--z900); }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pol__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.pol__body section { display: flex; flex-direction: column; gap: 12px; }
.pol__body h2 { font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.015em; }
.pol__body p { font-size: 18px; line-height: 28px; color: var(--z600); }
.pol__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* 7. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.site-footer .logo { color: #fff; }
.footer__links { display: flex; gap: 36px; }
.footer__links a { font-weight: 500; font-size: 16px; line-height: 21px; color: var(--z300); }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 14px; line-height: 18px; color: var(--z500); }

/* 8. Motion ---------------------------------------------------------------- */
/* Hidden by .js, revealed by main.js. If JS fails, the head failsafe removes .js. */
.js [data-r] { opacity: 0; }
.js [data-r].is-in { animation: rise var(--dur, 0.5s) var(--ease) var(--d, 0s) both; }
.js [data-r="fade"].is-in { animation-name: fade; }
.js [data-r="pop"].is-in { animation: pop 0.35s var(--spring) var(--d, 0s) both; }
.js [data-r="zoom"].is-in { animation: zoomin 0.6s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--dy, 16px)); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes zoomin { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
.w { display: inline-block; }
.js .w { opacity: 0; }
.js .is-in > .w, .js .w.is-in { animation: rise var(--dur, 0.5s) var(--ease) calc(var(--d, 0s) + var(--wi) * 70ms) both; }
/* Typed reply: every character is in the layout from the start, so the height never changes (CLS 0). */
.tw { white-space: nowrap; }
.js .tc { opacity: 0; }
.js .tc.on { opacity: 1; }
.shake { animation: shake 0.4s linear both; }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: translateX(-6px); } 35% { transform: translateX(6px); } 55% { transform: translateX(-4px); } 75% { transform: translateX(3px); } }
.wl.has-error .wl__error { animation: rise 0.35s var(--ease) both; --dy: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r], .js .w, .js .tc { opacity: 1; }
  .js [data-r].is-in, .js .is-in > .w, .js .w.is-in, .js [data-r="pop"].is-in, .js [data-r="zoom"].is-in { animation: none; }
  .shake { animation: none; }
  .btn, .btn:hover, .faq__a, .faq__q svg, .tabs__pill { transition: none; transform: none; }
  .wl.has-error .wl__error { animation: fade 0.15s both; }
  .reply { transition: opacity 0.15s linear; }
}

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1099px) {
  :root { --pad: 40px; --dy: 16px; }
  .h1 { font-size: 52px; line-height: 59px; }
  .h2 { font-size: 40px; line-height: 47px; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero__copy { width: auto; }
  .hero__copy .wl { max-width: 560px; }
  .chat { flex: none; }
  .section { padding: 56px 0; }
  .section > .wrap { gap: 32px; }
  .cards, .steps { gap: 20px; }
  .card { padding: 12px 12px 24px; }
  .card h3 { font-size: 18px; line-height: 24px; }
  .chamber-outer { padding: 24px; }
  .chamber { padding: 40px 32px; }
  .source .wrap, .inbox .wrap { flex-direction: column; align-items: stretch; gap: 40px; }
  .source__copy, .inbox__copy { width: auto; }
  .diagram { justify-content: flex-start; overflow-x: auto; }
  .cta { padding: 24px; }
  .cta__box { padding: 56px 32px; }
  .cta__box .h2 { font-size: 46px; line-height: 53px; }
  .site-footer .wrap { flex-wrap: wrap; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 32px; }
  .footer__links { gap: 28px; }
  .pol .wrap { gap: 48px; }
  .toc { width: 200px; }
  .thanks { padding: 64px 0; }
  .thanks .h1 { font-size: 52px; line-height: 59px; }
}
@media (max-width: 767px) {
  .nav a:not(.btn) { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .pol .wrap { flex-direction: column; gap: 32px; }
  .toc { display: none; }
  .mock { flex-direction: column; }
  .mock__threads { width: auto; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mock__threads .mock__label { width: 100%; }
  .mock__src { width: auto; flex-direction: row; flex-wrap: wrap; }
  .mock__src .mock__label { width: 100%; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; --dy: 12px; }
  .h1 { font-size: 40px; line-height: 45px; }
  .h2 { font-size: 32px; line-height: 37px; }
  .site-header .wrap { padding-block: 16px; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .hero { padding: 28px 0 40px; }
  .hero .wrap { gap: 28px; }
  .hero__copy .sub { font-size: 16px; line-height: 23px; }
  .wl__row { flex-direction: column; }
  .wl__row .btn { width: 100%; }
  .chat { padding: 16px; }
  .section { padding: 40px 0; }
  .section > .wrap { gap: 28px; }
  .card { padding: 12px 12px 24px; }
  .chamber-outer { padding: 24px 12px; }
  .chamber { padding: 28px 20px; gap: 28px; }
  .chamber .sub { font-size: 16px; line-height: 23px; }
  .tabs { flex-direction: column; align-self: stretch; }
  .tabs .tab { text-align: left; }
  .panel { padding: 16px; }
  .step { padding: 28px 16px; }
  .diagram { flex-direction: column; align-items: stretch; padding: 24px; }
  .diagram .arrow { align-self: center; transform: rotate(90deg); }
  .core { align-items: flex-start; }
  .faq__q { padding: 20px 16px; font-size: 18px; line-height: 24px; }
  .faq__a p { padding: 0 16px 20px; }
  .cta { padding: 24px 12px; }
  .cta__box { padding: 40px 20px; }
  .cta__box .h2 { font-size: 36px; line-height: 41px; }
  .site-footer .wrap { padding-block: 32px; }
  .footer__links { gap: 36px; }
  .thanks { padding: 40px 0 56px; }
  .thanks .h1 { font-size: 40px; line-height: 45px; }
  .thanks .sub { font-size: 18px; line-height: 26px; }
  .pol-title { padding: 40px 0 16px; }
  .pol-title .h1 { font-size: 40px; line-height: 45px; }
  .pol { padding: 24px 0 64px; }
}
