.family-page {
  --family-yellow: #ffe66d;
  --family-lime: #b6ff6a;
  --family-lavender: #a78bfa;
  --family-background: #fff8f0;
  --family-text: #151515;
  --family-muted: #69635f;
  --family-surface: #ffffff;
  --family-line: rgba(21, 21, 21, 0.1);
  --family-line-strong: rgba(21, 21, 21, 0.16);
  --family-container: 1240px;
  --family-gutter: clamp(22px, 4vw, 48px);
  --family-radius-large: 44px;
  --family-radius: 28px;
  --family-shadow: 0 28px 80px rgba(72, 56, 32, 0.1);
  background: var(--family-background);
  color: var(--family-text);
}

.family-page::before {
  z-index: 100;
  opacity: 0.075;
  background-size: 7px 7px;
}

.family-page main {
  overflow: clip;
}

.family-page main section {
  max-width: none;
  margin: 0;
  padding: 0;
}

.family-page h1,
.family-page h2,
.family-page h3,
.family-page p {
  margin: 0;
}

.family-page h1,
.family-page h2,
.family-page h3,
.family-page .family-brand,
.family-page .family-button,
.family-page .family-nav-cta {
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.family-container {
  width: min(100%, var(--family-container));
  margin-inline: auto;
  padding-inline: var(--family-gutter);
}

.family-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 80px;
  padding: 13px max(var(--family-gutter), calc((100vw - var(--family-container)) / 2 + var(--family-gutter)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: rgba(255, 248, 240, 0.88);
  border-bottom: 1px solid rgba(21, 21, 21, 0.06);
  backdrop-filter: blur(20px);
}

.family-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  min-width: 44px;
  min-height: 48px;
  color: var(--family-text);
  font-size: 20px;
  font-weight: 950;
}

.family-brand img {
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(255, 90, 122, 0.14);
}

.family-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.family-nav a {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(21, 21, 21, 0.68);
  font-size: 14px;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.family-nav a:hover {
  color: var(--family-text);
  transform: translateY(-1px);
}

.family-nav a[aria-current="page"] {
  background: var(--family-yellow);
  color: var(--family-text);
}

.family-mobile-nav {
  position: relative;
  display: none;
  overflow: visible;
}

.family-mobile-nav summary {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--family-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--family-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.family-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.family-mobile-nav summary::after {
  display: none;
}

.family-mobile-nav summary svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.family-mobile-nav[open] summary {
  background: var(--family-yellow);
}

.family-mobile-nav > nav {
  position: absolute;
  z-index: 110;
  top: calc(100% + 12px);
  left: 50%;
  width: min(260px, calc(100vw - 36px));
  transform: translateX(-50%);
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--family-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(21, 21, 21, 0.13);
  backdrop-filter: blur(18px);
}

.family-mobile-nav > nav a {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  border-radius: 14px;
  color: rgba(21, 21, 21, 0.68);
  font-size: 15px;
  font-weight: 850;
}

.family-mobile-nav > nav a:hover,
.family-mobile-nav > nav a[aria-current="page"] {
  background: rgba(255, 230, 109, 0.45);
  color: var(--family-text);
}

.family-nav-cta {
  justify-self: end;
  min-height: 48px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--family-yellow);
  color: var(--family-text);
  box-shadow: 0 10px 28px rgba(180, 145, 15, 0.17);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.family-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(180, 145, 15, 0.22);
}

.family-brand:focus-visible,
.family-nav a:focus-visible,
.family-nav-cta:focus-visible,
.family-button:focus-visible,
.rail-controls button:focus-visible,
.ritual-rail:focus-visible,
.family-faq summary:focus-visible,
.family-footer a:focus-visible {
  outline: 3px solid var(--family-lavender);
  outline-offset: 4px;
}

.family-hero {
  min-height: calc(100svh - 80px);
  display: grid;
  align-items: center;
  padding-block: clamp(92px, 9vw, 150px) clamp(110px, 11vw, 180px) !important;
  background:
    radial-gradient(circle at 91% 22%, rgba(255, 230, 109, 0.24), transparent 30%),
    radial-gradient(circle at 65% 72%, rgba(182, 255, 106, 0.12), transparent 26%),
    var(--family-background);
}

.family-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: clamp(66px, 8vw, 124px);
  align-items: center;
}

.family-hero-copy {
  max-width: 610px;
}

.family-hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(56px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.family-hero-copy > p {
  max-width: 575px;
  margin-top: 32px;
  color: var(--family-muted);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.58;
  font-weight: 680;
}

.family-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.family-button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.family-button:hover {
  transform: translateY(-2px);
}

.family-button-primary {
  background: var(--family-yellow);
  color: var(--family-text);
  box-shadow: 0 16px 34px rgba(180, 145, 15, 0.21);
}

.family-button-secondary {
  border: 1px solid var(--family-line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--family-text);
}

.family-hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.family-session-card {
  position: absolute;
  z-index: 8;
  right: auto;
  bottom: 24px;
  left: 24px;
  width: min(calc(100% - 48px), 390px);
  min-height: 96px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 58px rgba(77, 60, 32, 0.13);
  backdrop-filter: blur(12px);
}

.family-session-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.family-session-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--family-lime);
  color: var(--family-text);
  font-size: 13px;
  font-weight: 950;
}

