/* Blue Skies EHR, premium homepage (preview, 11/29).
   A live sky (WebGL, assets/js/home.js) sits behind the whole page. The words sit on the deep blue
   upper sky in white, or on paper-glass panels in ink. Without WebGL, or with reduced motion,
   the same sky is a still gradient (.sky-css) and every section is fully readable. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face { font-family: "Serif Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 88%; ascent-override: 100%; }

.hp { --serif: "Instrument Serif", "Serif Fallback", Georgia, serif; --deep: #0E2E66; background: #1C58B8; }
.hp .page { background: none; overflow: clip; }
.hp .amb { display: none; }

/* ---------- The sky ---------- */
.sky-gl, .sky-css { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.sky-css {
  background:
    radial-gradient(40% 30% at 78% 22%, rgba(255, 244, 214, .55), rgba(255, 244, 214, 0) 70%),
    linear-gradient(180deg, #164FAE 0%, #2E6FD0 34%, #74AEEE 58%, #D9ECFF 72%, #FFFFFF 80%, #DCEBFA 100%);
}
.sky-gl { opacity: 0; transition: opacity 1.4s ease; z-index: -1; }
.sky-gl.ready { opacity: 1; }
.hp main, .hp .foot2 { position: relative; z-index: 2; }

/* ---------- Shared reveal (only with JS) ---------- */
.js .hp .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .hp .rv.in { opacity: 1; transform: none; }
.js .hp .rv.d1 { transition-delay: .08s; } .js .hp .rv.d2 { transition-delay: .16s; } .js .hp .rv.d3 { transition-delay: .24s; } .js .hp .rv.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .hp .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.ph { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; text-align: center; padding: 11vh 24px 120px; }
.ph-in { max-width: 1100px; position: relative; }
.ph-in::before { /* a soft shade so white words always read, whatever the clouds do */
  content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(9, 32, 78, .28), rgba(9, 32, 78, 0));
}
.ph-eyebrow { font-size: 15px; letter-spacing: .01em; color: rgba(255, 255, 255, .88); }
.ph-h {
  margin: 18px 0 0; font-family: var(--serif); font-weight: 400; color: #FFFFFF;
  font-size: clamp(60px, 10vw, 150px); line-height: .9; letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(9, 32, 78, .25);
}
.ph-sub { margin: 30px auto 0; max-width: 600px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; font-weight: 500; color: #FFFFFF; text-shadow: 0 1px 14px rgba(9, 32, 78, .35); }
.ph-btns { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pb-solid, .pb-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ease), background-color .25s ease, box-shadow .25s ease;
}
.pb-solid { background: #FFFFFF; color: var(--ink); box-shadow: 0 10px 40px -10px rgba(9, 32, 78, .55); }
.pb-solid:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(9, 32, 78, .6); color: var(--ink); }
.pb-ghost { color: #FFFFFF; border: 1px solid rgba(255, 255, 255, .5); background: rgba(9, 32, 78, .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pb-ghost:hover { background: rgba(9, 32, 78, .55); transform: translateY(-2px); color: #FFFFFF; }
.pb-solid:active, .pb-ghost:active { transform: scale(.97); transition-duration: .08s; }
.hp .pb-solid:focus-visible, .hp .pb-ghost:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 4px; }
.ph-price { display: inline-block; margin-top: 22px; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: #FFFFFF; background: rgba(9, 32, 78, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ph-cue { position: absolute; left: 50%; bottom: 110px; width: 28px; height: 56px; margin-left: -14px; }
.cue-line { position: absolute; left: 13px; top: 0; width: 2px; height: 100%; border-radius: 2px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .9)); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .cue-line { animation: cue 2.4s var(--ease) infinite; }
  @keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
}

