/* Public Pages - Larger base font for marketing/sales pages */

:root {
    --base-font-size: 20px;
}


/* ========== AUTH PAGE MODIFIERS ========== */

.dt-page-title--tight {
    margin-bottom: var(--space-1);
}

.dt-page-subtitle--flush {
    margin-bottom: 0;
}

.dt-help-text--spaced {
    margin-top: var(--space-3);
}

/* ========== CONTENT PAGES (Terms, Privacy) ========== */

.dt-content-page {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.dt-content-page h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dt-content-page h2 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.dt-content-page h5 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
}

.dt-content-page p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}

.dt-content-page ul {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
}

.dt-content-page li {
    margin-bottom: var(--space-1);
}

.dt-content-page a,
.dt-auth-main .dt-link,
.dt-beta-apply__intro a,
.dt-footer-text .dt-link {
    color: var(--accent-primary);
}

.dt-content-page a:hover,
.dt-auth-main .dt-link:hover,
.dt-beta-apply__intro a:hover,
.dt-footer-text .dt-link:hover {
    color: var(--accent-600);
}

.dt-content-page .dt-content-meta {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* ========== ERROR / STATUS PAGES ========== */

.dt-status-page {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    text-align: center;
}

.dt-status-page__icon {
    font-size: 3rem;
    color: var(--error-500);
    margin-bottom: var(--space-4);
}

.dt-status-page__title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dt-status-page__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    max-width: 400px;
}

.dt-status-page__text:last-of-type {
    margin-bottom: var(--space-6);
}

/* ========== PUBLIC SHELL ========== */

.dt-public-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* The footer "Cookie settings" control is a <button> (it triggers JS, not navigation),
   so strip the native button chrome to match the anchor footer links. Font-family only —
   the .dt-footer-link class already owns color and font-size, so no `font: inherit` here. */
button.dt-footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

/* ========== LANDING PAGE — EXTENDED COMPONENTS ========== */

/* Hero background — white surface to separate from canvas body */
.dt-hero {
    background-color: var(--bg-surface);
}

/* Stakes Section (standalone, below hero on canvas background) */
.dt-stakes-section {
    text-align: center;
}

/* Light band matching the How it works section */
.dt-stakes-section--subtle {
    background: var(--bg-subtle);
}

/* Landing-scoped type & spacing — bigger section titles for hierarchy + one consistent
   title→content gap. Scoped to .dt-lp so shared .dt-section__title (Contact/Walkthrough) is untouched. */
.dt-lp .dt-section__title {
    font-size: var(--text-3xl);        /* 30px — up from 24 for section presence & a clear 40/30/16 scale */
    line-height: var(--leading-snug);  /* 1.375 — tightens 2-line titles */
    margin-bottom: var(--space-6);     /* single source of the title→content gap (24px everywhere) */
}

.dt-stakes-body {
    /* width governed by the section inner: 640 in Problem, 720 in Solution (matches its bullets) */
    /* top margin 0 — the section title owns the title→content gap */
    margin: 0 auto var(--space-8);
    text-align: left;
}

/* When the body is the section's last element (Problem section — no bullets follow),
   drop its trailing margins so the section's own padding governs the bottom gap
   symmetrically with the top. Solution keeps the margin — bullets follow the body there. */
.dt-stakes-body:last-child {
    margin-bottom: 0;
}

.dt-stakes-body:last-child .dt-stakes-text:last-child {
    margin-bottom: 0;
}

.dt-stakes-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}

    .dt-stakes-text:last-child {
        margin-bottom: 0;
    }

/* Value Proposition Bullets */
.dt-value-bullets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin: 0 auto; /* fills the --wide section inner (820) */
}

.dt-value-bullet {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 0;
}

.dt-value-bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background-color: var(--accent-subtle); /* SOFT amber — "capability" marker */
    color: var(--accent-primary);           /* warm amber glyph; remaps brighter in dark mode */
    font-size: 1.875rem;
    line-height: 1;
    margin-bottom: var(--space-4);
}

.dt-value-bullet strong {
    display: block;
    font-size: var(--text-lg);          /* 18px — the names of what you get; sized to match the 72px coins */
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dt-value-bullet-desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: var(--leading-relaxed);
}

