/*
 * ElmamSoft Premium Experience — Stage 1 (2026-11-07)
 * Scoped to six opt-in pages via body.premium-stage1.
 * Zero changes to existing API, form, navigation, locale or Cloudflare contracts.
 * Original brand assets and supplied application screen images are preserved.
 */
body.premium-stage1 {
  --premium-ink:#0b2139;
  --premium-subtle:#52677a;
  --premium-blue:#0b5ec9;
  --premium-cyan:#0db7ca;
  --premium-gold:#e6b02f;
  --premium-card:#fff;
  --premium-ice:#f5f8fc;
  --premium-ease:cubic-bezier(.22,1,.36,1);
  --premium-radius:clamp(22px,2.5vw,36px);
  background:#fff;
  color:var(--premium-subtle);
}
body.premium-stage1 .container{width:min(calc(100% - clamp(36px,5vw,88px)),1280px)}
body.premium-stage1 .site-header {
  border-bottom:1px solid rgba(205,216,230,.65);
  background:rgba(255,255,255,.88);
  box-shadow:none;
  -webkit-backdrop-filter:blur(24px) saturate(1.25);
  backdrop-filter:blur(24px) saturate(1.25);
}
body.premium-stage1 .site-header.is-scrolled {box-shadow:0 8px 25px rgba(18,42,74,.055)}
body.premium-stage1 .btn{border-radius:999px;min-height:49px;font-size:.91rem;font-weight:700;padding-inline:23px;letter-spacing:-.008em;transition:background .24s ease,color .24s ease,transform .24s var(--premium-ease),box-shadow .24s ease}
body.premium-stage1 .btn-small{min-height:39px;padding-inline:17px;font-size:.78rem}
body.premium-stage1 .btn-primary{background:#1264c8;box-shadow:0 10px 28px rgba(18,100,200,.15)}
body.premium-stage1 .btn-primary:hover{background:#084fa7;box-shadow:0 15px 32px rgba(18,100,200,.21)}
body.premium-stage1 .btn-secondary{border-color:#ccdae8;background:#fff;color:#163755}
body.premium-stage1 .btn-ghost{color:#175ca6}
body.premium-stage1 .nav-shell{gap:clamp(10px,1.6vw,26px)}
body.premium-stage1 .footer{background:#071b30}
body.premium-stage1 .footer-main{padding-block:70px 52px}
body.premium-stage1 .section{padding-block:clamp(88px,8vw,128px)}
body.premium-stage1 .section-head h2{font-size:clamp(2.05rem,4.3vw,3.8rem);letter-spacing:-.05em;line-height:1.18}
body.premium-stage1 .soft-bg{background:#f6f9fc}
body.premium-stage1 .feature-card,body.premium-stage1 .work-card,body.premium-stage1 .screenshot-card{border-color:#e1e9f0;box-shadow:0 10px 30px rgba(15,40,72,.035);border-radius:22px}
body.premium-stage1 .section-cta .cta-panel{border-radius:34px}

/* Hero identity: all gradients are below—not baked into logos/screenshots. */
.premium-stage1 .premium-home-hero,
.premium-stage1 .premium-product-hero {position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,#fbfdff 0%,#f5f9fe 72%,#fff 100%)}
.premium-stage1 .premium-home-hero::before,
.premium-stage1 .premium-home-hero::after {content:none}
.premium-ambient {position:absolute;z-index:-1;pointer-events:none;inset:-12% -25% auto auto;width:min(85vw,1080px);height:780px;opacity:.42;background:radial-gradient(ellipse at center,rgba(78,157,224,.18),rgba(72,188,206,.07) 38%,transparent 65%);filter:blur(35px)}
.premium-ambient-home{inset:-18% -20% auto auto;width:90vw;height:900px}
.premium-stage1 .premium-kicker{display:inline-flex;align-items:center;gap:10px;color:#2364a2;font-size:clamp(.76rem,1.05vw,.88rem);font-weight:700;letter-spacing:.05em;line-height:1.5}
.premium-stage1 .premium-kicker::before{content:"";flex:none;width:24px;height:2px;background:linear-gradient(90deg,#1374e2,#00b8bb);border-radius:9px}
.premium-stage1 .premium-home-hero{padding:0 0 clamp(42px,6vw,96px)}
.premium-home-layout{display:grid;gap:clamp(16px,2.2vw,34px);padding-block:clamp(64px,7.3vw,112px) 0}
.premium-home-copy{text-align:center;max-width:960px;margin-inline:auto}
.premium-home-copy .premium-kicker{justify-content:center}
.premium-home-copy h1{max-width:1000px;margin:16px auto 22px;font-size:clamp(2.75rem,5.7vw,5.7rem);font-weight:750;line-height:1.14;letter-spacing:-.06em;color:var(--premium-ink);text-wrap:balance}
.premium-stage1 .premium-lead{color:var(--premium-subtle);font-size:clamp(1rem,1.55vw,1.27rem);line-height:1.85;letter-spacing:-.01em}
.premium-home-copy .premium-lead{max-width:780px;margin:0 auto 28px}
.premium-actions{justify-content:center;gap:12px;align-items:center}
.premium-micro-note{margin:22px 0 0;font-size:.75rem;letter-spacing:.03em;color:#748599}
.premium-home-stage{position:relative;width:min(100%,1180px);margin-inline:auto}
.premium-stage1 .premium-motion{position:relative;overflow:hidden;isolation:isolate}
.premium-motion > img{display:block;width:100%;height:auto;object-fit:contain}
.premium-motion-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .6s ease;pointer-events:none}
.premium-motion.has-video .premium-motion-video{opacity:1}
.premium-home-stage .premium-motion{border-radius:var(--premium-radius);background:#f2f9fd;box-shadow:0 34px 90px rgba(15,62,108,.09),0 0 0 1px rgba(182,206,227,.36)}
.premium-home-stage .premium-motion img{aspect-ratio:1400/880}
.premium-stage-caption{display:flex;align-items:center;justify-content:center;gap:10px;padding-top:18px;font-size:.78rem;color:#77889c}
.premium-caption-dot{width:7px;height:7px;border-radius:50%;background:#15afaf;box-shadow:0 0 0 4px rgba(21,175,175,.08)}

.premium-feature-intro{padding-block:clamp(70px,7vw,112px);background:#fff}
.premium-centered-heading{text-align:center;margin-inline:auto;max-width:840px;margin-bottom:clamp(30px,4vw,58px)}
.premium-centered-heading .premium-kicker{justify-content:center}
.premium-centered-heading h2{margin:14px 0 14px;font-size:clamp(2.3rem,4.5vw,4.5rem);letter-spacing:-.052em;line-height:1.17;color:var(--premium-ink)}
.premium-centered-heading p{margin:0;color:#718094;font-size:clamp(.98rem,1.35vw,1.12rem)}
.premium-product-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.premium-mini-product{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:290px;padding:26px;overflow:hidden;border-radius:30px;border:1px solid #e6edf4;background:linear-gradient(160deg,#f5f9ff,#fbfdff);transition:transform .35s var(--premium-ease),box-shadow .35s ease}
.premium-mini-product:hover{transform:translateY(-5px);box-shadow:0 26px 50px rgba(19,71,115,.09)}
.premium-mini-clinic{background:linear-gradient(160deg,#f3fbfc,#f9fdff)}
.premium-mini-product .premium-product-mark{width:min(90%,450px);max-height:126px;object-fit:contain}
.premium-inline-link{font-size:.86rem;color:#1c5b9f;font-weight:700}
.premium-inline-link span{margin-inline-start:6px;font-size:1.12rem}

/* Product pages: separate product voice from corporate color without altering logos. */
.premium-stage1 .premium-product-hero{padding-block:clamp(65px,7vw,104px) clamp(35px,3.7vw,58px)}
.premium-stage1 .premium-product-layout{display:grid;grid-template-columns:minmax(0,.77fr) minmax(0,1.23fr);align-items:center;gap:clamp(28px,4vw,76px)}
.premium-product-copy{min-width:0}
.premium-product-copy .premium-kicker{margin-bottom:12px}
.premium-product-copy h1{font-size:clamp(2.4rem,4.2vw,4.4rem);font-weight:760;line-height:1.18;letter-spacing:-.05em;margin:10px 0 20px;color:var(--premium-ink);text-wrap:balance}
.premium-product-copy .premium-lead{margin-bottom:27px;max-width:580px}
.premium-product-copy .hero-actions{justify-content:flex-start;gap:10px}
.premium-product-copy .hero-actions .btn{min-height:45px;padding:12px 18px;font-size:.83rem}
.premium-identity{margin-bottom:24px;max-width:245px}
.premium-product-mark{display:block;width:100%;height:auto;object-fit:contain}
.premium-product-stage{min-width:0;position:relative}
.premium-flow-hero .premium-product-stage .premium-motion{border-radius:30px;background:#edf8fb;box-shadow:0 24px 75px rgba(18,70,120,.08)}
.premium-product-stage .premium-motion img{aspect-ratio:1400/880}
.premium-bottom-caption{display:flex;justify-content:space-between;gap:16px;padding-top:clamp(25px,3.2vw,46px);font-size:.72rem;letter-spacing:.035em;color:#768a9e}
.premium-stage1 .premium-clinic-hero{background:linear-gradient(180deg,#f8fcff 0%,#eff8ff 72%,#fff 100%)}
.premium-stage1 .premium-clinic-hero .premium-ambient{background:radial-gradient(ellipse at center,rgba(23,197,180,.15),rgba(39,125,233,.09) 44%,transparent 66%)}
.premium-clinic-stage{position:relative;padding:36px 0 24px}
.premium-desktop-frame{position:relative;overflow:hidden;max-width:870px;margin-inline:auto;border:9px solid #1a2e41;border-radius:23px;background:#fff;box-shadow:0 35px 65px rgba(8,41,73,.17),0 8px 16px rgba(8,41,73,.10)}
.premium-desktop-frame::after{position:absolute;inset-inline:30px;bottom:0;height:2px;background:rgba(255,255,255,.7);content:""}
.premium-desktop-toolbar{height:20px;display:flex;gap:5px;align-items:center;padding-inline:12px;background:#172b41}
.premium-desktop-toolbar i{width:5px;height:5px;border-radius:50%;background:#8191a1}
.premium-clinic-dashboard{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:contain}
.premium-clinic-floating{position:absolute;bottom:0;inset-inline-end:-2%;display:grid;place-items:center;width:34%;min-width:150px;min-height:65px;padding:14px 20px;border:1px solid #e3ebf2;border-radius:18px;background:rgba(255,255,255,.97);box-shadow:0 12px 38px rgba(10,64,115,.11)}

/* Three distinct product screens inside device compositions from supplied source photos. */
.premium-flow-story{padding-block:clamp(80px,8vw,134px);background:linear-gradient(180deg,#071d35 0%,#091a2c 100%);color:#fff}
.premium-flow-story .premium-kicker{color:#7ddfe0}
.premium-flow-story .premium-kicker::before{background:linear-gradient(90deg,#4a9ff4,#16e0bd)}
.premium-flow-story .premium-centered-heading h2{color:#fff}
.premium-flow-story .premium-centered-heading p{color:#a8bacb}
.premium-story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.premium-story-card{min-width:0;overflow:hidden;border:1px solid rgba(202,227,255,.16);border-radius:28px;background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.035));padding:clamp(12px,2vw,24px);box-shadow:0 24px 50px rgba(0,0,0,.11)}
.premium-story-card .premium-motion{border-radius:16px}
.premium-story-card .premium-motion img{aspect-ratio:1080/900}
.premium-story-meta{display:flex;align-items:center;gap:12px;padding-block:20px 3px}
.premium-story-meta h3{font-size:clamp(1rem,1.4vw,1.35rem);margin:0;color:#fff;line-height:1.4;font-weight:600}
.premium-story-number{font:700 .8rem/1.5 system-ui,sans-serif;color:#5bcaca}
.premium-clinic-story{background:linear-gradient(130deg,#09233b,#0c3852);padding-block:clamp(75px,8vw,118px);color:#d4e5f5}
.premium-clinic-story-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(28px,5vw,86px);align-items:center}
.premium-clinic-story h2{font-size:clamp(2.3rem,4.1vw,4.1rem);line-height:1.15;letter-spacing:-.045em;color:#fff;margin:20px 0}
.premium-clinic-story p{font-size:1.05rem;color:#bcd0e0;max-width:500px}
.premium-clinic-story .premium-kicker{color:#71d7d5}
.premium-clinic-story-figure{margin:0;overflow:hidden;border:7px solid #1b374f;border-radius:20px;background:#fff;box-shadow:0 35px 70px rgba(0,0,0,.23)}
.premium-clinic-story-figure img{width:100%;height:auto}

/* Quiet, accessible motion: image is always visible without JS. */
@media (prefers-reduced-motion:no-preference){
 .premium-home-copy,.premium-product-copy{animation:premium-enter .78s var(--premium-ease) both}
 .premium-home-stage,.premium-product-stage{animation:premium-enter .98s .12s var(--premium-ease) both}
 @keyframes premium-enter{from{opacity:.35;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
}
@media (max-width:1080px){
 .premium-stage1 .premium-product-layout{grid-template-columns:1fr;gap:20px}
 .premium-product-copy{max-width:820px;margin-inline:auto;text-align:center}
 .premium-product-copy .premium-actions{justify-content:center}
 .premium-product-copy .premium-identity{margin-inline:auto}
 .premium-product-stage{max-width:900px;width:100%;margin-inline:auto}
 .premium-stage1 .premium-product-copy h1{font-size:clamp(2.5rem,5.4vw,4.5rem)}
}
@media (max-width:920px){
 .premium-stage1 .nav-shell{gap:12px}
 .premium-story-grid{grid-template-columns:1fr;max-width:600px;margin-inline:auto}
 .premium-story-card{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:12px}
 .premium-story-meta{flex-direction:column;align-items:flex-start;padding:0}
 .premium-mini-product{min-height:240px}
 .premium-stage1 .premium-clinic-story-grid{grid-template-columns:1fr}
 .premium-clinic-story-grid>div:first-child{text-align:center;max-width:650px;margin-inline:auto}
 .premium-clinic-story-grid>div:first-child p{margin-inline:auto}
}
@media (max-width:680px){
 .premium-stage1 .premium-home-hero{padding-bottom:50px}
 .premium-home-layout{padding-top:56px}
 .premium-home-copy h1{font-size:clamp(2.3rem,10.5vw,3.2rem);letter-spacing:-.045em;margin-block:16px}
 .premium-stage1 .premium-lead{font-size:1rem;line-height:1.78}
 .premium-actions{gap:8px}
 .premium-stage1 .premium-actions .btn{min-height:43px;padding:10px 15px;font-size:.78rem}
 .premium-micro-note{font-size:.67rem}
 .premium-home-stage .premium-motion{border-radius:18px}
 .premium-product-mini-grid{grid-template-columns:1fr;gap:14px}
 .premium-mini-product{min-height:205px;padding:23px;gap:12px;border-radius:22px}
 .premium-mini-product .premium-product-mark{max-height:104px}
 .premium-stage1 .premium-product-hero{padding-top:50px;padding-bottom:29px}
 .premium-product-copy h1{font-size:clamp(2.2rem,8.5vw,3.3rem)!important}
 .premium-product-copy .premium-kicker{font-size:.73rem}
 .premium-identity{max-width:200px;margin-bottom:16px}
 .premium-flow-hero .premium-product-stage .premium-motion{border-radius:17px}
 .premium-stage1 .premium-product-hero .premium-bottom-caption{font-size:.65rem}
 .premium-story-grid{display:grid;grid-template-columns:1fr}
 .premium-story-card{display:block;padding:14px;border-radius:22px}
 .premium-story-card .premium-motion{max-width:470px;margin-inline:auto}
 .premium-story-meta{flex-direction:row;padding:18px 10px 4px}
 .premium-clinic-floating{min-width:112px;padding:10px;border-radius:13px}
 .premium-desktop-frame{border-width:5px;border-radius:14px}
 .premium-desktop-toolbar{height:12px}
 .premium-centered-heading h2{font-size:clamp(2.1rem,9vw,3.1rem)}
}
@media (max-width:400px){
 .premium-stage1 .container{width:calc(100% - 28px)}
 .premium-actions .btn{flex:1 1 auto}
 .premium-home-copy h1{font-size:2.24rem}
}
@media (prefers-reduced-motion:reduce){
 .premium-motion-video{display:none!important}
 .premium-home-copy,.premium-home-stage,.premium-product-copy,.premium-product-stage{animation:none!important;transition:none!important}
 .premium-mini-product{transition:none}
}
@media print{
 .premium-motion-video{display:none!important}
 .premium-stage1 .premium-home-hero,.premium-stage1 .premium-product-hero{background:#fff!important}
}
.premium-human-note{font-size:.78rem;color:#7e8fa1;margin:4px 0 0;line-height:1.5}