.family-session-card strong {
  font-size: 17px;
  font-weight: 950;
}

.family-session-card > span {
  max-width: 112px;
  color: rgba(21, 21, 21, 0.52);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 850;
  text-align: right;
}

.family-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1568 / 1003;
  object-fit: cover;
  object-position: center;
  border-radius: 48px 48px 110px 48px;
  box-shadow: var(--family-shadow);
}

.family-section-heading h2 {
  max-width: 790px;
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.family-section-heading p {
  max-width: 650px;
  margin-top: 24px;
  color: var(--family-muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 680;
}

.family-section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.family-section-heading-centered {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.family-section-heading-centered p {
  margin-inline: auto;
}

.family-rituals {
  padding-block: clamp(112px, 11vw, 170px) !important;
  background: var(--family-surface);
}

.rail-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-controls button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--family-line);
  border-radius: 50%;
  background: var(--family-background);
  color: var(--family-text);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.rail-controls button:last-child {
  border-color: transparent;
  background: var(--family-yellow);
}

.rail-controls button:hover {
  transform: translateY(-2px);
}

.rail-controls svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ritual-rail {
  margin-top: 72px;
  padding: 4px 2px 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 0.31fr);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.ritual-rail::-webkit-scrollbar {
  display: none;
}

.ritual-card {
  scroll-snap-align: start;
}

.ritual-art {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(255, 230, 109, 0.34), rgba(255, 248, 240, 0.92));
}

.ritual-art::before {
  content: "";
  position: absolute;
  inset: auto 10% 14% 10%;
  height: 56px;
  border-radius: 50%;
  background: rgba(116, 78, 36, 0.12);
  filter: blur(8px);
}

.ritual-art img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 82%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
}

.ritual-art-breakfast {
  background: linear-gradient(150deg, rgba(182, 255, 106, 0.3), rgba(255, 248, 240, 0.92));
}

.ritual-art-breakfast img,
.ritual-art-holiday img {
  filter: hue-rotate(70deg) saturate(1.02);
}

.ritual-art-games,
.ritual-art-siblings {
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.24), rgba(255, 248, 240, 0.92));
}

.ritual-art-generations {
  background: linear-gradient(150deg, rgba(255, 230, 109, 0.44), rgba(182, 255, 106, 0.18));
}

.ritual-art-generations img {
  filter: hue-rotate(140deg) saturate(0.95);
}

.ritual-card h3 {
  margin-top: 25px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 950;
}

.ritual-card p {
  max-width: 30ch;
  margin-top: 10px;
  color: var(--family-muted);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 680;
}

.family-presence {
  padding-block: clamp(125px, 12vw, 190px) !important;
}

.presence-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.73fr) minmax(0, 1.27fr);
  gap: clamp(70px, 9vw, 130px);
  align-items: start;
}

.presence-intro {
  position: sticky;
  top: 132px;
}

.presence-intro h2 {
  max-width: 9.5ch;
}

.presence-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 52px;
  row-gap: 70px;
}

.presence-principles article {
  min-height: 246px;
  padding-top: 4px;
  border-top: 1px solid var(--family-line);
}

.principle-icon {
  position: relative;
  width: 68px;
  height: 68px;
  margin-top: 26px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--family-lime);
}

.principle-icon::before,
.principle-icon::after {
  content: "";
  position: absolute;
}

.principle-check::before {
  width: 28px;
  height: 15px;
  border-left: 5px solid var(--family-text);
  border-bottom: 5px solid var(--family-text);
  transform: translateY(-4px) rotate(-45deg);
}

.principle-phone {
  background: var(--family-yellow);
}

.principle-phone::before {
  width: 25px;
  height: 39px;
  border: 4px solid var(--family-text);
  border-radius: 7px;
}

.principle-phone::after {
  bottom: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--family-text);
}

.principle-private {
  background: var(--family-lavender);
}

