:root {
  --paper: #fbfaf7;
  --paper-deep: #f3efe8;
  --ink: #182623;
  --ink-light: #43524f;
  --ink-muted: #687774;
  --forest: #172d27;
  --plum: #4c385f;
  --gold: #f3be4d;
  --gold-pale: #ffe6a5;
  --accent: #4c385f;
  --accent-light: #8f6fb2;
  --accent-pale: #f4eff8;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

body:not(.family-shell)::before,
body:not(.family-shell)::after {
  content: none;
  display: none;
}

body:not(.family-shell)::before {
  background: transparent;
}

body:not(.family-shell)::after {
  content: none;
}

[data-family-shell-content] {
  visibility: hidden;
}

[data-family-shell-content][data-auth-visible="true"],
.family-shell-authenticated [data-family-shell-content] {
  visibility: visible;
}

body.family-shell {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  margin: 0;
  min-height: 100vh;
}

.family-shell *,
.family-shell *::before,
.family-shell *::after {
  box-sizing: border-box;
}

body.family-shell a {
  color: inherit;
}

.family-shell .top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px) saturate(1.04);
  padding: 9px clamp(14px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 36px rgba(24, 38, 35, 0.10);
}

.family-shell .back-link,
.family-shell .brand-link {
  text-decoration: none;
  color: var(--ink-light);
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0 8px 0 4px;
  border-radius: 8px;
  white-space: nowrap;
}

.family-shell .brand-link {
  color: var(--ink);
}

.family-shell .nav-brand-mark,
.family-shell .nav-back-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  background: var(--paper-deep);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(24, 38, 35, 0.10);
}

.family-shell .nav-home-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-shell .nav-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.family-shell .nav-status {
  justify-self: center;
  min-height: 40px;
  max-width: min(560px, 48vw);
  padding: 0 13px;
  border: 1px solid rgba(24, 38, 35, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(24, 38, 35, 0.08);
  backdrop-filter: blur(14px) saturate(1.08);
  color: var(--ink-light);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.family-shell .nav-status-place,
.family-shell .nav-status-item {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
}

.family-shell .nav-status-place {
  color: var(--ink);
}

.family-shell .nav-weather {
  max-width: 170px;
}

.family-shell .nav-weather[data-state="muted"] {
  color: var(--ink-muted);
}

.family-shell .nav-status-divider {
  width: 1px;
  height: 18px;
  flex: 0 0 1px;
  background: rgba(24, 38, 35, 0.12);
}

.family-shell .user-info {
  display: none;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  justify-self: end;
  min-width: 0;
}

.family-shell .user-avatar,
.family-shell .user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
}

.family-shell .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-shell .user-info > img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 34px;
  display: block;
}

.family-shell .sign-out {
  background: white;
  border: 1px solid rgba(24, 38, 35, 0.12);
  color: var(--ink-light);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.family-shell .loading-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.family-shell .loading-gate.hidden {
  display: none;
}

.family-shell .loading-gate.auth-denied:not(.hidden) {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.78) 44%, rgba(251, 250, 247, 0.22) 100%),
    var(--hero-image, url('/assets/heroes/family-hub-hero-2026.webp')) var(--hero-position, center) / cover no-repeat;
  display: flex;
}

.family-shell .loading-box {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  text-align: center;
  box-shadow: 0 18px 48px rgba(11, 24, 21, 0.14);
  backdrop-filter: blur(12px);
}

.family-shell .loading-box h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1;
  margin-bottom: 10px;
}

.family-shell .loading-box p {
  color: var(--ink-light);
}

.family-shell .auth-error {
  color: #9b2c2c;
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.family-shell .auth-error:not(:empty) {
  display: block;
}

.family-shell .sign-out-btn {
  background: var(--forest);
  color: white;
  border: 0;
  padding: 12px 18px;
  border-radius: 8px;
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  margin-top: 16px;
  display: none;
}

.family-shell .auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.86) 34%, rgba(251, 250, 247, 0.28) 58%, rgba(251, 250, 247, 0.06) 100%),
    var(--hero-image, url('/assets/heroes/family-hub-hero-2026.webp')) var(--hero-position, center)/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 6vw, 72px);
}

.family-shell .auth-overlay.hidden {
  display: none;
}

.family-shell .auth-card {
  width: min(420px, 100%);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  text-align: center;
  border: 1px solid rgba(24, 38, 35, 0.08);
  backdrop-filter: blur(14px);
}

.family-shell .auth-content {
  padding: clamp(30px, 5vw, 44px) clamp(26px, 5vw, 40px);
}

.family-shell .auth-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.65rem);
  line-height: 1;
  margin: 0 0 8px;
  color: var(--ink);
}

.family-shell .auth-location,
.family-shell .eyebrow,
.family-shell .section-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.family-shell .auth-location {
  color: var(--accent);
  margin-bottom: 12px;
}

