/* ==========================================================================
   Hospice Docs – shared stylesheet (all pages)
   Sizing: everything is in rem. From 1024px up the root font-size follows
   the viewport width, so the whole layout scales with the 90% container
   on large screens (1440px = 16px, 1920px = 21.3px, 2560px = 28.4px ...).
   ========================================================================== */

:root {
  --blue: #1f4d98;
  --dark: #1b1834;
  --navy: #241f42;
  --lila: #cbd0f4;
  --tint: #f3f6fe;
  --text: #282828;
  --ghost: #e4eaf5;
  --gold: #e8a317;
  --white: #fff;
  --gutter: 5vw;                 /* (100% - 90%) / 2 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 1024px) {
  html { font-size: max(14px, 1.1111vw); }
  :root { --header-h: 9.5rem; }
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1.6em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: block; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--blue); color: var(--white); padding: .6rem 1rem; border-radius: .5rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Content width: strictly 90% on every screen */
.container { width: 90%; margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--dark); }
h1, h2 { font-size: clamp(1.75rem, 6.2vw, 2.75rem); line-height: 1.3; }
h1 > span:first-of-type, h2 > span:first-of-type { display: block; }
h2.h-inline > span:first-of-type, h1.h-inline > span:first-of-type { display: inline; }
.t-blue { color: var(--blue); }
.t-lila { color: var(--lila); }

.dashes {
  display: block; width: 6.8rem; height: .2rem; margin: 1.6rem 0 2rem;
  background: linear-gradient(90deg, var(--dark) 0 26%, transparent 26% 37%, var(--blue) 37% 63%, transparent 63% 74%, var(--lila) 74%);
}
.dashes--light {
  background: linear-gradient(90deg, var(--lila) 0 26%, transparent 26% 37%, var(--lila) 37% 63%, transparent 63% 74%, var(--lila) 74%);
}
.lead { font-weight: 700; }
.small { font-size: .95rem; }

.ghost-text {
  margin: 0; font-weight: 700; line-height: 1.1; color: var(--ghost);
  font-size: 13vw; user-select: none;
}
.ghost-text--center { text-align: center; font-size: 11vw; }
.ghost-text--dark { color: rgba(31, 77, 152, .13); }

.text-link { display: inline-block; margin-top: 1.4rem; font-weight: 700; color: var(--blue); }
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; line-height: 1.2; text-align: center;
  border: 2px solid var(--dark); border-radius: 1.3rem;
  padding: .95rem 1.2rem; font-size: 1.15rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--outline { background: var(--white); color: var(--dark); }
.btn--outline:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--solid { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--solid:hover { background: var(--dark); border-color: var(--dark); }
.btn--outline-light { border-color: var(--white); color: var(--white); border-radius: .6rem; padding: 1rem 2.6rem; font-size: 1.5rem; }
.btn--outline-light:hover { background: var(--white); color: var(--dark); }

/* ==========================================================================
   Header – fixed, shrinks after scrolling (.is-scrolled is set in main.js)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: .9rem;
  transition: padding .4s var(--ease);
}
/* background lives on a pseudo element so the header itself never becomes
   a containing block for the fixed mobile drawer */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 .3rem 1.5rem rgba(27, 24, 52, .1);
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled { padding-block: .5rem; }

.header__inner { position: relative; display: flex; align-items: center; }
.logo { flex: none; margin-inline: auto; }
.logo img { width: 10rem; transition: width .4s var(--ease); }
.is-scrolled .logo img { width: 8.5rem; }

.header__top { display: none; align-items: center; gap: 1.4rem; }

/* phone / mail pill – hovering an icon slides its text out; main.js keeps
   it open ~2.5s after the cursor leaves (.is-open) */
.contact-pill {
  display: flex; align-items: center; gap: .6rem;
  background: var(--blue); color: var(--white);
  border-radius: 999px; padding: .5rem 1rem;
}
.contact-pill a { display: flex; align-items: center; }
.contact-pill .icon { width: 1.04rem; height: 1.04rem; flex: none; --icon-stroke: 1.1; }
.contact-pill__text {
  display: grid; grid-template-columns: 0fr; opacity: 0; margin-left: 0;
  white-space: nowrap;
  font-weight: 500; font-size: .84rem; line-height: 1.2; letter-spacing: .01em;
  transition: grid-template-columns .8s var(--ease), opacity .65s var(--ease), margin .8s var(--ease);
}
/* inner span is clipped; animating 0fr -> 1fr ends exactly at the text width (no snap) */
.contact-pill__text > span { min-width: 0; overflow: hidden; }
.contact-pill a.is-open .contact-pill__text,
.contact-pill a:focus-visible .contact-pill__text { grid-template-columns: 1fr; opacity: 1; margin-left: .55rem; }

.socials { display: flex; align-items: center; gap: .9rem; color: var(--blue); }
.socials a { display: block; transition: transform .3s var(--ease), opacity .3s; }
.socials a:hover { transform: translateY(-2px); opacity: .75; }
.socials--light { color: var(--white); }
.social-icon { display: block; height: 1.25em; width: auto; }

/* hamburger */
.nav-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: .7rem;
  display: grid; place-content: center; gap: .36rem;
}
.nav-toggle span { display: block; width: 1.6rem; height: .16rem; border-radius: 2px; background: var(--blue); }