/* ---------- Statement: the words light up as you scroll ---------- */
.stmt { position: relative; height: 125vh; }
.stmt-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 32px 8vh; }
.stmt-t { position: relative; }
.stmt-t::before { content: ""; position: absolute; inset: -14% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 32, 78, .3), rgba(9, 32, 78, 0)); }
.stmt-t {
  max-width: 1080px; font-family: var(--serif); color: #FFFFFF; text-align: center;
  font-size: clamp(36px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(9, 32, 78, .3);
}
.stmt-t .wd { opacity: .3; transition: opacity .35s linear; }
.stmt-t .wd.lit { opacity: 1; }

/* ---------- Showcase: four real screens, tabs that play by themselves (no scroll tricks) ---------- */
.sh-sec { position: relative; padding: 0 32px 12vh; margin-top: -6vh; }
.sh {
  max-width: 1240px; margin: 0 auto; padding: 56px; border-radius: 40px;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 50px 120px -50px rgba(9, 32, 78, .55);
}
.sh-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.sh-h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: .95; letter-spacing: -.02em; }
.sh-lead { font-size: 16px; color: var(--mut); }
.sh-body { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.sh-tabs { display: grid; gap: 6px; }
.sh-tab {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer; border: 0; background: none;
  padding: 18px 20px 20px; border-radius: 20px; transition: background-color .3s ease;
}
.sh-tab:hover { background: rgba(11, 30, 63, .04); }
.sh-tab.on { background: #FFFFFF; box-shadow: 0 12px 34px -18px rgba(9, 32, 78, .35); }
.sh-t { display: block; font-family: var(--serif); font-size: 27px; line-height: 1.05; color: var(--mut); transition: color .3s ease; }
.sh-tab.on .sh-t, .sh-tab:hover .sh-t { color: var(--ink); }
.sh-d { display: grid; grid-template-rows: 0fr; font-size: 15px; line-height: 1.55; color: var(--ink-2); overflow: hidden; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
.sh-d > span { min-height: 0; }
.sh-tab.on .sh-d { grid-template-rows: 1fr; margin-top: 8px; }
.sh-bar { position: absolute; left: 20px; right: 20px; bottom: 9px; height: 2px; border-radius: 2px; background: rgba(11, 30, 63, .08); opacity: 0; transition: opacity .3s ease; overflow: hidden; }
.sh-tab.on .sh-bar { opacity: 1; }
.sh-bar span { display: block; height: 100%; background: #2F7FE0; transform-origin: left; transform: scaleX(0); }
.sh-tab.on.run .sh-bar span { animation: shbar var(--sh-ms, 6s) linear forwards; }
.sh.paused .sh-tab.on.run .sh-bar span { animation-play-state: paused; }
@keyframes shbar { to { transform: scaleX(1); } }
.sh-tab:focus-visible { outline: 2px solid #2F7FE0; outline-offset: 2px; }
.sh-win { border-radius: 24px; overflow: hidden; background: #FFFFFF; box-shadow: 0 50px 100px -40px rgba(9, 32, 78, .55), 0 0 0 1px rgba(11, 30, 63, .06); }
.fw-chrome { display: flex; gap: 7px; padding: 14px 18px; background: #F3F7FC; border-bottom: 1px solid #E3ECF6; }
.fw-chrome span { width: 11px; height: 11px; border-radius: 50%; background: #D5E1EF; }
.sh-view { position: relative; aspect-ratio: 1402 / 1000; background: #F3F7FC; }
.sh-shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sh-shot.on { opacity: 1; transform: none; }
.sh-shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(9, 32, 78, .25); }
@media (prefers-reduced-motion: reduce) { .sh-shot, .sh-d, .sh-tab { transition: none; } }

html:not(.js) .stmt { height: auto; }
html:not(.js) .stmt-pin { position: relative; height: auto; padding-top: 12vh; padding-bottom: 12vh; }

/* ---------- Panels ---------- */
.pn-sec, .pr-sec, .tr-sec { position: relative; padding: 0 32px; }
.pn {
  max-width: 1240px; margin: 0 auto; padding: 64px; border-radius: 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 50px 120px -50px rgba(9, 32, 78, .55);
}
.pn-h { text-wrap: balance; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: .98; letter-spacing: -.02em; }
.pn-b { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.pn-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.pn-list li { font-size: 15px; line-height: 1.6; color: var(--ink-2); padding-top: 16px; border-top: 1px solid rgba(11, 30, 63, .1); }
.pn-list span { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.pn-shot img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 30px 70px -30px rgba(9, 32, 78, .45); }

.pr-sec { padding-top: 10vh; }
.pr, .tr {
  max-width: 1240px; margin: 0 auto; background: rgba(8, 26, 64, .62); color: #FFFFFF;
  backdrop-filter: blur(26px) saturate(1.3); -webkit-backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 50px 120px -50px rgba(9, 32, 78, .7);
}
.pr { text-align: center; padding: 72px 56px 56px; border-radius: 40px 40px 0 0; border-bottom: 0; }
.pr-h { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 96px); line-height: .95; letter-spacing: -.025em; }
.pr-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; text-align: left; }
.pr-c { padding: 34px 32px; border-radius: 28px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.pr-main { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); }
.pr-n { font-size: 14px; font-weight: 600; color: #A9C8F0; }
.pr-main .pr-n { color: #1E5FB0; }
.pr-big { margin-top: 10px; font-family: var(--serif); font-size: 88px; line-height: .9; letter-spacing: -.03em; }
.pr-u { margin-top: 6px; font-size: 15px; color: #C9DAF0; }
.pr-d { margin-top: 18px; font-size: 15px; line-height: 1.6; color: #D6E3F5; }
.pr-main .pr-u, .pr-main .pr-d { color: var(--ink-2); }
.pr-list { margin-top: 12px; font-size: 16px; }
.pr-link { margin-top: 30px; }
.pr-link a { color: #FFFFFF; font-weight: 600; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .5); }

.tr-sec { padding-top: 0; }
.tr { list-style: none; padding: 34px 56px 46px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; border-radius: 0 0 40px 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.tr li { font-family: var(--serif); font-size: 24px; line-height: 1.15; color: #FFFFFF; }

/* ---------- Close ---------- */
.cl { min-height: 70vh; min-height: 70svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 160px; }
.cl-in { position: relative; }
.cl-in::before { content: ""; position: absolute; inset: -20% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 24, 60, .3), rgba(40, 24, 60, 0)); }
.cl-h { margin: 0; font-family: var(--serif); font-weight: 400; color: #FFFFFF; font-size: clamp(56px, 9vw, 140px); line-height: .92; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(40, 24, 60, .4), 0 1px 3px rgba(40, 24, 60, .25); }
.cl-sub { margin-top: 22px; font-size: 20px; font-weight: 500; color: #FFFFFF; text-shadow: 0 1px 14px rgba(40, 24, 60, .4); }

/* The footer sits on a solid ground, under the sky. */
.hp .foot2 { background: #F6F9FD; }

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .sh { padding: 32px 20px 24px; border-radius: 30px; }
  .sh-body { grid-template-columns: 1fr; gap: 20px; }
  .sh-win { order: -1; }
  .sh-t { font-size: 23px; }
  .sh-tab { padding: 14px 16px 18px; }
  .fw-chrome { padding: 10px 14px; }
  .sh-shot { padding: 12px; }
  .pn { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr { padding: 48px 22px 36px; }
  .tr { grid-template-columns: 1fr 1fr; padding: 28px 22px 36px; }
  .tr li { font-size: 22px; }
}
@media (max-width: 600px) {
  .ph { padding-top: 13vh; }
  .ph-cue { display: none; }
  .stmt { height: 130vh; }
  .pn-sec, .pr-sec, .tr-sec, .sh-sec { padding-left: 16px; padding-right: 16px; }
  .pr-big { font-size: 72px; }
  .tr { grid-template-columns: 1fr; }
  .pr, .tr { border-radius: 0; }
  .pr { border-radius: 30px 30px 0 0; }
  .tr { border-radius: 0 0 30px 30px; }
}