.family-shell .auth-tagline {
  color: var(--ink-light);
  margin-bottom: 26px;
}

.family-shell .google-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(24, 38, 35, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 0.95rem var(--font-body);
}

.family-shell .google-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.family-shell .google-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .family-shell .auth-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.04) 0%, rgba(251, 250, 247, 0.58) 46%, rgba(251, 250, 247, 0.98) 100%),
      var(--hero-image, url('/assets/heroes/family-hub-hero-2026.webp')) var(--hero-mobile-position, center)/cover no-repeat;
  }

  .family-shell .auth-card {
    width: min(100%, 420px);
    max-width: calc(100vw - 40px);
  }

  .family-shell .auth-title {
    font-size: clamp(1.85rem, 7vw, 2.1rem);
  }
}

.family-shell .hero {
  width: min(1120px, calc(100% - clamp(28px, 8vw, 104px)));
  min-height: clamp(300px, 34vw, 360px);
  margin: clamp(24px, 5vw, 42px) auto 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 39%, rgba(255, 255, 255, 0.32) 68%, rgba(255, 255, 255, 0.06) 100%),
    var(--hero-image, url('/assets/heroes/family-hub-hero-2026.webp')) var(--hero-position, center) / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  padding: clamp(34px, 6vw, 58px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(118, 101, 76, 0.18);
}

.family-shell .hero::after {
  content: none;
}

.family-shell .hero-content {
  width: min(620px, 100%);
  max-width: none;
  color: var(--ink);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.82);
}

.family-shell .hero-content::before {
  content: none;
}

.family-shell .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}

.family-shell .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 8vw, 5.2rem);
  line-height: 0.88;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  margin: 0 0 22px;
  color: var(--ink);
}

.family-shell .hero p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.5;
  max-width: 560px;
  color: var(--ink-light);
}

.family-shell .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.family-shell .hero-link,
.family-shell .age-badge {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.family-shell .hero-link {
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(118, 101, 76, 0.16);
}

.family-shell .age-badge {
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  text-shadow: none;
}

.family-shell .album-bar {
  width: min(1120px, calc(100% - clamp(28px, 8vw, 104px)));
  margin: 34px auto 0;
  padding: clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(118, 101, 76, 0.08);
  backdrop-filter: blur(10px) saturate(1.04);
}

.family-shell .album-stat {
  padding: 2px clamp(14px, 3vw, 24px);
  border-right: 1px solid rgba(24, 38, 35, 0.10);
}

.family-shell .album-stat:last-child {
  border-right: 0;
}

.family-shell .album-stat strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.family-shell .album-stat span {
  display: block;
  margin-top: 6px;
  color: var(--ink-light);
  line-height: 1.35;
  font-weight: 700;
}

.family-shell main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px clamp(18px, 5vw, 48px) 76px;
}

.family-shell .section-header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.family-shell .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  margin: 10px 0 12px;
}

.family-shell .section-header p {
  color: var(--ink-light);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 720px;
}

.family-shell .section-kicker {
  color: var(--ink-light);
}

.family-shell .sites-grid,
.family-shell .family-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.family-shell .site-card,
.family-shell .card,
.family-shell .member {
  min-width: 0;
  background: white;
  border: 1px solid rgba(24, 38, 35, 0.10);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 38, 35, 0.06);
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.family-shell .site-card {
  padding: 24px;
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 13px;
}

.family-shell .site-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(24, 38, 35, 0.10);
}

.family-shell .site-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.family-shell .site-card h3,
.family-shell .card h2,
.family-shell .member-name {
  font-family: var(--font-display);
}

.family-shell .site-card h3 {
  font-size: 1.42rem;
  line-height: 1.08;
}

.family-shell .site-card p,
.family-shell .card p,
.family-shell .member-role {
  color: var(--ink-light);
  line-height: 1.55;
}

.family-shell .status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.family-shell .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.family-shell .family-section {
  margin-top: 62px;
}

.family-shell .family-members {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-shell .member {
  padding: 22px 18px;
  text-align: center;
}

.family-shell .member-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--accent-pale);
}

.family-shell .member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-shell .member-name {
  font-size: 1.14rem;
  font-weight: 700;
}

.family-shell .member-role {
  margin-top: 4px;
  font-size: 0.88rem;
}

.family-shell .coming-soon {
  box-sizing: border-box;
  max-width: 820px;
  margin: 34px auto 0;
  padding: 0 clamp(18px, 5vw, 48px) 76px;
  position: relative;
  z-index: 2;
}

.family-shell .card {
  padding: clamp(30px, 5vw, 48px);
}

.family-shell .card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ink);
}

.family-shell .features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.family-shell .feature {
  background: var(--accent-pale);
  color: var(--accent);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.86rem;
}

.family-shell footer,
.family-shell .footer {
  width: min(1080px, calc(100% - clamp(24px, 8vw, 104px)));
  margin: 0 auto clamp(18px, 4vw, 34px);
  padding: 26px clamp(20px, 4vw, 34px);
  color: var(--ink-light);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 16px 44px rgba(11, 24, 21, 0.14);
  backdrop-filter: blur(16px) saturate(1.04);
}