/* What's Included — two-column capability grid. Reuses the amber coin treatment
   from .dt-value-bullet (smaller, left-aligned beside the copy) so the section
   reads as part of the same visual language. Collapses to one column at 640px. */
.dt-included-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin: 0 auto;
}

.dt-included-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.dt-included-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-full);
    background-color: var(--accent-subtle);
    color: var(--accent-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.dt-included-item__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dt-included-item__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Steps List (horizontal layout) */
.dt-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* top margin 0 — the section title owns the title→content gap */
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.dt-steps-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.dt-steps-list__number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--accent-subtle);  /* soft amber wash — matches the capability coins */
    color: var(--accent-primary);            /* amber numeral; the solid --accent-500 is reserved for the CTA alone */
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    margin-top: var(--space-1);
}

.dt-steps-list__content {
    flex: 1;
}

.dt-steps-list__title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dt-steps-list__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* CTA Sections */
.dt-cta-section {
    text-align: center;
}

.dt-cta-note {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin-top: var(--space-3);
}

.dt-cta-subtitle {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* Pricing — Feature Grid */
.dt-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 640px;
    margin: 0 auto var(--space-10);
}

.dt-feature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
}

.dt-feature-block__icon {
    font-size: 2.5rem;
    color: var(--primary-600);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.dt-feature-block__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.dt-feature-block__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Pricing — Tier Strip */
.dt-tier-strip {
    display: flex;
    gap: var(--space-4);
    max-width: 640px;
    margin: 0 auto var(--space-8);
}

.dt-tier {
    flex: 1;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}

.dt-tier__name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dt-tier__price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dt-tier__price span {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-tertiary);
}

.dt-tier__usage {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Pricing — Action */
.dt-pricing-action {
    text-align: center;
}

.dt-pricing-action__note {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin-top: var(--space-3);
}

.dt-pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* Founder Section */
.dt-founder-section {
    max-width: 600px;
    margin: 0 auto;
}

.dt-founder-photo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    float: right;
    margin: 0 0 var(--space-4) var(--space-6);
}

.dt-founder-story {
}

.dt-founder-story p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.dt-founder-story p:last-child {
    margin-bottom: 0;
}

.dt-founder-quote {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    margin: var(--space-6) 0 0 0;
    padding: 0;
    border: none;
}

/* Section Inner Width Modifiers — landing page only.
   Base .dt-section__inner stays 800px for Contact/Walkthrough; these chained
   selectors win by specificity regardless of stylesheet order.
   --text = prose/reading column, --wide = multi-column layout lane. */
.dt-section__inner.dt-section__inner--text {
    max-width: 640px;
}

.dt-section__inner.dt-section__inner--wide {
    max-width: 720px; /* Solution "feature" width — title, intro, and bullets all share this one edge */
}

/* Teams Section */
.dt-teams-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.dt-teams-footer {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: var(--space-6);
}

/* Teams Grid (Landing Page) */
.dt-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

/* Team Card (Home Base) */
.dt-team-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

    .dt-team-card:hover {
        border-color: var(--border-default);
        box-shadow: var(--shadow-sm);
    }

/* Shell state (not yet initialized) */
.dt-team-card--shell {
    opacity: 0.9;
    border-style: dashed;
}

.dt-team-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dt-team-card__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.dt-team-card__name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.dt-team-card__purpose {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
    flex: 1;
}

.dt-team-card__actions {
    margin-top: auto;
}

/* Landing page team cards (question-first) */
.dt-team-question {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    font-style: italic;
    flex: 1;
}

.dt-team-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: var(--font-semibold);
}

/* Teams Section Spacing */
.dt-teams-section {
    margin-bottom: var(--space-8);
}

/* Empty State */
.dt-empty-state {
    background-color: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

    .dt-empty-state p {
        margin: 0;
    }

/* FAQ List */
.dt-faq-list {
    max-width: 640px;
    margin: var(--space-8) auto 0;
}

.dt-faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-5) 0;
}

    .dt-faq-item:first-child {
        border-top: 1px solid var(--border-subtle);
    }

