/* Spitzfeder English landings — editorial clarity, in step with the app */
.ancestry-page {
  --landing-blue: var(--color-ink-blue);
  --landing-blue-hover: var(--color-ink-blue-hover);
  --landing-line: var(--color-paper-dark);
  --landing-surface: var(--color-white);
}

.ancestry-page .site-header {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: rgba(220, 220, 220, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ancestry-page .landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 510px;
  padding: clamp(4.25rem, 8vw, 7rem) 1.5rem clamp(3.75rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-paper) 100%);
}

.ancestry-page .landing-letter {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .09;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, transparent 100%);
}

.ancestry-page .landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.ancestry-page .landing-hero .landing-wrap { max-width: 1100px; }

.ancestry-page .landing-kicker,
.ancestry-page .landing-eyebrow {
  color: var(--color-ink-blue);
  font-family: var(--font-ui);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .075em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ancestry-page .landing-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.2rem;
}

.ancestry-page .landing-kicker::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.ancestry-page .landing-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(2.65rem, 5.2vw, 4.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.ancestry-page .landing-hero h1 em,
.ancestry-page .landing-section h2 em {
  color: var(--color-ink-blue);
  font-style: italic;
}

.ancestry-page .landing-lede {
  max-width: 590px;
  margin: 1.25rem 0 1.65rem;
  color: var(--color-slate-600);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.72;
}

.ancestry-page .landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.ancestry-page .landing-actions .btn-primary {
  background: var(--color-ink-blue);
  box-shadow: none;
}

.ancestry-page .landing-actions .btn-primary:hover {
  background: var(--color-ink-blue-hover);
}

.ancestry-page .landing-actions .btn-secondary {
  background: rgba(255,255,255,.82);
  border-color: var(--color-paper-dark);
}

.ancestry-page .landing-hero .store-badges {
  justify-content: flex-start;
  margin-top: 1.15rem;
}

.ancestry-page .store-price-note {
  max-width: 500px;
  margin-top: .55rem;
  color: var(--color-slate-500);
  font-size: .78rem;
  line-height: 1.55;
}

.ancestry-page .landing-section {
  padding: clamp(3.6rem, 7vw, 6rem) 1.5rem;
}

.ancestry-page .landing-section--white { background: var(--color-white); }

.ancestry-page .landing-section--ink {
  color: var(--color-ink);
  background: var(--color-paper);
  border-top: 1px solid rgba(20, 55, 120, .07);
  border-bottom: 1px solid rgba(20, 55, 120, .07);
}

.ancestry-page .landing-section--ink h2,
.ancestry-page .landing-section--ink h3 { color: var(--color-ink); }
.ancestry-page .landing-section--ink p { color: var(--color-slate-600); }
.ancestry-page .landing-section--ink .landing-eyebrow { color: var(--color-ink-blue); }

.ancestry-page .landing-section h2 {
  max-width: 720px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.ancestry-page .landing-intro {
  max-width: 680px;
  margin-top: 1.05rem;
  color: var(--color-slate-600);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.78;
}

.ancestry-page .ancestry-timeline {
  max-width: 890px;
  margin: 2.8rem auto 0;
  border-left: 1px solid var(--landing-line);
}

.ancestry-page .timeline-item {
  position: relative;
  padding: 0 0 2.35rem 2rem;
}

.ancestry-page .timeline-item:last-child { padding-bottom: 0; }

.ancestry-page .timeline-item::before {
  position: absolute;
  top: .42rem;
  left: -.33rem;
  width: .6rem;
  height: .6rem;
  border: 2px solid var(--color-ink-blue);
  border-radius: 50%;
  background: var(--color-white);
  content: "";
}

.ancestry-page .timeline-year {
  display: block;
  margin-bottom: .2rem;
  color: var(--color-ink-blue);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.ancestry-page .timeline-item h3 {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
}

.ancestry-page .timeline-item p {
  max-width: 650px;
  margin-top: .35rem;
  color: var(--color-slate-600);
  line-height: 1.72;
}

.ancestry-page .letter-pullquote {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  text-align: center;
}

.ancestry-page .letter-pullquote blockquote {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.55rem);
  font-style: italic;
  line-height: 1.27;
}

.ancestry-page .letter-pullquote cite {
  display: block;
  margin-top: 1rem;
  color: var(--color-slate-500);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-style: normal;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ancestry-page .learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ancestry-page .learning-list {
  margin-top: 1.5rem;
  list-style: none;
}

.ancestry-page .learning-list li {
  position: relative;
  padding: .85rem 0 .85rem 1.35rem;
  border-bottom: 1px solid var(--landing-line);
  color: var(--color-slate-600);
}

.ancestry-page .learning-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-ink-blue);
  content: "—";
}

.ancestry-page .app-frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: .55rem;
  border: 1px solid var(--landing-line);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(35, 48, 68, .08);
}

.ancestry-page .app-frame img { display: block; border-radius: 7px; }
.ancestry-page .app-frame figcaption { padding: .75rem .45rem .2rem; color: var(--color-slate-500); font-size: .78rem; text-align: center; }