.family-shell footer a,
.family-shell .footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
}

.family-shell .footer-inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.family-shell .footer-brand {
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: left;
}

.family-shell .footer-brand a {
  width: fit-content;
  min-height: auto;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.family-shell .footer-brand span {
  color: var(--ink-muted);
  font-weight: 700;
  line-height: 1.35;
}

.family-shell .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
}

.family-shell .footer-links a {
  color: var(--ink-light);
  font-size: 0.82rem;
  font-weight: 900;
}

.family-shell .footer-links a:hover,
.family-shell .footer-links a:focus-visible {
  color: var(--ink);
}

.family-app-hero {
  position: relative;
  width: min(1120px, calc(100% - clamp(28px, 8vw, 104px)));
  min-height: clamp(300px, 34vw, 360px);
  margin: clamp(24px, 5vw, 42px) auto 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(118, 101, 76, 0.18);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.family-app-hero::after {
  content: none;
}

.recipe-app-hero {
  background-image: url('/assets/heroes/recipes-hero-2026.webp');
  background-position: center center;
}

.family-app-hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-width: none;
  color: var(--ink, #182623);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.82);
}

.family-app-hero-content::before {
  content: none;
}

.family-app-eyebrow {
  margin-bottom: 18px;
  color: var(--accent, #4c385f);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.family-app-hero h1 {
  margin: 0 0 18px;
  color: var(--ink, #182623);
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(3.25rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
}

.family-app-hero p:not(.family-app-eyebrow) {
  max-width: 560px;
  color: var(--ink-light, #43524f);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.5;
}

.family-app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.family-app-button,
.family-app-badge {
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.family-app-button {
  background: white;
  color: var(--ink, #182623);
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(118, 101, 76, 0.16);
}

.family-app-badge {
  color: var(--ink, #182623);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  text-shadow: none;
}

.family-app-statbar {
  width: min(1120px, calc(100% - clamp(28px, 8vw, 104px)));
  margin: 34px auto 0;
  padding: clamp(18px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink, #182623);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(118, 101, 76, 0.08);
  backdrop-filter: blur(10px) saturate(1.04);
}

.family-app-statbar > div {
  padding: 2px clamp(14px, 3vw, 24px);
  border-right: 1px solid rgba(24, 38, 35, 0.10);
}

.family-app-statbar > div:last-child {
  border-right: 0;
}

.family-app-statbar strong {
  display: block;
  color: var(--accent, #4c385f);
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.family-app-statbar span {
  display: block;
  margin-top: 6px;
  color: var(--ink-light, #43524f);
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 860px) {
  .family-shell .top-nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }

  .family-shell .nav-status {
    display: none;
  }

  .family-shell .album-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-shell .section-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .family-shell .family-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .family-shell .top-nav {
    padding: 10px 14px;
    min-height: 58px;
    gap: 8px;
  }

  .family-shell .brand-link,
  .family-shell .back-link {
    min-width: 0;
  }

  .family-shell .hero {
    width: min(100% - 28px, 640px);
    min-height: 420px;
    margin-top: 18px;
    padding: 32px 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.74) 50%, rgba(255, 255, 255, 0.94) 100%),
      var(--hero-image, url('/assets/heroes/family-hub-hero-2026.webp')) var(--hero-mobile-position, center) / cover no-repeat;
  }

  .family-shell .hero-content::before {
    content: none;
  }

  .family-shell .hero h1 {
    font-size: clamp(3rem, 18vw, 4.2rem);
  }

  .family-shell .hero-actions {
    align-items: stretch;
  }

  .family-shell .hero-link,
  .family-shell .age-badge {
    width: 100%;
  }

  .family-shell .album-stat {
    padding: 12px 10px;
  }

  .family-shell main {
    padding-top: 42px;
  }

  .family-shell .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .family-shell .footer-brand {
    text-align: center;
    justify-items: center;
  }

  .family-shell .footer-links {
    justify-content: center;
  }

  .family-shell .coming-soon {
    padding-bottom: 54px;
  }

  .family-shell .album-bar,
  .family-shell .footer {
    width: min(100% - 28px, 640px);
  }

  .family-app-hero {
    width: min(100% - 28px, 640px);
    min-height: 420px;
    margin-top: 18px;
    padding: 32px 20px;
    background-position: var(--hero-mobile-position, center);
  }

  .recipe-app-hero {
    background-position: 68% center;
  }

  .family-app-hero-content::before {
    content: none;
  }

  .family-app-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .family-app-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-app-statbar {
    width: min(100% - 28px, 640px);
  }
}

@media (max-width: 520px) {
  .family-app-hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .family-app-statbar {
    grid-template-columns: 1fr;
  }

  .family-app-statbar > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
