/* The public product surface extends Chatis; all layout stays inside this scope. */
body.chatis-landing {
  --lp-bg: #090909;
  --lp-surface: #181818;
  --lp-text: #f4f4f4;
  --lp-muted: #a1a1a1;
  --lp-line: #303030;
  --lp-accent: #e4e4e4;
  margin: 0;
  height: auto;
  min-height: 100vh;
  overflow: auto;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
  scrollbar-color: #666276 var(--lp-bg);
}
.chatis-landing *, .chatis-landing *::before, .chatis-landing *::after { box-sizing: border-box; }
.chatis-landing ::selection { background: var(--lp-accent); color: #181122; }
.chatis-landing :focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 5px; }
.chatis-landing [hidden] { display: none !important; }
.chatis-landing a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.chatis-landing button { font: inherit; color: inherit; cursor: pointer; }
.chatis-landing p, .chatis-landing h1, .chatis-landing h2, .chatis-landing h3 { margin: 0; }
.chatis-landing h1, .chatis-landing h2, .chatis-landing h3 { text-wrap: balance; }
.chatis-landing h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 650; }
.lp-wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.lp-icon { flex: 0 0 auto; width: 22px; height: 22px; vertical-align: middle; }
.lp-twitch { color: #ba94ff; }.lp-kick { color: #9ae878; }.lp-youtube { color: #ff858e; }
.lp-skip { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; border-radius: 8px; background: var(--lp-accent); color: #17111f !important; }
.lp-skip:focus { top: 12px; }
.lp-header { display: flex; gap: 36px; align-items: center; height: 108px; border-bottom: 1px solid var(--lp-line); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 750; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.lp-brand > .lp-icon { height: 30px; width: 30px; color: var(--lp-accent); }
.lp-brand-dot { color: var(--lp-accent); }
.lp-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 550; }
.lp-nav a { color: var(--lp-muted); text-decoration: none; }
.lp-nav a:hover, .lp-footer a:hover, .lp-secondary-login a:hover { color: var(--lp-text); }
.chatis-landing .lp-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border-radius: 8px; font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, transform 160ms ease; }
.chatis-landing .lp-primary { background: #9147ff; color: #ffffff; }
.lp-primary .lp-twitch { color: inherit; }
.lp-primary:hover { background: #a36aff; transform: translateY(-2px); }
.lp-primary:active { transform: translateY(0); }
.lp-primary .lp-icon:last-child { width: 18px; height: 18px; margin-left: 8px; }
.lp-header .lp-button { min-height: 44px; padding: 10px 15px; font-size: 13px; }
.lp-header .lp-button > .lp-icon:last-child { display: none; }
.lp-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; padding-block: 78px 70px; }
.lp-hero-copy h1 { font-size: clamp(3.9rem, 5.2vw, 4.8rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.lp-hero-copy h1 > span { color: var(--lp-accent); }
.chatis-landing .lp-intro { max-width: 40ch; margin-top: 27px; color: #b9b9b9; font-size: 17px; line-height: 1.7; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 28px; }
.lp-demo-link { display: inline-flex; align-items: center; gap: 7px; padding-block: 10px; font-size: 13px; font-weight: 600; text-decoration: none; }
.lp-demo-link .lp-icon { width: 17px; height: 17px; }
.chatis-landing .lp-secondary-login { color: var(--lp-muted); margin-top: 14px; font-size: 12px; }
.lp-secondary-login a { color: #c5c5c5; }
.lp-browser-note { display: flex; gap: 7px; align-items: center; color: var(--lp-muted); font-size: 12px; margin-top: 34px; }
.lp-browser-note .lp-icon { width: 16px; height: 16px; color: #a0cdb2; }
.chatis-landing .lp-login-error { margin-top: 20px; padding: 14px; border: 1px solid #ad616c; border-radius: 8px; background: #321d27; color: #ffc6cf; font-size: 14px; }
.lp-demo-area { min-width: 0; scroll-margin-top: 30px; }
.lp-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; font-size: 11px; color: #b8b8b8; }
.lp-demo-heading > span:first-child { display: flex; gap: 8px; align-items: center; }
.lp-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a7d9b4; }
.lp-demo-label { font-size: 9px; letter-spacing: .1em; border: 1px solid #454545; padding: 2px 6px; border-radius: 4px; color: #c4c4c4; }
.lp-dashboard { position: relative; overflow: hidden; border: 1px solid #3a3a3a; border-radius: 10px; background: #090909; }
.lp-app-preview { display: block; width: 100%; height: 560px; border: 0; background: #090909; pointer-events: none; }
.lp-preview-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lp-preview-scenes button { background: transparent; border: 1px solid #444; border-radius: 6px; min-height: 36px; padding: 6px 12px; color: #bbb; font-size: 12px; }
.lp-preview-scenes button[aria-pressed="true"] { background: #e4e4e4; border-color: #e4e4e4; color: #111; }
.lp-preview-scenes button:hover { border-color: #aaa; }
.chatis-landing .lp-preview-explanation { min-height: 3.2em; color: #aaa; font-size: 12px; line-height: 1.6; margin-top: 10px; }
.lp-demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; font-size: 10px; color: #aaa; }
.lp-demo-controls button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; min-height: 32px; padding: 4px 0 4px 8px; font-size: 10px; }
.lp-demo-controls button .lp-icon { height: 12px; width: 12px; }
.lp-platform-strip { display: flex; align-items: center; gap: 36px; border-block: 1px solid var(--lp-line); padding-block: 29px; }
.lp-platform-strip > p { color: var(--lp-muted); font-size: 12px; line-height: 1.6; }
.lp-platform-strip > p strong { color: #ddd; font-weight: 550; }
.lp-platform-strip > div { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.lp-platform-strip > div > span { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.lp-platform-strip > div .lp-icon { height: 20px; width: 20px; }
.lp-platform-aside { text-align: right; }
.lp-features { padding-block: 82px 78px; scroll-margin-top: 35px; }
.lp-section-heading { display: flex; gap: 30px; align-items: flex-end; justify-content: space-between; }
.lp-section-heading > p { color: var(--lp-muted); font-size: 14px; padding-bottom: 3px; }
.lp-feature-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 46px; }
.lp-feature-columns article > .lp-icon { color: var(--lp-accent); width: 25px; height: 25px; margin-bottom: 21px; }
.lp-feature-columns h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; margin-bottom: 13px; }
.lp-feature-columns p { color: var(--lp-muted); font-size: 14px; line-height: 1.8; max-width: 36ch; }
.lp-showcases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; margin-top: 48px; }
.lp-showcase { min-width: 0; }
.lp-showcase:not(.lp-showcase-featured) { display: flex; flex-direction: column; }
.lp-showcase:not(.lp-showcase-featured) .lp-showcase-media { margin-top: auto; padding-top: 24px; }
.lp-showcase:not(.lp-showcase-featured) .lp-story-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lp-showcase-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.18; letter-spacing: -.03em; }
.lp-showcase-copy p { color: var(--lp-muted); font-size: 14px; line-height: 1.7; max-width: 46ch; margin-top: 12px; }
.lp-showcase-media { min-width: 0; margin-top: 24px; }
.lp-feature-preview { display: block; width: 100%; height: 460px; border: 0; background: #090909; pointer-events: none; }
.lp-showcase-featured { grid-column: 1 / -1; display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: center; padding-bottom: 12px; }
.lp-showcase-featured .lp-showcase-copy h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.lp-showcase-featured .lp-showcase-media { margin-top: 0; }
.lp-showcase-featured .lp-feature-preview { height: 610px; }
.lp-story-steps { display: grid; gap: 10px; margin-top: 26px; justify-items: start; }
.lp-story-steps button { padding: 9px 12px; min-height: 40px; border: 1px solid var(--lp-line); border-radius: 6px; background: transparent; color: var(--lp-muted); font-size: 13px; }
.lp-story-steps button:hover { border-color: #aaa; color: var(--lp-text); }
.lp-story-steps button[aria-pressed="true"] { background: var(--lp-text); color: var(--lp-bg); border-color: var(--lp-text); }
.lp-showcase .lp-demo-controls { align-items: flex-start; }
.lp-story-pause { flex-shrink: 0; }
.lp-demo-cursor { position: absolute; top: 0; left: 0; width: 28px; height: 36px; pointer-events: none; z-index: 2; }
.lp-demo-cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px #0008); }
.lp-cursor-click { position: absolute; width: 22px; height: 22px; top: -8px; left: -8px; border: 2px solid white; border-radius: 50%; opacity: 0; }
.lp-demo-cursor[data-pressed="true"] .lp-cursor-click { opacity: .85; }
[data-showcase="events"] .lp-feature-preview, [data-showcase="highlights"] .lp-feature-preview { height: 610px; }
@media (max-width: 850px) {
  .lp-showcase-featured { grid-template-columns: 1fr; gap: 24px; }
  .lp-showcase-featured .lp-showcase-copy p { max-width: 56ch; }
  .lp-story-steps { display: flex; flex-wrap: wrap; margin-top: 20px; }
}
@media (max-width: 600px) {
  .lp-showcases { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .lp-showcase-featured { grid-column: auto; padding-bottom: 0; }
  .lp-showcase-copy h3 { font-size: 25px; }
  .lp-showcase-copy p { font-size: 13px; }
  .lp-story-steps { gap: 6px; }
  .lp-story-steps button { font-size: 11px; padding-inline: 8px; }
  .lp-feature-preview { height: 480px; }
  .lp-showcase-featured .lp-feature-preview { height: 610px; }
}
.lp-control-section { background: #111111; padding-block: 72px; }
.lp-overlay-preview { display: block; width: 100%; height: 405px; border: 0; pointer-events: none; }
.lp-overlay-showcase .lp-story-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-overlay-options { display: grid; gap: 10px; margin-top: 22px; max-width: 350px; font-size: 13px; }
.lp-overlay-options > label:first-child { display: flex; justify-content: space-between; }
.lp-overlay-options output { color: var(--lp-muted); font-variant-numeric: tabular-nums; }
.lp-overlay-options input { accent-color: var(--lp-text); }
.lp-overlay-options input[type="range"] { width: 100%; min-height: 28px; margin: 0; }
.lp-overlay-background { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.lp-overlay-background input { width: 16px; height: 16px; margin: 0; }
.lp-showcase-copy .lp-overlay-help { font-size: 12px; margin-top: 18px; }
body.chatis-landing:not(.lp-enhanced) .lp-overlay-options { display: none; }
.lp-quick-controls { padding-block: 36px 76px; }
.lp-quick-controls .lp-feature-preview { height: 460px; }
.lp-quick-controls .lp-story-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-toolbar-features { margin: 26px 0 0; }
.lp-toolbar-features > div + div { margin-top: 18px; }
.lp-toolbar-features dt { font-size: 15px; font-weight: 650; }
.lp-toolbar-features dd { margin: 4px 0 0; color: var(--lp-muted); font-size: 13px; line-height: 1.7; max-width: 42ch; }
.lp-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.lp-control-copy > p { margin-top: 22px; color: #b8b8b8; font-size: 14px; max-width: 43ch; }
.lp-settings-features { margin: 0; }
.lp-settings-features > div { padding-block: 22px; border-bottom: 1px solid var(--lp-line); }
.lp-settings-features > div:first-child { padding-top: 0; }
.lp-settings-features > div:last-child { padding-bottom: 0; border-bottom: 0; }
.lp-settings-features dt { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.lp-settings-features dd { margin: 0; color: #b5b5b5; font-size: 14px; line-height: 1.8; max-width: 45ch; }
.lp-start { padding-block: 80px; scroll-margin-top: 35px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.lp-steps > li { border-top: 1px solid var(--lp-line); padding-top: 20px; counter-increment: steps; }
.lp-steps > li::before { content: counter(steps); display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border: 1px solid #625876; border-radius: 50%; color: #cec0ea; font-size: 12px; margin-bottom: 18px; }
.lp-steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.lp-steps p { color: var(--lp-muted); font-size: 13px; line-height: 1.8; max-width: 36ch; }
.lp-final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-block: 1px solid var(--lp-line); padding-block: 45px; }
.lp-final-cta h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.lp-final-cta p { color: var(--lp-muted); font-size: 13px; margin-top: 10px; }
.lp-footer { display: flex; align-items: center; gap: 24px; padding-block: 33px; }
.lp-footer .lp-brand { font-size: 22px; }.lp-footer .lp-brand .lp-icon { height: 22px; width: 22px; }
.lp-footer > span, .lp-footer > a:last-child { font-size: 11px; color: var(--lp-muted); }
.lp-footer > a:last-child { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  .chatis-landing *, .chatis-landing *::before, .chatis-landing *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 1500px) { .lp-hero { padding-block: 96px 90px; } }
@media (max-width: 1150px) {
  .lp-wrap { width: calc(100% - 64px); }
  .lp-hero { gap: 35px; grid-template-columns: .9fr 1.1fr; padding-block: 60px; }
  .lp-hero-copy h1 { font-size: clamp(3.5rem, 6vw, 4.5rem); }
  .lp-intro { font-size: 15px !important; }
  .lp-platform-aside { display: none; }
  .lp-platform-strip > div { margin-left: auto; margin-right: 0; }
  .lp-control-grid { gap: 60px; }
  .lp-feature-columns { gap: 30px; }
}
@media (max-width: 850px) {
  .lp-wrap { width: calc(100% - 48px); }
  .lp-header { height: 88px; gap: 20px; }
  .lp-nav { gap: 16px; font-size: 12px; }
  .lp-hero { grid-template-columns: 1fr; gap: 42px; padding-block: 44px 40px; }
  .lp-hero-copy { max-width: 560px; }
  .lp-hero-copy h1 { font-size: clamp(3.5rem, 8vw, 4.5rem); }
  .chatis-landing .lp-intro { max-width: 49ch; font-size: 16px !important; }
  .lp-browser-note { margin-top: 22px; }
  .lp-demo-area { max-width: 620px; width: 100%; justify-self: center; }
  .lp-control-grid { gap: 32px; }
  .lp-section-heading > p { max-width: 28ch; }
  .lp-feature-columns, .lp-steps { gap: 24px; }
  .lp-feature-columns h3 { font-size: 16px; }
  .lp-feature-columns p { font-size: 13px; }
}
@media (max-width: 600px) {
  .lp-wrap { width: calc(100% - 36px); }
  .lp-header { height: 76px; gap: 12px; }
  .lp-header .lp-brand { font-size: clamp(18px, 4.5vw, 26px); gap: 7px; white-space: nowrap; }
  .lp-header .lp-brand > .lp-icon { display: none; }
  .lp-header .lp-button { margin-left: auto; font-size: 11px; padding: 10px; min-height: 42px; gap: 7px; }
  .lp-header .lp-button .lp-icon { height: 17px; width: 17px; }
  .lp-nav { display: none; }
  .lp-hero { padding-top: 35px; gap: 32px; }
  .lp-hero-copy h1 { font-size: clamp(2.9rem, 11.8vw, 4.2rem); }
  .chatis-landing .lp-intro { margin-top: 22px; font-size: 15px !important; }
  .lp-hero-actions { margin-top: 23px; gap: 17px; }
  .lp-hero-actions .lp-button { font-size: 12px; padding-inline: 13px; min-height: 46px; }
  .lp-hero-actions .lp-button .lp-icon:last-child { display: none; }
  .lp-demo-link { font-size: 12px; }
  .lp-browser-note { font-size: 10px; }
  .lp-demo-heading { font-size: 10px; gap: 6px; }
  .lp-platform-strip { flex-direction: column; gap: 18px; text-align: center; padding-block: 25px; }
  .lp-platform-strip > p > br { display: none; }
  .lp-platform-strip > p > strong::before { content: ' '; }
  .lp-platform-strip > div { margin: 0; gap: 25px; }
  .lp-platform-strip > div > span { font-size: 15px; }
  .lp-platform-strip > div .lp-icon { height: 18px; width: 18px; }
  .lp-features, .lp-start { padding-block: 50px; }
  .lp-section-heading { display: block; }
  .lp-section-heading > p { margin-top: 18px; max-width: 42ch; font-size: 13px; }
  .lp-section-heading > p > br { display: none; }
  .lp-feature-columns { grid-template-columns: 1fr; gap: 28px; margin-top: 33px; }
  .lp-feature-columns article { display: grid; grid-template-columns: 27px 1fr; gap: 0 16px; }
  .lp-feature-columns article > .lp-icon { grid-row: span 2; margin: 1px 0 0; }
  .lp-feature-columns h3 { font-size: 17px; margin-bottom: 7px; }
  .lp-feature-columns p { font-size: 13px; max-width: 45ch; }
  .lp-control-section { padding-block: 45px; }
  .lp-control-grid { grid-template-columns: 1fr; gap: 25px; }
  .lp-control-copy > p { max-width: 46ch; }
  .lp-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .lp-steps > li { display: grid; grid-template-columns: 27px 1fr; column-gap: 16px; }
  .lp-steps > li::before { grid-row: span 2; margin-bottom: 0; }
  .lp-steps h3 { margin-bottom: 6px; }
  .lp-steps p { max-width: 44ch; }
  .lp-final-cta { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 34px; }
  .lp-final-cta h2 { max-width: 14ch; font-size: 29px; }
  .lp-footer { flex-wrap: wrap; gap: 20px; padding-block: 27px; }
  .lp-footer > span { display: none; }
}
/* Public copy is readable before scripts or authentication have loaded. */
body.chatis-landing:not(.lp-enhanced) .lp-dashboard,
body.chatis-landing:not(.lp-enhanced) .lp-demo-controls,
body.chatis-landing:not(.lp-enhanced) .lp-preview-scenes,
body.chatis-landing:not(.lp-enhanced) .lp-preview-explanation,
body.chatis-landing:not(.lp-enhanced) .lp-story-steps,
body.chatis-landing:not(.lp-enhanced) .lp-showcase-media { display: none; }
.lp-enhanced .lp-static-preview { display: none; }
.lp-static-preview { padding: 36px; border: 1px solid #303030; border-radius: 12px; background: #181818; line-height: 1.7; }
.lp-static-preview a, .lp-guide-links a { color: #f4f4f4; text-underline-offset: 5px; }
.lp-guide-links { list-style: none; padding: 0; margin: 24px 0 0; }
.lp-guide-links li { padding: 18px 0; border-bottom: 1px solid #303030; font-size: 1.15rem; }
