* { box-sizing: border-box; }

body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: #f8faf8; color: #172031; font: 16px system-ui, sans-serif; }
.demo { width: 100%; max-width: 720px; margin: auto; padding: 22px; }
.demo header { display: flex; justify-content: space-between; align-items: center; }
.brand { color: #172031; text-decoration: none; }
.quiet { color: #526173; text-decoration: none; }
.hero, .tour, .completion, .value { padding: 64px 0; text-align: center; }
.hero h1 { margin: 12px 0; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1.03; }
.hero p { max-width: 560px; margin: 15px auto; color: #526173; line-height: 1.6; }
.eyebrow { color: #218b45; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid #218b45; border-radius: 10px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary { background: #218b45; color: #fff; }
.secondary { border-color: #d9e1dc; background: #fff; color: #172031; }
.tour { padding-top: 24px; }
.progress { color: #526173; font-weight: 700; }
.progress span:first-child { color: #218b45; }
.screen { display: grid; gap: 24px; align-items: center; text-align: left; }

/* This is the shared visual-stage contract for every walkthrough step. */
.phone { display: flex; flex-direction: column; width: 100%; height: 324px; padding: 20px; border: 1px solid #d9e1dc; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px #17203114; }
.mock-brand { color: #218b45; font-size: 25px; font-weight: 400; letter-spacing: normal; line-height: 1; }
.phone h2 { margin: 18px 0 14px; font-size: 1.25rem; }
.mock-body { display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; padding: 18px; border-radius: 12px; background: #f2f7f3; line-height: 1.5; }
.mock-body button { align-self: flex-start; border: 0; border-radius: 7px; padding: 8px 12px; background: #218b45; color: #fff; font: inherit; }
.mock-copy { margin: 0; white-space: pre-line; }
.feedback-ratings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.feedback-rating { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border: 1px solid #d9e1dc; border-radius: 9px; background: #fff; color: #526173; font-size: .74rem; }
.feedback-rating__face { width: 1.6rem; height: 1.6rem; color: #526173; }
.feedback-rating--selected .feedback-rating__face { color: #218b45; }
.feedback-rating--selected { border-color: #218b45; box-shadow: inset 0 0 0 1px #218b45; color: #172031; font-weight: 700; }
.feedback-issue { margin: 0 0 12px; color: #172031; font-weight: 700; }

.callout { padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #1720310d; }
.callout h2 { margin: .3rem 0; }
.callout p { color: #526173; line-height: 1.5; }
.tour nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.completion h2 { margin: .3rem 0; }
.completion > p:not(.eyebrow) { max-width: 440px; margin: 14px auto 24px; color: #526173; line-height: 1.6; }
.completion-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.tertiary { padding: 10px 12px; border: 0; background: transparent; color: #526173; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.primary:focus-visible, .secondary:focus-visible, .tertiary:focus-visible, .quiet:focus-visible { outline: 3px solid #218b45; outline-offset: 3px; }
.value { border-top: 1px solid #d9e1dc; }
.value ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; color: #526173; list-style: none; }
.demo-footer { display: flex; justify-content: center; gap: 10px; margin-top: auto; padding: 20px 22px 28px; color: #526173; font-size: .875rem; }
.demo-footer a { color: inherit; text-decoration: none; }
.demo-footer a:hover, .demo-footer a:focus-visible { color: #218b45; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 680px) {
    .screen { grid-template-columns: 1fr 1fr; }
    .hero { padding: 90px 0; }
}

@media (max-width: 360px) {
    .demo header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .demo header .quiet { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
}