/* ---------- Navigation: mobile = drawer sliding in from the right ---------- */
.main-nav {
  position: fixed; top: 0; right: 0; z-index: 2;
  width: min(23rem, 88vw); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--white); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -1rem 0 3rem rgba(27, 24, 52, .2);
  transform: translateX(105%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.nav-open .main-nav { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;
  background: rgba(27, 24, 52, .55);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }

.main-nav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--tint);
}
.main-nav__head img { width: 9.5rem; }
.nav-close { width: 2.5rem; height: 2.5rem; display: grid; place-content: center; color: var(--blue); font-size: 1.2rem; }

.main-nav__list { padding: .5rem 0; }
.main-nav__list > li > a,
.dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: .95rem 1.25rem;
  font-size: .95rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.dropdown-toggle.is-active, .main-nav__list > li > a[aria-current="page"] { font-weight: 700; }
.dropdown-toggle .icon { transition: transform .35s var(--ease); }
.is-open > .dropdown-toggle .icon { transform: rotate(180deg); }

.dropdown { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); background: var(--tint); }
.dropdown > ul { overflow: hidden; }
.is-open > .dropdown { grid-template-rows: 1fr; }
.dropdown a {
  display: block; padding: .75rem 1.25rem .75rem 2rem;
  font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue);
  transition: background-color .25s, color .25s;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--blue); color: var(--white); font-weight: 800; }

.main-nav__extra {
  margin-top: auto; padding: 1.5rem 1.25rem 2rem; border-top: 1px solid var(--tint);
  display: flex; flex-direction: column; gap: 1rem;
}
.main-nav__contact { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--blue); }

