/* Product navigation stays within the homepage, with immediate anchor jumps. */
html.afterglow { scroll-behavior:auto; }
.landing .primary-nav a { min-height:44px; display:inline-flex; align-items:center; text-decoration:none; touch-action:manipulation; }
.landing .primary-nav a:hover { color:var(--color-accent); text-decoration:underline; text-underline-offset:6px; }
.landing .language-link { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:767px) { .landing .primary-nav { justify-content:flex-start; gap:16px; flex-wrap:wrap; } }

/* Land on the content, not on the section's decorative top spacing.
   Native anchors retain hash/history, keyboard navigation and immediate jumps. */
.landing { --section-anchor-padding:96px; --anchor-clearance:24px; }
.landing .page-section[id] { scroll-margin-top:calc(var(--anchor-clearance) - var(--section-anchor-padding)); }
.landing #how { scroll-margin-top:calc(var(--anchor-clearance) - 80px); }
.landing #in-action { scroll-margin-top:var(--anchor-clearance); }
.landing #competitive-comparison { scroll-margin-top:calc(var(--anchor-clearance) - 64px); }
html[data-preview-tuning] .landing { --section-anchor-padding:calc(96px * var(--preview-section-space,1)); }
@media(max-width:959px) {
  .landing #how { scroll-margin-top:calc(var(--anchor-clearance) - 64px); }
}
@media(max-width:767px) {
  .landing { --section-anchor-padding:64px; }
  .landing #competitive-comparison { scroll-margin-top:calc(var(--anchor-clearance) - 48px); }
  html[data-preview-tuning] .landing { --section-anchor-padding:calc(64px * var(--preview-section-space,1)); }
}