.dt-faq-question {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dt-faq-answer {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Product Screenshot Placeholders */
.dt-product-placeholder {
    max-width: 720px;
    margin: var(--space-8) auto 0;
    aspect-ratio: 16 / 9;
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-subtle);
}

.dt-product-placeholder__label {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-weight: var(--font-medium);
}

/* Responsive adjustments for landing page */
@media (max-width: 640px) {
    .dt-topbar {
        flex-wrap: nowrap;
    }

    .dt-topbar-nav {
        order: initial;
        width: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .dt-hero__title {
        font-size: var(--text-2xl);
    }

    .dt-value-bullet {
        flex-basis: 100%;
        max-width: 320px;
    }

    .dt-steps-list {
        gap: var(--space-5);
    }

    .dt-feature-grid,
    .dt-included-grid {
        grid-template-columns: 1fr;
    }

    .dt-tier-strip {
        flex-direction: column;
        max-width: 280px;
    }

    .dt-founder-photo {
        float: none;
        display: block;
        margin: 0 auto var(--space-4);
        width: 120px;
        height: 120px;
    }

    .dt-teams-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* -----------------------------------------------------------------------
   Private Beta — /for-yourself + /thanks (changeset 005)
   ----------------------------------------------------------------------- */

.dt-beta-hero {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.dt-beta-hero__inner {
    max-width: 720px; /* hero "stage" measure — slightly wider than the reading column so the H1 wraps cleanly */
    margin: 0 auto;
}

.dt-beta-badge {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);            /* SOFT amber — echoes the capability coins */
    background-color: var(--accent-subtle);
    border: 1px solid currentColor;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: var(--space-4);
}

.dt-beta-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin: 0 0 var(--space-3);
}

.dt-beta-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 var(--space-5);
    color: var(--text-secondary);
}

/* Split hero — copy left, product glimpse right (video-ready frame) */
.dt-beta-hero--split {
    text-align: left;
}

.dt-beta-hero--split .dt-beta-hero__inner {
    max-width: 1140px;
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.dt-beta-hero__copy {
    flex: 1 1 0;
}

.dt-beta-hero__media {
    flex: 1 1 0;
    position: relative;
    margin: 0;
}

.dt-beta-hero__shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xl);
}

/* Light/dark product shot — swap on the app's [data-theme] (default light) */
.dt-beta-hero__shot--dark {
    display: none;
}

[data-theme="dark"] .dt-beta-hero__shot--light {
    display: none;
}

[data-theme="dark"] .dt-beta-hero__shot--dark {
    display: block;
}

@media (max-width: 900px) {
    .dt-beta-hero--split .dt-beta-hero__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-8);
    }

    /* Stacked layout: the parent's align-items:center shrinks each child to its
       content width. The ratio-box video embed has no intrinsic width, so without
       this it collapses to 0 (and 56.25% of 0 height = invisible). Force full width
       so it drops gracefully under the CTA. */
    .dt-beta-hero--split .dt-beta-hero__media {
        width: 100%;
    }
}

.dt-beta-howitworks {
    background: var(--bg-subtle);
}

/* Centers the repeated hero CTA below the steps list. */
.dt-howitworks__cta {
    margin-top: var(--space-10);
    text-align: center;
}

/* "See it in action" — tinted like How it works (dark override lives with the
   other [data-theme="dark"] rules below), which also alternates the founder
   story and What's included back to the plain page background. */
.dt-beta-demo {
    background: var(--bg-subtle);
}

/* Override .dt-stakes-body's left default — a short intro sitting over a centered
   video reads better centered, matching the What's included intro. */
.dt-beta-demo .dt-stakes-body {
    text-align: center;
}

/* Zero the figure's UA margin — .dt-stakes-body above it owns the intro→video gap. */
.dt-beta-demo__media {
    margin: 0;
}

.dt-beta-apply {
    border-top: 1px solid var(--border-subtle);
}

.dt-mailing-list-signup {
    border-top: 1px solid var(--border-subtle);
}

.dt-mailing-list-signup__intro {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto var(--space-6);
}

