:root {
  color-scheme: dark;
  --page: #0b0c15;
  --surface: #10121f;
  --ink: #f5f4ff;
  --muted: #aaaec2;
  --line: #25283c;
  --lavender: #d1caff;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid #bdc8ff; outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #202136; background: #0b0c15; }
.header-row, .section-nav, .account-nav, .wordmark { display: flex; align-items: center; }
.header-row { justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.wordmark { gap: .66rem; font-size: 1.08rem; font-weight: 700; letter-spacing: -.035em; }
.brand-icon {
  display: grid;
  place-items: center;
  inline-size: 2.05rem;
  block-size: 2.05rem;
  border-radius: .62rem;
  border: 1px solid #aaa9ff;
  background: linear-gradient(145deg, #807dff, #5b46d3);
  box-shadow: 0 3px 16px #7573ff3d, inset 0 1px 0 #ffffff36;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.section-nav, .account-nav { gap: clamp(1rem, 3vw, 2rem); font-size: .9rem; font-weight: 550; }
.section-nav { color: var(--muted); }
.mobile-pricing-link { display: none; }
.section-nav a:hover, .account-nav > a:not(.button):hover, .site-footer > a:not(.wordmark):hover { color: #d7cbff; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  min-height: 3.05rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  padding: .68rem 1.16rem;
  font-size: .94rem;
  font-weight: 680;
  transition: background-color 180ms, border-color 180ms, box-shadow 180ms;
}
.button-small { min-height: 2.45rem; padding: .37rem .9rem; background: #1b1832; border-color: #3e365f; color: #e1d8ff; }
.button-small:hover { background: #2a234c; border-color: #6a5b9d; }
.button-primary {
  border-color: #a39dff;
  background: linear-gradient(120deg, #5345d3, #6654e1 63%, #5747ce);
  color: #fff;
  box-shadow: 0 .2rem 1.55rem #6d58f260, inset 0 1px 0 #ffffff35;
}
.button-primary:hover { border-color: #d1c7ff; box-shadow: 0 .2rem 1.75rem #8269ff88, inset 0 1px 0 #ffffff55; }
.button-secondary { background: #17182a; border-color: #35374f; }
.button-secondary:hover { background: #24243d; border-color: #565677; }
.showcase { position: relative; isolation: isolate; padding-bottom: clamp(4.25rem, 8vw, 7rem); }
.showcase::before, .showcase::after { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; }
.showcase::before {
  background: radial-gradient(ellipse 37rem 19rem at 50% 32%, #2d245f91, transparent 82%),
    radial-gradient(ellipse 39rem 12rem at 50% 83%, #3d2c8a60, transparent 85%);
}
.showcase::after {
  background-image: linear-gradient(90deg, #8d8be014 1px, transparent 1px), linear-gradient(#8d8be014 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  background-position: center top;
  mask-image: radial-gradient(ellipse 47rem 24rem at 50% 18%, black 10%, transparent 85%);
}
.hero { display: grid; justify-items: center; text-align: center; padding-block: clamp(2.8rem, 6vw, 3.65rem) clamp(2.5rem, 5vw, 2.85rem); }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #494375;
  border-radius: 2rem;
  padding: .36rem .83rem;
  background: #201c3d;
  color: var(--lavender);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-label span { font-size: 1rem; line-height: 1; }
.hero h1, .how h2, .closing h2 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; }
.hero h1 { margin-top: 1.2rem; font-size: clamp(2.8rem, 7.3vw, 5.65rem); font-weight: 760; line-height: .99; letter-spacing: -.072em; }
.hero h1 span {
  display: inline-block;
  padding: 0 .06em .1em;
  color: #b8b0ff;
  background-image: linear-gradient(100deg, #a8ccff 5%, #b7abff 55%, #e1a8ff 96%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description { max-width: 36rem; margin-top: .75rem; color: #b9bbcf; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.65rem; }

.demo {
  border: 1px solid #383b58;
  border-radius: 1.12rem;
  background: var(--surface);
  box-shadow: 0 1.3rem 5rem #05050eab, 0 0 4rem #6b56f21d;
  scroll-margin-top: 1rem;
}
.demo-bar, .demo-heading, .demo-actions, .preview-bar, .preview-bar h3 { display: flex; align-items: center; }
.demo-bar { justify-content: space-between; gap: .55rem; min-height: 3.15rem; padding: .55rem 1.1rem; border-bottom: 1px solid var(--line); }
.demo-heading, .demo-actions { gap: .85rem; }
.demo-bar h2 { color: #d3d5e5; font-size: .9rem; font-weight: 650; }
.window-dots { display: flex; gap: .32rem; }
.window-dots i { width: .44rem; height: .44rem; border-radius: 50%; background: #535471; }
.window-dots i:first-child { background: #9d8afb; }
.demo-label { color: var(--muted); font-size: .82rem; }
.motion-control {
  min-height: 2rem;
  min-width: 5.4rem;
  border: 1px solid #343750;
  border-radius: .38rem;
  padding: .18rem .55rem;
  background: #1b1d30;
  font-size: .83rem;
  cursor: pointer;
}
.motion-control:hover { background: #282840; }
.demo-body { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.57fr); }
.chat { padding: 1.05rem 1rem; border-right: 1px solid var(--line); }
.chat h3 { display: flex; gap: .6rem; align-items: center; font-size: 1rem; }
.chat-icon, .step-icon { display: grid; place-items: center; background: #272243; border: 1px solid #41365f; color: #cfbcff; }
.chat-icon { width: 1.8rem; height: 1.8rem; border-radius: .45rem; }
.chat-log { display: grid; gap: .6rem; margin-top: .95rem; }
.chat-message { border: 1px solid #2e3146; border-radius: .66rem; padding: .6rem .75rem; font-size: .9rem; line-height: 1.5; }
.chat-message > span { display: block; margin-bottom: .16rem; font-size: .78rem; font-weight: 680; }
.chat-user { margin-left: clamp(.25rem, 2vw, 1.55rem); background: #1c1e2d; color: #b6b9c7; }
.chat-user > span { color: #e0e0eb; }
.chat-assistant { margin-right: clamp(.25rem, 2vw, 1.55rem); background: #181629; color: #d3cbe3; }
.chat-assistant > span { color: #c6adff; }
.chat-followup { min-height: 5.25rem; }
.caret { display: inline-block; width: 1px; height: 1em; margin-left: .15rem; background: #a99bfb; opacity: 0; vertical-align: -.13em; }
[data-playing="true"][data-typing="true"] .caret { animation: caret-blink .85s steps(1, end) infinite; }
@keyframes caret-blink { 0%, 60% { opacity: 1; } }

.preview { min-width: 0; padding: 1.05rem; }
.preview-bar { justify-content: space-between; gap: .6rem; margin: 0 0 .75rem; }
.preview-bar h3 { gap: .55rem; font-size: .93rem; }
.monitor-icon { display: inline-block; position: relative; width: 1rem; height: .72rem; border: 1.5px solid currentColor; border-radius: .14rem; color: #aaa4dc; }
.monitor-icon::after { position: absolute; bottom: -.25rem; left: 29%; width: 42%; height: 1px; background: currentColor; content: ""; }
.preview-bar > span { color: #add7c3; font-size: .78rem; }
[data-typing="true"] .preview-bar > span { color: var(--lavender); }
.storefront {
  --shop-paper: #eeeae0;
  --shop-ink: #2e3428;
  --shop-accent: #4d6244;
  --shop-line: #c8c8b6;
  border: 1px solid #494940;
  border-radius: .64rem;
  overflow: hidden;
  background: var(--shop-paper);
  color: var(--shop-ink);
  transition: background-color 330ms, color 330ms;
}
.storefront[data-theme="clay"] { --shop-paper: #f2dfcf; --shop-ink: #55382d; --shop-accent: #8d4b36; --shop-line: #c9a791; }
.store-nav { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .38rem .85rem; }
.store-nav strong { font-family: Georgia, serif; font-size: 1.32rem; line-height: 1; letter-spacing: -.055em; }
.store-nav strong span { color: var(--shop-accent); }
.store-nav > span { font-size: .74rem; }
.store-hero { position: relative; display: flex; align-items: center; min-height: clamp(11rem, 20vw, 14.3rem); isolation: isolate; color: #fff9ed; }
.store-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.store-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, #16160875, transparent 74%); z-index: -1; content: ""; }
.store-copy { display: grid; gap: .44rem; width: 58%; padding: 1rem clamp(.9rem, 2.6vw, 2rem); }
.store-copy > span { font-size: .67rem; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; }
.store-copy > strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 3.2vw, 2.5rem); line-height: 1.04; font-weight: 500; text-wrap: balance; }
.store-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: .38rem; margin: 0; padding: .58rem; list-style: none; }
.store-categories li { border: 1px solid var(--shop-line); border-radius: 2rem; padding: .14rem .68rem; font-size: .76rem; }
.storefront[data-featured="mugs"] [data-category="mugs"] { background: var(--shop-accent); border-color: var(--shop-accent); color: white; }

.how { scroll-margin-top: 1.5rem; }
.how h2, .closing h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 725; line-height: 1.1; letter-spacing: -.058em; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.55rem 0 0; padding: 0; list-style: none; }
.steps li { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .82rem; background: #121422; }
.step-icon { width: 2.38rem; height: 2.38rem; margin-bottom: .9rem; border-radius: .57rem; font-size: 1.25rem; }
.check-icon { width: .58rem; height: .94rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.1rem) rotate(40deg); }
.steps h3 { font-size: 1.13rem; letter-spacing: -.025em; }
.steps p { margin-top: .35rem; color: var(--muted); }

.pricing { margin-top: clamp(4rem, 8vw, 7rem); scroll-margin-top: 1.5rem; }
.pricing-heading h2 { font-size: clamp(2.15rem, 5.4vw, 4.3rem); line-height: 1.05; letter-spacing: -.065em; }
.pricing-heading p { margin-top: .7rem; color: var(--muted); }
.pricing-trial {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem clamp(1.25rem, 4vw, 3rem);
  margin-top: 1.6rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid #4c426f;
  border-radius: .9rem;
  background: radial-gradient(ellipse at right top, #322957, transparent 75%), #17162a;
}
.pricing-trial h3, .plan-heading h3 { font-size: 1.2rem; letter-spacing: -.035em; }
.trial-content p { color: #dfdcec; }
.pricing-demo-link { color: var(--lavender); text-decoration: underline; text-underline-offset: .2em; }
.pricing-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; margin-block: 1.3rem .7rem; }
.pricing-meta, .pricing-note { color: var(--muted); font-size: .86rem; }
.pricing-note { max-width: 92ch; margin-top: .95rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(.95rem, 1.7vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #131523;
}
.plan-card-recommended {
  border-color: #7765be;
  background: linear-gradient(150deg, #282144, #1a182e 76%);
}
.plan-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; }
.plan-badge { padding: .14rem .48rem; border-radius: 2rem; background: #45386e; color: #eee4ff; font-size: .72rem; font-weight: 650; }
.plan-price { margin-top: .32rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan-price strong { font-size: clamp(1.55rem, 2.5vw, 2rem); letter-spacing: -.045em; white-space: nowrap; }
.plan-price span, .plan-summary { color: var(--muted); font-size: .88rem; }
.plan-summary { margin-top: .45rem; }
.plan-features { display: grid; gap: .4rem; margin: .95rem 0 1.1rem; padding-left: 1.02rem; color: #dfdcec; font-size: .88rem; }
.plan-features li::marker { color: #b9a8ff; }
.plan-limits {
  display: grid;
  gap: .23rem;
  margin: auto 0 0;
  padding: .7rem 0 0;
  border-top: 1px solid #ffffff20;
  list-style: none;
  color: #c7c3d9;
  font-size: .81rem;
}
.plan-limits strong { color: var(--ink); }

.plan-comparison, .pricing-services { margin-top: clamp(2rem, 5vw, 3.25rem); }
.plan-comparison { scroll-margin-top: 1.5rem; }
.plan-comparison h3, .pricing-services h3 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); letter-spacing: -.034em; }
.plan-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .6rem; margin-top: .9rem; }
.plan-feature { background: #131523; border: 1px solid var(--line); border-radius: .75rem; }
.plan-feature summary { cursor: pointer; padding: .85rem 1rem; font-weight: 650; }
.plan-feature summary::marker { color: var(--lavender); }
.plan-feature summary:hover { color: var(--lavender); }
.plan-feature[open] { border-color: #514270; }
.plan-feature dl { margin: 0; padding: 0 1rem .45rem; }
.plan-feature dl > div { padding-block: .7rem; border-top: 1px solid var(--line); }
.plan-feature dt { color: var(--lavender); font-size: .83rem; font-weight: 700; }
.plan-feature dd { margin: .2rem 0 0; color: #dfdcec; font-size: .9rem; }
.pricing-services ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.pricing-services li { display: grid; align-content: start; gap: .25rem; padding: .85rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.pricing-services strong { color: var(--ink); font-size: 1rem; }

.closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  margin-block: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.3rem, 4vw, 2.9rem);
  border: 1px solid #443964;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 92% 100%, #392365, transparent 68%), #171529;
}
.closing .button { flex: none; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); }
.site-footer > a:not(.wordmark) { color: var(--muted); font-size: .9rem; }

.auth-page { min-height: 100svh; background: radial-gradient(ellipse at 21% 29%, #28204d 0, transparent 51%), var(--page); }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  grid-template-areas: "preview form";
  align-items: center;
  gap: clamp(2rem, 6vw, 5.25rem);
  min-height: calc(100svh - 4.5rem);
  padding-block: clamp(2rem, 6vw, 5rem);
}
.auth-card {
  grid-area: form;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.3rem);
  border: 1px solid #51446f;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, #211c34, #131523 72%);
  box-shadow: 0 1.35rem 4rem #05050e91, 0 0 2rem #6b56f21d;
}
.auth-card h1 {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.3rem);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -.054em;
  overflow-wrap: anywhere;
}
.auth-fields { display: grid; gap: 1rem; margin-top: 1.55rem; }
.auth-fields label, .auth-password { display: grid; gap: .38rem; }
.auth-fields label { color: #e5e0f2; font-size: .91rem; font-weight: 600; }
.auth-fields input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid #514766;
  border-radius: .57rem;
  background: #100f1d;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  font-size: 1rem;
}
.auth-fields input:focus { border-color: #ada3ff; }
.auth-password small { color: var(--muted); font-size: .84rem; }
.auth-fields .button { margin-top: .25rem; cursor: pointer; }
.auth-fields .button:disabled { opacity: .72; cursor: wait; }
.auth-switch { display: inline-block; margin-top: 1.15rem; color: var(--lavender); text-decoration: underline; text-underline-offset: .22em; }
.auth-switch:hover { color: #f4edff; }
.auth-card .error { margin-top: 1rem; padding: .75rem .9rem; border: 1px solid #79536a; border-radius: .6rem; background: #3a2031; color: #ffdbe6; overflow-wrap: anywhere; }
.auth-visual { position: relative; isolation: isolate; grid-area: preview; min-width: 0; padding: clamp(.75rem, 2.5vw, 2rem); }
.auth-visual::before, .auth-visual::after { position: absolute; inset: 0; z-index: -1; content: ""; pointer-events: none; }
.auth-visual::before {
  inset: -18% -6%;
  background: linear-gradient(90deg, #a99cff23 1px, transparent 1px), linear-gradient(#a99cff23 1px, transparent 1px);
  background-size: 2.55rem 2.55rem;
  mask-image: radial-gradient(ellipse, #000, transparent 70%);
}
.auth-visual::after { inset: 10% 1%; border: 1px solid #7763c774; border-radius: 44%; transform: rotate(-11deg); box-shadow: 0 0 3rem #7856fd26; }
.auth-example { overflow: hidden; border: 1px solid #5f537e; border-radius: 1rem; background: #17192a; box-shadow: 0 1.4rem 3.1rem #060511c4, 0 0 2.5rem #795bfd38; }
.auth-example-bar { display: flex; align-items: center; gap: .7rem; padding: .76rem 1rem; border-bottom: 1px solid #ffffff1f; color: #d4cee9; font-size: .84rem; }
.auth-example .storefront { margin: .75rem; }
.auth-example .store-copy { width: 65%; }

@media (max-width: 49rem) {
  .auth-layout { max-width: 31rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "form"; }
  .auth-visual { display: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 56rem) {
  .section-nav { display: none; }
  .mobile-pricing-link { display: inline-flex; align-items: center; min-height: 2.45rem; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 49rem) {
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-log { gap: .48rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .store-copy > strong { font-size: clamp(1.35rem, 4.8vw, 2.5rem); }
}

@media (max-width: 34rem) {
  .shell { width: calc(100% - 1.5rem); }
  .header-row { min-height: 3.9rem; gap: .55rem; }
  .account-nav { gap: .5rem; font-size: .85rem; }
  .wordmark { gap: .4rem; font-size: 1rem; }
  .brand-icon { width: 1.75rem; height: 1.75rem; border-radius: .48rem; }
  .button-small { padding-inline: .55rem; }
  .hero-description { max-width: 28rem; }
  .hero-actions .button { padding-inline: .78rem; }
  .demo-bar { padding-inline: .72rem; }
  .demo-heading, .demo-actions { gap: .45rem; }
  .window-dots { display: none; }
  .motion-control { min-width: 4.65rem; }
  .chat, .preview { padding: .75rem; }
  .store-copy { width: 64%; }
  .pricing-grid, .pricing-trial, .plan-feature-grid, .pricing-services ul { grid-template-columns: minmax(0, 1fr); }
  .pricing-trial { justify-items: start; gap: .85rem; }
  .closing { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 22rem) {
  .header-row { flex-wrap: wrap; padding-block: .55rem; }
}

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