/*!
 * Landing pages (pages/landing/*.html, wrapped in <main class="pg">).
 * Each page keeps its own design in assets/landing/<name>.css. This sheet only covers what the
 * shared header changes around it: the section sub-nav, anchor offsets and the hero's top padding.
 */

/* In-page section links that used to live in each page's own top bar */
.ds-subnav { position: sticky; top: var(--header-h); z-index: 90; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); font-family: var(--font); }
.ds-subnav__in { display: flex; align-items: center; gap: 4px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.ds-subnav__in::-webkit-scrollbar { display: none; }
.ds-subnav a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--gray-600); white-space: nowrap; transition: background-color .2s, color .2s; }
.ds-subnav a:hover { background: var(--gray-100); color: var(--gray-800); }
.ds-subnav a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 500; }
.ds-subnav a.ds-subnav__cta { margin-left: auto; background: var(--brand-500); color: #fff; font-weight: 500; }
.ds-subnav a.ds-subnav__cta:hover { background: var(--brand-600); }
.ds-subnav a.ds-subnav__hub { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; padding-left: 8px; border-right: 1px solid var(--gray-200); border-radius: 999px 0 0 999px; color: var(--gray-800); font-weight: 500; }
.ds-subnav__hub svg { width: 14px; height: 14px; }
.ds-landing { --subnav-h: 0px; }
.ds-landing:has(.ds-subnav) { --subnav-h: 48px; }
/* Pages set their own offset for the bar they used to have. The shell already pads the scrollport for
   its header (html scroll-padding-top in ds.css), so here only the sub-nav is added. */
.ds-landing .pg [id] { scroll-margin-top: var(--subnav-h) !important; }

/* The wrapper stands in for the page's <body>: it starts from browser defaults (Tailwind's base for
   the pages built on it), not from the shell's type. Zero specificity, so the page's own rules win. */
:where(.pg) { font-family: "Times New Roman", Times, serif; font-size: 16px; line-height: normal; color: #000; -webkit-font-smoothing: auto; text-rendering: auto; overflow-x: clip; }
:where(.pg-tw) { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; line-height: 1.5; }

/* Pages that had a fixed top bar padded their hero to clear it; the shell header is in flow */
.pg > :first-child:is(header, section, div)[class*="pt-32"] { padding-top: 5rem; }
.pg > :first-child:is(header, section, div)[class*="pt-40"], .pg > :first-child:is(header, section, div)[class*="pt-48"] { padding-top: 6rem; }

/* Sign-up popup (ds.js leadPopup): the page's own [data-lead-box] form, lifted into a dialog.
   ds.js paints the dialog with the background of the section the form came from. */
.ds-leadpop { position: fixed; width: min(560px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: inherit; box-shadow: 0 32px 64px -12px rgba(16, 24, 40, .35); overflow-y: auto; overscroll-behavior: contain; }
.ds-leadpop::backdrop { background: rgba(16, 24, 40, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ds-leadpop[open] { animation: ds-leadpop-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ds-leadpop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.ds-leadpop__x { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; cursor: pointer; }
.ds-leadpop__x:hover { background: color-mix(in srgb, currentColor 18%, transparent); }
.ds-leadpop__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ds-leadpop__body { padding: 44px 20px 4px; }
.ds-leadpop__body > [data-lead-box] { width: 100% !important; max-width: none !important; margin: 0 !important; border-color: transparent !important; box-shadow: none !important; }
.ds-leadpop__foot { display: flex; justify-content: center; gap: 4px; padding: 4px 20px 14px; font-family: var(--font); }
.ds-leadpop__foot button { appearance: none; padding: 6px 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: 13.5px; opacity: .6; cursor: pointer; transition: background-color .2s, opacity .2s; }
.ds-leadpop__foot button:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
@media (prefers-reduced-motion: reduce) { .ds-leadpop[open] { animation: none; } }
.ds-leadpop__title { margin: 0; padding: 44px 24px 0; font-family: var(--font); font-size: 20px; line-height: 1.35; font-weight: 600; text-align: center; }
.ds-leadpop__title:not([hidden]) + .ds-leadpop__body { padding-top: 16px; }
/* Scroll-reveal effects (the pages' own .reveal, AOS) never fire inside the dialog */
.ds-leadpop [data-lead-box], .ds-leadpop .reveal, .ds-leadpop [data-aos] { opacity: 1 !important; transform: none !important; }
@media (max-width: 480px) { .ds-leadpop__body { padding-left: 10px; padding-right: 10px; } }