.principle-private::before {
  inset: 18px;
  border-radius: 7px;
  background:
    linear-gradient(var(--family-surface), var(--family-surface)) 0 0 / 11px 11px,
    linear-gradient(var(--family-surface), var(--family-surface)) 100% 0 / 11px 11px,
    linear-gradient(var(--family-surface), var(--family-surface)) 0 100% / 11px 11px,
    linear-gradient(var(--family-surface), var(--family-surface)) 100% 100% / 11px 11px;
  background-repeat: no-repeat;
}

.principle-unlock::before,
.principle-unlock::after {
  width: 7px;
  height: 30px;
  top: 19px;
  border-radius: 4px;
  background: var(--family-text);
}

.principle-unlock::before {
  left: 24px;
}

.principle-unlock::after {
  right: 24px;
}

.presence-principles h3 {
  margin-top: 25px;
  font-size: 21px;
  font-weight: 950;
}

.presence-principles p {
  max-width: 27ch;
  margin-top: 11px;
  color: var(--family-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 680;
}

.family-flow {
  padding-block: clamp(120px, 11vw, 180px) !important;
  background:
    linear-gradient(180deg, rgba(255, 230, 109, 0.1), transparent 22%),
    var(--family-surface);
}

.family-flow-grid {
  margin: 96px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  list-style: none;
}

.family-flow-grid li {
  min-width: 0;
}

.flow-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--family-lime);
  font-size: 15px;
  font-weight: 950;
}

.flow-copy {
  min-height: 145px;
  margin-top: 20px;
}

.flow-copy h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 950;
}

.flow-copy p {
  max-width: 26ch;
  margin-top: 10px;
  color: var(--family-muted);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 680;
}

.flow-phone {
  position: relative;
  width: min(100%, 238px);
  height: auto;
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  padding: 48px 19px 22px;
  overflow: hidden;
  border: 8px solid #1d1d1d;
  border-radius: 34px 34px 0 0;
  background: var(--family-background);
  box-shadow: 0 24px 48px rgba(21, 21, 21, 0.1);
}

.flow-phone::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 62px;
  height: 18px;
  border-radius: 999px;
  background: #1d1d1d;
  transform: translateX(-50%);
}

.flow-phone-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.flow-phone-list span {
  min-height: 54px;
  padding-inline: 15px;
  display: flex;
  align-items: center;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  color: rgba(21, 21, 21, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.flow-phone-list span:first-child {
  background: rgba(182, 255, 106, 0.42);
  color: var(--family-text);
}

.flow-phone-qr {
  display: grid;
  place-items: center;
}

.flow-phone-qr svg {
  width: 150px;
  height: 150px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(21, 21, 21, 0.08);
}

.flow-phone-choice {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 10px;
}

.flow-phone-choice img {
  width: min(100%, 170px);
  height: auto;
  max-height: 126px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.flow-phone-choice span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.choice-yes {
  background: var(--family-lime);
}

.choice-no {
  background: #fff;
  border: 1px solid var(--family-line);
}

.flow-phone-together {
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(180deg, rgba(255, 230, 109, 0.38), var(--family-background));
}

.flow-phone-together img {
  width: min(100%, 190px);
  height: auto;
  max-height: 188px;
  object-fit: contain;
}

.flow-phone-together span {
  margin-top: 12px;
  font-size: 25px;
  font-weight: 950;
}

.family-moments {
  padding-block: clamp(125px, 12vw, 190px) !important;
}

.moments-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: start;
}

.moments-heading {
  padding-top: 8px;
}

.moments-heading h2 {
  max-width: 8ch;
}

.moment-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.moment-art {
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(182, 255, 106, 0.19);
}

.moment-art img {
  width: 115%;
  max-width: none;
  max-height: 230px;
  object-fit: contain;
}

.moment-adult {
  background: rgba(255, 230, 109, 0.28);
}

.moment-adult img {
  filter: hue-rotate(72deg) saturate(1.02);
}

.moment-generations {
  background: rgba(167, 139, 250, 0.16);
}

.moment-generations img {
  filter: hue-rotate(137deg) saturate(0.88);
}

.moment-stories h3 {
  margin-top: 22px;
  font-size: 21px;
  font-weight: 950;
}

.moment-stories p {
  margin-top: 9px;
  color: var(--family-muted);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 680;
}

.family-trust {
  padding-bottom: clamp(120px, 11vw, 170px) !important;
}

.trust-layout {
  padding: clamp(50px, 6vw, 84px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(54px, 6vw, 82px);
  border: 1px solid rgba(178, 141, 8, 0.16);
  border-radius: var(--family-radius-large);
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.62), transparent 32%),
    linear-gradient(120deg, rgba(255, 230, 109, 0.47), rgba(255, 240, 173, 0.7));
  box-shadow: 0 30px 70px rgba(134, 101, 15, 0.1);
}

.trust-heading h2 {
  max-width: 12ch;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 38px);
}

