/* Product-led refinement of the existing crimson / warm-white design system. */
.purpose-aside { padding-top: 10px; min-width: 0; }
.purpose-illustration { display: block; width: 100%; max-width: 340px; margin: 24px auto 0; overflow: visible; font-family: Arial, Helvetica, sans-serif; }
.purpose-aside > p { font-size: 12px; line-height: 1.7; text-align: center; margin: -10px 0 0; color: var(--muted); }
.purpose-aside > p strong { color: #783b53; font-weight: 500; }
.purpose-connectors { animation: purpose-flow 18s linear infinite; }
.purpose-stage > rect { animation: purpose-stage 8s ease-in-out infinite; animation-delay: var(--purpose-delay); }
.purpose-ring { transform-box: fill-box; transform-origin: center; animation: purpose-breathe 5s ease-in-out infinite; }
.purpose-signal { animation: purpose-signal 4s ease-in-out infinite; }
@keyframes purpose-flow { to { stroke-dashoffset: -108; } }
@keyframes purpose-stage { 0%, 24%, 100% { fill: #fff; stroke: #e7d7de; } 5%, 19% { fill: #fff0f5; stroke: #be6685; } }
@keyframes purpose-breathe { 50% { transform: scale(1.11); opacity: .5; } }
@keyframes purpose-signal { 50% { opacity: .2; } }

/* Atmosphere & Reveal Ritual Animations */
.ritual-aside { padding-top: 10px; min-width: 0; }
.ritual-illustration { display: block; width: 100%; max-width: 340px; margin: 24px auto 0; overflow: visible; font-family: Arial, Helvetica, sans-serif; }
.ritual-orbit-ring { animation: ritual-orbit 24s linear infinite; }
.ritual-orbit-ring-inner { animation: ritual-orbit-reverse 18s linear infinite; }
.ritual-ripple { transform-box: fill-box; transform-origin: center; animation: ritual-pulse 4s ease-in-out infinite; }
.ritual-ripple-outer { transform-box: fill-box; transform-origin: center; animation: ritual-pulse 4s ease-in-out infinite; animation-delay: -2s; }
.ritual-node { transform-box: fill-box; transform-origin: center; animation: ritual-node-breathe 6s ease-in-out infinite; animation-delay: var(--node-delay); }
.ritual-stream-line { animation: ritual-flow 12s linear infinite; }
.ritual-scan-beam { animation: ritual-scan-sweep 4s ease-in-out infinite; }
.ritual-seal-box { animation: ritual-seal-pulse 5s ease-in-out infinite; }

@keyframes ritual-orbit { to { stroke-dashoffset: -108; } }
@keyframes ritual-orbit-reverse { to { stroke-dashoffset: 96; } }
@keyframes ritual-pulse { 0%, 100% { transform: scale(0.94); opacity: 0.3; } 50% { transform: scale(1.15); opacity: 0.8; } }
@keyframes ritual-node-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ritual-flow { to { stroke-dashoffset: -80; } }
@keyframes ritual-scan-sweep { 0% { transform: translateX(0px); opacity: 0.2; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(225px); opacity: 0.2; } }
@keyframes ritual-seal-pulse { 0%, 100% { stroke: #eecbd7; } 50% { stroke: #be6685; } }

.ritual-section { padding-block: 80px; }
.ritual-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.ritual-feature-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px #3a061805; }
.ritual-feature-grid article .mini-label { color: var(--red); display: block; margin-bottom: 8px; }
.ritual-feature-grid article h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); letter-spacing: -0.3px; }
.ritual-feature-grid article p { font-size: 12.5px; line-height: 1.6; margin: 0; color: var(--muted); }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 21px; }
.footer-socials a, .footer-socials .social-pending { display: inline-flex; gap: 8px; align-items: center; min-height: 42px; padding: 10px 13px; border: 1px solid #e5d6dc; border-radius: 7px; background: #fff; color: #76374d; font-size: 12px; }
.footer-socials a:hover { border-color: #bd6f8a; color: var(--red); background: var(--wash); }
.footer-socials .icon { width: 17px; height: 17px; }
.footer-socials .social-pending { color: var(--muted); }
.footer-socials small { font-size: 9px; border-left: 1px solid var(--line); padding-left: 8px; }
.scroll-top { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; background: var(--red); color: #fff; border: 1px solid #ffffff55; border-radius: 12px; box-shadow: 0 8px 24px #52052226; transition: background .2s, transform .2s; }
.scroll-top .icon { transform: rotate(-90deg); width: 19px; height: 19px; }
.scroll-top:hover { background: var(--deep); transform: translateY(-3px); }
.toast-region { position: fixed; top: 100px; right: 24px; width: min(390px, calc(100vw - 32px)); z-index: 100; pointer-events: none; }
.site-toast { display: flex; align-items: flex-start; gap: 14px; padding: 18px 14px 18px 20px; background: #fff; border: 1px solid #e9c3d0; border-left: 4px solid #b3093b; border-radius: 11px; box-shadow: 0 12px 45px #39101e24; pointer-events: auto; animation: toast-arrive .2s ease-out both; }
.site-toast > div { flex: 1; min-width: 0; }
.site-toast strong { font-size: 14px; color: #59132b; }
.site-toast p { font-size: 12px; line-height: 1.6; margin: 6px 0 0; color: #735563; overflow-wrap: anywhere; }
.site-toast > button { display: grid; place-items: center; width: 32px; height: 32px; flex: none; background: #faf4f6; border: 0; border-radius: 6px; font-size: 23px; line-height: 1; color: #775660; }
.site-toast-success { border-color: #c6dfd0; border-left-color: #277649; }
.site-toast-success strong { color: #215b3a; }
@keyframes toast-arrive { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.contact-panel #contact-form label > .form-field-error, .contact-panel .form-field-error { display: block; color: #b00035; font-size: 11px; line-height: 1.5; }
.contact-panel .checkbox-label + .form-field-error { margin: -10px 0 18px; }
.contact-panel [aria-invalid="true"] { border-color: #b00035 !important; box-shadow: 0 0 0 2px #b0003512; }
.contact-panel .checkbox-label.field-invalid { outline: 1px solid #d798ad; outline-offset: 6px; border-radius: 3px; }
@media (max-width: 800px) {
  .purpose-section .purpose-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
  .purpose-aside > .mini-label { grid-column: 1 / -1; }
  .purpose-illustration { margin: 0; max-width: 260px; }
  .purpose-aside > p { text-align: left; font-size: 14px; }
  .ritual-section .ritual-aside { display: block; text-align: center; }
  .ritual-section .ritual-aside > p { text-align: center; }
  .ritual-feature-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .toast-region { top: 88px; right: 16px; }
}
@media (max-width: 500px) {
  .purpose-section .purpose-aside { display: block; }
  .purpose-illustration { max-width: 280px; margin: 16px auto 0; }
  .purpose-aside > p { text-align: center; margin-top: -8px; font-size: 12px; }
  .scroll-top { bottom: max(18px, env(safe-area-inset-bottom)); right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .purpose-illustration *, .site-toast { animation: none !important; }
  .scroll-top { transition: none; }
}
:root { --surface-shadow: 0 18px 48px #390c1e08, 0 2px 5px #390c1e03; }
section[id], article[id] { scroll-margin-top: 112px; }
.section { padding-block: 80px; }
.section.capabilities { padding-top: 12px; }
.site-header { box-shadow: 0 3px 20px #390c1e03; }
#primary-nav, .drawer-body, .drawer-links { gap: 24px; }
#primary-nav .sign-in { border: 1px solid #dfcbd3; border-radius: 6px; padding: 12px 16px; font-weight: 600; }
#primary-nav .sign-in:hover { background: var(--wash); border-color: #c591a3; }
.header-inner { height: 82px; }
.section-heading { margin-bottom: 34px; }
.section-heading > p { font-size: 15px; line-height: 1.75; max-width: 390px; }
body[data-page="index"] main { background: linear-gradient(180deg, #fff8fa 0, #fff 720px); }
.home-hero { min-height: 595px; padding-block: 44px 38px; }
.hero-art { height: 450px; }
.hero-float { box-shadow: 0 20px 45px #600c2712; border-color: #e8cdd7; }
.hero-copy .eyebrow { display: inline-flex; padding: 8px 12px; border: 1px solid #ecd4dd; border-radius: 30px; background: #ffffffb3; font-size: 9px; }
.hero-note { font-size: 11px; }
.audiences { gap: 14px; padding-block: 22px; }
.audiences > span { min-width: 137px; }
.audiences > a { display: flex; align-items: center; gap: 10px; padding: 15px 12px; font-size: 12px; font-weight: 500; border-radius: 9px; transition: background .2s, color .2s; }
.audiences > a > .icon:first-child { width: 19px; color: var(--red); }
.audiences > a > .icon:last-child { width: 13px; color: #aa7f8e; }
.audiences > a:hover { background: var(--wash); color: var(--red); }
.page-hero { position: relative; padding-block: 62px 38px; }
.page-hero h1 { font-size: clamp(42px, 4.4vw, 64px); }
.page-hero .lede { font-size: 17px; }
.section-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.section-links a { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 30px; padding: 11px 16px; font-size: 12px; color: var(--muted); background: #fff; transition: border-color .2s, background .2s; }
.section-links .icon { width: 13px; height: 13px; transform: rotate(90deg); color: var(--red); }
.section-links a:hover { background: var(--wash); border-color: #cea7b6; color: var(--red); }
.product-explorer { background: linear-gradient(135deg, #faf5f7, #f6f3f4); padding: 24px; border: 1px solid #e4d5dc; border-radius: 18px; box-shadow: var(--surface-shadow); }
.explorer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.explorer-toolbar p { margin: 5px 0 0; font-size: 16px; color: var(--ink); }
.explorer-tabs { display: flex; padding: 5px; gap: 3px; border: 1px solid #e4d6dc; border-radius: 10px; background: #ede5e9; }
.explorer-tabs button { display: inline-flex; gap: 9px; justify-content: center; align-items: center; background: transparent; border: 1px solid transparent; padding: 11px 14px; border-radius: 7px; font-size: 12px; color: #715962; }
.explorer-tabs button .icon { width: 16px; height: 16px; }
.explorer-tabs button[aria-selected="true"] { background: #fff; border-color: #eadbe2; color: var(--red); box-shadow: 0 2px 8px #3a06180b; }
.explorer-tabs button:hover { color: var(--red); }
.explorer-panel { min-height: 430px; }
.explorer-panel .dashboard { min-height: 430px; }
.explorer-panel .dash-main { padding: 28px; }
.explorer-panel .dash-chrome { font-size: 10px; }
.explorer-panel .dash-side > span { font-size: 11px; padding-block: 11px; }
.explorer-panel .dash-title h3 { font-size: 23px; }
.explorer-panel .dash-metrics > div > span { font-size: 11px; }
.explorer-panel .dash-metrics small { font-size: 10px; }
.explorer-panel .dash-qr > span { font-size: 10px; }
.explorer-panel .sample-label { font-size: 8px; }
.explorer-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 19px 2px 0; font-size: 10px; color: var(--muted); }
.explorer-footer > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #754052; }
.explorer-footer .icon { width: 16px; height: 16px; }
.perspective-view { min-height: 430px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; background: #fff; border: 1px solid var(--line); padding: 30px; border-radius: 10px; }
.perspective-view > .mini-art { height: 330px; border-radius: 10px; }
.perspective-view h3 { font-size: 32px; line-height: 1.2; margin: 13px 0; }
.perspective-view p { font-size: 14px; }
.perspective-view ul { padding: 0; list-style: none; display: grid; gap: 13px; margin: 20px 0; }
.perspective-view li { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.perspective-view li .icon { width: 15px; height: 18px; color: var(--red); }
.perspective-view .podium { transform: scale(1.35); }
.perspective-view .question-sheet { transform: rotate(-4deg) scale(1.1); }
.perspective-view .result-pill { bottom: 40px; }
.product-dashboard { max-width: 1240px; }
.experience-grid > article { box-shadow: var(--surface-shadow); background: #fff; }
.experience-grid > article:hover { border-color: #d4a3b5; }
.experience-copy p { font-size: 14px; line-height: 1.75; }
.feature-grid { gap: 20px; }
.feature-grid .feature { border: 1px solid var(--line); border-radius: 12px; padding: 27px; background: linear-gradient(145deg, #fff, #fdfafb); }
.feature p { font-size: 14px; line-height: 1.75; }
.feature-icon { margin-bottom: 20px; }
.dark-section { padding-block: 72px; }
.dark-features { gap: 20px; margin-top: 35px; }
.dark-features .feature { border: 1px solid #ffffff1c; background: #ffffff04; border-radius: 12px; padding: 25px; }
.dark-section .text-link { margin-top: 18px; }
.journey-grid { gap: 18px; margin-top: 34px; }
.journey-grid article { padding: 25px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 25px #390c1e04; }
.journey-grid article > span { width: 34px; height: 34px; border: 1px solid #ead4de; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; background: var(--wash); letter-spacing: .5px; }
.journey-grid p { font-size: 14px; }
.about-band { background: linear-gradient(120deg, #fff4f8, #fdfafb); }
.faq-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.faq-list details { padding-inline: 23px; }
.faq-list details:last-child { border-bottom: 0; }
.faq-list details[open] { background: var(--wash); }
.faq-list summary { font-weight: 500; }
.faq-list details > p { font-size: 14px; line-height: 1.75; }
.faq-section { gap: 60px; }
.pricing-section { padding-block: 56px 72px; }
.pricing-assurance { margin-top: 0; }
.pricing-card { box-shadow: var(--surface-shadow); }
.pricing-card-copy, .pricing-card li { font-size: 14px; }
.pricing-card-copy { min-height: 72px; }
.pricing-popular { font-size: 9px; padding: 7px 10px; }
.pricing-compare > .shell > div:first-child { display: block; }
.pricing-compare { padding-block: 64px; }
.pricing-intro { margin-bottom: 38px; }
.pricing-faq { padding-block: 70px; gap: 65px; }
.contact-layout { padding-block: 62px 75px; gap: 65px; }
.contact-panel { background: #fff; box-shadow: var(--surface-shadow); border-top: 3px solid var(--red); }
.contact-panel > .note { background: var(--wash); padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line); }
.contact-panel input:not([type=checkbox]), .contact-panel select, .contact-panel textarea { min-height: 44px; font-size: 14px; border-radius: 7px; }
.contact-panel input:user-invalid, .contact-panel textarea:user-invalid, .contact-panel select:user-invalid { border-color: #b00035; box-shadow: 0 0 0 2px #b0003510; }
.contact-preparation { padding: 24px; margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, var(--wash), #fff); }
.contact-preparation ol { padding: 0; margin: 23px 0 18px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.contact-preparation li { display: flex; flex-direction: column; gap: 9px; }
.contact-preparation li > span { font-size: 11px; color: var(--red); padding-top: 2px; }
.contact-preparation strong { font-size: 13px; }
.contact-preparation p { font-size: 12px; margin: 5px 0 0; }
.contact-preparation .note { border-top: 1px solid var(--line); padding-top: 15px; font-size: 11px; }
.resource-card { background: #fff; box-shadow: var(--surface-shadow); }
.resource-card p { font-size: 14px; }
.guides > article { gap: 60px; }
.guides + .faq-section { padding-top: 24px; }
.prose.section { padding-top: 6px; }
.prose > h2:first-child { margin-top: 0; }
.solution-story { gap: 70px; padding-block: 60px; }
.solution-art { box-shadow: var(--surface-shadow); }
.cta { margin-bottom: 68px; box-shadow: 0 20px 40px #73082412; }
.site-footer { background: #fcfafb; padding-top: 50px; }
.footer-main { padding-bottom: 40px; }
.footer-main > div > a { font-size: 13px; }
.footer-bottom { font-size: 11px; }
.footer-bottom a, .motion-toggle { min-height: 40px; display: inline-flex; align-items: center; }

@media (min-width: 1450px) { .home-hero { min-height: 610px; } .hero-art { height: 465px; } }
@media (max-width: 1100px) {
  #primary-nav, .drawer-body, .drawer-links { gap: 14px; }
  .audiences { flex-wrap: wrap; justify-content: center; gap: 5px; }
  .audiences > span { width: 100%; text-align: center; margin-bottom: 10px; }
  .audiences > span > br { display: none; }
  .explorer-toolbar { gap: 10px; }
  .perspective-view { gap: 22px; padding: 22px; }
  .contact-layout { gap: 35px; }
}
@media (max-width: 800px) {
  .section { padding-block: 58px; }
  .header-inner { height: 75px; }
  /* Reset desktop centering at every drawer level; rows must fill the panel. */
  body.nav-open { touch-action: auto; }
  #primary-nav { gap: 0; align-items: stretch; width: min(360px, calc(100vw - 32px)); }
  .menu-toggle { width: 48px; min-height: 48px; padding: 0; justify-content: center; border: 0; background: transparent; border-radius: 0; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .drawer-header { min-height: 88px; gap: 24px; padding: max(20px, env(safe-area-inset-top)) 24px 20px; }
  .drawer-brand { width: 156px; }
  .drawer-close { width: 48px; height: 48px; flex: 0 0 48px; background: transparent; border: 0; border-radius: 0; }
  .drawer-close svg { width: 22px; height: 22px; }
  .drawer-body { align-items: stretch; min-height: 0; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); gap: 24px; }
  .drawer-links { align-items: stretch; gap: 4px; flex-shrink: 0; }
  #primary-nav .drawer-links a { min-height: 52px; padding: 14px 16px; font-size: 16px; line-height: 24px; font-weight: 500; justify-content: space-between; border-radius: 8px; }
  #primary-nav .drawer-links a::after { display: block !important; content: ''; position: static; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); background: none; opacity: .4; margin-right: 3px; }
  #primary-nav .drawer-links a[aria-current] { background: #f9edf2; color: var(--deep); }
  .drawer-actions { align-items: stretch; flex-shrink: 0; margin-top: 0; padding-top: 24px; gap: 12px; }
  #primary-nav .drawer-actions .nav-contact,
  #primary-nav .drawer-actions .sign-in { min-height: 48px; font-size: 14px; padding: 14px 16px; border-radius: 8px; }
  .drawer-footer { margin-top: auto; padding: 12px 0 0; }
  .drawer-footer .mini-label { font-size: 9px; letter-spacing: 1px; }
  #primary-nav :focus-visible { outline-offset: 2px; }
  .home-hero { min-height: 0; padding-block: 40px 24px; }
  .hero-art { height: 365px; }
  .audiences > a { font-size: 11px; padding: 12px 10px; }
  .page-hero { padding-block: 44px 32px; }
  .page-hero h1 { font-size: 44px; }
  .section-links { gap: 8px; margin-top: 22px; }
  .section-links a { padding: 10px 12px; font-size: 11px; }
  .product-explorer { padding: 16px; }
  .explorer-toolbar { flex-direction: column; align-items: flex-start; gap: 17px; }
  .explorer-tabs { width: 100%; }
  .explorer-tabs button { flex: 1; padding-inline: 8px; }
  .explorer-panel .dash-main { padding: 18px; }
  .explorer-panel .dash-title h3 { font-size: 19px; }
  .explorer-panel .dash-side > span { font-size: 9px; }
  .perspective-view { grid-template-columns: 1fr; }
  .perspective-view > .mini-art { height: 230px; }
  .perspective-view h3 { font-size: 29px; }
  .dark-section { padding-block: 55px; }
  .dark-features .feature { padding: 20px; }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid .feature { padding: 22px; }
  .pricing-card-copy { min-height: 0; }
  .pricing-faq, .faq-section { gap: 28px; }
  .pricing-section { padding-block: 48px 60px; }
  .pricing-assurance a { margin-left: 0; }
  .contact-layout { padding-block: 44px 56px; }
  .contact-preparation { display: none; }
  .solution-story { gap: 30px; }
  .cta { margin-bottom: 55px; }
}
@media (max-width: 500px) {
  .home-hero .hero-copy h1 { font-size: 42px; }
  .hero-art { height: 325px; }
  .hero-note { flex-wrap: wrap; font-size: 10px; }
  .audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .audiences > span { grid-column: 1 / -1; }
  .audiences > a { border: 1px solid var(--line); min-height: 58px; gap: 8px; }
  .audiences > a > .icon:last-child { display: none; }
  .page-hero h1 { font-size: 38px; }
  .page-hero .lede { font-size: 15px; }
  .product-explorer { padding: 12px; }
  .explorer-toolbar p { font-size: 15px; }
  .explorer-tabs button { font-size: 10px; gap: 5px; min-height: 42px; }
  .explorer-tabs button .icon { width: 14px; }
  .explorer-panel .dash-main { padding: 12px; }
  .explorer-panel .dash-title h3 { font-size: 17px; }
  .explorer-panel .dash-metrics > div > span { font-size: 10px; }
  .explorer-panel .dash-metrics small { font-size: 9px; }
  .explorer-panel .dash-qr > span { font-size: 9px; }
  .explorer-panel .dash-metrics { grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; }
  .explorer-panel .dash-metrics > div { padding: 8px; }
  .explorer-panel .sample-label { font-size: 6px; }
  .explorer-footer > span:first-child { font-size: 11px; }
  .explorer-footer { font-size: 9px; }
  .perspective-view { padding: 18px; }
  .perspective-view .question-sheet { transform: rotate(-4deg); }
  .journey-grid { gap: 12px; }
  .journey-grid article { padding: 20px 16px; }
  .journey-grid p { font-size: 13px; }
  .journey-grid h3 { font-size: 18px; }
  .faq-list details { padding-inline: 18px; }
  .faq-list summary { font-size: 13px; }
  .pricing-compare > .shell > div:first-child { display: block; }
  .pricing-assurance { gap: 10px; }
  .guides > article { gap: 24px; }
  .footer-main > div > a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .audiences > a, .section-links a { transition: none; }
}
