/*==========================================================
  ORIGAMI — Health Suite page  (fresh teal + azure, light)
  Loaded after hs-page.css and theme.css.
==========================================================*/

.hs-body { background: #fff; }
.hs-body main { display: block; }

/* ── Shared bits ─────────────────────────────────────────── */
.hs-eyebrow { color: var(--teal); letter-spacing: 0.16em; }
.hs-section-h2 { font-size: clamp(3rem, 3.6vw, 4.6rem); line-height: 1.12; }
.hs-h2-white { color: #fff !important; }
.hs-section-head { margin-bottom: 4.8rem; }

.hs-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  border: 2px solid var(--accent);
  font-family: var(--font-head);
  filter: none;
}
.hs-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); filter: none; box-shadow: none; }
.hs-btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  font-family: var(--font-head);
}
.hs-btn-ghost:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ── Hero: text left, photo card right ───────────────────── */
.hs-hero {
  min-height: auto;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 6rem;
  align-items: center;
  background: var(--mist);
}
.hs-hero-vignette, .hs-hero-pattern, .hs-hero-deco, .hs-scroll-cue { display: none !important; }
.hs-hero-bg {
  inset: auto;
  top: calc(var(--header-h) + 4rem);
  bottom: 6rem;
  right: var(--gutter);
  left: auto;
  width: min(42%, 62rem);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.hs-hero-inner {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: 140rem;
  margin: 0 auto;
  padding: 0;
}
.hs-hero-content { max-width: 54%; }
.hs-hero .hs-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.hs-hero .hs-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.hs-hero-badge {
  background: var(--teal-soft);
  border: none;
  color: var(--teal-dark);
  font-family: var(--font-head);
}
.hs-hero-h1 { font-size: clamp(3.6rem, 4.4vw, 6rem); line-height: 1.08; color: var(--ink); }
.hs-hero-accent { color: var(--teal) !important; }
.hs-hero-sub { color: var(--ink-2); font-size: 1.7rem; }
.hs-hstat-n { color: var(--ink) !important; font-family: var(--font-head); font-weight: 800; }
.hs-hstat-l { color: var(--ink-3); }
.hs-hstat-sep { background: var(--line); }

/* ── Resources / media ───────────────────────────────────── */
.hs-media { background: #fff; }
.hs-media-card { border: 1px solid var(--line); box-shadow: none; border-radius: var(--r-md); }
.hs-media-card:hover { box-shadow: var(--shadow); border-color: var(--teal); }
.hs-brochure-bg, .hs-manual-bg { background: linear-gradient(135deg, #E3F3F0, #D3EBE6) !important; }
.hs-brochure-art, .hs-brochure-fold { border-color: rgba(18,133,122,0.25) !important; background: transparent; }
.hs-media-thumb svg, .hs-media-thumb ion-icon { color: var(--teal); stroke: var(--teal); }
.hs-media-cta { color: var(--teal); }

/* ── Modules: square tiles + accordion ───────────────────── */
.hs-modules { background: var(--mist); padding: 9rem var(--gutter); }
.hs-modules-subtext { color: var(--ink-2); }

.hs-mod-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 130rem;
  margin: 0 auto;
}
.hs-mod-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 1rem 2.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.hs-mod-ico {
  width: 6.8rem; height: 6.8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.6rem;
  background: var(--teal-soft);
  border-radius: 1.6rem;
  overflow: hidden;
}
.hs-mod-ico img { width: 76%; height: 76%; object-fit: contain; }
.hs-mod-tile strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.hs-mod-tile small { font-size: 1.2rem; color: var(--ink-3); }
.hs-mod-chev {
  position: absolute;
  right: 1rem; bottom: 0.9rem;
  width: 1.6rem; height: 1.6rem;
  color: var(--ink-3);
  transition: transform 0.25s, color 0.2s;
}
.hs-mod-tile:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.hs-mod-tile:focus-visible { outline: 3px solid rgba(18,133,122,0.35); outline-offset: 2px; }
.hs-mod-active { border-color: var(--teal); background: var(--teal-soft); }
.hs-mod-active .hs-mod-ico { background: #fff; }
.hs-mod-active .hs-mod-chev { transform: rotate(180deg); color: var(--teal); }

.hs-acc { grid-column: 1 / -1; }
.hs-acc[hidden] { display: none; }
.hs-acc-inner {
  padding: 2.4rem;
  background: #fff;
  border: 1px solid var(--teal);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  animation: hsAccIn 0.25s ease;
}
@keyframes hsAccIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hs-acc-head {
  display: flex; align-items: center; gap: 1.6rem;
  padding-bottom: 1.8rem; margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.hs-acc-ico {
  flex: 0 0 5.6rem; width: 5.6rem; height: 5.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); border-radius: 1.4rem;
}
.hs-acc-ico img { width: 76%; height: 76%; object-fit: contain; }
.hs-acc-title { min-width: 0; }
.hs-acc-title strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); }
.hs-acc-title span { display: block; margin-top: 0.3rem; font-size: 1.4rem; line-height: 1.5; color: var(--ink-2); }
.hs-acc-close {
  flex: 0 0 4rem; width: 4rem; height: 4rem; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.hs-acc-close svg { width: 1.8rem; height: 1.8rem; }
.hs-acc-close:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.hs-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 1.2rem; }
.hs-sub {
  display: flex; align-items: flex-start; gap: 1.2rem;
  padding: 1.2rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.hs-sub-ico {
  flex: 0 0 4.4rem; width: 4.4rem; height: 4.4rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 1rem;
}
.hs-sub-ico img { width: 78%; height: 78%; object-fit: contain; }
.hs-sub strong { display: block; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.hs-sub p { margin-top: 0.2rem; font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); }

/* ── Mobile app: real screenshots ────────────────────────── */
.hs-app { background: #fff; }
.hs-app-sub, .hs-app-features li { color: var(--ink-2); }
.hs-app-features li { color: var(--ink); }
.hs-app-features svg { stroke: var(--teal) !important; }
.hs-app-note { color: var(--ink-3); }
.hs-app-mockup { display: flex; align-items: center; justify-content: center; }
.hs-shots { display: flex; align-items: center; justify-content: center; padding: 2rem 0; }
.hs-shot {
  margin: 0;
  flex: 0 0 auto;
  background: var(--ink);
  border: 0.8rem solid var(--ink);
  border-radius: 3.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hs-shot img { display: block; width: 100%; height: auto; }
.hs-shot-main { position: relative; z-index: 2; width: 27rem; }
.hs-shot-side { width: 22rem; opacity: 0.96; }
.hs-shot-left  { margin-right: -5rem; transform: translateY(3rem) rotate(-4deg); }
.hs-shot-right { margin-left: -5rem;  transform: translateY(3rem) rotate(4deg); }

/* ── Closing band ────────────────────────────────────────── */
.hs-cta { background: var(--teal); color: #fff; }
.hs-cta-glow { display: none; }
.hs-cta .hs-eyebrow { color: rgba(255,255,255,0.8); }
.hs-cta-h2 { color: #fff; font-size: clamp(3rem, 3.8vw, 4.8rem); }
.hs-cta p, .hs-cta-details, .hs-cta-details span { color: rgba(255,255,255,0.85); }
.hs-cta .hs-btn-primary { background: #fff; color: var(--teal-dark); border-color: #fff; }
.hs-cta .hs-btn-primary:hover { background: var(--ice); border-color: var(--ice); }
.hs-cta .hs-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.7); }
.hs-cta .hs-btn-ghost:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hs-mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hs-hero { flex-direction: column; }
  .hs-hero-inner { order: 1; }
  .hs-hero-content { max-width: 100%; }
  .hs-hero-bg {
    order: 2;
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%; height: clamp(26rem, 46vw, 40rem);
    margin-top: 4rem;
  }
}
@media (max-width: 900px) {
  .hs-mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hs-modules { padding: 6rem 2rem; }
  .hs-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .hs-acc-inner { padding: 1.8rem; }
  .hs-acc-head { align-items: flex-start; }
  .hs-shot-main { width: 21rem; }
  .hs-shot-side { width: 15rem; }
  .hs-shot-left  { margin-right: -3rem; }
  .hs-shot-right { margin-left: -3rem; }
}
@media (max-width: 420px) {
  .hs-shot-side { display: none; }
  .hs-shot-main { width: 24rem; }
}

/* only one accent button per view: the hero's second primary (New App) is teal */
.hs-hero-actions .hs-btn-primary:last-child { background: var(--teal); border-color: var(--teal); }
.hs-hero-actions .hs-btn-primary:last-child:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.hs-app .hs-btn-primary { background: var(--teal); border-color: var(--teal); }
.hs-app .hs-btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ── Resources: square tiles, same look as the module tiles ── */
.hs-media { padding: 9rem var(--gutter); }
.hs-res-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 96rem;
  margin: 0 auto;
}
.hs-res-tile { text-decoration: none; padding: 2rem 1.6rem; gap: 0.8rem; }
.hs-res-tile small { max-width: 24rem; font-size: 1.35rem; line-height: 1.5; color: var(--ink-2); }
.hs-res-cta { margin-top: 0.4rem; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--teal); }
.hs-res-tile .hs-mod-ico svg { width: 3.2rem; height: 3.2rem; color: var(--teal); }
.hs-res-tile:hover .hs-res-cta { text-decoration: underline; }

@media (max-width: 720px) {
  .hs-res-grid { grid-template-columns: 1fr; }
  .hs-res-tile { aspect-ratio: auto; padding: 2.6rem 1.6rem; }
}
/* section headings must never touch the screen edge on phones */
@media (max-width: 480px) {
  .hs-media, .hs-modules { padding-left: 2rem; padding-right: 2rem; }
  .hs-section-h2 { font-size: 2.7rem; }
  .hs-cta-h2 { font-size: 2.8rem; }
}

/* module + resource tiles fade up as they scroll into view (site-nav.js observes .hs-mod-tile too) */
.hs-mod-tile {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.23,1,0.32,1),
              border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hs-mod-tile.revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hs-mod-tile { opacity: 1; transform: none; }
}
