.demo-page {
  --demo-bg: #f4f1ec;
  --demo-surface: #fff;
  --demo-surface-2: #e7e3dc;
  --demo-text: #1a1c1c;
  --demo-muted: #4b4945;
  --demo-line: #b8b2aa;
  --demo-accent: #1a1c1c;
  --demo-accent-text: #fff;
  background: var(--demo-bg);
  color: var(--demo-text);
  font-size: 1rem;
}

.demo-page .site-header { background: rgb(244 241 236 / 94%); border-bottom: 1px solid var(--demo-line); }
.demo-page .brand, .demo-page .nav a { color: var(--demo-text); }
.demo-page .tour-hero { padding: clamp(3rem, 7vw, 6.5rem) 0 3rem; }
.tour-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tour-hero h1 { max-width: 780px; margin: .35rem 0 1rem; font-size: clamp(2.7rem, 7vw, 5.3rem); letter-spacing: -.045em; line-height: 1.02; }
.tour-hero .lede { max-width: 690px; color: var(--demo-muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.7rem; }
.tour-actions .cta, .share-card .cta { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--demo-text); border-radius: 999px; padding: 12px 19px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.tour-actions .cta-primary, .share-card .cta-primary { background: var(--demo-accent); color: var(--demo-accent-text); }
.tour-actions .cta-secondary { background: transparent; color: var(--demo-text); }
.skip-tour { display: inline-block; margin-top: .85rem; color: var(--demo-muted); font-weight: 650; text-underline-offset: .2em; }
.tour-promise { border: 1px solid var(--demo-line); border-radius: 24px; padding: 1.5rem; background: var(--demo-surface); box-shadow: 0 14px 40px rgb(26 28 28 / 6%); }
.promise-mark { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; background: var(--demo-surface-2); font-size: 2rem; }
.tour-promise strong { display: block; margin-top: 1rem; font-size: 1.25rem; }
.tour-promise p { margin-bottom: 0; color: var(--demo-muted); }
.tour-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-heading h2, .tour-status h2 { max-width: 750px; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p { max-width: 330px; color: var(--demo-muted); margin: 0; }
.tour-player { overflow: hidden; border: 1px solid var(--demo-line); border-radius: 28px; background: var(--demo-surface); box-shadow: 0 24px 70px rgb(26 28 28 / 9%); }
.tour-player-top { display: flex; justify-content: space-between; padding: 1rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--demo-line); color: var(--demo-muted); font-size: .9rem; }
.tour-kicker { color: var(--demo-text); font-size: .75rem; font-weight: 750; letter-spacing: .1em; }
.tour-stage { min-height: 470px; }
.tour-slide { display: grid; min-height: 470px; grid-template-columns: minmax(260px, .85fr) minmax(290px, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; padding: clamp(1.25rem, 5vw, 4rem); }
.tour-slide[hidden] { display: none; }
.slide-copy { max-width: 480px; }
.slide-number { color: var(--demo-muted); font-size: .9rem; font-weight: 750; letter-spacing: .12em; }
.slide-copy h3 { margin: .8rem 0; font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.025em; line-height: 1.13; }
.slide-copy p { color: var(--demo-muted); font-size: 1.05rem; line-height: 1.65; }
.status-tag { display: inline-flex; align-items: center; min-height: 32px; border: 1px solid currentColor; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem; font-weight: 700; line-height: 1.25; }
.status-live { color: #245718; background: #edf4e9; }
.status-prototype { color: #694d00; background: #fff5d6; }
.status-roadmap { color: #424242; background: #f0f0f0; }
.phone-screen, .roadmap-screen { position: relative; width: min(100%, 380px); min-height: 380px; justify-self: center; border: 1px solid #bdb8b0; border-radius: 34px; padding: 23px 20px; background: #faf9f7; box-shadow: 0 17px 45px rgb(26 28 28 / 12%); }
.phone-screen::before { position: absolute; top: 9px; left: 50%; width: 58px; height: 5px; border-radius: 8px; background: #d5d1cc; content: ""; transform: translateX(-50%); }
.phone-top { display: flex; justify-content: space-between; margin: 7px 0 2.1rem; color: #41413f; font-size: .73rem; font-weight: 750; letter-spacing: .08em; }
.phone-heading { font-size: 1.65rem; font-weight: 750; line-height: 1.2; }
.language-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1.5rem; }
.language-pill { display: flex; align-items: center; gap: .4rem; border: 1px solid #aaa59e; border-radius: 14px; background: #fff; padding: 12px; font-size: .9rem; font-weight: 700; }
.language-pill b { color: #5a5752; font-size: .7rem; }
.swap-mark { font-size: 1.4rem; }
.phone-hint { margin-top: 1rem; color: #4b4945; font-size: .85rem; }
.phone-button { margin-top: 4.6rem; border-radius: 22px; background: #1a1c1c; color: white; padding: 13px; text-align: center; font-weight: 700; }
.message-bubble { width: fit-content; max-width: 90%; border: 1px solid #cbc6bf; border-radius: 18px 18px 18px 5px; padding: 13px 15px; color: #1a1c1c; background: #fff; }
.message-source { margin: 1.1rem auto .5rem 0; }
.message-translation { margin-left: auto; border-radius: 18px 18px 5px 18px; background: #e7e3dc; font-size: 1.2rem; }
.sample-label { margin: .7rem 0 .35rem; color: #5b574f; font-size: .68rem; font-weight: 750; letter-spacing: .08em; }
.phone-actions { display: flex; gap: 17px; margin-top: 1.1rem; color: #313331; font-size: .8rem; font-weight: 700; }
.keyboard-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 2rem; }
.keyboard-preview span { display: grid; min-height: 45px; place-items: center; border: 1px solid #c4bfb7; border-radius: 9px; background: #fff; font-size: 1.2rem; box-shadow: 0 2px #c4bfb7; }
.key-caption { margin: 1.35rem 0 0; color: #4b4945; font-size: .9rem; line-height: 1.5; }
.chat-bubble { max-width: 83%; margin: .65rem 0; border: 1px solid #c9c5be; border-radius: 16px; background: #fff; padding: 10px 12px; font-size: .9rem; }
.chat-bubble small { display: block; margin-top: .45rem; color: #45433f; font-size: .87rem; }
.chat-left { border-bottom-left-radius: 4px; }
.chat-right { margin-left: auto; border-bottom-right-radius: 4px; background: #e7e3dc; }
.chat-input { display: flex; justify-content: space-between; margin-top: 2.4rem; border: 1px solid #aaa59e; border-radius: 18px; background: #fff; padding: 12px; color: #56524d; }
.chat-input b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #1a1c1c; color: white; }
.background-chat { display: grid; gap: 1.1rem; color: #4b4945; font-size: .85rem; }
.background-chat span:last-child { justify-self: end; }
.assistant-card { position: absolute; right: 18px; bottom: 25px; left: 18px; border: 1px solid #aaa59e; border-radius: 20px; background: white; padding: 16px; box-shadow: 0 12px 30px rgb(0 0 0 / 14%); }
.assistant-title { display: flex; justify-content: space-between; align-items: center; }
.assistant-title b { font-size: 1.1rem; }
.assistant-title span { border-radius: 999px; background: #f0eee9; padding: 5px 8px; color: #353532; font-size: .7rem; font-weight: 700; }
.assistant-text { margin: 1.2rem 0; color: #4b4945; }
.assistant-button { border-radius: 999px; background: #1a1c1c; padding: 10px; color: white; text-align: center; font-weight: 700; }
.roadmap-screen { min-height: 330px; }
.roadmap-title { display: flex; justify-content: space-between; align-items: center; margin: 1.2rem 0 1.5rem; font-size: 1.15rem; font-weight: 750; }
.roadmap-title span { border: 1px solid #5a5752; border-radius: 999px; padding: 4px 7px; font-size: .65rem; letter-spacing: .07em; }
.roadmap-row { display: grid; grid-template-columns: 33px 1fr auto; gap: 8px; align-items: center; border-top: 1px solid #c9c5be; padding: 14px 0; }
.roadmap-row b { color: #5d5953; }
.roadmap-row em { color: #424242; font-size: .7rem; font-style: normal; font-weight: 700; }
.roadmap-note { margin-top: 1rem; color: #4b4945; font-size: .85rem; }
.tour-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--demo-line); padding: 1rem clamp(1rem, 3vw, 2rem); }
.tour-complete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--demo-line); padding: 1.25rem clamp(1rem, 4vw, 2rem); }
.tour-complete[hidden] { display: none; }
.tour-complete h3 { margin: .2rem 0 0; font-size: 1.4rem; }
.tour-complete .tour-actions { margin: 0; }
.tour-nav { min-height: 44px; justify-self: start; border: 1px solid var(--demo-line); border-radius: 999px; background: white; color: #1a1c1c; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.tour-nav:disabled { opacity: .45; cursor: default; }
.tour-next { justify-self: end; background: #1a1c1c; color: white; }
.tour-dots { display: flex; gap: 8px; }
.tour-dots button { width: 12px; height: 12px; border: 1px solid #3f403e; border-radius: 50%; background: white; cursor: pointer; }
.tour-dots button[aria-current="step"] { width: 28px; border-radius: 999px; background: #1a1c1c; }
.tour-status { background: #ebe7e1; }
.tour-status h2 { margin-bottom: 1.5rem; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-grid article { border: 1px solid var(--demo-line); border-radius: 20px; background: var(--demo-surface); padding: 1.2rem; }
.status-grid h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.status-grid p, .share-card p { color: var(--demo-muted); }
.share-card { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 1.5rem; border-radius: 22px; background: #fff; padding: 1.5rem; }
.share-card h3 { margin: 0; font-size: 1.25rem; }
.share-card p { margin-bottom: 0; }
.share-status { min-height: 1.5rem; margin: .6rem 0 0; color: #245718; font-weight: 700; }
.youth-safety { border-left: 4px solid #694d00; background: #fff5d6; padding: 1rem 1.2rem; color: #292929; }
.demo-page :focus-visible { outline: 3px solid #1252a0; outline-offset: 4px; }

@media (max-width: 760px) {
  .tour-hero-grid, .tour-slide { grid-template-columns: 1fr; }
  .tour-promise { max-width: 650px; }
  .tour-slide { gap: 1.5rem; }
  .phone-screen, .roadmap-screen { min-height: 350px; }
  .status-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: .5rem; }
}

@media (max-width: 460px) {
  .tour-nav span { display: none; }
  .tour-controls { gap: 5px; padding-inline: .6rem; }
  .tour-dots { gap: 5px; }
  .tour-dots button { width: 10px; height: 10px; }
  .tour-dots button[aria-current="step"] { width: 20px; }
  .share-card { align-items: start; flex-direction: column; }
  .tour-complete { align-items: stretch; flex-direction: column; }
  .language-row { gap: 4px; }
  .language-pill { padding: 10px 7px; font-size: .82rem; }
}

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

@media (prefers-contrast: more) {
  .demo-page { --demo-bg: #fff; --demo-surface: #fff; --demo-surface-2: #eee; --demo-text: #000; --demo-muted: #222; --demo-line: #444; --demo-accent: #000; --demo-accent-text: #fff; }
  .status-live, .status-prototype, .status-roadmap { border-width: 2px; color: #000; background: #fff; }
  .message-bubble, .language-pill, .phone-screen, .roadmap-screen, .status-grid article { border-width: 2px; }
}