/* ---------- Navigation: desktop ---------- */
@media (min-width: 1024px) {
  .site-header { padding-block: 1.6rem; }
  .site-header::before { background: rgba(255, 255, 255, .92); opacity: 0; }
  .site-header.is-scrolled::before { opacity: 1; }
  .logo { margin: 0; }
  .site-header.is-scrolled { padding-block: .55rem; }
  .logo img { width: 17rem; }
  .is-scrolled .logo img { width: 11.5rem; }

  .header__right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1.5rem; transition: gap .4s var(--ease); }
  .is-scrolled .header__right { gap: 0; }
  .header__top {
    display: flex; max-height: 3rem; overflow: hidden;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), visibility 0s;
  }
  .is-scrolled .header__top {
    max-height: 0; opacity: 0; visibility: hidden;
    transition: max-height .4s var(--ease), opacity .3s var(--ease), visibility 0s .4s;
  }
  .header__divider { width: 1px; height: 2.2rem; background: var(--blue); opacity: .6; transition: height .4s var(--ease); }
  .is-scrolled .header__divider { height: 1.5rem; }
  .contact-pill { padding: .4rem .9rem; }

  .nav-toggle, .nav-overlay, .main-nav__head, .main-nav__extra { display: none; }

  .main-nav {
    position: static; width: auto; height: auto; display: block;
    background: none; overflow: visible; box-shadow: none;
    transform: none; visibility: visible; transition: none;
  }
  .main-nav__list { display: flex; align-items: center; gap: 2rem; padding: 0; }
  .main-nav__list > li > a,
  .dropdown-toggle { width: auto; padding: .45rem 0; font-size: .72rem; gap: .4rem; position: relative; }
  .main-nav__list > li > a::after,
  .dropdown-toggle::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .main-nav__list > li > a:hover::after,
  .has-dropdown:hover > .dropdown-toggle::after,
  .has-dropdown:focus-within > .dropdown-toggle::after { transform: scaleX(1); }

  .has-dropdown { position: relative; }
  .dropdown {
    display: block; position: absolute; top: 100%; left: -1.8rem; z-index: 5;
    padding-top: .9rem; background: none;
    opacity: 0; visibility: hidden; transform: translateY(.6rem);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .has-dropdown:hover > .dropdown,
  .has-dropdown:focus-within > .dropdown,
  .has-dropdown.is-open > .dropdown {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .has-dropdown:hover > .dropdown-toggle .icon { transform: rotate(180deg); }
  .dropdown > ul {
    overflow: hidden; background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 0 0 .7rem .7rem; box-shadow: 0 1rem 2.5rem rgba(27, 24, 52, .22);
  }
  .dropdown a { padding: .65rem 1.6rem; font-size: .8rem; white-space: nowrap; }
}

/* ---------- Free Demo: bottom bar on phones, side tab from 700px ---------- */
.demo-tab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .6rem 1rem calc(.55rem + env(safe-area-inset-bottom));
  color: var(--white); background: var(--blue);
  box-shadow: 0 -.3rem 1.2rem rgba(27, 24, 52, .25);
  transition: padding .3s var(--ease), background-color .3s;
}
.demo-tab:hover { background: var(--dark); }
.demo-tab__label { font-weight: 700; font-size: 1.15rem; line-height: 1; white-space: nowrap; }
.demo-tab__small { font-size: .55rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
body { padding-bottom: 3.4rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: 3.5rem; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section--clip { overflow-x: clip; }
.section--grey { background: #f5f5f5; }
.section--soft { background: #f9f9fb; }
.section--lila { background: #dbe4f5; }
.section--blue-alt { background: #234e92; color: var(--white); }
.section--blue-alt h2 { color: var(--white); }
.section--blue-alt .center-head p { color: var(--white); }
.section--ink { background: #1f1c37; color: var(--white); }
.section--ink h2 { color: var(--white); }
.section--fog { background: #f2f2f2; }
.section--periwinkle { background: #c6cdf1; }
.section--cobalt { background: #214c90; color: var(--white); }
.section--indigo { background: #202140; color: var(--white); }
.section--ink-deep { background: #1b1835; color: var(--white); }
.section--cobalt h2, .section--indigo h2, .section--ink-deep h2 { color: var(--white); }
.section--cobalt .center-head p, .section--indigo .center-head p, .section--ink .center-head p, .section--ink-deep .center-head p { color: var(--white); }
.ghost-text--light { color: rgba(255, 255, 255, .1); }
.section--lila-soft { background: #eaedfc; }
.section--blue { background: #274f91; color: var(--white); }
.section--blue h2 { color: var(--white); }
.section--blue .center-head p { color: var(--white); }

.center-head { text-align: center; margin-bottom: 2.5rem; }
.center-head p { max-width: 66rem; margin-inline: auto; }
.center-head .dashes { margin-inline: auto; }
.center-head--tight { margin-bottom: 0; }
.center-head--tight .dashes { margin-bottom: 1rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split__media img { width: 100%; }
.stack { display: grid; gap: 1.25rem; }
.split--bleed-left .split__media { margin-inline: calc(var(--gutter) * -1); }
.wide-img { width: 100%; }
.duo { display: grid; gap: 1.25rem; align-items: center; }
.duo img { width: 100%; }

/* phone image sitting on a tinted panel that runs to the screen edge */
.panel-media { position: relative; display: grid; place-items: center; }
.panel-media::before {
  content: ""; position: absolute; left: 6%; right: calc(var(--gutter) * -1.2); top: 18%; bottom: 18%;
  background: var(--tint); border-radius: 5rem 0 0 5rem;
}
.panel-media--left::before { left: calc(var(--gutter) * -1.2); right: 6%; border-radius: 0 5rem 5rem 0; }
.panel-media > * { position: relative; }

.img-placeholder {
  display: grid; place-items: center; width: 100%; text-align: center;
  font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--blue);
  background: linear-gradient(135deg, #e3e7fb, var(--lila));
  border: 2px dashed rgba(31, 77, 152, .45);
}
.faq__img { width: 100%; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background: #fff url("../images/hospice-docs-home-page-main-bg-img.webp") center bottom / cover no-repeat;
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__tagline { margin: 0 0 2.2rem; font-size: 1.35rem; line-height: 1.3; color: var(--blue); }
.hero__tagline strong { display: block; }
.hero__media img { width: 100%; }
.hero__duo { position: relative; aspect-ratio: 1.25 / 1; }
.hero__duo::before, .hero__duo::after { content: ""; position: absolute; border-radius: 1.4rem; }
.hero__duo::before { left: 2%; top: 6%; width: 32%; height: 12%; background: var(--lila); }
.hero__duo::after { right: 6%; bottom: 4%; width: 26%; height: 30%; background: var(--blue); }
.hero__duo img { position: absolute; z-index: 1; width: auto; height: auto; object-fit: cover; border-radius: 1.8rem; }
.hero__duo .d1 { top: 0; right: 0; width: 62%; }
.hero__duo .d2 { bottom: 0; left: 0; width: 56%; }
.stack--narrow { max-width: 28rem; margin-inline: auto; gap: 1rem; }
.hero__solo .d1 { width: 88%; top: 8%; right: 0; }
.benefit { margin-bottom: 1.1rem; }
.benefit h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .2rem; }
.benefit p { margin: 0; }
.about-built { max-width: 30rem; margin-inline: auto; }
.tall-img { max-width: 32rem; margin-inline: auto; }

/* ---------- Demo section ---------- */
.demo .ghost-text { margin-bottom: 2.5rem; }
.demo__intro { font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--blue); margin-bottom: 1.2rem; }
.demo__text h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .8rem; }
.steps-img { display: block; width: 100%; max-width: 60rem; margin: 2rem auto 2.5rem; }
.dot-list { margin-bottom: 1.2rem; }
.dot-list li { position: relative; padding-left: 1rem; }
.dot-list li::before { content: ""; position: absolute; left: .2rem; top: .75em; width: .28rem; height: .28rem; border-radius: 50%; background: var(--blue); }
.demo__strong { font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--dark); margin-bottom: 1.4rem; }
.demo__cta { display: flex; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.demo__cta a { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.demo__cta a:hover { text-decoration: underline; }
.demo__arrow { display: none; width: 9rem; color: var(--blue); flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 2.5rem; align-items: start; }
.faq__item { background: var(--white); border-radius: 1.6rem; margin-bottom: 1rem; transition: background-color .35s var(--ease), color .35s var(--ease), border-radius .35s var(--ease); }
.faq__item h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: inherit; }
.faq__item button {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.25rem 1.5rem; text-align: left; font-weight: inherit; color: var(--dark);
  transition: color .35s var(--ease);
}
.faq__icon {
  position: relative; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1.5px solid var(--blue); color: var(--blue); transition: color .35s, border-color .35s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: 2px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 1.5rem 1.5rem; font-size: .9rem; }
.faq__item.is-open { background: var(--blue); color: var(--white); border-radius: 2.2rem; }
.faq__item.is-open button { color: var(--white); }
.faq__item.is-open .faq__icon { color: var(--white); border-color: var(--white); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

/* ---------- Testimonials ---------- */
.testimonials {
  /* add the background photo here once it is delivered:
     background-image: linear-gradient(rgba(243,246,254,.88), rgba(243,246,254,.88)), url("../images/....webp"); */
  background: linear-gradient(180deg, #eef1fb 0%, #f6f7fd 55%, #eceff9 100%);
  background-size: cover; background-position: center;
}
.testimonials .ghost-text { margin: .3rem 0 1.5rem; }
.slider__track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-block: 1rem; align-items: flex-start;
}
.slider__track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 100%; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border-radius: 2.5rem; padding: 2.5rem 1.5rem;
  box-shadow: 0 .5rem 1.5rem rgba(27, 24, 52, .05);
}
.stars { display: flex; gap: .45rem; color: #ffd814; margin-bottom: 1.4rem; }
.stars .icon { width: 1.6rem; height: 1.6rem; }
.t-card h3 { font-size: 1.25rem; color: var(--blue); margin-bottom: 1.2rem; }
.t-card p { color: #3a3a3a; line-height: 2; margin-bottom: 2.2rem; }
.t-card cite { margin-top: auto; font-style: normal; font-weight: 700; color: #2b2b2b; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.5rem; color: var(--blue); }
.slider__btn { width: 2rem; height: 2rem; display: grid; place-content: center; font-size: .8rem; transition: opacity .3s; }
.slider__btn:disabled { opacity: .3; cursor: default; }
.slider__dots { display: flex; gap: .4rem; }
.slider__dots button { width: 1rem; height: 1rem; position: relative; }
.slider__dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .18rem; margin-top: -.09rem; border-radius: 2px;
  background: var(--lila); transition: background-color .3s;
}
.slider__dots button.is-active::before { background: var(--blue); }

/* ---------- Final CTA ---------- */
.cta .ghost-text { margin: -.5rem 0 1.5rem; }
.cta .dashes { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); padding-top: 4rem; }
.footer__grid { display: grid; gap: 3rem; text-align: center; justify-items: center; }
.footer__brand img { width: min(20rem, 80vw); margin-inline: auto; }
.footer__title { margin: 2rem 0 1.5rem; font-size: 1.75rem; font-weight: 700; line-height: 1.35; color: var(--lila); max-width: 12em; }
.footer__tagline { font-size: 1rem; line-height: 1.2; max-width: 14em; margin-inline: auto; }
.footer__menu { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.footer__menu li a { display: block; padding: .15rem 0; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; transition: color .25s; }
.footer__menu li a:hover { color: var(--lila); }
.footer__menu li a[aria-current="page"] { font-weight: 700; }
.footer__contact { display: flex; flex-direction: column; align-items: center; }
.footer__call { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.footer__phone {
  background: var(--lila); color: #2b3347; font-size: 1.85rem; font-weight: 700; line-height: 1.2;
  padding: .7rem 2rem; border-radius: .5rem; white-space: nowrap; transition: background-color .3s;
}
.footer__phone:hover { background: var(--white); }
.footer__mail { margin-top: 2.2rem; font-weight: 500; }
.footer__mail:hover { text-decoration: underline; }
.footer__follow { margin: 2.2rem 0 1.2rem; font-weight: 500; }
.site-footer .socials { gap: 1rem; font-size: 1.6rem; }
.footer__bottom { margin-top: 2.5rem; padding-block: .6rem; border-top: 1px solid rgba(255, 255, 255, .7); text-align: center; }
.footer__bottom p { margin: 0; font-size: .9rem; font-weight: 300; color: rgba(255, 255, 255, .4); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 700px) {
  body { padding-bottom: 0; }
  .demo-tab {
    left: auto; bottom: auto; top: 50%; transform: translateY(-50%);
    gap: .45rem; padding: .75rem .4rem .55rem;
    border: 2px solid var(--white); border-right: 0; border-radius: .8rem 0 0 .8rem;
    box-shadow: 0 .4rem 1.2rem rgba(27, 24, 52, .3);
  }
  .demo-tab:hover { padding-right: .75rem; }
  .demo-tab__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .9rem; }
  .demo-tab__small { font-size: .4rem; width: min-content; white-space: normal; text-align: center; line-height: 1.15; }
  .duo { grid-template-columns: 1fr 1fr; }
  .t-card { flex-basis: calc((100% - 2rem) / 2); padding: 3rem 2.2rem; }
  .slider__track { gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .demo__arrow { display: block; }
  .section { padding-block: 5.5rem; }
  .split, .hero__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--media-left { grid-template-columns: .92fr 1fr; }
  .split--text-wide { grid-template-columns: 1.25fr 1fr; }
  .split--bleed-left { grid-template-columns: 1.08fr 1fr; gap: 1rem; }
  .split--bleed-left .split__media { margin-inline: calc(var(--gutter) * -1) 0; }
  .section--dark { padding-block: 4rem; }
  .center-head { margin-bottom: 4rem; }
  .center-head--tight { margin-bottom: 0; }
  .faq { grid-template-columns: .8fr 1.15fr; gap: 3rem; }
  .ghost-text { font-size: 5.6vw; white-space: nowrap; }
  .ghost-text--center { font-size: 7.2vw; }
  .demo .ghost-text { margin-bottom: 4rem; }
  .testimonials .ghost-text { margin: -.6rem 0 2rem; }
}

@media (min-width: 1024px) {
  body { font-size: 1.2rem; }
  h1, h2 { font-size: 3.2rem; }
  h1 { font-size: 3.4rem; }
  .small { font-size: 1rem; }
  .btn { font-size: 1.5rem; padding: 1.1rem 1rem; }
  .btn--outline-light { font-size: 1.6rem; padding: 1rem 2.8rem; }
  .text-link { font-size: 1.1rem; }

  .hero { padding: calc(var(--header-h) + 3.5rem) 0 8rem; }
  .hero__tagline { font-size: 1.75rem; }

  .demo-tab { padding: 1rem .5rem .65rem; }
  .demo-tab__label { font-size: 1.05rem; }
  .demo-tab__small { font-size: .42rem; }

  .demo__intro, .demo__strong, .demo__cta a { font-size: 1.6rem; }
  .demo__text h3 { font-size: 1.25rem; }
  .demo__arrow { width: 11rem; margin-top: -.5rem; }

  .faq h2 { font-size: 2.9rem; }
  .faq__item h3 { font-size: 1.25rem; }
  .faq__item button { padding: 1.5rem 1.8rem; }
  .faq__icon { width: 1.8rem; height: 1.8rem; }
  .faq__panel p { padding: 0 1.8rem 1.7rem; font-size: .95rem; }

  .slider { width: 88%; margin-inline: auto; }
  .slider__track { gap: 3.5rem; }
  .t-card { flex-basis: calc((100% - 3.5rem) / 2); border-radius: 3.2rem; padding: 3.2rem 2.8rem; }
  .t-card h3 { font-size: 1.45rem; }

  .site-footer { padding-top: 6.5rem; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.1fr; align-items: start; gap: 2rem; }
  .footer__brand { grid-column: auto; text-align: left; justify-self: start; padding-left: 2.5rem; }
  .footer__brand img { width: 24rem; margin: 0; }
  .footer__title { font-size: 2.1rem; margin: 3.2rem 0 2.2rem; }
  .footer__tagline { font-size: 1.1rem; margin: 0; }
  .footer__menu { gap: 3.5rem; padding-top: .5rem; }
  .footer__contact { padding-top: .5rem; }
  .footer__phone { font-size: 2.1rem; }
  .footer__bottom { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Home page ---- */
.hero__tagline--inline strong { display: inline; }
.hero-app { position: relative; aspect-ratio: 1.5 / 1; margin-bottom: 1.5rem; }
.hero-app .h-laptop { position: absolute; left: 0; top: 4%; width: 96.8%; }
.hero-app .h-phone { position: absolute; left: 61.5%; top: 31%; width: 26%; z-index: 1; filter: drop-shadow(0 .6rem 1rem rgba(27, 24, 52, .25)); }
.hero-app .badge { position: absolute; display: grid; place-items: center; text-align: center; font-weight: 700; line-height: 1.25; z-index: 3; font-size: clamp(.62rem, 2.4vw, 1rem); }
.badge--pill { left: 59.8%; top: 2%; width: 24%; padding: .9em .6em; border-radius: 999px; background: var(--lila); color: var(--blue); }
.badge--blue { left: 0; top: 58%; width: 22%; padding: .9em .6em; border-radius: 999px; background: var(--blue); color: var(--white); }
.badge--white { left: calc(40% - 20px); top: 76%; width: 28%; padding: .9em .6em; border-radius: 999px; background: var(--white); color: var(--blue); box-shadow: 0 .4rem 1.2rem rgba(27, 24, 52, .15); }
.hero-app .arrow { position: absolute; z-index: 2; display: none; }
.arrow { pointer-events: none; height: auto; }
.hero-app .a1 { left: 17.6%; top: 32.1%; width: 9.8%; }
.hero-app .a2 { left: 47.4%; top: 8.7%; width: 12.8%; }
.hero-app .a3 { left: calc(54.6% - 20px); top: 53%; width: 11%; }
.home-two { position: relative; display: grid; gap: 2rem; align-items: center; }
.ghost-left { text-align: left; font-size: 3.2rem; margin-bottom: 1.2rem; }
.problem__arrow { display: none; width: 8rem; margin-top: 1rem; }
.built-card { background: var(--white); border-radius: 2.2rem; padding: 2rem 1.6rem; box-shadow: 0 .5rem 1.5rem rgba(27, 24, 52, .06); }
.built-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .25rem; }
.built-card p { margin: 0 0 1.2rem; }
.built-card > :last-child { margin-bottom: 0; }
.fgrid { position: relative; z-index: 0; display: grid; gap: 3.12rem; margin-top: calc(3rem + 50px); }
.fcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 2.2rem; padding: 2rem 1.6rem 1.6rem; color: inherit; text-decoration: none; }
.fcard::before { content: ""; position: absolute; inset: 0; background: var(--tint); border-radius: 2.2rem; z-index: -1; }
.fcard::after { content: ""; position: absolute; inset: 0; border: 2px dashed #c5c8d6; border-radius: 2.2rem; z-index: -2; transform: translate(.9rem, .9rem); transition: transform .45s var(--ease); }
.fcard:hover::after, .fcard:focus-visible::after { transform: translate(-.9rem, -.9rem); }
.fcard h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .8rem; }
.fcard p { font-size: .9rem; margin-bottom: 1.2rem; }
.fcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--blue); }
.fcard__more::after { content: "+"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border: 1.5px solid var(--blue); border-radius: 50%; font-size: 1rem; line-height: 1; transition: background-color .3s, color .3s; }
.fcard:hover .fcard__more::after { background: var(--blue); color: var(--white); }
.app-band { position: relative; overflow: hidden; background: var(--tint); padding: 2.5rem 0 0; }
.app-band__in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: 8rem; }
.app-band .ghost-text { position: absolute; left: 0; top: .2rem; margin: 0; white-space: nowrap; }
.app-band h2 { position: relative; align-self: center; font-size: 1.5rem; padding-bottom: 2.5rem; }
.app-band h2 a { color: var(--blue); }
.app-band img { position: relative; width: 9rem; flex: none; margin-bottom: -4rem; }
.why { position: relative; }
.why__quote { font-size: 1.7rem; line-height: 1.25; }
.why .ghost-text { margin: 1.2rem 0 1.4rem; text-align: left; font-size: 3rem; }
.why__arrow { display: none; width: 8rem; margin-top: 1rem; }
.full-img { display: block; width: 100%; margin-top: 2rem; }
.better h2 span { display: block; }
.sub-lead { font-weight: 700; color: var(--dark); margin-bottom: 1.2rem; }
@media (min-width: 700px) {
  .hero-app .arrow { display: block; }
  .fgrid { grid-template-columns: repeat(3, 1fr); gap: 4.06rem; align-items: stretch; }
  .fcard:nth-child(3n+2) { top: -1.6rem; }
  .fcard:last-child { grid-column: 2; }
}
@media (min-width: 900px) {
  .home-two { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .problem__arrow, .why__arrow { display: block; }
  .section--problem { padding-bottom: .5rem; }
  .problem__arrow { position: absolute; left: 28%; top: calc(100% - 3.5rem); width: 10.8vw; margin: 0; }
  .fgrid { width: 80%; margin-inline: auto; }
  .ghost-left { font-size: 5.6rem; }
  .why .ghost-text { font-size: 4.6rem; }
  .why__quote { font-size: 2rem; }
  .app-band { padding: 0; }
  .app-band__in { display: block; min-height: 14vw; }
  .app-band .ghost-text { left: -3vw; top: 50%; transform: translateY(-50%); font-size: 7.8vw; line-height: 1; }
  .app-band h2 { position: absolute; left: 7.6vw; top: 50%; transform: translateY(-50%); align-self: auto; padding: 0; font-size: 2.8vw; white-space: nowrap; }
  .app-band img { position: absolute; top: 1.9vw; right: -2.8vw; width: 26.6vw; margin: 0; }
  .ghost-text--tech { font-size: 5.2vw; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Scroll reveal ---- */
body { overflow-x: clip; }
.reveal { opacity: 0; transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal--left { transform: translateX(-4rem); }
.reveal--right { transform: translateX(4rem); }
.reveal--up { transform: translateY(3rem); }
.reveal--down { transform: translateY(-3rem); }
.reveal--zoom { transform: scale(.6); }
.reveal.is-in { opacity: 1; }
.reveal--left.is-in, .reveal--right.is-in, .reveal--up.is-in, .reveal--down.is-in, .reveal--zoom.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transition: none; }
  .reveal--left, .reveal--right, .reveal--up, .reveal--down, .reveal--zoom { transform: none; }
}

/* ---- Home hero: elements fly in when the page loads ---- */
@keyframes hero-pop { from { opacity: 0; transform: var(--from, none); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-app .h-laptop, .hero-app .h-phone, .hero-app .badge { animation: hero-pop .9s var(--ease) both; animation-delay: var(--d, 0s); }
.hero-app .arrow { animation: hero-fade .7s ease both; animation-delay: var(--d, 1.4s); }
.hero-app .h-laptop { --from: translateY(-5rem); --d: .15s; }
.hero-app .h-phone { --from: translateX(6rem); --d: .6s; }
.hero-app .badge--pill { --from: translateX(4rem); --d: .95s; }
.hero-app .badge--blue { --from: translateX(-4rem); --d: 1.1s; }
.hero-app .badge--white { --from: translateY(4rem); --d: 1.25s; }
.hero-app .a2 { --d: 1.5s; }
.hero-app .a1 { --d: 1.65s; }
.hero-app .a3 { --d: 1.8s; }
@media (prefers-reduced-motion: reduce) {
  .hero-app .h-laptop, .hero-app .h-phone, .hero-app .badge, .hero-app .arrow { animation: none; }
}

/* ---- Home: Built to Make Daily Coordination Easier ---- */
.built { display: grid; gap: 1.8rem; }
.built__title { margin: 0; }
.built-card { padding: 2.2rem 1.8rem; }
.built-card p { margin-bottom: 1.8rem; }
@media (min-width: 900px) {
  .built { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 0; row-gap: 1.6rem; align-items: start; }
  .built__title { grid-column: 1; grid-row: 1; white-space: nowrap; position: relative; z-index: 2; }
  .built-card { grid-column: 1; grid-row: 2; width: 82%; padding: 2.6rem 2.4rem; }
  .built-card p { max-width: 90%; margin-bottom: 2.1rem; }
  .built-card > :last-child { margin-bottom: 0; }
  .built__media { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: -3rem calc(-8vw - 14%) -3rem -6%; position: relative; left: -27%; z-index: 1; }
}

/* ---- Contact page ---- */
.contact__form img { width: 100%; max-width: 38rem; margin-inline: auto; border-radius: 3rem; box-shadow: 0 .8rem 2.4rem rgba(27, 24, 52, .08); }

/* ---- Footer: Features dropdown (opens inline, pushes the links below) ---- */
.footer__menu .dropdown-toggle { width: auto; margin-inline: auto; padding: .15rem 0; justify-content: center; gap: .4rem; font-size: .85rem; font-weight: 400; letter-spacing: .03em; color: var(--white); cursor: pointer; transition: color .25s; }
.footer__menu .dropdown-toggle:hover, .footer__menu .dropdown-toggle.is-active { color: var(--lila); }
.footer__menu .dropdown-toggle .icon { width: 1em; height: 1em; }
.footer__menu .dropdown-toggle::after { display: none; }
.footer__menu .dropdown {
  position: static; display: grid; grid-template-rows: 0fr; width: auto; margin: 0; padding: 0;
  opacity: 1; visibility: visible; transform: none; background: none;
  transition: grid-template-rows .4s var(--ease);
}
.footer__menu .has-dropdown.is-open > .dropdown { grid-template-rows: 1fr; }
.footer__menu .dropdown > ul { overflow: hidden; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.footer__menu .dropdown a { padding: .35rem 0; font-size: .85rem; letter-spacing: .03em; text-transform: none; white-space: normal; text-align: center; color: var(--white); background: none; font-weight: 400; }
.footer__menu .dropdown > ul::after { content: ""; display: block; height: 1px; margin: .6rem 0 .3rem; background: var(--white); }
.footer__menu .dropdown a:hover { background: none; color: var(--lila); }
.footer__menu .dropdown a[aria-current="page"] { background: none; color: var(--lila); font-weight: 700; }