.dt-mailing-list-form {
    max-width: 520px;
    margin: 0 auto;
}

.dt-mailing-list-signup__success {
    max-width: 520px;
    margin: 0 auto;
    padding: var(--space-4);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.dt-mailing-list-signup__success strong,
.dt-mailing-list-signup__success span {
    display: block;
}

.dt-mailing-list-signup__success span {
    margin-top: var(--space-2);
    color: var(--text-secondary);
}

.dt-mailing-list-signup__error {
    max-width: 520px;
    margin: 0 auto var(--space-4);
    text-align: center;
}

/* Divider line separating Common questions from the section above it (matches
   the .dt-beta-apply divider treatment). */
.dt-beta-faqs {
    border-top: 1px solid var(--border-subtle);
}

/* Drop the help.css .help-faqs top margin here — the .dt-section padding already
   owns the section's top gap, so the margin only doubles it. */
.dt-lp .dt-beta-faqs .help-faqs {
    margin-top: 0;
}

/* Promote the ported help "Common questions" eyebrow to a full landing section
   heading — same size/weight/color as .dt-lp .dt-section__title. Scoped here so
   help.css (shared with the auth-gated /help page) stays untouched. */
.dt-lp .dt-beta-faqs .help-faqs__title {
    font-size: var(--text-3xl);
    line-height: var(--leading-snug);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    margin-bottom: var(--space-6);
}

/* Closing risk-reversal CTA below the application form (matches the
   .dt-beta-apply / .dt-beta-faqs divider treatment). */
.dt-beta-close {
    border-top: 1px solid var(--border-subtle);
}

.dt-beta-close__intro {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.dt-beta-apply__inner {
    max-width: 600px;
    margin: 0 auto;
}

.dt-beta-apply__intro {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.dt-beta-founder {
    margin: 0 auto; /* width owned by the section's --text inner (640) */
}

.dt-beta-founder__story p {
    margin: 0 0 var(--space-3);
    line-height: 1.6;
}

/* Signature closing the founder's story. */
.dt-beta-founder__sig {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
    margin-top: var(--space-3);
}

.dt-beta-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.dt-beta-form .dt-form-group {
    margin-bottom: var(--space-4);
}

.dt-beta-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.dt-beta-form .dt-form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-surface-raised);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.dt-beta-form textarea.dt-form-input {
    resize: vertical;
    min-height: 4.5rem;
}

.dt-beta-thanks {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.dt-beta-thanks__inner {
    max-width: 640px;
    margin: 0 auto;
}

.dt-beta-thanks__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 var(--space-4);
}

.dt-beta-thanks__body {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 var(--space-4);
}

.dt-beta-thanks__signoff {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
}

[data-theme="dark"] .dt-beta-hero__subtitle,
[data-theme="dark"] .dt-beta-thanks__signoff {
    color: var(--text-secondary);
}

[data-theme="dark"] .dt-beta-howitworks,
[data-theme="dark"] .dt-beta-demo,
[data-theme="dark"] .dt-stakes-section--subtle {
    background: var(--bg-surface);
}

/* The signature is black-on-transparent; invert it so it reads on a dark background. */
[data-theme="dark"] .dt-beta-founder__sig {
    filter: invert(1);
}

[data-theme="dark"] .dt-beta-form {
    background: var(--bg-surface-raised);
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .dt-beta-form label {
    color: var(--text-primary);
}

[data-theme="dark"] .dt-beta-form .dt-form-input {
    background: var(--bg-surface);
    border-color: var(--border-default);
    color: var(--text-primary);
}

[data-theme="dark"] .dt-content-page a,
[data-theme="dark"] .dt-auth-main .dt-link,
[data-theme="dark"] .dt-beta-apply__intro a,
[data-theme="dark"] .dt-footer-text .dt-link {
    color: var(--accent-primary);
}

[data-theme="dark"] .dt-content-page a:hover,
[data-theme="dark"] .dt-auth-main .dt-link:hover,
[data-theme="dark"] .dt-beta-apply__intro a:hover,
[data-theme="dark"] .dt-footer-text .dt-link:hover {
    color: var(--accent-300);
}

[data-theme="dark"] .dt-beta-badge {
    color: var(--primary-300);
}

/* Light-mode badge bg (--primary-800) equals the dark page surface, so the
   numbers vanish in dark mode. Lighten to match the dark primary-button shade. */
[data-theme="dark"] .dt-steps-list__number {
    background-color: var(--primary-600);
}

/* Cookie / Meta Pixel consent banner (public surface only). Fixed to the bottom,
   centered and width-capped; hidden once the visitor chooses, and re-openable via the
   footer "Cookie settings" link. Theme-aware through the surface/border/text tokens. */
.dt-consent-banner {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-4);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dt-consent-banner--hidden {
    display: none;
}

.dt-consent-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--text-secondary);
}

.dt-consent-banner__actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Consent banner + preferences panel — 087 rebuild.
   Equal-prominence rule (CONSENT-REQ-1): Manage / Necessary / Allow All must
   share the dt-btn dt-btn--sm size and use the same padding, height, and
   font weight. Only accent color differs; ghost (Manage) sits at neutral,
   secondary (Necessary Only) at the neutral-strong tone, and accent (Allow All)
   at the brand color. Reviewer verifies no asymmetric hover/opacity/scale. */
.dt-consent-root {
    /* Layout is delegated to the child banner/panel per current-visible state.
       This wrapper carries the hidden state and the durable-row data-* seam. */
}

.dt-consent-root--hidden #dt-consent-banner,
.dt-consent-root--hidden #dt-consent-panel {
    display: none;
}

