/* Homepage composition layered over the shared marketing styles. */
.home-landing .home-hero { padding-block: 4rem 6rem; }
.home-landing .home-hero__layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 2.5rem; }
.home-landing .apps-heading { align-items: start; justify-items: start; text-align: left; }
.home-landing .apps-heading .section-kicker { max-width: 31rem; font-size: .74rem; line-height: 1.6; }
/* Keep typing styles local: other section eyebrows retain their own alignment. */
.home-landing .home-hero__eyebrow { display:block; }
.home-hero__eyebrow-prefix { display:block; }
.hero-clinic-rotator { display:inline-block; margin-top:.2rem; }
.hero-clinic-rotator__slot { display:inline-grid; vertical-align:top; white-space:nowrap; }
.hero-clinic-rotator__slot > span { grid-area:1 / 1; }
.hero-clinic-rotator__size { visibility:hidden; padding-right:5px; }
.hero-clinic-rotator__text::after { content:''; display:inline-block; width:2px; height:.9em; margin-left:3px; background:currentColor; opacity:0; }
.hero-clinic-rotator.is-animating .hero-clinic-rotator__text::after { animation:home-clinic-cursor .8s step-end infinite; }
@keyframes home-clinic-cursor { 0%,100% { opacity:1; } 50% { opacity:0; } }
@media(prefers-reduced-motion:reduce) { .hero-clinic-rotator__text::after { animation:none !important; opacity:0 !important; } }
.home-landing .apps-heading h1,
.home-landing .hero-promise { font-size: clamp(2.1rem, 3.45vw, 3.2rem); font-weight: 600; line-height: 1.35; letter-spacing: -.045em; }
.home-landing .apps-heading h1 { margin-top: 1.25rem; text-wrap: initial; }
.home-landing .apps-heading h1 .hero-line { display: block; width: 100%; }
.home-landing .hero-promise { --marker-color: #adc0ff; margin-top: 0; }
.home-landing .apps-subheading { margin-top: 1.5rem; font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.home-landing .home-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.home-landing .home-hero__actions { margin-top: 1.25rem; column-gap: 1.5rem; }
.home-landing .home-cta-actions > a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 50px; max-width: 100%; margin: 0; padding: .65rem 1.75rem; border: 1px solid transparent; border-radius: 6px; font-size: .9rem; font-weight: 800; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.home-landing .home-cta-actions .home-demo-link { color: #fff; background: #007cbd; border-color: #007cbd; }
.home-landing .home-cta-actions .home-demo-link:hover { background: #006ca6; border-color: #006ca6; }
.home-landing .home-cta-actions .home-signup-link { color: var(--foreground); background: var(--surface); border-color: var(--border); box-shadow: none; }
.home-landing .home-cta-actions .home-signup-link:hover { background: var(--surface); border-color: #007cbd; }
.home-landing .home-hero__actions .hero-explore-link { width: auto; min-height: 44px; padding: .65rem 0; gap: .75rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--foreground); font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.home-landing .home-hero__actions .hero-explore-link:hover { color: #007cbd; text-decoration: underline; text-decoration-color: currentColor; }
.home-landing .home-hero__actions .hero-explore-link > span { color: #007cbd; }
.home-landing .home-cta-actions > a:focus-visible { outline: 2px solid #007cbd; outline-offset: 4px; }
.home-landing .home-closing__actions { flex-direction: column; flex-shrink: 0; width: 17rem; max-width: 100%; }
.home-landing .home-closing__actions > a { width: 100%; }
.home-landing .home-hero__product { min-width: 0; padding: .5rem 0 0 1rem; position: relative; isolation: isolate; }
.home-landing .home-hero__product::before { content: ''; position: absolute; z-index: -1; inset: 0 1.5rem .5rem 0; background: #e5eaf7; border-radius: 24px; }
.home-landing .home-hero__screen { margin: 0; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(24, 40, 68, .075); }
.home-landing .home-hero__screen .product-preview__heading { padding: .5rem 1rem; font-size: .8rem; }
.home-landing .home-hero__screen .product-preview__heading > span { font-size: .72rem; }
.home-landing .home-hero__screen img { display: block; }
.home-landing .home-hero__screen figcaption { align-items: center; padding: 0 1rem; font-size: .67rem; gap: .5rem; }
.home-landing .home-hero__screen figcaption > span { max-width: 19rem; }
.home-landing .home-hero__screen figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.home-landing .platform-catalogue { padding-block: 1.5rem 3rem; }
.home-landing .catalogue-heading { display: block; max-width: none; margin-bottom: 1.5rem; text-align: left; }
.home-landing .catalogue-heading .section-kicker { font-size: .75rem; }
.home-landing .catalogue-heading h2 { margin: .6rem 0 0; font-size: clamp(1.6rem, 2.4vw, 2rem); }
.home-landing .catalogue-group h3 { font-size: .88rem; }
.home-landing .catalogue-apps { margin-top: .75rem; }
.home-landing .catalogue-note a { margin-top: .5rem; }
.home-landing .migration-section { background: #fff; }

/* Teach the first screenshot stack once, without covering its clickable headers. */
.home-landing .screen-explore-cue,
.home-landing .screen-controls__hint { display: none; }
.home-landing .is-interactive .screen-explore-cue { display: flex; align-items: flex-start; gap: .4rem; margin: 0 0 .25rem 1.75rem; pointer-events: none; }
.home-landing .screen-explore-cue svg { flex: none; width: 56px; height: 72px; color: #8195b0; }
.home-landing .screen-explore-cue > span { padding-top: .35rem; color: #52657d; font-size: .8rem; font-weight: 600; line-height: 1.6; }
@media (max-width: 760px), (hover: none) {
  .home-landing .is-interactive .screen-explore-cue { display: none; }
  .home-landing .is-interactive .screen-controls__hint { display: block; flex-basis: 100%; margin-bottom: .15rem; color: #52657d; font-size: .75rem; font-weight: 600; line-height: 1.6; }
}

/* Customer evidence follows the product walkthrough and leads into migration. */
.home-landing .customer-stories { padding-block: 4rem; border-top: 1px solid var(--border); background: var(--surface); scroll-margin-top: 76px; }
.home-landing .customer-stories__heading { margin-bottom: 2rem; }
.home-landing .customer-stories__heading h2 { margin-bottom: 0; }
.home-landing .customer-stories__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.home-landing .customer-story { display: grid; grid-template-rows: 5rem auto 1fr auto; gap: 1.5rem; min-width: 0; margin: 0; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.home-landing .customer-story__logo { display: flex; align-items: center; width: 100%; height: 5rem; }
.home-landing .customer-story__logo img { display: block; flex-shrink: 0; height: auto; }
/* Frame the supplied square logo's white margins without changing the artwork. */
.home-landing .customer-story__logo--queen { width: 15rem; max-width: 100%; overflow: hidden; }
.home-landing .customer-story__logo--queen img { width: 15rem; max-width: 100%; }
.home-landing .customer-story__logo--qf img { width: auto; max-width: 100%; max-height: 5rem; }
.home-landing .customer-story__result h3 { color: var(--accent-blue); font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.home-landing .customer-story__result p { margin-top: .45rem; color: var(--muted-foreground); font-size: .85rem; line-height: 1.6; }
.home-landing .customer-story blockquote { margin: 0; font-size: 1rem; line-height: 1.85; }
.home-landing .customer-story figcaption { padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: .9rem; line-height: 1.6; }
.home-landing .customer-story figcaption strong { display: block; font-weight: 800; }
.home-landing .customer-story figcaption > span { display: block; margin-top: .2rem; color: var(--muted-foreground); font-size: .82rem; }

@media (max-width: 760px) {
  .home-landing .customer-stories__grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .home-landing .home-hero { padding-block: 2.75rem; }
  .home-landing .home-hero__layout { grid-template-columns: 1fr; gap: 2rem; }
  .home-landing .apps-heading { max-width: 38rem; align-items: center; justify-items: center; text-align: center; }
  .home-landing .apps-heading .section-kicker { max-width: 30rem; text-wrap: balance; }
  .home-landing .apps-heading h1,
  .home-landing .hero-promise { font-size: clamp(2.1rem, 5vw, 2.8rem); }
  .home-landing .home-hero__product { width: 100%; max-width: 42rem; margin-inline: auto; }
  .home-landing .home-hero__actions { justify-content: center; margin-top: 1.75rem; }
  .home-landing .catalogue-heading { text-align: center; }
}

@media (max-width: 599px) {
  .home-landing .home-hero { padding-block: 2.5rem 2rem; }
  .home-landing .home-hero__layout { gap: 2rem; }
  .home-landing .apps-heading .section-kicker { font-size: .72rem; }
  .home-landing .apps-heading h1,
  .home-landing .hero-promise { font-size: clamp(1.625rem, 8vw, 2.125rem); }
  .home-landing .apps-heading h1 { margin-top: 1.2rem; }
  .home-landing .apps-subheading { margin-top: 1.25rem; line-height: 1.65; }
  .home-landing .home-hero__actions { width: 100%; max-width: 22rem; flex-direction: column; margin-top: 1.5rem; }
  .home-landing .home-hero__actions > a { width: 100%; }
  .home-landing .home-closing__actions { width: 100%; max-width: 22rem; }
  .home-landing .home-hero__product { padding: .5rem 0 0 .5rem; }
  .home-landing .home-hero__screen .product-preview__heading { padding: .65rem .75rem; font-size: .75rem; }
  .home-landing .home-hero__screen figcaption { padding: .4rem .65rem; font-size: .65rem; flex-wrap: nowrap; }
  .home-landing .platform-catalogue { padding-top: 1.75rem; }
  .home-landing .catalogue-heading { margin-bottom: 1.5rem; }
  .home-landing .catalogue-apps { gap: .4rem .75rem; }
  .home-landing .customer-stories { padding-block: 2.5rem; }
  .home-landing .customer-stories__heading { margin-bottom: 1.5rem; }
  .home-landing .customer-story { gap: 1.25rem; padding: 1.5rem; }
  .home-landing .customer-story blockquote { font-size: .95rem; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing .home-cta-actions > a { transition: none; }
  .home-landing .hero-explore-link span { transition: none; }
}

/* Recognizable practices lead from the product walkthrough into customer stories. */
.home-specialties { padding-block:4rem; border-top:1px solid var(--border); scroll-margin-top:6rem; background:#fff; }
.home-specialties:focus { outline:none; }
.home-specialties__heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem 3rem; margin-bottom:2rem; }
.home-specialties__heading > div { max-width:44rem; }
.home-specialties__heading .section-kicker { font-size:.75rem; }
.home-specialties h2 { margin-top:.7rem; font-family:var(--font-display); font-size:clamp(1.8rem,2.8vw,2.5rem); line-height:1.25; font-weight:600; letter-spacing:-.04em; }
.home-specialties__heading > div > p:last-child { margin-top:1rem; color:var(--muted-foreground); font-size:1rem; line-height:1.8; }
.home-specialties__all-link { display:inline-flex; flex-shrink:0; align-items:center; gap:.75rem; min-height:48px; padding:.7rem 1.2rem; border:1px solid #cbd5e3; border-radius:8px; background:var(--surface); color:#007cbd; font-weight:800; font-size:.85rem; }
.home-specialties__all-link:hover { border-color:#007cbd; background:#eef6fc; }
.home-specialties__tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.practice-tile { --practice-ink:#2877b2; --practice-tint:#edf5fc; display:flex; flex-direction:column; position:relative; min-width:0; padding:1rem; border:1px solid #dfe5ee; border-radius:12px; background:#fbfcfe; text-decoration:none; transition:border-color .18s,background-color .18s,box-shadow .18s,transform .18s; }
.practice-tile--teal { --practice-ink:#217c70; --practice-tint:#eaf6f2; }
.practice-tile--purple { --practice-ink:#7a5aa4; --practice-tint:#f2edf8; }
.practice-tile--amber { --practice-ink:#a76914; --practice-tint:#fff4df; }
.practice-tile__icon { display:grid; place-items:center; width:38px; height:38px; margin-bottom:.7rem; border-radius:10px; background:var(--practice-tint); color:var(--practice-ink); }
.practice-tile__icon svg { width:25px; height:25px; }
.practice-tile__copy { display:flex; flex:1; flex-direction:column; gap:.4rem; }
.practice-tile__copy strong { font-size:.94rem; font-weight:800; line-height:1.5; }
.practice-tile__copy > span { color:var(--muted-foreground); font-size:.8rem; line-height:1.75; }
.practice-tile:hover { border-color:var(--practice-ink); background:var(--practice-tint); box-shadow:0 8px 20px #17274008; transform:translateY(-2px); }
.home-specialties a:focus-visible { outline:2px solid #007cbd; outline-offset:4px; }
.home-specialties__footnote { margin-top:1.5rem; color:var(--muted-foreground); font-size:.85rem; line-height:1.8; }
.home-specialties__footnote a { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; margin-left:.3rem; color:#007cbd; font-weight:800; }
.home-specialties__footnote a:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:980px) {
 .home-specialties__heading { align-items:flex-start; flex-direction:column; }
}
@media(max-width:900px) {
 .home-specialties__tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:599px) {
 .home-specialties { padding-block:2.75rem; }
 .home-specialties__heading { margin-bottom:1.5rem; gap:1rem; }
 .home-specialties__heading > div > p:last-child { font-size:.95rem; }
 .home-specialties__tiles { gap:.65rem; }
 .practice-tile { padding:1rem; border-radius:11px; }
 .practice-tile__icon { width:38px; height:38px; margin-bottom:.85rem; border-radius:10px; }
 .practice-tile__icon svg { width:25px; height:25px; }
 .practice-tile__copy strong { font-size:.86rem; }
 .practice-tile__copy > span { font-size:.78rem; line-height:1.65; }
 .home-specialties__footnote a { margin-left:0; }
}
@media(max-width:359px) { .home-specialties__tiles { grid-template-columns:1fr; } .practice-tile { flex-direction:row; align-items:center; gap:1rem; } .practice-tile__icon { flex-shrink:0; margin-bottom:0; } }
@media(prefers-reduced-motion:reduce) { .practice-tile { transition:none; } .practice-tile:hover { transform:none; } }
