@import url('./assets/curex360-brand.css?v=20261020-blue-purple');

:root {
  --paper: #faf9f7;
  --ink: #292333;
  --muted: #78717e;
  --purple: var(--brand-purple-strong);
  --line: #e4dfe8;
  --panel-width: min(470px, 72vw);
  --panel-gap: clamp(76px, 12vw, 190px);
  --hand: 'Caveat', cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Outfit', sans-serif; -webkit-font-smoothing: antialiased; }
body, main { width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #e8d9f2; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 15px 20px; background: white; border-radius: 8px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; inset: 0 0 auto; height: 94px; padding: 0 4.4vw; display: flex; align-items: center; justify-content: space-between; z-index: 20; }
.audience-nav { position: relative; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid #e4dfe9; border-radius: 40px; background: rgb(255 255 255 / 55%); }
.audience-nav > a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 9px 20px; font-size: 13px; font-weight: 450; }
.audience-nav .is-current { background: #332b40; color: white; border-radius: 30px; box-shadow: 0 3px 8px #3020380c; }
.audience-nav a:not(.is-current):hover { color: var(--purple); }
.audience-nav .icon { width: 14px; height: 14px; }
.portal-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; list-style: none; color: #766487; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .2s ease, color .2s ease; }
.portal-toggle::-webkit-details-marker { display: none; }
.portal-toggle::marker { content: ''; }
.portal-toggle:hover, .portal-dropdown[open] .portal-toggle { background: #eee7f3; color: #603c89; }
.portal-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.portal-toggle .icon { width: 18px; height: 18px; transition: transform .25s ease; }
.portal-dropdown[open] .portal-toggle .icon { transform: rotate(180deg); }
.portal-menu { position: absolute; top: calc(100% + 12px); left: 0; width: min(320px, calc(100vw - 40px)); max-height: calc(100svh - 120px); overflow-y: auto; padding: 8px; border: 1px solid #e4dce9; border-radius: 22px; background: #fdfbfe; box-shadow: 0 18px 48px -15px #30203835, 0 3px 10px #30203807; transform-origin: 24px 0; }
.portal-menu a { display: flex; align-items: center; gap: 12px; min-height: 59px; padding: 9px 11px; border-radius: 15px; font-size: 14px; font-weight: 450; transition: background .18s ease, color .18s ease; }
.portal-menu a:hover, .portal-menu a:focus-visible { background: #f0eaf5; color: #603c89; }
.portal-menu a:focus-visible { outline-offset: -2px; }
.portal-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: #eee6f5; color: #80609e; }
.portal-icon .icon { width: 21px; height: 21px; }
.portal-menu a:nth-child(2) .portal-icon { background: #e8efeb; color: #60816d; }
.portal-menu a:nth-child(3) .portal-icon { background: #e1e8f3; color: #57729e; }
.portal-menu a:nth-child(4) .portal-icon { background: #e7ecf4; color: #7389ad; }
.portal-external { margin-left: auto; color: #aa99b8; }
.portal-dropdown[open] .portal-menu { animation: portal-reveal .24s cubic-bezier(.2, .8, .2, 1) both; }
.portal-dropdown[open] .portal-menu a { animation: portal-row .25s ease both; }
.portal-dropdown[open] .portal-menu a:nth-child(2) { animation-delay: 30ms; }
.portal-dropdown[open] .portal-menu a:nth-child(3) { animation-delay: 60ms; }
.portal-dropdown[open] .portal-menu a:nth-child(4) { animation-delay: 90ms; }
.header-download { display: inline-flex; align-items: center; gap: 15px; font-size: 13px; min-height: 44px; }
.header-download:hover { color: var(--purple); }
.header-download .icon { width: 16px; height: 16px; }

/* The document is an ordinary swipeable gallery until the scroll controller is ready. */
.family-story { position: relative; }
.story-stage { position: relative; isolation: isolate; padding-top: 1px; }
.story-atmosphere { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: -1; background: radial-gradient(ellipse at 38% 28%, #eee7f270, transparent 53%), radial-gradient(ellipse at 68% 48%, #efe8f965, transparent 50%); }
.orbit { position: absolute; left: 50%; top: 50%; width: min(950px, 115vw); aspect-ratio: 1.38; border: 1px solid #bdb0cd33; border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit-two { width: min(1210px, 135vw); aspect-ratio: 1.15; transform: translate(-50%, -50%) rotate(32deg); border-color: #b5bcc72b; }
.orbit-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #bca2d3; box-shadow: 0 0 0 7px #d2bce212; }
.spark-one { top: 26%; left: 22%; }
.spark-two { top: 72%; right: 19%; width: 5px; height: 5px; background: #b1c1db; }
.brand-lockup { width: min(610px, 74vw); margin: 0 auto; min-height: 85svh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.brand-lockup h1 { font-size: 0; }
.hero-wordmark { width: 100%; }
.hero-tagline { margin-top: 34px; min-height: 1.3em; font-family: var(--hand); font-weight: 500; font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -.035em; line-height: 1.25; white-space: nowrap; }
.typing-caret { display: none; width: 2px; height: .7em; margin-left: 5px; background: #b186c5; vertical-align: -.04em; }
.is-typing .typing-caret { display: inline-block; animation: caret 750ms steps(1) infinite; }
.intro-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4.4vw 36px; }
.intro-bottom > p { font-size: 13px; line-height: 1.7; color: #837988; }
.intro-bottom > p > span { color: var(--ink); }
.explore-button { display: inline-flex; align-items: center; gap: 20px; background: none; padding: 0; border: none; font-size: 12px; color: #726778; }
.explore-button > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d4c9df; border-radius: 50%; }
.explore-button:hover > span { background: #eee6f2; }
.explore-button .icon { animation: scroll-nudge 2.6s ease-in-out infinite; }
.intro-skip { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: #837988; min-height: 44px; }
.intro-skip:hover { color: var(--purple); }
.intro-skip .icon { width: 15px; height: 15px; }

.gallery-viewport { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b9a6cf transparent; scroll-snap-type: x mandatory; padding-block: 35px; }
.screen-track { width: max-content; display: flex; align-items: center; gap: var(--panel-gap); padding-inline: calc((100vw - var(--panel-width)) / 2); }
.screen-card { position: relative; flex: 0 0 var(--panel-width); width: var(--panel-width); text-align: center; scroll-snap-align: center; }
.screen-visual { position: relative; width: 100%; }
.screen-halo { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(520px, 100%); aspect-ratio: 1; background: radial-gradient(circle, #e5e9f0 0, #e9ecf160 48%, transparent 70%); pointer-events: none; }
.screen-card:nth-child(even) .screen-halo { background: radial-gradient(circle, #ede5f7 0, #eee9f560 48%, transparent 70%); }
/* Window onto the real app screenshots in our existing artwork, not recreated UI. */
.device-crop { position: relative; height: clamp(240px, calc(100svh - 380px), 520px); aspect-ratio: var(--crop-w) / var(--crop-h); overflow: hidden; margin-inline: auto; border-radius: 11% / 5.4%; background: #ede7f0; box-shadow: 0 18px 30px -19px #2e173f55; }
.device-crop img { position: absolute; max-width: none; width: calc(941 / var(--crop-w) * 100%); left: calc(var(--crop-x) / var(--crop-w) * -100%); top: calc(var(--crop-y) / var(--crop-h) * -100%); }
.screen-copy { margin-top: 27px; }
.screen-copy h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.screen-copy p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.screen-note { position: absolute; top: 22%; right: -32%; width: 190px; color: #8d70ad; font-family: var(--hand); font-size: 26px; line-height: 1.15; text-align: left; transform: rotate(5deg); }
.screen-note svg { display: block; width: 75px; height: 62px; margin-left: -12px; transform: rotate(95deg); fill: none; stroke: #b29bc5; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.screen-note.final-note { top: 30%; }
.story-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 20px 12px 35px; }
.chapter-nav { display: flex; gap: 24px; align-items: center; }
.chapter-nav button { display: flex; align-items: center; gap: 7px; padding: 12px 0; min-height: 44px; border: none; background: none; font-size: 11px; color: #83798d; white-space: nowrap; }
.chapter-nav button > span:first-child { width: 5px; height: 5px; border-radius: 10px; background: #d8ccdf; transition: width .25s ease, background .25s ease; }
.chapter-nav button[aria-current] { color: #5b3a7b; }
.chapter-nav button[aria-current] > span:first-child { width: 17px; background: #9c70bd; }
.step-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid #dfd5e7; background: #ffffff70; border-radius: 50%; }
.step-button:hover:not(:disabled) { background: #eee4f4; }
.step-button:disabled { opacity: .35; }
.step-button[data-previous] svg { transform: rotate(180deg); }
.step-button .icon { width: 17px; height: 17px; }
.story-progress { display: none; position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: #e9e1ec; }
.story-progress > span { display: block; height: 100%; width: 100%; background: var(--brand-gradient); transform: scaleX(var(--progress, 0)); transform-origin: left; }

.family-story[data-layout="cinematic"] { height: var(--story-height, 650svh); }
[data-layout="cinematic"] .story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
[data-layout="cinematic"] .brand-lockup { min-height: 0; margin: 0; position: absolute; top: 0; left: 50%; transform: translate3d(-50%, var(--brand-y, 44svh), 0) translateY(-50%) scale(var(--brand-scale, 1)); will-change: transform; z-index: 3; }
[data-layout="cinematic"] .hero-tagline { opacity: var(--intro-opacity, 1); }
[data-layout="cinematic"] .intro-bottom { position: absolute; bottom: 0; left: 0; right: 0; opacity: var(--intro-opacity, 1); visibility: var(--intro-visibility, visible); }
[data-layout="cinematic"] .gallery-viewport { position: absolute; inset: 156px 0 77px; display: flex; align-items: center; padding-block: 0; overflow: hidden; opacity: var(--gallery-opacity, 0); visibility: var(--gallery-visibility, hidden); scroll-snap-type: none; }
[data-layout="cinematic"] .device-crop { height: var(--phone-height, 40svh); }
[data-layout="cinematic"] .screen-track { transform: translate3d(var(--track-x, 0px), var(--gallery-y, 100px), 0); will-change: transform; }
[data-layout="cinematic"] .screen-card { transform: scale(var(--screen-scale, 1)); opacity: var(--screen-opacity, 1); transform-origin: 50% 46%; }
[data-layout="cinematic"] .screen-note { opacity: var(--note-opacity, 0); }
[data-layout="cinematic"] .story-controls { position: absolute; bottom: 17px; left: 0; width: 100%; padding: 0 12px; opacity: var(--gallery-opacity, 0); visibility: var(--gallery-visibility, hidden); }
[data-layout="cinematic"] .story-progress { display: block; }
[data-layout="cinematic"] .orbit { opacity: var(--orbit-opacity, 1); }

.voice-section { position: relative; min-height: 100svh; padding: 115px 24px 95px; display: grid; place-items: center; isolation: isolate; overflow: hidden; background: #f1edf4; border-block: 1px solid #e8e0ec; }
.voice-background { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 47% 28%, #fcfafc, transparent 65%), radial-gradient(ellipse at 80% 90%, #ebe4f5, transparent 60%); }
.voice-background > span { position: absolute; left: 50%; top: 37%; width: min(850px, 125vw); aspect-ratio: 1; border: 1px solid #ae8ec61c; border-radius: 50%; transform: translate(-50%, -50%); }
.voice-background > span:nth-child(2) { width: min(1150px, 165vw); }
.voice-background > span:nth-child(3) { width: min(1450px, 200vw); }
.voice-content { position: relative; text-align: center; }
.voice-orbit { position: relative; width: 180px; height: 180px; margin: 0 auto 50px; display: grid; place-items: center; }
.voice-orb { width: 136px; height: 136px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-gradient); box-shadow: inset 0 1px 3px #ffffff70, 0 15px 45px -14px #0866ff50; }
.voice-ring { position: absolute; inset: 7px; border: 1px solid #c1a1d0; border-radius: 50%; opacity: .45; animation: voice-ripple 3.6s ease-out infinite; animation-play-state: paused; }
.ring-two { animation-delay: -1.2s; }
.ring-three { animation-delay: -2.4s; }
.voice-wave { display: flex; align-items: center; gap: 5px; height: 50px; }
.voice-wave i { display: block; width: 4px; height: 38px; border-radius: 10px; background: white; animation: voice-wave 1.05s ease-in-out infinite alternate; animation-play-state: paused; transform: scaleY(.4); }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(6) { height: 48px; animation-delay: -.35s; }
.voice-wave i:nth-child(3), .voice-wave i:nth-child(5) { height: 40px; animation-delay: -.65s; }
.voice-wave i:nth-child(4) { height: 53px; animation-delay: -.2s; }
.voice-wave i:nth-child(7) { animation-delay: -.8s; }
.voice-section[data-animating="true"] .voice-wave i, .voice-section[data-animating="true"] .voice-ring { animation-play-state: running; }
.listening-note { font-family: var(--hand); font-size: 29px; font-weight: 500; color: #877095; margin-bottom: 18px; }
.voice-content h2 { font-size: clamp(42px, 6vw, 82px); letter-spacing: -.06em; font-weight: 450; line-height: 1.08; }
.voice-content h2 > span { background: var(--brand-action-gradient); background-clip: text; -webkit-text-fill-color: transparent; }
.voice-description { margin-top: 21px; font-size: clamp(16px, 1.6vw, 21px); color: #756b7e; font-weight: 400; }
.store-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 37px; }
.store-links a { display: block; border-radius: 8px; transition: transform .2s ease; }
.store-links a:hover { transform: translateY(-3px); }
.store-links img { height: 50px; width: auto; }
.voice-languages { margin-top: 28px; color: #756b7e; font-size: 13px; }
.credit-note { margin-top: 12px; font-size: 11px; color: #8b7f95; }

.site-footer { padding: 62px max(6vw, calc((100vw - 1280px) / 2)) 25px; background: #f8f7f5; }
.footer-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.footer-heading img { width: 185px; }
.footer-heading > p { font-family: var(--hand); font-size: 31px; color: #8e769e; }
.footer-summary { max-width: 820px; margin-top: 26px; color: #756b7e; font-size: 14px; line-height: 1.7; }
.footer-grid { padding-block: 47px 58px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-intro > p { font-size: 27px; font-weight: 450; line-height: 1.25; letter-spacing: -.025em; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; margin-top: 21px; color: #8b6a9f; min-height: 44px; }
.contact-link .icon { width: 15px; height: 15px; }
.footer-grid nav h2 { margin-bottom: 16px; font-size: 12px; color: #9b8fa3; font-weight: 400; }
.footer-grid nav a { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 13px; font-weight: 400; }
.footer-grid nav a:hover { color: var(--purple); }
.footer-grid nav .icon { width: 13px; height: 13px; color: #a38ab5; }
.footer-bottom { display: flex; align-items: flex-start; gap: 42px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 10px; color: #928896; line-height: 1.6; }
.footer-bottom > span { flex-shrink: 0; padding-top: 7px; }
.footer-bottom > p { max-width: 590px; padding-top: 7px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid #ddd3e4; border-radius: 25px; padding: 8px 12px; margin-left: auto; font-size: 10px; white-space: nowrap; }
.motion-toggle .icon { width: 13px; height: 13px; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes portal-reveal { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes portal-row { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes voice-wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes voice-ripple { from { transform: scale(.85); opacity: .45; } to { transform: scale(1.62); opacity: 0; } }

@media (min-width: 1500px) {
  .brand-lockup { width: 680px; }
  .screen-note { right: -20%; }
}
@media (max-width: 900px) {
  .screen-note { display: none; }
  .chapter-nav { gap: 16px; }
  .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 28px; }
  .footer-intro { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; }
}
@media (max-width: 600px) {
  :root { --panel-width: 76vw; --panel-gap: 16vw; }
  .site-header { height: 84px; padding-inline: 20px; gap: 20px; }
  .audience-nav { padding: 4px; gap: 0; }
  .audience-nav > a { font-size: 11px; min-height: 44px; padding: 8px 14px; gap: 6px; }
  .header-download { display: none; }
  .brand-lockup { width: 81vw; }
  .hero-tagline { margin-top: 28px; font-size: 37px; }
  .intro-bottom { justify-content: center; padding-bottom: 34px; }
  .intro-bottom > p, .intro-skip { display: none; }
  .explore-button { flex-direction: column; gap: 17px; font-size: 11px; }
  .explore-button > span { width: 40px; height: 40px; }
  .orbit { width: 115vw; aspect-ratio: .78; }
  .orbit-two { width: 145vw; }
  .spark-one { left: 14%; top: 26%; }
  .spark-two { right: 10%; top: 71%; }
  [data-layout="cinematic"] .gallery-viewport { top: 148px; bottom: 66px; }
  .device-crop { height: clamp(200px, calc(100svh - 345px), 500px); }
  .screen-copy { margin-top: 24px; }
  .screen-copy h2 { font-size: 25px; }
  .screen-copy p { font-size: 13px; margin-top: 9px; }
  .story-controls { gap: 23px; }
  .chapter-nav { gap: 13px; }
  .chapter-nav button { padding: 12px 5px; }
  .chapter-nav .chapter-name { display: none; }
  .chapter-nav button > span:first-child { width: 6px; height: 6px; }
  .step-button { width: 36px; height: 36px; }
  [data-layout="cinematic"] .story-controls { bottom: 15px; }
  .voice-section { padding: 90px 22px 75px; min-height: 90svh; }
  .voice-orbit { transform: scale(.87); margin-bottom: 18px; }
  .listening-note { font-size: 26px; margin-bottom: 20px; }
  .voice-content h2 { font-size: clamp(34px, 9.4vw, 52px); }
  .voice-description { max-width: 270px; margin: 19px auto 0; line-height: 1.5; font-size: 16px; }
  .store-links { gap: 12px; margin-top: 31px; }
  .store-links img { height: 44px; }
  .site-footer { padding: 40px 24px 24px; }
  .footer-heading { gap: 16px; padding-bottom: 25px; }
  .footer-heading img { width: 135px; }
  .footer-heading > p { font-size: 24px; }
  .footer-summary { margin-top: 22px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 31px; }
  .footer-intro { display: none; }
  .footer-grid nav:last-child { grid-column: 1 / -1; }
  .footer-grid nav:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer-grid nav:last-child h2 { grid-column: 1 / -1; margin-bottom: 9px; }
  .footer-grid nav a { min-height: 41px; font-size: 13px; }
  .footer-bottom { flex-wrap: wrap; gap: 15px 10px; font-size: 10px; }
  .footer-bottom > p { order: 3; width: 100%; }
}
@media (max-height: 580px) and (min-width: 601px) {
  .site-header { height: 66px; }
  .hero-tagline { margin-top: 20px; }
  [data-layout="cinematic"] .gallery-viewport { top: 118px; bottom: 60px; }
  .device-crop { height: calc(100svh - 290px); min-height: 140px; }
  .screen-copy { margin-top: 15px; }
  .screen-copy h2 { font-size: 22px; }
  .screen-copy p { font-size: 12px; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html[data-motion="paused"] { scroll-behavior: auto; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation: none !important; transition: none !important; }