.dt-consent-banner__actions .dt-btn {
    /* Enforce equal-prominence on the three action buttons independently of
       the accent color variant. */
    min-width: 8.5rem;
}

.dt-consent-panel {
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-4);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.dt-consent-panel__heading {
    margin: 0;
    font-size: var(--text-base);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

.dt-consent-panel__intro {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.dt-consent-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border-subtle);
}

.dt-consent-panel__row-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.dt-consent-panel__row-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.dt-consent-panel__row-detail {
    color: var(--text-secondary);
    font-size: var(--text-xs);
}

.dt-consent-toggle {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.25rem;
    /* Hold the control's size in the flex row — without this the toggle
       shrinks to absorb a longer category description (Advertising &
       Measurement), rendering narrower than the other rows' toggles. */
    flex-shrink: 0;
}

.dt-consent-toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.dt-consent-toggle input:disabled {
    cursor: not-allowed;
}

.dt-consent-toggle__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--bg-neutral-strong, #cbd5e0);
    position: relative;
    transition: background-color 120ms ease;
}

.dt-consent-toggle__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.25rem - 4px);
    height: calc(1.25rem - 4px);
    border-radius: 50%;
    background: #fff;
    transition: transform 120ms ease;
}

.dt-consent-toggle input:checked ~ .dt-consent-toggle__track {
    background: var(--primary-500, #4c6ef5);
}

.dt-consent-toggle input:checked ~ .dt-consent-toggle__track::after {
    transform: translateX(1.25rem);
}

.dt-consent-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-subtle);
}

/* Narrow viewports: the three equal-prominence action buttons (each
   min-width: 8.5rem) plus gaps total ~452px, wider than the banner's inner
   width on a phone, so the last button ("Allow All") overflows off-screen.
   Stack the text above a full-width, one-button-per-row action column; the
   min-width override lets each button fill the row without forcing overflow.
   Breakpoint chosen where the actions row stops fitting, not the 640px shell
   breakpoint (buttons still fit down to ~490px). */
@media (max-width: 520px) {
    .dt-consent-banner {
        flex-direction: column;
        align-items: stretch;
    }

    /* Reset the row-layout flex basis: `flex: 1 1 320px` is a horizontal
       wrap hint on desktop, but in this column layout its grow + 320px
       become a vertical stretch, ballooning the intro and leaving a gap
       above the buttons. Size the text to its content instead. */
    .dt-consent-banner__text {
        flex: 0 0 auto;
    }

    .dt-consent-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .dt-consent-banner__actions .dt-btn {
        min-width: 0;
        width: 100%;
    }
}
