/* Homepage: make the two commercial services explicit and keep proof secondary. */
.home-commercial .topbar-stats { display: none; }
.home-commercial .site-hero {
  position: relative;
  width: 100%;
  min-height: min(650px, calc(100svh - 132px));
  margin: 0;
  padding: 78px max(20px, calc((100vw - 1180px) / 2)) 72px;
  align-items: center;
  background: #172a20 url("/assets/home-hero-genealogy-memoir-v1.webp") center / cover no-repeat;
}
.home-commercial .site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, rgba(12,25,18,.96) 0%, rgba(12,25,18,.90) 36%, rgba(12,25,18,.48) 64%, rgba(12,25,18,.12) 100%);
}
.home-commercial .site-hero::after { display: none; }
.home-commercial .site-hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  margin: 0;
}
.home-commercial .site-hero .eyebrow { margin-bottom: 14px; color: #efd399; font-size: 15px; }
.home-commercial .site-hero h1 { max-width: 700px; margin-bottom: 22px; font-size: 60px; line-height: 1.08; }
.home-commercial .site-hero h1 span { white-space: normal; }
.home-commercial .hero-lines { gap: 5px; font-size: 20px; font-weight: 650; line-height: 1.65; }
.home-commercial .hero-lines span { white-space: normal; }
.home-commercial .site-hero .button { min-height: 48px; padding: 0 20px; border-radius: 6px; box-shadow: none; }
.home-commercial .site-hero .button.primary { border-color: #a9342e; background: #a9342e; }
.home-commercial .site-hero .button.secondary { border-color: #fff; color: #203a29; background: #fff; }

/* Personal center uses a larger, reading-first type scale for repeat family use. */
.workspace-nav button { font-size: 16px; }
.workspace-user strong { font-size: 16px; }
.workspace-user span { font-size: 14px; }
[data-workspace-view="profile"] { font-size: 16px; line-height: 1.7; }
[data-workspace-view="profile"] .panel-head h2 { font-size: 30px; }
[data-workspace-view="profile"] .panel-head p,
[data-workspace-view="profile"] .profile-identity-strip p,
[data-workspace-view="profile"] .profile-save-bar p { font-size: 15px; }
[data-workspace-view="profile"] .profile-kicker,
[data-workspace-view="profile"] .profile-completeness span,
[data-workspace-view="profile"] .account-stats span,
[data-workspace-view="profile"] .profile-section-title > span,
[data-workspace-view="profile"] .profile-section-title p,
[data-workspace-view="profile"] small { font-size: 14px !important; }
[data-workspace-view="profile"] .profile-identity-strip h3 { font-size: 22px; }
[data-workspace-view="profile"] .profile-section-title h3 { font-size: 19px; }
[data-workspace-view="profile"] .profile-avatar-upload strong { font-size: 16px; }
[data-workspace-view="profile"] .profile-avatar-upload .profile-avatar-copy > p:first-of-type { font-size: 14px; }
[data-workspace-view="profile"] .account-profile-form label,
[data-workspace-view="profile"] .profile-checkbox { font-size: 15px; }
[data-workspace-view="profile"] input,
[data-workspace-view="profile"] select,
[data-workspace-view="profile"] textarea { font-size: 16px; line-height: 1.6; }
[data-workspace-view="profile"] .button,
[data-workspace-view="profile"] button { font-size: 16px; }
[data-workspace-view="profile"] .profile-save-bar a,
[data-workspace-view="profile"] .form-status { font-size: 15px; }

.points-panel { display: grid; gap: 0; }
.points-panel-head { align-items: end; margin-bottom: 24px; }
.points-panel-head .button { flex: 0 0 auto; }
.points-balance { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(420px, 1.25fr); overflow: hidden; border: 1px solid #d8dfda; border-top: 3px solid #18382b; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(25, 42, 32, .08); }
.points-total { grid-row: 1 / 3; display: grid; align-content: center; justify-items: start; min-height: 156px; padding: 30px 34px; color: #fff; background: #18382b; }
.points-total span { color: #d9e5dc; font-size: 12px; font-weight: 800; }
.points-total strong { margin-top: 4px; font-family: "Songti SC", "STSong", serif; font-size: 46px; line-height: 1.1; }
.points-total small { margin-top: 5px; color: #efd296; font-size: 12px; }
.points-balance dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.points-balance dl div { display: grid; gap: 7px; padding: 28px 24px; border-bottom: 1px solid #d8dfda; }
.points-balance dl div + div { border-left: 1px solid #d8dfda; }
.points-balance dt { color: #6d756f; font-size: 12px; }
.points-balance dd { margin: 0; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.points-balance > p { margin: 0; padding: 15px 24px; color: #6d756f; background: #fafbf9; font-size: 12px; }
.points-section-head { display: flex; align-items: end; justify-content: space-between; margin: 30px 0 14px; }
.points-section-head h3 { margin: 0; font-size: 20px; }
.points-section-head p { margin: 5px 0 0; color: #6d756f; font-size: 13px; }
.points-packages { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.points-package { min-height: 210px; display: flex; flex-direction: column; padding: 20px; border: 1px solid #d8dfda; border-radius: 6px; background: #fff; }
.points-package > span { color: #6d756f; font-size: 12px; font-weight: 800; }
.points-package > strong { margin: 12px 0 3px; color: #18382b; font-family: "Songti SC", "STSong", serif; font-size: 30px; }
.points-package > strong small { margin-right: 2px; font-size: 16px; }
.points-package > p { margin: 0; font-size: 13px; font-weight: 800; }
.points-package .button { width: 100%; margin-top: auto; }
.points-orders { border-top: 1px solid #d8dfda; }
.points-order { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #d8dfda; }
.points-order > div { display: grid; gap: 4px; }
.points-order strong { font-size: 14px; }
.points-order small { color: #6d756f; font-size: 12px; }
.points-order > span { padding: 4px 8px; border-radius: 3px; color: #6d756f; background: #edf0ee; font-size: 11px; font-weight: 800; }
.points-order > span[data-status="paid"], .points-order > span[data-status="succeeded"] { color: #315d45; background: #e6f0e8; }
.points-order > span[data-status="failed"] { color: #9e3c34; background: #f6e9e7; }
.points-empty { padding: 34px; border: 1px dashed #bac5be; color: #6d756f; text-align: center; }
.points-payment-dialog { width: min(500px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 24px 70px rgba(15, 28, 19, .28); }
.points-payment-dialog::backdrop { background: rgba(22, 31, 26, .56); backdrop-filter: blur(2px); }
.points-payment-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #d8dfda; }
.points-payment-dialog > header span { color: #a57b39; font-size: 11px; font-weight: 800; }
.points-payment-dialog > header h2 { margin: 3px 0 0; font-size: 20px; }
.points-payment-dialog > header button { width: 38px; height: 38px; border: 1px solid #d8dfda; border-radius: 4px; color: #26322c; background: #fff; font-size: 22px; }
.points-payment-body { display: grid; justify-items: center; padding: 26px 24px 30px; text-align: center; }
.points-payment-qr { width: 244px; height: 244px; display: grid; place-items: center; border: 1px solid #d8dfda; }
.points-payment-qr img { width: 224px; height: 224px; }
.points-payment-body > strong { margin-top: 18px; color: #18382b; font-size: 20px; }
.points-payment-body > p { margin: 8px 0 0; font-weight: 750; }
.points-payment-body > small { max-width: 330px; margin-top: 7px; color: #6d756f; line-height: 1.6; }

@media (max-width: 1000px) {
  .points-packages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .points-panel-head { align-items: stretch; }
  .points-balance { grid-template-columns: 1fr; }
  .points-total { grid-row: auto; min-height: 134px; padding: 24px; }
  .points-total strong { font-size: 38px; }
  .points-balance dl div { padding: 18px 14px; }
  .points-balance > p { padding: 14px 16px; }
  .points-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-package { min-height: 190px; padding: 16px; }
}

@media (max-width: 420px) {
  .points-balance dl { grid-template-columns: 1fr; }
  .points-balance dl div { grid-template-columns: 1fr auto; align-items: center; padding: 13px 16px; }
  .points-balance dl div + div { border-left: 0; }
  .points-package > strong { font-size: 25px; }
  .points-package .button { padding-inline: 8px; font-size: 12px; }
  .points-order { grid-template-columns: 1fr; }
  .points-order > span { justify-self: start; }
}
.home-commercial .site-hero .hero-tertiary { border-color: rgba(255,255,255,.62); color: #fff; background: rgba(16,30,22,.35); }
.home-commercial .hero-delivery-line {
  position: absolute;
  z-index: 1;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 700;
}
.home-commercial .home-business-section { padding-top: 64px; padding-bottom: 58px; }
.home-commercial .home-business-section .section-heading { max-width: 860px; }
.home-business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-business-item { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-business-label { margin: 0; color: var(--red); font-size: 13px; font-weight: 900; }
.home-business-item h3 { margin: 12px 0; color: var(--green); font-size: 29px; line-height: 1.25; }
.home-business-item > p:not(.home-business-label) { margin: 0; color: var(--muted); line-height: 1.8; }
.home-business-item ul { margin: 20px 0 24px; padding-left: 20px; color: #465158; line-height: 1.9; }
.home-business-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.home-business-actions .button { border-radius: 6px; }
.home-business-actions .text-link { color: var(--red); font-weight: 800; }
.home-proof-band {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px max(20px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: #203a29;
}
.home-proof-band div { display: grid; grid-template-columns: auto auto auto; gap: 6px; align-items: baseline; }
.home-proof-band span { grid-column: 1 / -1; color: rgba(255,255,255,.68); font-size: 13px; font-weight: 700; }
.home-proof-band strong { color: #efd399; font-size: 34px; }
.home-proof-band em { color: rgba(255,255,255,.72); font-size: 13px; font-style: normal; }
.home-proof-band p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.75; }

@media (max-width: 900px) {
  .home-commercial .site-hero h1 { font-size: 48px; }
  .home-business-grid { grid-template-columns: 1fr; }
  .home-proof-band { grid-template-columns: repeat(2, auto); }
  .home-proof-band p { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .home-commercial .site-hero {
    min-height: min(590px, calc(100svh - 118px));
    padding: 56px 20px 62px;
    align-items: flex-end;
    background-position: 57% center;
  }
  .home-commercial .site-hero::before { background: linear-gradient(180deg, rgba(12,25,18,.30) 0%, rgba(12,25,18,.73) 38%, rgba(12,25,18,.97) 100%); }
  .home-commercial .site-hero h1 { font-size: 38px; }
  .home-commercial .hero-lines { font-size: 16px; }
  .home-commercial .hero-actions { gap: 8px; }
  .home-commercial .site-hero .button { width: 100%; min-height: 44px; }
  .home-commercial .hero-delivery-line { display: none; }
  .home-commercial .home-business-section { padding-top: 48px; padding-bottom: 44px; }
  .home-business-item { padding: 24px; }
  .home-business-item h3 { font-size: 25px; }
  .home-proof-band { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding-top: 24px; padding-bottom: 24px; }
  .home-proof-band strong { font-size: 28px; }
}