/* Video appears immediately after the hero in the revised landing-page flow. */
.ancestry-page .landing-video-feature {
  padding: clamp(2.75rem, 5.5vw, 4.75rem) 1.5rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--landing-line);
}

.ancestry-page .landing-video-feature .landing-wrap { max-width: 1100px; }
.ancestry-page .landing-video-feature .landing-eyebrow { margin-bottom: .55rem; }
.ancestry-page .landing-video-feature h2 {
  max-width: 760px;
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
}
.ancestry-page .landing-video-feature .landing-intro { max-width: 750px; margin-top: .7rem; }

.ancestry-page .video-shell {
  max-width: 1000px;
  margin: 1.8rem auto 0;
}

.ancestry-page .video-consent {
  position: relative;
  display: flex;
  min-height: clamp(270px, 45vw, 520px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 4rem);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(20, 44, 88, .91), rgba(23, 57, 112, .69)),
    var(--color-ink-blue);
  color: var(--color-white);
  text-align: center;
  isolation: isolate;
}

.ancestry-page .video-consent::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,255,255,.14), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.025) 29px 30px);
  content: "";
}

.ancestry-page .video-consent h3 {
  max-width: 660px;
  margin-bottom: .55rem;
  color: inherit;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
}

.ancestry-page .video-consent p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: rgba(255,255,255,.84);
  font-family: var(--font-ui);
  font-size: .95rem;
  line-height: 1.7;
}

.ancestry-page .video-consent button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .8rem 1.35rem;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-ink-blue);
  font: 600 .94rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.ancestry-page .video-consent button::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  content: "";
}

.ancestry-page .video-consent button:hover {
  transform: translateY(-2px);
  background: var(--color-ink-blue-light);
  color: var(--color-ink-blue-hover);
}

.ancestry-page .video-consent button:focus-visible {
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 4px;
}

.ancestry-page .video-note {
  margin-top: .65rem;
  color: var(--color-slate-500);
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}

.ancestry-page .video-loaded { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: 12px; background: var(--color-ink); }
.ancestry-page .video-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ancestry-page .video-loaded--portrait {
  width: min(100%, 405px);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  padding-top: 0;
}

.ancestry-page .landing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.ancestry-page .landing-card {
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--landing-line);
  border-radius: 9px;
  background: rgba(255,255,255,.68);
}

.ancestry-page .landing-card h3 {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.ancestry-page .landing-card p {
  margin-top: .45rem;
  color: var(--color-slate-600);
  font-size: .92rem;
  line-height: 1.7;
}

.ancestry-page .source-note {
  max-width: 840px;
  margin: 2.5rem auto 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--color-ink-blue);
  background: rgba(255,255,255,.62);
  color: var(--color-slate-600);
  font-size: .88rem;
  line-height: 1.65;
}

.ancestry-page .source-note strong { color: var(--color-ink); }
.ancestry-page .practical-faq { max-width: 820px; margin: 2.4rem auto 0; }
.ancestry-page .practical-faq details { border-bottom: 1px solid var(--landing-line); }
.ancestry-page .practical-faq summary { padding: 1rem 0; color: var(--color-ink); cursor: pointer; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.ancestry-page .practical-faq summary:focus-visible { outline: 2px solid var(--color-ink-blue); outline-offset: 3px; }
.ancestry-page .practical-faq p { max-width: 720px; padding: 0 0 1.15rem; color: var(--color-slate-600); line-height: 1.75; }
.ancestry-page .landing-download { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; max-width: 900px; margin: 0 auto; }
.ancestry-page .landing-download h2 { max-width: 520px; }
.ancestry-page .landing-download .store-badges { justify-content: flex-start; }
.ancestry-page #free-materials .landing-resource-cards { margin-top: 1.8rem; }

@media (max-width: 700px) {
  .ancestry-page .landing-hero { min-height: 0; padding: 3.25rem 1.25rem 3rem; }
  .ancestry-page .landing-hero h1 { max-width: 580px; font-size: clamp(2.55rem, 11vw, 3.7rem); }
  .ancestry-page .landing-lede { font-size: 1rem; }
  .ancestry-page .landing-section { padding: 3.5rem 1.25rem; }
  .ancestry-page .learning-layout,
  .ancestry-page .landing-cards { grid-template-columns: 1fr; }
  .ancestry-page .learning-layout { gap: 2.5rem; }
  .ancestry-page #free-materials .step-card--split { flex-direction: column; }
  .ancestry-page #free-materials .step-card-divider { width: auto; height: 1px; margin: 0 1.5rem; }
  .ancestry-page .app-frame { max-width: 300px; }
  .ancestry-page .landing-video-feature { padding: 3rem 1.25rem; }
  .ancestry-page .video-consent { min-height: 300px; }
  .ancestry-page .landing-download { align-items: flex-start; }
}

@media (max-width: 420px) {
  .ancestry-page .landing-actions { align-items: stretch; flex-direction: column; }
  .ancestry-page .landing-actions .btn { justify-content: center; }
  .ancestry-page .landing-hero .store-badges { gap: .55rem; }
  .ancestry-page .landing-hero .appstore-badge,
  .ancestry-page .landing-hero .playstore-badge { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ancestry-page *,
  .ancestry-page *::before,
  .ancestry-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}