/* Hallmark · checked: 2026-11-08 · genre: modern-minimal (inferred) · built: the project · redesign: polish · layout: kept · round: 4 · finish-review: in-thread · v2.0.0 */
@import url('./design-system.css');

.product-brand { display: inline-block; white-space: nowrap; letter-spacing: .08em; }
.site-brand-logo { display: block; object-fit: contain; width: auto; }
.site-brand-logo-header { height: 56px; }
.site-brand-logo-footer { height: 128px; }
@media (min-width: 1024px) { .site-brand-logo-header { height: 72px; } }
.product-brand sup { position: relative; top: -.45em; vertical-align: baseline; font-size: .6em; line-height: 0; letter-spacing: 0; margin-left: .12em; }
.brand-page main h3 .product-brand { font-size: inherit; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--brand-canvas);
    color: var(--brand-ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--selection-surface);
    color: var(--brand-deep);
}

a,
button {
    -webkit-tap-highlight-color: var(--color-clear);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-signal-dark);
    outline-offset: 3px;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.product-caption,
.section-label {
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.5;
}

.ds-site main .product-caption,
.ds-site main .section-label {
    font-size: var(--text-small);
    color: var(--brand-muted);
}

.sample-disclaimer {
    color: var(--disclaimer-ink);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.grid-bg {
    background-image:
        linear-gradient(var(--grid-line) 1px, var(--color-clear) 1px),
        linear-gradient(90deg, var(--grid-line) 1px, var(--color-clear) 1px);
    background-size: 48px 48px;
}

.fade-mask-b {
    -webkit-mask-image: linear-gradient(to bottom, var(--mask-solid) 0%, var(--mask-fade) 55%, var(--color-clear) 100%);
    mask-image: linear-gradient(to bottom, var(--mask-solid) 0%, var(--mask-fade) 55%, var(--color-clear) 100%);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -0.65rem;
    left: 0;
    height: 1px;
    background: var(--brand-signal-dark);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link.active {
    color: var(--brand-ink);
}

.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-menu {
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms;
}

.mobile-menu.open {
    visibility: visible;
    transform: translateX(0);
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Brand-color normalization for the existing Tailwind component system. */
.text-emerald-600 { color: var(--signal-text) !important; }
.text-emerald-700 { color: var(--brand-signal-dark) !important; }
.text-emerald-800 { color: var(--signal-text-strong) !important; }
.bg-emerald-500 { background-color: var(--brand-signal) !important; }
.bg-emerald-600 { background-color: var(--signal-fill) !important; }
.bg-emerald-50 { background-color: var(--signal-surface) !important; }
.border-emerald-500 { border-color: var(--brand-signal) !important; }
.hover\:text-emerald-700:hover { color: var(--brand-signal-dark) !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .grid-bg { background-size: 36px 36px; }
}

.form-gender { display: flex; gap: var(--space-3); }
.form-goals { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.form-choice { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--brand-line); border-radius: var(--radius-control); background: var(--surface); color: var(--brand-muted); font: 400 var(--text-small)/1.5 var(--font-sans); cursor: pointer; }
.form-gender .form-choice { flex: 1; }
.form-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-choice:hover { border-color: var(--brand-muted); }
.form-choice:has(input:checked) { background: var(--brand-ink); color: var(--surface); border-color: var(--brand-ink); }
.form-choice:focus-within { outline: 2px solid var(--brand-signal-dark); outline-offset: 3px; }
.form-choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.form-content input[aria-invalid="true"] { border-color: var(--form-error); }
.form-content .form-error, .ds-site main .form-content .form-error { min-height: 1.5em; margin-top: var(--space-1); color: var(--form-error); font-size: var(--text-small); line-height: 1.5; }
.form-content .form-status, .ds-site main .form-content .form-status { color: var(--form-error); font-size: var(--text-small); line-height: 1.6; }
.form-status:empty { display: none; }
.form-availability a { text-decoration: underline; overflow-wrap: anywhere; }
.ds-button[aria-busy="true"] { cursor: progress; }
#experience-form { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }
form.form-content:focus-visible { outline: 2px solid var(--brand-signal-dark); outline-offset: 3px; }
.program-form-jump { margin-top: var(--space-6); }
.product-modal-ready .modal-fallback { display: none; }
html:not(.product-modal-ready) [onclick="openFormModal()"] { display: none; }
.mobile-menu { max-height: 100dvh; overflow-y: auto; }
html:not(.site-interactive) .site-header { position: static; height: auto; }
html:not(.site-interactive) .site-header > .ds-container { height: auto; flex-wrap: wrap; gap: var(--space-4); padding-block: var(--space-3); }
html:not(.site-interactive) .site-header nav { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; gap: var(--space-5); }
html:not(.site-interactive) .site-header a[href="longevity-program.html"] { display: inline-flex; }
html:not(.site-interactive) #menu-toggle { display: none; }
html:not(.site-interactive) .ds-site main { padding-top: 0; }
@media (min-width: 1024px) { .program-form-jump { display: none; } }
@media (max-width: 639px) {
    #formModal > div { min-height: 100dvh; padding: var(--space-3); }
    #formIframe { height: calc(100dvh - var(--space-6)); }
}
