/* =========================================================================
   SpaGo landing site · spago.slforeignjobs.lk
   Palette follows the Flutter app (lib/core/constants/app_colors.dart).
   Every animation lives in the "Motion" block at the end, inside
   @media (prefers-reduced-motion: no-preference), so the page stays fully
   visible and usable for people who turn motion off.
   ========================================================================= */

:root {
    --teal: #2A7B6E; --teal-600: #236a5f; --teal-800: #174a42; --teal-50: #ecf6f3; --teal-100: #d6ece6;
    --mint: #5DBB9E; --pink: #E87A90; --pink-soft: #F9B3C7; --pink-50: #fdf0f3; --gold: #F6C865; --gold-50: #fef7e4;
    --ink: #12302b; --body: #4b5f5b; --muted: #7b8e8a; --line: #e3ece8;
    --bg: #f8faf7; --card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(18,48,43,.04), 0 6px 18px rgba(18,48,43,.05);
    --shadow: 0 24px 60px -24px rgba(15,51,45,.30);
    --ease-out: cubic-bezier(.2,.7,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
    --font: "Plus Jakarta Sans", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--pink-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
section[id] { scroll-margin-top: 84px; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ───────────── Intro (first visit per session) ───────────── */
.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(55% 45% at 50% 45%, #fff 0%, rgba(255,255,255,0) 70%), radial-gradient(40% 40% at 30% 70%, rgba(249,179,199,.35), transparent 70%), radial-gradient(40% 40% at 70% 30%, rgba(93,187,158,.3), transparent 70%), var(--bg); clip-path: inset(0 0 0 0 round 0); }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.intro img { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 28px; box-shadow: 0 24px 50px -20px rgba(42,123,110,.55); }
.intro b { margin-top: 20px; font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; color: var(--teal-800); letter-spacing: -.02em; }
.intro small { color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.intro .ripple { top: 52px; }

.ripple { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ripple i { --size: 120px; position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; border: 2px solid rgba(93,187,158,.5); opacity: 0; }

/* ───────────── Progress bar & back-to-top ───────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--mint), var(--pink)); transform-origin: 0 50%; transform: scaleX(0); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 50px; height: 50px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: conic-gradient(var(--teal) calc(var(--p, 0) * 1turn), var(--teal-100) 0); box-shadow: var(--shadow); opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .35s, translate .35s var(--ease-out); }
.to-top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.to-top i { position: relative; color: var(--teal); font-size: 1.1rem; }
.to-top.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; }

/* ───────────── Buttons & badges ───────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s, translate .35s var(--ease-out); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 26px -12px rgba(42,123,110,.8); }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn-ghost { border-color: var(--teal-100); color: var(--teal-800); background: rgba(255,255,255,.65); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost i { transition: transform .3s var(--ease-out); }
.btn-ghost:hover i { transform: translateY(3px); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

.play-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px 10px 16px; border-radius: 14px; background: #0c1513; color: #fff; border: 1px solid #2c3a37; box-shadow: 0 14px 30px -14px rgba(12,21,19,.7); transition: transform .2s, box-shadow .2s, translate .35s var(--ease-out); }
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(12,21,19,.75); }
.play-badge svg { width: 28px; height: 28px; flex: none; }
.play-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge small { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.play-badge b { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.play-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.play-badge--light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 18px 36px -16px rgba(0,0,0,.45); }
.play-badge--light::after { background: linear-gradient(105deg, transparent 35%, rgba(42,123,110,.18) 50%, transparent 65%); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--teal-50); color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow i { color: var(--pink); }
.text-gradient { background: linear-gradient(100deg, #2A7B6E 0%, #47A98A 17%, #D49A4E 33%, #E06A84 50%, #D49A4E 67%, #47A98A 83%, #2A7B6E 100%); background: linear-gradient(in oklch 100deg, #2A7B6E 0%, #47A98A 17%, #D49A4E 33%, #E06A84 50%, #D49A4E 67%, #47A98A 83%, #2A7B6E 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────────── Navigation ───────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(248,250,247,.75); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(15,51,45,.4); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--teal-800); letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.nav-links a { position: relative; color: var(--body); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--pink)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a.is-active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ───────────── Decorative backgrounds ───────────── */
.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -140px; background: #bfe6d8; }
.aurora i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 20px; background: #fbd0dc; }
.aurora i:nth-child(3) { width: 400px; height: 400px; left: 42%; bottom: -220px; background: #fbe7b8; opacity: .45; }
.petals { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ───────────── Phone frame ───────────── */
.phone { position: relative; width: var(--w, 260px); padding: 10px; border-radius: 44px; background: linear-gradient(150deg, #3a4643, #121a18 40%, #0b100f); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), 0 40px 80px -30px rgba(15,51,45,.55), 0 18px 30px -18px rgba(15,51,45,.4); }
.phone img { width: 100%; height: auto; border-radius: 35px; background: var(--bg); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #070b0a; box-shadow: 0 0 0 2px rgba(255,255,255,.05); z-index: 2; }
.phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #26302d; }
.screen-stack { position: relative; border-radius: 35px; overflow: hidden; }
.screen-stack img { border-radius: 0; }
.screen-stack img + img { position: absolute; inset: 0; }
.js .screen-stack img:not(.is-active) { opacity: 0; }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #fff; border-radius: 18px; box-shadow: var(--shadow); font-size: .8rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.float-card b { display: block; color: var(--ink); font-size: .92rem; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.fc-icon.teal { background: var(--teal-50); color: var(--teal); }
.fc-icon.pink { background: var(--pink-50); color: var(--pink); }
.fc-icon.mint { background: #e6f6ef; color: #2f9a78; }
.live-dot { position: relative; width: 10px; height: 10px; margin: 0 4px 0 6px; border-radius: 50%; background: #22c55e; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; background: rgba(34,197,94,.25); }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: 40px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(42,123,110,.13) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(55% 60% at 72% 42%, #000, transparent 75%); mask-image: radial-gradient(55% 60% at 72% 42%, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; margin: 22px 0 20px; font-weight: 800; }
.hero h1 .w { display: inline-block; }
.lead { font-size: 1.15rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero-points i { color: var(--mint); margin-right: 6px; }

.hero-visual { position: relative; height: 660px; }
.stage { position: absolute; left: 50%; top: 0; width: 600px; height: 660px; margin-left: -300px; transform-origin: top center; }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #dcefe8 0%, rgba(220,239,232,0) 62%), radial-gradient(circle at 70% 70%, rgba(249,179,199,.5) 0%, rgba(249,179,199,0) 60%); }
.tilt { position: absolute; inset: 0; transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.tilt > * { translate: calc(var(--px, 0) * var(--d, 1) * 1px) calc(var(--py, 0) * var(--d, 1) * 1px); transition: translate .7s var(--ease-out); }
.ring { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%,-50%); border: 1.5px dashed rgba(42,123,110,.22); border-radius: 50%; }
.ring::before, .ring::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; }
.ring::before { top: -7px; left: 50%; margin-left: -7px; background: var(--pink); box-shadow: 0 0 0 6px rgba(232,122,144,.18); }
.ring::after { bottom: 60px; left: 18px; background: var(--mint); box-shadow: 0 0 0 6px rgba(93,187,158,.18); width: 10px; height: 10px; }
.stage .phone { position: absolute; }
.phone-front { --w: 286px; left: 70px; top: 14px; z-index: 2; }
.phone-back { --w: 246px; left: 290px; top: 64px; z-index: 1; transform: rotate(7deg); }
.fc-1 { left: 0; top: 150px; }
.fc-2 { left: 372px; top: 450px; }
.fc-3 { left: 26px; top: 540px; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(42,123,110,.35); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); }

/* ───────────── Marquee band ───────────── */
.marquee { display: grid; gap: 12px; padding: 18px 0; background: #fff; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { overflow-x: auto; scrollbar-width: none; }
.marquee-row::-webkit-scrollbar { display: none; }
.marquee-row.is-running { overflow: hidden; }
.marquee-track { display: flex; gap: 14px; width: max-content; padding-inline: 20px; }
.marquee-row.is-running .marquee-track { padding-inline: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; transition: background-color .25s, border-color .25s, color .25s; }
.chip i { color: var(--teal); }
.marquee-row.reverse .chip { background: var(--pink-50); border-color: #f8dbe2; }
.marquee-row.reverse .chip i { color: var(--pink); }
.chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip:hover i { color: #fff; }

/* ───────────── Sections ───────────── */
.section { padding: 104px 0; }
.section.pt-0 { padding-top: 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.12; margin: 16px 0 14px; font-weight: 700; }
.section-head p { font-size: 1.08rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { position: relative; overflow: hidden; isolation: isolate; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(93,187,158,.16), transparent 60%); opacity: 0; transition: opacity .4s; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(42,123,110,.65), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before, .feature:hover::after { opacity: 1; }
.feature h3 { font-size: 1.22rem; margin: 20px 0 8px; font-weight: 700; }
.feature p { font-size: .97rem; }
.icon-tile { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; transition: transform .55s var(--ease-spring); }
.feature:hover .icon-tile { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.icon-tile.teal { background: linear-gradient(135deg, var(--teal-50), #d8ede7); color: var(--teal); }
.icon-tile.pink { background: linear-gradient(135deg, var(--pink-50), #fbdde5); color: #d45f78; }
.icon-tile.gold { background: linear-gradient(135deg, var(--gold-50), #fcebc0); color: #c48a0b; }
.icon-tile.mint { background: linear-gradient(135deg, #e8f7f1, #d3efe4); color: #2f9a78; }

/* Spotlight */
.spotlight { background: #fff; border-block: 1px solid var(--line); overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.split-visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(93,187,158,.26), rgba(93,187,158,0) 65%); }
.split-visual .phone { --w: 290px; }
.split-visual .float-card { left: calc(50% - 210px); bottom: 16%; }
.split-copy h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.12; margin: 16px 0 16px; }
.split-copy > p { font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: .95rem; }

/* Screens gallery */
.screens { background: radial-gradient(60% 45% at 50% 0%, rgba(249,179,199,.2), transparent 70%); }
.screens-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.screen { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen .phone { --w: 100%; max-width: 250px; transition: transform .5s var(--ease-out), box-shadow .5s; }
.screen:hover .phone { transform: translateY(-12px) rotate(-1.5deg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), 0 50px 90px -30px rgba(15,51,45,.6); }
.screen:nth-child(even) { --even: 1; margin-top: 52px; }
.screen figcaption { margin-top: 22px; }
.screen figcaption b { display: block; font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.screen figcaption span { font-size: .92rem; color: var(--muted); }
.swipe-hint { display: none; text-align: center; color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* Steps timeline */
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps::before { content: ""; position: absolute; top: 40px; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 18px); opacity: .4; transform-origin: 0 50%; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-badge { position: relative; z-index: 1; width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.6rem; color: var(--teal); }
.step-badge::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .2; }
.step-badge .num { position: absolute; top: -4px; right: -6px; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--mint)); color: #fff; font: 800 .8rem/1 var(--font-head); box-shadow: 0 6px 14px -6px rgba(42,123,110,.8); }
.step:nth-child(2) .step-badge { color: var(--pink); }
.step:nth-child(2) .num { background: linear-gradient(135deg, var(--pink), #f4a3b5); box-shadow: 0 6px 14px -6px rgba(232,122,144,.8); }
.step:nth-child(3) .step-badge { color: #2f9a78; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { max-width: 30ch; margin: 0 auto; }

/* Spa owners */
.owners { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 64px; border-radius: 36px; color: #cfe5df; background: radial-gradient(60% 80% at 100% 0%, rgba(116,214,184,.3), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(10,40,35,.45), transparent 60%), linear-gradient(135deg, #1f655a, #123f38); }
.owners::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -220px; top: -320px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(116,214,184,0), rgba(116,214,184,.35), rgba(249,179,199,.22), rgba(116,214,184,0)); filter: blur(40px); }
.owners h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 16px 0 14px; }
.owners .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.owners .eyebrow i { color: var(--pink-soft); }
.owner-points { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 20px; }
.owner-points li { display: flex; gap: 14px; }
.owner-points i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--pink-soft); font-size: 1.15rem; }
.owner-points b { display: block; color: #fff; font-size: 1.03rem; }
.owners-actions { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.owners-actions .link { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.owners-actions .link:hover { border-color: #fff; }
.partner-card { background: #fff; color: var(--body); border-radius: 26px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); rotate: -2deg; transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease-out); }
.partner-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.3; }
.partner-head b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.partner-head small { color: var(--muted); }
.partner-row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); line-height: 1.35; }
.partner-row:nth-child(4) { border-bottom: 0; }
.partner-row b { display: block; color: var(--ink); font-size: .98rem; }
.partner-row small { color: var(--muted); font-size: .85rem; }
.partner-row .bi-chevron-right { margin-left: auto; color: var(--muted); }
.partner-foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--teal-50); color: var(--teal-800); font-size: .85rem; font-weight: 600; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0 24px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--teal-100); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: 1.35rem; font-weight: 500; transition: transform .35s var(--ease-spring), background-color .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--teal); color: #fff; }
.faq details p { padding: 0 0 22px; }
.faq a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Final call to action */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 80px 32px; border-radius: 36px; color: #d8ece6; background: radial-gradient(55% 90% at 50% 0%, rgba(116,214,184,.42), transparent 70%), linear-gradient(160deg, #2A7B6E, #174a42); }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.12); }
.cta::before { width: 420px; height: 420px; left: -140px; bottom: -220px; }
.cta::after { width: 320px; height: 320px; right: -90px; top: -150px; }
.cta-logo { position: relative; width: 84px; height: 84px; margin: 0 auto 28px; }
.cta-logo img { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 24px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.cta-logo .ripple i { --size: 84px; border-color: rgba(255,255,255,.4); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.cta p { font-size: 1.1rem; margin-bottom: 32px; }
.spark { position: absolute; z-index: -1; left: var(--x); top: var(--y); color: rgba(255,255,255,.75); font-size: var(--s, 14px); line-height: 1; pointer-events: none; }

/* Footer */
.footer { margin-top: 104px; padding: 56px 0 32px; background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 26em; font-size: .94rem; }
.footer h4 { font-size: 1rem; margin: 6px 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer ul a { transition: color .2s; }
.footer ul a:hover { color: var(--teal); }
.footer ul i { color: var(--teal); margin-right: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }

/* ───────────── Legal pages ───────────── */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 44px; text-align: center; }
.legal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 18px 0 10px; }
.legal-hero .date { color: var(--muted); }
.legal-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.legal-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--body); transition: background-color .2s, color .2s; }
.legal-tabs a:hover { color: var(--teal); }
.legal-tabs a.is-active { background: var(--teal); color: #fff; }
.legal { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 44px clamp(22px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.legal h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 36px 0 12px; color: var(--teal-800); }
.legal h2::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--pink)); }
.legal > :first-child { margin-top: 0; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--teal-50); color: var(--teal-800); font-family: var(--font-head); }
.legal tr:last-child td { border-bottom: 0; }

/* ───────────── 404 ───────────── */
.notfound { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 60px 0; text-align: center; }
.notfound .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 22vw, 11rem); line-height: .9; letter-spacing: -.04em; }
.notfound h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 10px 0 12px; }
.notfound p { max-width: 30em; margin: 0 auto 30px; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .lead { margin-inline: auto; }
    .hero-actions, .hero-points { justify-content: center; }
    .scroll-cue { display: none; }
    .split { grid-template-columns: 1fr; gap: 48px; }
    .split-copy { order: -1; text-align: center; }
    .checklist { max-width: 520px; margin-inline: auto; text-align: left; }
    .owners { grid-template-columns: 1fr; padding: 48px 32px; }
    .partner-card { max-width: 440px; width: 100%; margin: 0 auto; rotate: 0deg; }
}
@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .screens-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; padding: 10px 20px 28px; margin-inline: -20px; scrollbar-width: none; }
    .screens-track::-webkit-scrollbar { display: none; }
    .screen { flex: 0 0 230px; scroll-snap-align: center; }
    .screen:nth-child(even) { margin-top: 0; }
    .swipe-hint { display: block; }
    .steps { grid-template-columns: 1fr; gap: 44px; max-width: 520px; margin-inline: auto; }
    .steps::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(15,51,45,.35); }
    .nav.is-open .nav-links { display: flex; }
    .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-cta { margin-left: auto; }
    .section { padding: 80px 0; }
}
@media (max-width: 640px) {
    .hero { padding: 28px 0 72px; }
    .hero-visual { height: 500px; }
    .stage { transform: scale(.74); }
    .feature-grid { grid-template-columns: 1fr; }
    .split-visual .phone { --w: 250px; }
    .split-visual .float-card { left: 4px; }
    .owners { padding: 40px 22px; border-radius: 28px; }
    .cta { padding: 60px 22px; border-radius: 28px; }
    .footer { margin-top: 80px; }
    .legal { border-radius: 22px; }
    /* privacy table: stack "Information" and "Why" instead of scrolling sideways */
    .legal table { min-width: 0; }
    .legal table, .legal tbody, .legal tr, .legal td { display: block; }
    .legal tr:first-child { display: none; }
    .legal tr { border-bottom: 1px solid var(--line); padding: 4px 0; }
    .legal tr:last-child { border-bottom: 0; }
    .legal td, .legal tr:last-child td { border-bottom: 0; padding: 10px 16px 0; }
    .legal td + td, .legal tr:last-child td + td { padding: 4px 16px 12px; color: var(--muted); font-size: .92rem; }
    .legal td + td::before { content: "Why: "; font-weight: 700; color: var(--teal-800); }
}
@media (max-width: 440px) {
    .hero-visual { height: 410px; }
    .stage { transform: scale(.6); }
    .nav-cta { display: none; }
    .nav-toggle { margin-left: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .play-badge b { font-size: 1.2rem; }
    .to-top { right: 14px; bottom: 14px; }
}

/* =========================================================================
   Motion — only for people who have not asked for reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {

    /* Intro */
    .intro-on .intro img { animation: intro-pop 1s var(--ease-spring) both; }
    .intro-on .intro b { animation: intro-text .8s .35s var(--ease-out) both; }
    .intro-on .intro small { animation: intro-text .8s .5s var(--ease-out) both; }
    .intro-on .ripple i, .cta-logo .ripple i { animation: ripple 2.4s var(--ease-out) infinite; }
    .intro-on .ripple i:nth-child(2), .cta-logo .ripple i:nth-child(2) { animation-delay: .8s; }
    .intro-on .ripple i:nth-child(3), .cta-logo .ripple i:nth-child(3) { animation-delay: 1.6s; }
    .intro-leave .intro { animation: intro-out .85s cubic-bezier(.7,0,.3,1) forwards; }

    /* Backgrounds */
    .aurora i { animation: drift 18s ease-in-out infinite alternate; }
    .aurora i:nth-child(2) { animation-duration: 22s; animation-delay: -6s; }
    .aurora i:nth-child(3) { animation-duration: 26s; animation-delay: -12s; }
    .text-gradient { animation: shimmer 7s linear infinite; }

    /* Hero entrance (starts when main.js adds .is-ready) */
    .js .hero h1 .w, .js .hero-copy > :not(h1), .js .stage, .js .stage .float-card { opacity: 0; }
    .is-ready .hero h1 .w { animation: word-in 1s var(--ease-out) both; animation-delay: calc(var(--i) * 85ms + 120ms); }
    .is-ready .hero-copy > :not(h1) { animation: rise .9s var(--ease-out) both; }
    .is-ready .hero-copy > .lead { animation-delay: .6s; }
    .is-ready .hero-copy > .hero-actions { animation-delay: .75s; }
    .is-ready .hero-copy > .hero-points { animation-delay: .9s; }
    .is-ready .stage { animation: stage-in 1.4s .2s var(--ease-out) both; }
    .is-ready .phone-front { animation: float 8s 1.6s ease-in-out infinite; }
    .is-ready .phone-back { animation: float-tilt 9s 1.6s ease-in-out infinite; }
    .is-ready .fc-1 { animation: pop-in .9s 1.1s var(--ease-spring) both, float 7s 2s ease-in-out infinite; }
    .is-ready .fc-2 { animation: pop-in .9s 1.3s var(--ease-spring) both, float 8s 2.2s ease-in-out infinite; }
    .is-ready .fc-3 { animation: pop-in .9s 1.5s var(--ease-spring) both, float 9s 2.4s ease-in-out infinite; }
    .ring { animation: spin 70s linear infinite; }
    .screen-stack img { transition: opacity 1s ease, transform 1.6s var(--ease-out); }
    .js .screen-stack img:not(.is-active) { transform: scale(1.08); }
    .scroll-cue span { animation: scroll-cue 1.8s ease-in-out infinite; }
    .live-dot::after { animation: pulse 2s ease-out infinite; }
    .play-badge::after { animation: shine 5.5s 2.5s ease-in-out infinite; }

    /* Marquee (main.js measures the loop and adds .is-running) */
    .marquee-row.is-running .marquee-track { animation: marquee var(--dur, 40s) linear infinite; }
    .marquee-row.reverse.is-running .marquee-track { animation-direction: reverse; }
    .marquee:hover .marquee-track { animation-play-state: paused; }

    /* Scroll reveal */
    .js .reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
    .js .reveal[data-anim="left"] { transform: translateX(-60px); }
    .js .reveal[data-anim="right"] { transform: translateX(60px); }
    .js .reveal[data-anim="zoom"] { transform: scale(.88); }
    .js .reveal[data-anim="tilt"] { transform: perspective(1200px) rotateX(16deg) translateY(50px); transform-origin: 50% 100%; filter: none; }
    .js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
    .js .feature.reveal.is-visible { transition: opacity .9s var(--ease-out), filter .9s var(--ease-out), transform .45s var(--ease-out), box-shadow .35s, border-color .35s; }
    .js .feature.reveal.is-visible:hover { transform: translateY(-6px); }

    /* Spotlight checklist ticks in one by one */
    .js .checklist li { opacity: 0; transform: translateX(-18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
    .js .checklist i { transform: scale(0); transition: transform .6s var(--ease-spring); }
    .js .is-visible .checklist li { opacity: 1; transform: none; }
    .js .is-visible .checklist i { transform: none; }
    .js .is-visible .checklist li:nth-child(1), .js .is-visible .checklist li:nth-child(1) i { transition-delay: .3s; }
    .js .is-visible .checklist li:nth-child(2), .js .is-visible .checklist li:nth-child(2) i { transition-delay: .45s; }
    .js .is-visible .checklist li:nth-child(3), .js .is-visible .checklist li:nth-child(3) i { transition-delay: .6s; }
    .js .is-visible .checklist li:nth-child(4), .js .is-visible .checklist li:nth-child(4) i { transition-delay: .75s; }
    .split-visual .phone { animation: float 9s ease-in-out infinite; }
    .split-visual .float-card { animation: float 7s 1s ease-in-out infinite; }

    /* Screens: dealt out of a stacked deck (desktop) */
    @media (min-width: 961px) {
        .js .screens-track .screen { transition: transform 1.2s var(--ease-out), opacity .6s ease; transition-delay: calc(var(--i) * 70ms); }
        .js .screens-track:not(.is-visible) .screen { opacity: 0; transform: translateX(calc((1.5 - var(--i)) * (100% + 28px))) translateY(calc(var(--even, 0) * -52px)) rotate(calc((var(--i) - 1.5) * 7deg)) scale(.86); }
    }

    /* Steps timeline */
    .steps::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
    .steps.is-visible::before { transform: scaleX(1); }
    .js .steps .step { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
    .js .steps .step-badge { transform: scale(.3); transition: transform .9s var(--ease-spring); }
    .js .steps.is-visible .step, .js .steps.is-visible .step-badge { opacity: 1; transform: none; }
    .js .steps.is-visible .step:nth-child(2), .js .steps.is-visible .step:nth-child(2) .step-badge { transition-delay: .4s; }
    .js .steps.is-visible .step:nth-child(3), .js .steps.is-visible .step:nth-child(3) .step-badge { transition-delay: .8s; }
    .step-badge::after { animation: pulse-ring 2.8s ease-out infinite; }
    .step:nth-child(2) .step-badge::after { animation-delay: .9s; }
    .step:nth-child(3) .step-badge::after { animation-delay: 1.8s; }

    /* Spa owners */
    .owners::before { animation: spin 16s linear infinite; }
    .js .partner-head, .js .partner-row, .js .partner-foot { opacity: 0; transform: translateX(34px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
    .js .is-visible .partner-head, .js .is-visible .partner-row, .js .is-visible .partner-foot { opacity: 1; transform: none; }
    .js .is-visible .partner-card > :nth-child(1) { transition-delay: .35s; }
    .js .is-visible .partner-card > :nth-child(2) { transition-delay: .5s; }
    .js .is-visible .partner-card > :nth-child(3) { transition-delay: .65s; }
    .js .is-visible .partner-card > :nth-child(4) { transition-delay: .8s; }
    .js .is-visible .partner-card > :nth-child(5) { transition-delay: .95s; }

    /* FAQ answer slides in */
    .faq details[open] p { animation: rise .45s var(--ease-out) both; }

    /* CTA */
    .cta-logo img { animation: float 5s ease-in-out infinite; }
    .spark { animation: twinkle 3.2s var(--t, 0s) ease-in-out infinite; }

    /* 404 */
    .notfound .code { animation: shimmer 7s linear infinite, float 6s ease-in-out infinite; }

    @keyframes intro-pop { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: none; } }
    @keyframes intro-text { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes intro-out { to { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); } }
    @keyframes ripple { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
    @keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.94); } }
    @keyframes shimmer { to { background-position: -200% center; } }
    @keyframes word-in { from { opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
    @keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
    @keyframes stage-in { from { opacity: 0; translate: 0 70px; scale: .9; } to { opacity: 1; translate: 0 0; scale: 1; } }
    @keyframes pop-in { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
    @keyframes float-tilt { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-10px); } }
    @keyframes spin { to { rotate: 360deg; } }
    @keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
    @keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
    @keyframes pulse-ring { 0% { transform: scale(.9); opacity: .35; } 100% { transform: scale(1.35); opacity: 0; } }
    @keyframes shine { 0% { transform: translateX(-130%); } 28%, 100% { transform: translateX(130%); } }
    @keyframes marquee { to { transform: translateX(calc(-1 * var(--loop, 50%))); } }
    @keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(25deg); } }
}

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