/* CareNotes /sample3 : Apple.com-style product landing
   Concepts borrowed: 44px frosted nav, full-bleed tiles alternating light/black,
   centered headline > subhead > two pill CTAs > product visual, headline that
   brightens as the tile enters, staggered fade-up, play-once sequences with replay. */

:root {
    --ease: cubic-bezier(.2, .7, .2, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --blue: #2563eb;
    --green: #38cc75;
    --red: #e94a4a;
    --orange: #f7a54a;
    --gold: #f0c04a;
    --pw: 320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: var(--font);
    background: #f4f4f4;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------------- NAV (main-site floating pill; layout classes come from Tailwind) ---------------- */
.site-nav { font-family: 'Geist', var(--font); color: #1a1a1a; padding-bottom: 12px; }
.site-nav button { background: transparent; border: 0; cursor: pointer; color: inherit; }
/* Overlay the mobile menu instead of growing the header, so the hero underneath does not shift. */
.site-nav #mobile-menu { position: absolute; top: calc(100% - 4px); left: .75rem; right: .75rem; margin-top: 0; }
@media (min-width: 640px) { .site-nav #mobile-menu { left: 1.25rem; right: 1.25rem; } }
.nav-pill {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .04);
}
.btn-dark {
    background: #1a1a1a; color: #fff;
    transition: background .2s cubic-bezier(.4, 0, .2, 1), color .2s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease;
}
.btn-dark:hover { background: #2563eb; box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .65); }
.btn-light {
    background: #fff; color: #1a1a1a; border: 1px solid rgba(0, 0, 0, .08);
    transition: background .2s cubic-bezier(.4, 0, .2, 1), border-color .2s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease;
}
.btn-light:hover { background: #f4f4f4; border-color: rgba(0, 0, 0, .16); box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .4); }
#cn-features-menu { min-width: 13.5rem; }

.font-display {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.92;
}
.display-xl { font-size: clamp(3rem, 9vw, 8rem); }
.display-lg { font-size: clamp(2.4rem, 6.5vw, 5.5rem); }

.inline-obj {
    display: inline-block; height: 0.82em; width: auto; vertical-align: -0.14em;
    margin: 0 0.06em; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .16));
    animation: inlineWobble 5s ease-in-out infinite; transform-origin: 50% 80%;
}
@keyframes inlineWobble { 0%, 100% { transform: rotate(-5deg) scale(1); } 50% { transform: rotate(5deg) scale(1.04); } }

/* ---------------- TILE BASE ---------------- */
.tile { position: relative; overflow: hidden; }
.theme-light { --bg: #f5f5f7; --fg: #1d1d1f; --dim: #b4b4b8; --sub: #6e6e73; --fill-bg: #1d1d1f; --fill-fg: #f5f5f7; --hover: rgba(255, 255, 255, .08); background: var(--bg); color: var(--fg); }
.theme-dark  { --bg: #000;    --fg: #f5f5f7; --dim: #4b4b4f; --sub: #86868b; --fill-bg: #f5f5f7; --fill-fg: #1d1d1f; --hover: rgba(0, 0, 0, .06); background: var(--bg); color: var(--fg); }

.tile-full { margin-top: 12px; min-height: 940px; }
.tile-copy { text-align: center; padding: 70px 22px 0; }
.tile h2 {
    font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.07;
    letter-spacing: -.009em; color: var(--dim);
}
.tile.is-in h2 { color: var(--fg); }
.tile .sub {
    margin-top: 8px; font-size: clamp(19px, 2.2vw, 28px); font-weight: 600;
    line-height: 1.14; letter-spacing: .007em; color: var(--sub);
}
.tile .note {
    margin: 14px auto 0; max-width: 560px; font-size: 17px; line-height: 1.47;
    letter-spacing: -.02em; color: var(--sub);
}
.ctas { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block; font-size: 17px; line-height: 1.17; font-weight: 400;
    letter-spacing: -.02em; padding: 11px 21px; border-radius: 980px;
    transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-fill { background: var(--fill-bg); color: var(--fill-fg); box-shadow: inset 0 0 0 1px transparent; }
.btn-fill:hover { background-image: linear-gradient(var(--hover), var(--hover)); }
.btn-line { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.btn-white { background: #f5f5f7; color: #000; }
.btn-white:hover { background: #fff; }

/* Reveal engine: staggered fade-up, driven by .is-in from IntersectionObserver */
.r {
    opacity: 0; transform: translateY(34px);
    transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), color .9s var(--ease) var(--d, 0s);
    will-change: opacity, transform;
}
.tile-visual.r { transform: translateY(48px) scale(.97); }
.is-in .r { opacity: 1; transform: none; }

/* Replay control (Apple's bottom-right pause/replay) */
.replay {
    position: absolute; right: 22px; bottom: 22px; z-index: 5;
    width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; opacity: 0; pointer-events: none;
    background: rgba(0, 0, 0, .08); color: #1d1d1f;
    transition: opacity .4s var(--ease), transform .2s var(--ease), background .2s;
}
.theme-dark .replay { background: rgba(255, 255, 255, .14); color: #f5f5f7; }
.replay:hover { transform: scale(1.08); }
.tile.is-done .replay { opacity: 1; pointer-events: auto; }

/* ---------------- SKY HERO + PROVIDER MARQUEE ---------------- */
.hero {
    /* Pull the hero up under the in-flow sticky pill nav (64px pill + 12px header padding) */
    margin-top: -76px; padding-top: 88px;
    min-height: 620px; display: grid; place-items: center; text-align: center;
    color: #f5f5f7;
    background: linear-gradient(180deg, #2b4a86 0%, #456fae 42%, #6b95cd 100%);
}
/* WebGL storm (sky-storm.js) paints the sky + white motes; CSS gradient above is the fallback. */
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.has-sky .hero-sky { opacity: 1; }
.hero-rays, .hero-glow { z-index: 1; }
.hero.has-sky .hero-rays { opacity: .55; }
/* Deepen the blue under the copy so the type sits on a calm field. */
.hero.has-sky::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% 78%, rgba(30, 58, 112, .34) 0, rgba(30, 58, 112, 0) 100%),
        linear-gradient(180deg, rgba(36, 64, 122, 0) 42%, rgba(36, 64, 122, .42) 68%, rgba(36, 64, 122, .7) 100%);
}
.hero-rays {
    position: absolute; left: 50%; top: 42%; width: 160vmax; height: 160vmax;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 9deg, rgba(255, 255, 255, .07) 11deg 13deg, rgba(255, 255, 255, 0) 15deg 24deg);
    -webkit-mask: radial-gradient(circle at center, #000 0, rgba(0, 0, 0, .55) 18%, transparent 42%);
    mask: radial-gradient(circle at center, #000 0, rgba(0, 0, 0, .55) 18%, transparent 42%);
    animation: rays 70s linear infinite;
    opacity: .9;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .55) 0, rgba(170, 205, 255, .28) 14%, rgba(120, 165, 230, 0) 38%);
    animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hero-inner { position: relative; z-index: 2; padding: 90px 22px 80px; max-width: 760px; }
.hero-mark { position: relative; width: 168px; height: 168px; margin: 0 auto 34px; }
.mark-halo {
    position: absolute; inset: -18px; border-radius: 40%;
    background: conic-gradient(from 0deg, transparent 0 20%, rgba(255, 255, 255, .85) 30%, transparent 42%, transparent 60%, rgba(160, 200, 255, .7) 72%, transparent 84%);
    filter: blur(14px); opacity: .9;
    animation: halo 9s linear infinite;
}
@keyframes halo { to { transform: rotate(360deg); } }
.mark { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 0 26px rgba(255, 255, 255, .55)) drop-shadow(0 10px 30px rgba(20, 50, 110, .5)); }
.mark-tile { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.8s var(--ease) .3s forwards; }
.mark-heart { transform-origin: 60px 60px; animation: heartbeat 4.5s ease-in-out 2s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.06); } 12% { transform: scale(1); } 18% { transform: scale(1.05); } 26% { transform: scale(1); } }
.hero-copy {
    font-size: clamp(20px, 2.3vw, 26px); font-weight: 700; line-height: 1.24; letter-spacing: -.004em;
    max-width: 680px; margin: 0 auto; color: #fff; text-wrap: balance;
    text-shadow: 0 1px 2px rgba(20, 40, 90, .35), 0 6px 28px rgba(20, 40, 90, .35);
}
.hero-ctas { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-line { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.btn-hero-line:hover { background: rgba(255, 255, 255, .12); }
.hero-foot { margin-top: 26px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .84); letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(20, 40, 90, .3); }

.marquee { display: flex; gap: 4rem; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee span { white-space: nowrap; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- DEVICE FRAMES ---------------- */
.phone {
    /* Body sized so the screen (inset .028 * pw on every side) has the exact
       720 / 1565 aspect of the screenshots: no letterbox, no crop. */
    position: relative; width: var(--pw); aspect-ratio: 10000 / 21079;
    border-radius: calc(var(--pw) * .165);
    background: linear-gradient(150deg, #4a4a4f 0%, #1d1d20 30%, #0e0e10 70%, #3a3a3e 100%);
    box-shadow:
        0 60px 120px -40px rgba(0, 0, 0, .65),
        0 25px 50px -25px rgba(0, 0, 0, .5),
        inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.phone::before, .phone::after {
    content: ""; position: absolute; width: 3px; background: #2a2a2e; border-radius: 2px;
}
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after  { right: -3px; top: 26%; height: 14%; }
.phone .screen {
    position: absolute; inset: calc(var(--pw) * .028);
    border-radius: calc(var(--pw) * .14); overflow: hidden; background: #ecebf4;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-lg { --pw: 320px; }
.phone-md { --pw: 262px; }

.float-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .92); color: #1d1d1f;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-radius: 980px; padding: 9px 14px 9px 11px;
    font-size: 13px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05);
    opacity: 0; transform: translateY(12px) scale(.9);
}
.chip-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; }

/* ---------------- CALENDAR SYNC ---------------- */
.vis-sync { position: relative; margin: 44px auto -110px; display: flex; flex-direction: column; align-items: center; overflow: visible; }
.sync-connect { width: 600px; }
.pms-strip { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 600px; padding: 0 15px; }
.pms-chip {
    width: 118px; height: 54px; display: grid; place-items: center; padding: 10px 14px;
    background: #fff; border-radius: 14px;
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
    opacity: 0; transform: translateY(10px) scale(.92);
}
.pms-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pms-chip img[alt="Dentrix Ascend"] { max-width: 78%; max-height: 78%; }
.pms-chip img[alt="Eaglesoft"] { transform: translateY(-7px); }
.is-play .pms-chip { animation: chipIn .6s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .1s); }
@keyframes chipIn { to { opacity: 1; transform: none; } }

.sync-wire { position: relative; z-index: 0; width: 600px; height: 140px; margin-top: -3px; }
.sync-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sync-lines path { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 1.6; stroke-dasharray: 340; stroke-dashoffset: 340; }
.is-play .sync-lines path { animation: draw .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-play .sync-lines path:nth-child(1) { animation-delay: .35s; }
.is-play .sync-lines path:nth-child(2) { animation-delay: .45s; }
.is-play .sync-lines path:nth-child(3) { animation-delay: .55s; }
.is-play .sync-lines path:nth-child(4) { animation-delay: .65s; }
.sync-dot {
    position: absolute; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
    background: var(--blue); box-shadow: 0 0 14px rgba(37, 99, 235, .9), 0 0 3px #fff;
    offset-anchor: 50% 50%; offset-distance: 0%; opacity: 0;
}
.is-play .sync-dot { animation: travel 1.5s var(--ease) 2 forwards; animation-delay: calc(.9s + var(--p) * .16s); }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.now-glow {
    position: absolute; left: 6.5%; right: 6.5%; top: 44.8%; height: 23.7%; border-radius: 12px;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    pointer-events: none;
}
.is-play .now-glow { animation: nowGlow 2.4s ease-in-out 2.6s 2; }
@keyframes nowGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    40% { box-shadow: 0 0 28px 3px rgba(37, 99, 235, .4); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.chip-sync { top: 12.5%; right: calc(-1 * var(--pw) * .34); }
.is-play .chip-sync { animation: chipPop .7s var(--ease) 2.5s forwards; }
@keyframes chipPop { to { opacity: 1; transform: none; } }

/* ---------------- MORNING HUDDLE ---------------- */
.vis-huddle { position: relative; width: min(1000px, 100%); height: 640px; margin: 40px auto -100px; }
.sunrise {
    position: absolute; left: -20%; right: -20%; bottom: -10%; height: 110%;
    background: radial-gradient(55% 60% at 50% 100%, rgba(247, 165, 74, .55) 0, rgba(240, 192, 74, .22) 40%, rgba(240, 192, 74, 0) 72%);
    opacity: 0; transform: translateY(18%);
}
.is-play .sunrise { animation: rise 2.4s var(--ease) .1s forwards; }
.sun {
    position: absolute; left: 50%; bottom: 120px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, #ffe2a0 0, #ffc46b 30%, #f7a54a 55%, rgba(247, 165, 74, 0) 74%);
    filter: blur(28px); opacity: 0; transform: translate(-50%, 55%) scale(.8);
}
.is-play .sun { animation: sunUp 2.6s var(--ease) .2s forwards, sunBreathe 7s ease-in-out 2.8s infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sunUp { to { opacity: .95; transform: translate(-50%, 0) scale(1); } }
@keyframes sunBreathe { 0%, 100% { filter: blur(28px) brightness(1); } 50% { filter: blur(34px) brightness(1.08); } }

.vis-huddle .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.paper {
    position: absolute; left: calc(50% + 150px); top: 70px; width: 300px; height: 520px;
    border-radius: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
    opacity: 0; transform: rotate(7deg) translateY(70px) translateX(-40px);
}
/* Rendered at 2x and scaled down so tiny type isn't clamped by minimum-font-size settings. */
.pdoc {
    width: 200%; transform: scale(.5); transform-origin: 0 0;
    padding: 32px 28px; color: #1d1d1f; font-family: var(--font);
    font-size: 10.8px; line-height: 1.45; text-align: left;
}
.pdoc h6 { font-size: 14.8px; font-weight: 700; letter-spacing: -.01em; padding-bottom: 8px; margin: 0 0 16px; border-bottom: 2px solid #1d1d1f; }
.pdoc p { margin: 0; }
.pdoc .pt { font-size: 12.8px; font-weight: 700; margin: 16px 0 4px; }
.pdoc .pi { padding-left: 18px; }
.is-play .paper { animation: paperIn 1.2s var(--ease) 1.4s forwards; }
@keyframes paperIn { to { opacity: 1; transform: rotate(6deg); } }

.huddle-card {
    position: absolute; left: calc(50% - 480px); top: 90px; width: 300px;
    padding: 18px 18px 16px; border-radius: 22px; color: #f5f5f7;
    background: rgba(30, 30, 33, .78);
    -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .06);
    opacity: 0; transform: translateY(30px) translateX(30px);
}
.is-play .huddle-card { animation: cardIn 1s var(--ease) .9s forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.hc-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #ffd27a; }
.hc-sub { margin-top: 4px; font-size: 12px; color: #a1a1a6; }
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hc-chip {
    font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 980px;
    background: rgba(255, 255, 255, .09); color: #d1d1d6;
}
.is-play .hc-chip { animation: chipHi 5.4s ease-in-out forwards; animation-delay: calc(1.6s + var(--i) * .9s); }
.is-play .hc-chip:first-child { animation-name: chipHiFirst; }
@keyframes chipHi {
    0%, 4% { background: rgba(255, 255, 255, .09); color: #d1d1d6; }
    8%, 18% { background: #f7a54a; color: #1d1d1f; }
    24%, 100% { background: rgba(255, 255, 255, .09); color: #d1d1d6; }
}
@keyframes chipHiFirst {
    0%, 4% { background: rgba(255, 255, 255, .09); color: #d1d1d6; }
    8%, 18% { background: #f7a54a; color: #1d1d1f; }
    24%, 80% { background: rgba(255, 255, 255, .09); color: #d1d1d6; }
    90%, 100% { background: #f7a54a; color: #1d1d1f; }
}
.hc-line { margin-top: 12px; display: flex; gap: 6px; }
.hc-line i {
    display: block; height: 9px; width: 34%; border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .22), rgba(255, 255, 255, .1));
    background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
    animation-delay: calc(var(--i) * .2s);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------- GRID + HALF TILES ---------------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile-half { min-height: 680px; }
.tile-half .tile-copy { padding-top: 60px; }
.tile-half h2 { font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -.004em; line-height: 1.1; }
.tile-half .sub { font-size: clamp(17px, 1.7vw, 22px); }
.tile-half .note { font-size: 15px; max-width: 440px; }
.tile-half .ctas { margin-top: 18px; }
.tile-half .btn { font-size: 15px; padding: 9px 18px; }

/* ---------------- DIRECT NOTE UPLOAD ---------------- */
.vis-upload { position: relative; display: flex; justify-content: center; margin: 34px auto -190px; }
.vis-upload .shot-b { position: absolute; inset: 0; opacity: 0; }
.is-play .vis-upload .shot-b { animation: fadeIn .7s var(--ease) 2.3s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.tap-glow {
    position: absolute; left: 17.4%; width: 65.4%; top: 58.8%; height: 4.9%; border-radius: 980px;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); pointer-events: none;
}
.is-play .tap-glow { animation: tapGlow 1.3s ease-in-out .7s 1; }
@keyframes tapGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
    50% { box-shadow: 0 0 26px 4px rgba(37, 99, 235, .55), inset 0 0 0 2px rgba(37, 99, 235, .6); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.tap-ripple {
    position: absolute; left: 50%; top: 61.2%; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 6px rgba(255, 255, 255, .25);
    transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none;
}
.is-play .tap-ripple { animation: ripple .8s var(--ease) 1.9s forwards; }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(5); opacity: 0; } }
.chip-sent { top: 9%; right: calc(-1 * var(--pw) * .42); color: #1d1d1f; }
.chip-sent .check { color: var(--green); }
.check-path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.is-play .chip-sent { animation: chipPop .7s var(--ease) 2.7s forwards; }
.is-play .check-path { animation: draw .5s var(--ease) 3.1s forwards; }

/* ---------------- CAREASSIST ---------------- */
.vis-assist { position: relative; width: min(560px, 100%); height: 470px; margin: 30px auto -60px; }
.vis-assist .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%) translateX(60px); }
.assist-card {
    position: absolute; left: max(14px, calc(50% - 300px)); top: 130px; width: 300px;
    padding: 16px; border-radius: 20px; background: #fff; color: #1d1d1f;
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05);
    opacity: 0; transform: translateY(24px) translateX(-16px);
}
.is-play .assist-card { animation: cardIn .9s var(--ease) .5s forwards; }
.ac-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ac-ai {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
}
.ac-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .06); }
.ac-ic { flex: none; color: var(--blue); width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; }
.ac-ic.heart { color: #e0457b; }
.ac-text { position: relative; flex: 1; min-height: 34px; }
.ac-skel, .ac-skel::after {
    position: absolute; left: 0; height: 10px; border-radius: 5px;
    background: linear-gradient(90deg, #ececf0, #f7f7fa, #ececf0); background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
}
.ac-skel { top: 5px; width: 100%; }
.ac-skel::after { content: ""; top: 18px; width: 62%; }
.ac-real { display: block; font-size: 13px; line-height: 1.42; letter-spacing: -.01em; color: #3a3a3c; opacity: 0; transform: translateY(4px); }
.ac-open .ac-real { font-weight: 600; color: #1d1d1f; }
.is-play .ac-skel { animation: shimmer 1.3s linear infinite, fadeOut .35s var(--ease) forwards; animation-delay: 0s, calc(1.3s + var(--i) * .75s); }
.is-play .ac-real { animation: realIn .55s var(--ease) forwards; animation-delay: calc(1.45s + var(--i) * .75s); }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes realIn { to { opacity: 1; transform: none; } }
.is-play .ac-open .heart { animation: heartPulse 1.2s ease-in-out 3.4s 3; }
@keyframes heartPulse { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(1); } }

/* ---------------- APPLE WATCH ---------------- */
.vis-watch { position: relative; width: min(400px, 76%); margin: 24px auto -36px; }
.watch-glow {
    position: absolute; left: 50%; top: 58%; width: 140%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(233, 74, 74, .32) 0, rgba(233, 74, 74, .08) 35%, transparent 62%);
    opacity: 0;
}
.is-play .watch-glow { animation: fadeIn 1.4s var(--ease) 3.9s forwards; }
.watch-stack { position: relative; aspect-ratio: 640 / 717; }
.w { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.w1 { opacity: 1; }
.is-play .w1 { animation: fadeOut .5s var(--ease) 1.9s forwards; }
.is-play .w2 { animation: fadeIn .5s var(--ease) 1.8s forwards, fadeOut .5s var(--ease) 3.7s forwards; }
.is-play .w3 { animation: fadeIn .6s var(--ease) 3.6s forwards; }
.tap-ripple.wr { left: 49%; top: 58.5%; border-color: rgba(255, 255, 255, .9); }
.is-play .tap-ripple.wr { animation: ripple .8s var(--ease) 1.3s forwards; }
.rec-ring {
    position: absolute; left: 47.7%; top: 60%; width: 31%; aspect-ratio: 1; border-radius: 50%;
    border: 3px solid rgba(233, 74, 74, .75); transform: translate(-50%, -50%) scale(1); opacity: 0; pointer-events: none;
}
.is-play .rec-ring { animation: recPulse 1.6s ease-out 4.2s infinite; }
@keyframes recPulse { 0% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.75); } }

/* ---------------- CHROME EXTENSION ---------------- */
.vis-chrome { display: flex; justify-content: center; margin: 30px auto -40px; }
.browser {
    width: min(320px, 88%); border-radius: 14px; overflow: hidden; background: #fff;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
}
.bar { height: 40px; background: #f1f1f4; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.tab { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: #1d1d1f; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7c7cc; }
.is-play .rec-dot { animation: blink 1.1s ease-in-out 3.1s infinite; }
@keyframes blink { 0%, 100% { background: var(--red); box-shadow: 0 0 0 0 rgba(233, 74, 74, .5); } 50% { background: rgba(233, 74, 74, .35); box-shadow: 0 0 0 4px rgba(233, 74, 74, 0); } }
.url { margin-left: auto; font-size: 11px; color: #86868b; }
.view { position: relative; height: 380px; overflow: hidden; }
.pane { position: relative; }
.view img { width: 100%; height: auto; }
.is-play .pane { animation: panelScroll 1.1s var(--ease) 1s forwards; }
@keyframes panelScroll { to { transform: translateY(-37%); } }
/* Cursor is positioned against the panel image so the landing spot is width-independent
   ("Real-time Clinical Notes" sits at ~86% of the screenshot height). */
.cursor {
    position: absolute; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(37, 99, 235, .3); border: 2px solid var(--blue); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    left: 80%; top: 50%; opacity: 0; transform: translate(-50%, -50%);
}
.is-play .cursor { animation: cursorMove 1.3s var(--ease) 1.5s forwards, cursorClick .6s var(--ease) 3s forwards; }
@keyframes cursorMove { 0% { left: 80%; top: 50%; opacity: 0; } 15% { opacity: 1; } 100% { left: 50%; top: 85.9%; opacity: 1; } }
@keyframes cursorClick { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .6); transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -50%) scale(.8); } 100% { box-shadow: 0 0 0 26px rgba(37, 99, 235, 0); transform: translate(-50%, -50%) scale(1); } }

/* ---------------- DETAIL STRIPS ---------------- */
.detail { background: #fff; padding: 110px 22px 120px; text-align: center; }
.detail-alt { background: #f5f5f7; }
.detail-inner { max-width: 980px; margin: 0 auto; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--blue); letter-spacing: -.01em; }
.detail h3 { margin-top: 8px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.005em; text-wrap: balance; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: left; }
.card { background: #f5f5f7; border-radius: 22px; padding: 26px 24px 28px; }
.detail-alt .card { background: #fff; }
.card h4 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: #6e6e73; letter-spacing: -.01em; }
.fine { margin-top: 30px; font-size: 14px; color: #6e6e73; }
.fine a { color: var(--blue); }
.fine a:hover { text-decoration: underline; }

/* ---------------- CLOSING CTA (bookends the sky hero) ---------------- */
.closer {
    position: relative; overflow: hidden; text-align: center; color: #f5f5f7;
    padding: 120px 22px 130px;
    background: linear-gradient(180deg, #1b2f5c 0%, #2b4a86 45%, #456fae 100%);
}
.closer-glow {
    position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(255, 255, 255, .22) 0%, rgba(160, 200, 255, .10) 30%, transparent 62%);
}
.closer-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.closer-title {
    font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; line-height: 1.05; letter-spacing: -.015em;
    color: #fff; text-wrap: balance; text-shadow: 0 1px 2px rgba(20, 40, 90, .35), 0 8px 32px rgba(20, 40, 90, .4);
}
.closer-sub {
    margin: 18px auto 0; max-width: 560px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.4;
    letter-spacing: -.012em; color: rgba(255, 255, 255, .86); text-wrap: balance;
}
.closer-ctas { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.closer .btn { font-size: 18px; padding: 13px 26px; }
.closer-foot { margin-top: 28px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .72); letter-spacing: -.01em; }

/* ---------------- FOOTER ---------------- */
.gfoot { background: #f5f5f7; color: #6e6e73; font-size: 12px; line-height: 1.4; padding: 22px 22px 40px; border-top: 1px solid rgba(0, 0, 0, .08); }
.gfoot-inner { max-width: 980px; margin: 0 auto; }
.gfoot-note { padding-bottom: 16px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.gfoot-note a { color: var(--blue); }
.gfoot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.gfoot-cols h5 { font-size: 12px; font-weight: 600; color: #1d1d1f; margin-bottom: 10px; }
.gfoot-cols a { display: block; margin-bottom: 8px; color: #424245; }
.gfoot-cols a:hover { text-decoration: underline; }
.gfoot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; color: #86868b; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1068px) {
    .tile-full { min-height: 860px; }
    .phone-lg { --pw: 290px; }
    .vis-huddle { height: 600px; }
    .huddle-card { left: 12px; width: 260px; }
    .paper { left: calc(50% + 120px); width: 260px; height: 460px; }
    .tile-half { min-height: 640px; }
    .phone-md { --pw: 236px; }
    .assist-card { left: max(14px, calc(50% - 280px)); width: 250px; }
    .vis-assist .phone { transform: translateX(-50%) translateX(80px); }
}
@media (max-width: 734px) {
    .tile-full { min-height: 0; padding-bottom: 0; }
    .tile-copy { padding-top: 56px; }
    .ctas { gap: 10px; }
    .btn { font-size: 15px; padding: 9px 18px; }
    .phone-lg { --pw: 250px; }
    .vis-sync { margin: 30px auto -120px; zoom: .62; }
    .vis-sync .phone-lg { --pw: 400px; }
    .chip-sync { right: calc(-1 * var(--pw) * .12); top: 9%; }
    .vis-huddle { height: 560px; margin-bottom: -80px; }
    .huddle-card { display: none; }
    .paper { left: calc(50% + 70px); width: 180px; height: 330px; top: 60px; }
    .sun { width: 340px; height: 340px; bottom: 160px; }
    .tile-grid { grid-template-columns: 1fr; }
    .tile-half { min-height: 0; padding-bottom: 0; }
    .tile-half h2 { font-size: 32px; }
    .tile-half .sub { font-size: 19px; }
    .phone-md { --pw: 230px; }
    .vis-upload { margin-bottom: -150px; }
    .chip-sent { right: calc(-1 * var(--pw) * .18); }
    .vis-assist { height: 440px; margin-bottom: -40px; }
    .vis-assist .phone { transform: translateX(-50%) translateX(50px); }
    .assist-card { left: 8px; width: 240px; top: 120px; padding: 14px; }
    .ac-real { font-size: 12px; }
    .vis-watch { width: min(340px, 84%); }
    .browser { width: min(300px, 90%); }
    .view { height: 360px; }
    .cards { grid-template-columns: 1fr; }
    .detail { padding: 80px 22px 90px; }
    .closer { padding: 90px 22px 100px; }
    .gfoot-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------------- REDUCED MOTION ---------------- */
@media (prefers-reduced-motion: reduce) {
    .r { opacity: 1 !important; transform: none !important; transition: none !important; }
    .tile h2 { color: var(--fg); }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
    }
    .hero-rays, .hero-glow, .mark-halo, .inline-obj, .marquee { animation: none !important; }
    .replay { display: none; }
}