.trust-points article {
  min-width: 0;
  text-align: center;
}

.trust-points article > span {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--family-text);
  font-size: 27px;
  font-weight: 950;
}

.trust-points article:nth-child(2) > span {
  background: var(--family-yellow);
}

.trust-points article:nth-child(3) > span {
  background: rgba(255, 90, 122, 0.19);
  color: #e84363;
}

.trust-points article:nth-child(4) > span {
  background: rgba(167, 139, 250, 0.21);
}

.trust-points article:nth-child(5) > span {
  background: rgba(182, 255, 106, 0.46);
}

.trust-points h3 {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 950;
}

.trust-points p {
  margin-top: 9px;
  color: rgba(21, 21, 21, 0.66);
  font-size: 14px;
  line-height: 1.58;
  font-weight: 680;
}

.family-faq {
  padding-block: clamp(115px, 11vw, 170px) !important;
  background: var(--family-surface);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(70px, 9vw, 130px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 132px;
}

.faq-heading h2 {
  max-width: 8ch;
}

.family-faq-list {
  display: grid;
  gap: 12px;
}

.family-faq details {
  border-radius: 20px;
  border: 1px solid var(--family-line);
  background: var(--family-background);
  box-shadow: none;
}

.family-faq summary {
  min-height: 70px;
  padding: 12px 22px;
  font-size: 17px;
  line-height: 1.35;
}

.family-faq summary::after {
  background: var(--family-yellow);
}

.family-faq details p {
  max-width: 70ch;
  padding: 0 22px 24px;
  color: var(--family-muted);
  font-size: 16px;
  line-height: 1.7;
}

.family-final {
  padding-block: 0 clamp(72px, 8vw, 112px) !important;
  background: var(--family-surface);
}

.family-final-inner {
  min-height: 390px;
  padding: 62px clamp(32px, 6vw, 86px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 78% 44%, rgba(182, 255, 106, 0.3), transparent 28%),
    linear-gradient(110deg, #fff2aa, var(--family-yellow));
}

.family-final h2 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.family-final p {
  margin-top: 20px;
  color: rgba(21, 21, 21, 0.66);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 750;
}

.family-final .family-button {
  margin-top: 30px;
  background: var(--family-surface);
  box-shadow: 0 16px 32px rgba(131, 98, 17, 0.16);
}

.family-final img {
  width: min(100%, 390px);
  justify-self: end;
  align-self: end;
  transform: translateY(45px);
  filter: drop-shadow(0 25px 24px rgba(115, 78, 16, 0.16));
}

.family-footer {
  padding: 62px 0 68px;
  background: #fff3b9;
  color: var(--family-text);
}

.family-footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 54px;
}

.family-footer-brand {
  min-height: 44px;
}

.family-footer p {
  margin-top: 12px;
  color: rgba(21, 21, 21, 0.56);
  font-size: 14px;
  font-weight: 750;
}

.family-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.family-footer nav a {
  min-height: 44px;
  padding-inline: 6px;
  display: inline-flex;
  align-items: center;
  color: rgba(21, 21, 21, 0.64);
  font-size: 14px;
  font-weight: 850;
}

.family-footer nav a:hover,
.family-footer nav a[aria-current="page"] {
  color: var(--family-text);
}

.family-js .family-page .section-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.family-js .family-page .section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .family-header {
    grid-template-columns: 1fr auto auto;
    gap: 14px;
  }

  .family-nav {
    display: none;
  }

  .family-mobile-nav {
    display: block;
  }

  .family-hero-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
    gap: 48px;
  }

  .family-hero-copy h1 {
    font-size: clamp(52px, 5.8vw, 68px);
  }

  .presence-layout,
  .moments-layout,
  .faq-layout {
    gap: 64px;
  }

  .trust-layout {
    grid-template-columns: 1fr;
  }

  .trust-heading h2 {
    max-width: 12ch;
  }
}

@media (max-width: 900px) {
  .family-hero {
    padding-block: 90px 130px !important;
  }

  .family-hero-layout {
    grid-template-columns: 1fr;
    gap: 76px;
  }

  .family-hero-copy {
    max-width: 720px;
  }

  .family-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(58px, 8.4vw, 76px);
  }

  .family-hero-art {
    width: min(100%, 680px);
    min-height: 500px;
    margin-inline: auto;
  }

  .presence-layout,
  .moments-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 66px;
  }

  .presence-intro,
  .faq-heading {
    position: static;
  }

  .presence-intro h2,
  .moments-heading h2,
  .faq-heading h2 {
    max-width: 12ch;
  }

  .family-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 78px;
  }

  .flow-copy {
    min-height: 120px;
  }

  .moment-stories {
    gap: 18px;
  }

  .trust-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 38px;
  }
}

