/* The Ask front door for visitors (ask_early_access.html). It loads
   app-shell.css first (DEN-2317): the colour tokens, the sans, the type
   defaults, the shell header and the .btn ladder all come from there. This
   sheet only lays the page out. */
:root {
    --ask-pad: clamp(20px, 5vw, 80px);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* Eyebrows and small print: the sans, never mono (mono is for codes and
   hashes only, design-language.md). */
.ask-eyebrow,
.ask-film-caption,
.ask-principles span,
.ask-footer,
.ask-member {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.ask-film {
    padding: clamp(18px, 3.5vw, 54px) var(--ask-pad) 0;
    background: var(--ink);
    color: var(--surface);
}

.ask-film-frame {
    width: min(100%, 1500px);
    margin: 0 auto;
    background: var(--ink);
    overflow: hidden;
}

.ask-film video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--ink);
}

.ask-film-caption {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 16px 0 22px;
    color: rgba(255, 255, 255, 0.64);
}

.ask-intro {
    padding: clamp(72px, 12vw, 170px) var(--ask-pad);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(60px, 10vw, 160px);
    align-items: end;
}

.ask-intro-copy {
    max-width: 820px;
}

.ask-eyebrow {
    margin: 0 0 24px;
    color: var(--faint);
}

.ask-intro h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(54px, 8.6vw, 138px);
    line-height: 0.93;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.ask-lead {
    max-width: 670px;
    margin: 34px 0 0;
    color: var(--body);
    font-size: var(--t-sub);
    line-height: 1.6;
}

.ask-scope {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--faint);
    font-size: 14px;
    line-height: 1.7;
}

.ask-action {
    scroll-margin-top: 32px;
    margin-top: 38px;
}

.ask-action-note {
    max-width: 520px;
    margin: 13px 0 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.55;
}

/* The returning member's line, the landing's pattern: the question in
   small caps, Sign in on the ladder as a link. */
.ask-member {
    margin: 18px 0 0;
    color: var(--faint);
}

.ask-principles {
    border-top: 1px solid var(--ink);
}

.ask-principles article {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--border);
}

.ask-principles span {
    color: var(--muted);
}

.ask-principles h2 {
    margin: 15px 0 7px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ask-principles p {
    margin: 0;
    color: var(--faint);
    font-size: 13px;
    line-height: 1.55;
}

.ask-footer {
    min-height: 110px;
    /* 20px under the links, not 34: each link row carries 14px of its own. */
    padding: 34px var(--ask-pad) calc(20px + max(env(safe-area-inset-bottom), var(--dz-inset-bottom, 0px)));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--border);
    color: var(--faint);
}

/* Each link a 44px row with 4px of side padding (the shell footer's
   measure, DEN-2313); the gap drops by the padding so the words stay put. */
.ask-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 -4px;
}

.ask-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
}

.ask-footer a:hover {
    color: var(--ink);
}

@media (max-width: 820px) {
    .ask-intro {
        grid-template-columns: 1fr;
        gap: 72px;
    }

    .ask-principles {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .ask-film {
        padding-left: 0;
        padding-right: 0;
    }

    .ask-film-caption {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ask-intro {
        padding-top: 78px;
        padding-bottom: 92px;
    }

    .ask-intro h1 {
        font-size: clamp(50px, 16vw, 78px);
    }

    .ask-action .btn.primary {
        width: 100%;
    }

    .ask-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
