/* Beachwood's heritage direction: warm paper, ink, and vermilion. */
:root {
  --color-page: #f5f0e6;
  --color-section-alt: #eee7db;
  --color-surface: #fffaf1;
  --color-surface-2: #eee7db;
  --color-ink: #181916;
  --color-muted: #55534d;
  --color-line: #d6cdbf;
  --color-brand: #b4191c;
  --color-brand-dark: #151613;
  --color-brand-hover: #d12427;
  --color-accent: #a8171b;
  --color-accent-soft: #ece0d3;
  --font-display: "Baskerville", "Palatino Linotype", Georgia, serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --site-width: 1240px;
  --gutter: clamp(22px, 4.5vw, 72px);
  --section-space: clamp(72px, 8vw, 112px);
  --radius: 0;
  --button-radius: 0;
}

body { font-size: 18px; -webkit-font-smoothing: antialiased; }
::selection { color: #fff; background: #a8171b; }
:focus-visible { outline: 2px solid #cf3a36; outline-offset: 6px; }
.section { position: relative; }
.section:nth-of-type(even) { background: var(--color-page); }
.section + .section { border: 0; }
.section h2 { font-size: clamp(38px, 4vw, 58px); font-weight: 400; letter-spacing: -0.045em; line-height: 1.06; margin-bottom: 26px; }
.section h2 .text-accent { color: inherit; }
.section p { line-height: 1.65; }
.section p + p { margin-top: 20px; }
.section-eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; }
.section .section-eyebrow { color: #8b241f; margin-bottom: 24px; }
.section-eyebrow::before { content: ""; width: 48px; height: 2px; background: #b4191c; }
.academy-photo { border-radius: 0; }

/* Header floats over the photograph, then gains a solid backdrop on scroll. */
.site-header { position: fixed; inset: 0 0 auto; padding-top: 22px; padding-bottom: 22px; color: #f8f2e8; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; transition: background 240ms, padding 240ms, box-shadow 240ms; }
.site-header.is-scrolled, .site-header:has(.nav-open) { padding-top: 12px; padding-bottom: 12px; background: rgba(19, 20, 17, 0.97); box-shadow: 0 6px 24px #0002; }
.nav { gap: 28px; }
.brand { gap: 16px; color: #fff8ed; }
.brand-emblem { display: block; width: 70px; height: 70px; flex-shrink: 0; transition: transform 300ms; }
.brand-wordmark { display: grid; gap: 6px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 400; line-height: 1; white-space: nowrap; }
.brand-wordmark small { font: 10px/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: 0.4em; }
.nav-links { gap: 26px; flex-wrap: nowrap; }
.nav-links a { position: relative; color: #f8f2e8; font-family: var(--font-body); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 4px; height: 2px; background: #cf302c; transform: scaleX(0); transform-origin: left; transition: transform 220ms; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { color: #fff8ed; border-color: #fff5; border-radius: 0; }
.nav-action .button { font-size: 10px; padding: 17px 20px; white-space: nowrap; }
.nav-action .button::after { display: none; }

/* Square red calls to action with a quiet directional response. */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 20px 28px; min-height: 52px; font: 600 11px/1.3 var(--font-ui); letter-spacing: 0.14em; border: 1px solid transparent; border-radius: 0; box-shadow: none; transition: background 220ms, border-color 220ms, transform 220ms, box-shadow 220ms; }
.button::after { content: "\2192"; font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 0.6; transition: transform 220ms; }
.button:active { transform: translateY(0); }

/* Keep the image's amber light visible on the right. */
.home-hero.hero-image-ready { --hero-overlay: linear-gradient(90deg, rgba(8, 8, 6, 0.78), rgba(8, 8, 6, 0.42) 45%, rgba(8, 8, 6, 0.03) 80%); --hero-image-position: 68% center; }
.home-hero.hero-image-ready.hero-with-image { min-height: 850px; padding-top: 158px; padding-bottom: 34px; align-items: center; }
.home-hero.hero-with-image .inner { padding: 0; }
.home-hero.hero-with-image h1 { max-width: 720px; font-size: clamp(54px, 5.3vw, 78px); font-weight: 400; letter-spacing: -0.045em; line-height: 0.99; margin-bottom: 28px; text-shadow: 0 2px 24px #0003; }
.home-hero.hero-with-image .text-accent { color: #fff8ed; font-size: 1em; }
.home-hero.hero-with-image h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 26px; background: #bb2023; }
.home-hero.hero-with-image p { max-width: 550px; font-size: 17px; line-height: 1.5; color: #eee7dc; }
.home-hero.hero-with-image h1 + p { max-width: 540px; font-size: 23px; line-height: 1.35; }
.home-hero.hero-with-image p + p { margin-top: 18px; }
.hero-actions .button { margin-top: 26px; }
.hero-assurances { display: flex; align-items: center; gap: 0; margin: 46px 0 0; padding: 0; list-style: none; color: #f4eee4; }
.hero-assurances li { display: flex; align-items: center; gap: 16px; padding: 0 28px; font-size: 16px; border-right: 1px solid #eee6d76b; }
.hero-assurances li:first-child { padding-left: 0; }
.hero-assurances li:last-child { border: 0; }
.hero-assurances svg { width: 36px; height: 36px; flex-shrink: 0; }

/* Asymmetric photography and generous, editorial spacing. */
.home-intro { background-image: radial-gradient(ellipse at bottom right, #cbbba02b, transparent 55%); }
.about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(50px, 7vw, 110px); }
.about-layout .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(38px, 3.6vw, 54px); }
.about-photos { position: relative; order: 1; padding: 0 50px 100px 0; }
.about-photo-main { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% center; }
.about-photo-detail { position: absolute; right: -12px; bottom: 0; width: 57%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--color-page); box-shadow: 0 12px 40px #1b160b20; }

/* Four compact program panels against charcoal. */
.section.home-services { background: #171814; background-image: radial-gradient(ellipse at top left, #88816812, transparent 60%); color: #f9f3e9; }
.home-services .section-eyebrow { color: #c6bdb0; }
.home-services h2 { max-width: none; }
.program-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.program-card { display: flex; flex-direction: column; justify-content: flex-start; padding: 0 22px 24px; min-width: 0; background: #0c0d0b40; border: 1px solid #666358; border-radius: 0; transition: transform 300ms, border-color 300ms, background 300ms, box-shadow 300ms; }
.program-photo { width: calc(100% + 44px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 -22px 24px; filter: saturate(0.8); transition: filter 350ms; }
.program-card h3 { min-height: 58px; margin: 0 0 12px; color: #fff9ef; font-family: var(--font-display); font-size: 27px; font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; }
.nursery-photo { object-position: center 28%; }
.program-age { display: block; margin-bottom: 20px; color: #cec3b2; font: 10px/1.5 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.program-age::before { content: ""; display: block; width: 34px; height: 2px; margin-bottom: 14px; background: #b82022; }
.home-services .program-card p { margin: 0; font-size: 16px; line-height: 1.6; color: #d0ccc2; }
.program-card .program-cta { justify-content: space-between; width: 100%; min-height: 48px; padding: 24px 0 0; margin-top: auto; font-size: 9px; letter-spacing: 0.11em; color: #f0736b; background: transparent; border: 0; box-shadow: none; }
.program-cta::after { font-size: 22px; }
.nursery-art { position: relative; display: grid; place-items: center; width: calc(100% + 44px); aspect-ratio: 4 / 3; margin: 0 -22px 24px; overflow: hidden; background: #27251e; color: #e9d9bf; }
.nursery-orbit { position: absolute; width: 82%; aspect-ratio: 1; border: 1px solid #b9a88955; border-radius: 50%; }
.nursery-orbit::after { content: ""; position: absolute; inset: 12px; border: 1px solid #b9a88930; border-radius: 50%; }
.nursery-age { position: relative; text-align: center; font-size: 25px; line-height: 1.25; }
.nursery-age span { display: block; font-size: 16px; font-style: italic; color: #bb6c58; }

.home-first-class > .inner > h2 { max-width: 780px; }
.home-first-class > .inner > p:not(.section-eyebrow) { max-width: 780px; }
.class-photo-gallery { gap: 28px; margin-top: 48px; }
.class-photo-gallery .academy-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.class-photo-gallery .academy-photo:nth-child(2) { margin-top: 42px; }
.class-photo-gallery .academy-photo:first-child { object-position: 44% center; }
.academy-photo { transition: filter 350ms, box-shadow 350ms; }
.section.reviews { text-align: center; background: #eae1d3; padding-top: 80px; padding-bottom: 88px; }
.reviews .section-eyebrow { justify-content: center; }
.reviews h2 { max-width: none; }
.review-carousel { margin-top: 36px; min-width: 0; }
.review-track { display: flex; align-items: stretch; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 14px; }
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline-offset: 3px; }
.google-review { display: flex; flex-direction: column; flex: 0 0 calc((100% - 48px) / 3); min-width: 0; min-height: 340px; padding: 26px; background: #fffaf2; border: 1px solid #d2c6b4; scroll-snap-align: start; text-align: left; transition: border-color 220ms, box-shadow 220ms; }
.google-review:hover, .google-review:focus-within { border-color: #aa6b5a; box-shadow: 0 5px 12px #281d0e0a; }
.review-author { display: flex; align-items: center; gap: 12px; min-height: 45px; }
.review-author h3 { margin: 0; font: 500 14px/1.4 var(--font-ui); color: #292c25; overflow-wrap: anywhere; }
.review-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: #e9dbcb; color: #812c28; font: 500 12px/1 var(--font-ui); letter-spacing: 0.03em; }
.review-stars { margin: 20px 0 14px; color: #aa6511; font-size: 19px; letter-spacing: 2px; line-height: 1; }
.review-quote { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 16px; line-height: 1.65; }
.review-quote.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.google-review .review-quote p { font-size: inherit; line-height: inherit; color: #4b483f; }
.google-review .review-quote p + p { margin-top: 14px; }
.review-expand { align-self: flex-start; padding: 8px 0; margin-top: 6px; border: 0; background: transparent; color: #9e1c1f; font: 600 11px/1.5 var(--font-ui); cursor: pointer; text-underline-offset: 4px; }
.review-expand:hover { text-decoration: underline; }
.review-expand[hidden] { display: none; }
.google-review .review-source { margin-top: auto; padding-top: 24px; color: #777064; font: 11px/1.5 var(--font-ui); }
.review-source span { color: #484a42; font-size: 15px; font-weight: 600; letter-spacing: -0.04em; margin-right: 3px; }
.review-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 20px; }
.review-controls[hidden] { display: none; }
.review-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #bdb09d; background: transparent; color: #7f1c1e; font: 24px/1 var(--font-body); cursor: pointer; transition: color 180ms, background 180ms, border-color 180ms; }
.review-arrow:hover:not(:disabled) { color: #fff9ef; background: var(--color-brand); border-color: var(--color-brand); }
.review-arrow:disabled { opacity: 0.35; cursor: default; }
.review-pagination { display: flex; justify-content: center; flex-wrap: wrap; }
.review-dot { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.review-dot::before { content: ""; display: block; width: 7px; height: 7px; border: 1px solid #948573; border-radius: 50%; transition: background 180ms, transform 180ms; }
.review-dot[aria-current="true"]::before { background: var(--color-brand); border-color: var(--color-brand); transform: scale(1.25); }
.review-dot:hover::before { border-color: var(--color-brand); }
.reviews .review-position { max-width: none; margin-top: 12px; font: 10px/1.5 var(--font-ui); color: #777064; letter-spacing: 0.06em; }
@media (max-width: 1000px) {
  .google-review { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .google-review { flex-basis: 100%; padding: 24px; }
  .review-controls { gap: 8px; }
  .review-dot { width: 24px; }
}
.contact-layout { gap: 80px; }
.location-contact h2 { font-size: clamp(40px, 4vw, 58px); }
.contact-card { padding: 0; border: 0; background: transparent; }
.contact-details { gap: 10px; font-size: 17px; }
.contact-details strong { font-weight: 400; }
.contact-details > strong { font-size: 22px; color: var(--color-ink); }
.contact-details a { width: fit-content; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.location-media { gap: 20px; }
.map-placeholder, .map-placeholder iframe { min-height: 270px; border-radius: 0; }
.map-placeholder { filter: saturate(0.55); }

.site-footer { background: #151613; color: #f5eddf; padding-top: 64px; }

/* Clip each viewport-fixed watermark to its dark section, below all content.
   The photo-backed hero is deliberately excluded. */
.home-services,
.site-footer {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}
.home-services::before,
.site-footer::before {
  content: "";
  position: fixed;
  top: 50vh;
  right: -9vw;
  width: clamp(380px, 68vw, 920px);
  aspect-ratio: 1;
  background: url("/_assets/media/images/academy-emblem.svg") center / contain no-repeat;
  opacity: 0.1;
  transform: translateY(-50%) rotate(-3deg);
  pointer-events: none;
  z-index: -1;
  animation: watermark-drift 22s ease-in-out infinite alternate;
}
@keyframes watermark-drift {
  from { transform: translateY(calc(-50% - 10px)) rotate(-3deg) scale(1); }
  to { transform: translateY(calc(-50% + 10px)) rotate(3deg) scale(1.025); }
}

.footer-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) minmax(0, 1fr); gap: 60px; padding-bottom: 50px; }
.footer-lockup { color: #f5eddf; }
.footer-lockup strong { font-size: 25px; font-weight: 400; text-transform: none; letter-spacing: -0.03em; line-height: 1.2; }
.footer-lockup em { font: 9px/1.6 var(--font-ui); letter-spacing: 0.15em; color: #c5bbaa; }
.footer-brand p, .footer-visit address, .footer-links a, .footer-visit a { color: #bfb8ab; font-size: 16px; }
.footer-column h2 { color: #f4eade; font: 600 10px/1.4 var(--font-ui); margin-bottom: 16px; }
.footer-bottom-wrap { border-color: #ffffff20; }
.footer-bottom { display: block; padding-top: 22px; padding-bottom: 22px; min-height: auto; font: 10px/1.6 var(--font-ui); letter-spacing: 0.06em; color: #b0a898; }
.footer-bottom p { margin: 0; }
.footer-links a, .footer-visit a { transition: color 220ms, transform 220ms; }
.lead-modal-panel { background: var(--color-page); border-radius: 0; }
.lead-capture-form { font-family: var(--font-ui); }

/* Motion is added only after the observer is ready; content works without JS. */
.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-ready { transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #82131522; }
  .button:hover::after { transform: translateX(5px); }
  .brand:hover .brand-emblem { transform: rotate(-6deg); }
  .program-card:hover, .program-card:focus-within { border-color: #c64a3e; background: #25251e; transform: translateY(-7px); box-shadow: 0 16px 36px #0004; }
  .program-card:hover .program-photo { filter: saturate(1.1); }
  .program-card .program-cta:hover { background: transparent; box-shadow: none; color: #ffaaa0; }
  .academy-photo:hover { filter: saturate(1.1); box-shadow: 0 12px 32px #21190f24; }
  .footer-links a:hover { transform: translateX(4px); color: #fff9ef; }
}
@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .brand-emblem { width: 58px; height: 58px; }
  .brand-wordmark { font-size: 25px; }
  .nav-links { gap: 18px; }
  .nav-action .button { padding: 15px; font-size: 9px; }
  .program-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .program-photo, .nursery-art { aspect-ratio: 16 / 9; }
  .program-card h3 { min-height: 0; }
  .about-layout, .contact-layout { gap: 44px; }
  .footer-content { gap: 34px; }
}
@media (max-width: 900px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; }
  .nav-toggle { display: grid; grid-column: 3; grid-row: 1; }
  .nav-action { grid-column: 2; grid-row: 1; }
  .nav-links { display: none; grid-column: 1 / -1; margin: 0; padding: 14px 0 4px; width: 100%; border-top: 1px solid #ffffff30; }
  .nav.nav-open .nav-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .nav-links a { justify-content: center; }
  .home-hero.hero-image-ready.hero-with-image { min-height: 860px; }
  .home-hero.hero-with-image h1 { font-size: 64px; max-width: 650px; }
  .about-layout { grid-template-columns: 1fr; gap: 60px; }
  .about-layout .split-copy { order: 1; }
  .about-photos { order: 2; max-width: 640px; width: 100%; margin: 0 auto; padding-bottom: 70px; }
  .about-photo-main { aspect-ratio: 5 / 4; }
  .about-photo-detail { width: 42%; right: 0; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 500px; }
}
@media (max-width: 600px) {
  :root { --section-space: 68px; }
  body { font-size: 17px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-emblem { width: 46px; height: 46px; }
  .brand .brand-wordmark, .brand .brand-wordmark > span { display: grid; overflow: visible; white-space: normal; }
  .brand-wordmark { font-size: 20px; gap: 5px; }
  .brand-wordmark small { font-size: 7px; letter-spacing: 0.2em; }
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-toggle { grid-column: 2; }
  .nav-action { display: none; }
  .nav.nav-open .nav-action { display: block; grid-column: 1 / -1; grid-row: 3; }
  .nav.nav-open .nav-action .button { width: 100%; }
  .nav.nav-open .nav-links { grid-template-columns: 1fr 1fr; }
  .nav-links a { font-size: 17px; }
  .home-hero.hero-image-ready { --hero-image-position: 72% center; --hero-overlay: linear-gradient(90deg, #080806e8, #08080683), linear-gradient(0deg, #080806b3, transparent 70%); }
  .home-hero.hero-image-ready.hero-with-image { padding-top: 132px; padding-bottom: 32px; min-height: 0; }
  .home-hero.hero-with-image h1 { font-size: clamp(45px, 11vw, 63px); line-height: 1.02; }
  .home-hero.hero-with-image h1 + p { font-size: 21px; }
  .home-hero.hero-with-image p { font-size: 16px; }
  .hero-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
  .hero-assurances li { flex-direction: column; gap: 10px; padding: 0 10px; font-size: 12px; text-align: center; line-height: 1.3; }
  .hero-assurances li:first-child { padding-left: 10px; }
  .hero-assurances svg { width: 28px; height: 28px; }
  .button { padding: 18px 22px; font-size: 10px; }
  .section h2, .split-copy h2, .location-contact h2 { font-size: 40px; }
  .about-photos { padding-right: 30px; padding-bottom: 60px; }
  .about-photo-main { aspect-ratio: 1; }
  .about-photo-detail { width: 50%; border-width: 5px; }
  .program-list { grid-template-columns: 1fr; }
  .program-card h3 { font-size: 30px; }
  .program-card .program-cta { padding-top: 28px; font-size: 10px; }
  .program-photo, .nursery-art { aspect-ratio: 16 / 10; }
  .class-photo-gallery { grid-template-columns: 1fr 1fr; gap: 16px; }
  .class-photo-gallery .academy-photo:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; object-position: center 38%; }
  .class-photo-gallery .academy-photo:nth-child(2) { margin-top: 0; }
  .section.reviews { padding-top: 64px; padding-bottom: 64px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-content { grid-template-columns: 1fr; gap: 38px; }
  .footer-lockup strong { font-size: 26px; }
  .footer-lockup .brand-emblem { width: 60px; height: 60px; }
  .footer-brand { grid-column: auto; }
}
/* Local demo interactions share the homepage's ivory and red palette. */
.mock-lead-panel { width: min(480px, 100%); padding: 38px; }
.mock-lead-panel .lead-capture-placeholder { display: block; min-height: 0; margin: 0; padding: 0; border: 0; }
.mock-lead-intro { padding-right: 14px; margin-bottom: 26px; }
.mock-lead-intro .section-eyebrow { margin-bottom: 18px; font-size: 9px; color: var(--color-accent); }
.mock-lead-intro h2 { font-size: 38px; font-weight: 400; letter-spacing: -0.04em; }
.mock-lead-intro > p:last-child { font-size: 16px; line-height: 1.5; }
.mock-lead-form .form-field { gap: 7px; font-size: 12px; font-weight: 500; }
.mock-lead-form input { min-height: 48px; font-size: 16px; background: #fffaf4; }
.mock-lead-form input:focus { border-color: var(--color-brand); }
.mock-lead-form > .button { margin-top: 4px; width: 100%; }
.mock-lead-form .mock-note { text-align: center; font: 11px/1.6 var(--font-ui); }
.mock-lead-form .lead-form-status { font: 13px/1.5 var(--font-ui); }
.lead-modal-close { border-radius: 0; font-size: 17px; transition: color 180ms, background 180ms; }
.lead-modal-close:hover { background: var(--color-ink); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mock-chat { position: fixed; right: 26px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 80; font-family: var(--font-ui); }
.chat-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; margin-left: auto; min-height: 54px; padding: 14px 22px; color: #fff8ed; background: var(--color-brand); border: 1px solid #fff2; box-shadow: 0 5px 24px #0003; cursor: pointer; font: 600 12px/1 var(--font-ui); letter-spacing: 0.05em; transition: background 200ms, transform 200ms; }
.chat-toggle svg { width: 25px; height: 25px; }
.chat-toggle:hover { background: var(--color-brand-hover); transform: translateY(-2px); }
.chat-panel { display: flex; flex-direction: column; width: min(370px, calc(100vw - 40px)); max-height: min(570px, calc(100dvh - 110px)); margin-bottom: 14px; background: var(--color-page); border: 1px solid #cec4b4; box-shadow: 0 12px 60px #0004; animation: chat-enter 220ms ease-out; }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 18px; background: var(--color-brand-dark); color: #fff8ed; }
.chat-header h2 { margin: 0 0 5px; font: 400 20px/1.1 var(--font-display); letter-spacing: -0.02em; }
.chat-header p { margin: 0; font-size: 10px; letter-spacing: 0.08em; color: #c6bbab; }
.chat-close { width: 32px; height: 32px; flex-shrink: 0; margin-left: auto; padding: 0; border: 1px solid #fff4; background: transparent; color: #fff8ed; font-size: 24px; cursor: pointer; transition: background 180ms; }
.chat-close:hover { background: #ffffff20; }
.chat-messages { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 80px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; }
.chat-message { max-width: 92%; margin: 0; padding: 13px 15px; border: 1px solid #ddd3c4; background: #fffaf3; font-size: 13px; line-height: 1.6; color: #464238; overflow-wrap: anywhere; }
.chat-message p { margin: 0; }
.chat-visitor { align-self: flex-end; color: #fff7ec; background: #4b4a3f; border-color: #4b4a3f; }
.chat-trial-link { display: block; margin: 12px 0 0; padding: 0; border: 0; background: transparent; font: 600 12px/1.6 var(--font-ui); color: var(--color-brand); cursor: pointer; text-align: left; }
.chat-trial-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.chat-topics { display: flex; flex-wrap: wrap; gap: 7px; flex-shrink: 0; padding: 0 18px 16px; }
.chat-topics button { min-height: 34px; padding: 7px 10px; border: 1px solid #c7bba9; background: transparent; color: #7e1a1c; font: 500 11px/1.3 var(--font-ui); cursor: pointer; transition: background 180ms, color 180ms; }
.chat-topics button:hover { background: #e9dfd0; color: #481312; }
.chat-compose { display: flex; flex-shrink: 0; margin: 0 18px; border: 1px solid #c7bba9; background: #fffaf4; }
.chat-compose input { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border: 0; color: #22231e; background: transparent; font: 16px/1.4 var(--font-ui); }
.chat-compose button { width: 46px; flex-shrink: 0; border: 0; background: var(--color-brand); color: #fff8ed; cursor: pointer; }
.chat-compose button:hover { background: var(--color-brand-hover); }
.chat-compose svg { width: 23px; height: 23px; vertical-align: middle; }
.chat-demo-note { flex-shrink: 0; margin: 10px 15px 14px; color: #71695d; text-align: center; font-size: 10px; line-height: 1.5; }
body.modal-open .mock-chat { visibility: hidden; }
@keyframes chat-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .lead-modal { padding: 16px; }
  .mock-lead-panel { padding: 28px 22px; max-height: calc(100dvh - 32px); }
  .mock-lead-intro h2 { font-size: 34px; }
  .mock-chat { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .chat-toggle { min-height: 50px; padding: 12px 16px; }
  .chat-panel { width: min(370px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); margin-bottom: 12px; }
  .chat-header { padding: 15px; gap: 9px; }
  .chat-header h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending, .reveal-ready { opacity: 1; transform: none; }
}