@media (max-width: 680px) {
  .family-header {
    min-height: 70px;
    padding: 10px 18px;
    gap: 12px;
  }

  .family-brand {
    font-size: 18px;
  }

  .family-brand img {
    width: 38px;
    height: 38px;
  }

  .family-nav-cta {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .family-mobile-nav summary {
    padding-inline: 12px;
  }

  .family-hero {
    min-height: auto;
    padding-block: 74px 104px !important;
  }

  .family-hero-layout {
    gap: 64px;
  }

  .family-hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(47px, 13.5vw, 62px);
    line-height: 0.99;
  }

  .family-hero-copy > p {
    margin-top: 26px;
    font-size: 18px;
    line-height: 1.56;
  }

  .family-actions {
    margin-top: 34px;
    display: grid;
  }

  .family-button {
    width: 100%;
    min-height: 56px;
  }

  .family-hero-art {
    min-height: 410px;
  }

  .family-session-card {
    right: auto;
    bottom: 18px;
    left: 18px;
    width: min(calc(100% - 36px), 350px);
    min-height: 96px;
    padding: 18px;
  }

  .family-session-card strong {
    font-size: 15px;
  }

  .family-hero-image {
    aspect-ratio: 4 / 3;
    object-position: 54% center;
    border-radius: 34px 34px 72px 34px;
  }

  .family-section-heading h2 {
    font-size: clamp(39px, 10.8vw, 52px);
  }

  .family-section-heading p {
    margin-top: 20px;
    font-size: 17px;
  }

  .family-section-heading-row {
    align-items: start;
    flex-direction: column;
    gap: 28px;
  }

  .rail-controls {
    align-self: flex-end;
  }

  .family-rituals {
    padding-block: 96px 110px !important;
  }

  .ritual-rail {
    width: calc(100vw - var(--family-gutter));
    margin-top: 54px;
    grid-auto-columns: minmax(278px, 78vw);
    gap: 18px;
  }

  .ritual-art {
    height: 230px;
  }

  .family-presence,
  .family-flow,
  .family-moments,
  .family-faq {
    padding-block: 104px !important;
  }

  .presence-layout,
  .moments-layout,
  .faq-layout {
    gap: 58px;
  }

  .presence-principles {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .presence-principles article {
    min-height: auto;
  }

  .family-flow-grid {
    margin-top: 72px;
    grid-template-columns: 1fr;
    gap: 84px;
  }

  .family-flow-grid li {
    max-width: 330px;
    margin-inline: auto;
  }

  .flow-copy {
    min-height: auto;
    margin-bottom: 28px;
  }

  .moment-stories {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .moment-art {
    height: 270px;
  }

  .family-trust {
    padding-bottom: 100px !important;
  }

  .trust-layout {
    width: calc(100% - 28px);
    padding: 48px 24px;
    gap: 50px;
    border-radius: 34px;
  }

  .trust-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 18px;
  }

  .trust-points article:last-child {
    grid-column: 1 / -1;
    max-width: 180px;
    justify-self: center;
  }

  .trust-points p {
    font-size: 15px;
  }

  .family-faq summary {
    min-height: 66px;
    padding: 12px 18px;
    font-size: 16px;
  }

  .family-faq details p {
    padding-inline: 18px;
    font-size: 16px;
  }

  .family-final-inner {
    width: calc(100% - 28px);
    min-height: 660px;
    padding: 50px 24px 0;
    grid-template-columns: 1fr;
    text-align: center;
    border-radius: 34px;
  }

  .family-final h2 {
    font-size: 44px;
  }

  .family-final img {
    width: min(100%, 310px);
    justify-self: center;
    transform: translateY(36px);
  }

  .family-footer {
    padding: 58px 0 48px;
  }

  .family-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 38px;
  }

  .family-footer nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .family-footer nav a {
    min-height: 48px;
  }
}

@media (max-width: 390px) {
  .family-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .family-nav-cta {
    max-width: 124px;
    text-align: center;
    line-height: 1.15;
  }

  .family-hero-copy h1 {
    font-size: 46px;
  }

  .family-session-card {
    width: calc(100% - 28px);
    left: 14px;
    bottom: 14px;
  }

  .family-session-card > span {
    display: none;
  }

  .family-hero-art {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-js .family-page .section-reveal {
    opacity: 1;
    transform: none;
  }
}
