/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║   Eidolon Research — landing-page overrides                              ║
   ║   products/research/frontend/landing/css/landing.css                     ║
   ║                                                                          ║
   ║   Loaded AFTER _shared/css/{tokens,base,components}.css. Sets the         ║
   ║   teal theme on :root and adds Research-only sections (PRISMA flow      ║
   ║   hero card, framework-first workflow chain, Quad illustration cards,  ║
   ║   roadmap, beta pricing).                                               ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */


/* ── Theme override (Research teal + orange accent) ────────────────────── */
:root {
    --theme-primary:        #0e7490;
    --theme-primary-dark:   #155e75;
    --theme-primary-darker: #164e63;
    --theme-primary-light:  #ecfeff;
    --theme-primary-tint:   #cffafe;
    --theme-accent:         #f97316;
    --theme-accent-dark:    #ea580c;
}


/* ── Navbar Sign-in link (paired with the primary CTA) ────────────────── */
.navbar-signin {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--neutral-text-body);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color var(--motion-fast) var(--motion-easing);
    white-space: nowrap;
}
.navbar-signin:hover {
    color: var(--theme-primary);
    text-decoration: none;
}


/* ── Hero meta line ────────────────────────────────────────────────────── */
.hero-meta {
    margin-top: var(--space-md);
    color: var(--neutral-text-muted);
    font-size: var(--fs-sm);
}
.hero-meta strong {
    color: var(--theme-primary);
    font-weight: var(--fw-semibold);
}


/* ════════════════════════════════════════════════════════════════════════════
   Anchor alias — invisible target for backwards-compat anchors (#features → #literature)
   ════════════════════════════════════════════════════════════════════════════ */
.anchor-alias {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}


/* ════════════════════════════════════════════════════════════════════════════
   PRISMA flow card — hero illustration
   ════════════════════════════════════════════════════════════════════════════ */
.prisma-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.prisma-card-live-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 2;
    background: var(--theme-primary);
    color: var(--neutral-white);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(14, 116, 144, 0.25);
}
.prisma-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, var(--theme-primary-tint) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.prisma-card > * { position: relative; z-index: 1; }

.prisma-card-header,
.prisma-card-foot {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: var(--fw-semibold);
    color: var(--neutral-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.prisma-card-header { margin-bottom: var(--space-md); }
.prisma-card-foot {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--neutral-border-light);
    text-transform: none;
    letter-spacing: 0;
    font-weight: var(--fw-medium);
    color: var(--neutral-text-body);
    font-size: var(--fs-sm);
}

.prisma-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.prisma-step {
    background: var(--theme-primary-light);
    border: 1px solid var(--theme-primary-tint);
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: var(--space-md);
    font-size: var(--fs-sm);
}
.prisma-step-label {
    color: var(--neutral-text-dark);
    font-weight: var(--fw-medium);
}
.prisma-step-count {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: var(--fw-bold);
    color: var(--theme-primary-dark);
    grid-row: 1;
}
.prisma-step-meta {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: var(--theme-accent-dark);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.prisma-step-final {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
}
.prisma-step-final .prisma-step-label,
.prisma-step-final .prisma-step-count {
    color: var(--neutral-white);
}
.prisma-arrow {
    color: var(--theme-primary);
    font-size: 1.2rem;
    line-height: 1;
}


/* ════════════════════════════════════════════════════════════════════════════
   "The training gap" problem section
   ════════════════════════════════════════════════════════════════════════════ */
.problem {
    background: var(--neutral-cream-dark);
    border-top: 1px solid var(--neutral-border-light);
    border-bottom: 1px solid var(--neutral-border-light);
}
.problem-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: var(--space-md);
}
.problem-text {
    font-size: var(--fs-md);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
}


/* ════════════════════════════════════════════════════════════════════════════
   Workflow chain — framework-first, hard-gated
   ════════════════════════════════════════════════════════════════════════════ */
.workflow-chain {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.workflow-step {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-md);
    transition: border-color var(--motion-base) var(--motion-easing);
}
.workflow-step:hover { border-color: var(--theme-primary); }
.workflow-step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: var(--neutral-white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}
.workflow-step h3,
.workflow-step p {
    grid-column: 2;             /* keep them out of the 56px num column */
}
.workflow-step h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.4rem;
}
.workflow-step p {
    font-size: var(--fs-sm);
    color: var(--neutral-text-muted);
    line-height: var(--lh-relaxed);
}
.workflow-step em {
    color: var(--theme-primary-dark);
    font-style: italic;
}


/* ════════════════════════════════════════════════════════════════════════════
   The promise / thesis callout — "you run the review, AI helps at task level"
   ════════════════════════════════════════════════════════════════════════════ */
.promise {
    background: var(--theme-primary-darker);
    color: var(--neutral-white);
    position: relative;
    overflow: hidden;
}
.promise::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(207, 250, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(249, 115, 22, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.promise > * { position: relative; z-index: 1; }

.promise .section-label {
    color: var(--theme-accent);
}

.promise-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--neutral-white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.promise-text {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.78);
    line-height: var(--lh-relaxed);
    max-width: 680px;
    margin: 0 auto;
}
.promise-text strong { color: var(--neutral-white); }
.promise-text em {
    color: var(--theme-accent);
    font-style: italic;
}


/* ════════════════════════════════════════════════════════════════════════════
   The pedagogical core — three-tier themes + Literature Assessment Rubric
   ════════════════════════════════════════════════════════════════════════════ */
.pedagogy {
    background: var(--neutral-cream-dark);
    border-top: 1px solid var(--neutral-border-light);
    border-bottom: 1px solid var(--neutral-border-light);
}

.pedagogy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.pedagogy-block {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pedagogy-block-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: var(--fw-semibold);
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pedagogy-block h3 {
    font-size: var(--fs-xl);
    color: var(--neutral-text-dark);
    margin: 0;
}

.pedagogy-block > p {
    font-size: var(--fs-sm);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
}

.pedagogy-block em {
    color: var(--theme-primary-dark);
    font-style: italic;
}

/* ── Theme tier list ────────────────────────────────────────────────────── */
.theme-tiers {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.theme-tier {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: var(--space-md);
    align-items: start;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--theme-primary-light);
    border-left: 3px solid var(--theme-primary);
}

.theme-tier-2 {
    background: rgba(207, 250, 254, 0.4);
    border-left-color: var(--theme-primary-dark);
}

.theme-tier-3 {
    background: var(--neutral-cream-dark);
    border-left-color: var(--theme-accent);
}

.theme-tier-tag {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: var(--fw-bold);
    color: var(--neutral-white);
    background: var(--theme-primary);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-pill);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: start;
    margin-top: 0.15rem;
}
.theme-tier-2 .theme-tier-tag { background: var(--theme-primary-dark); }
.theme-tier-3 .theme-tier-tag { background: var(--theme-accent); }

.theme-tier-body h4 {
    font-size: var(--fs-md);
    margin-bottom: 0.25rem;
    color: var(--neutral-text-dark);
}

.theme-tier-body p {
    font-size: 0.88rem;
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
}

.theme-tier-body em {
    color: var(--theme-primary-dark);
    font-style: italic;
}


/* ── Reading rubric mock ───────────────────────────────────────────────── */
.rubric-card {
    background: var(--neutral-cream);
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

.rubric-card-header,
.rubric-card-foot {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: var(--fw-semibold);
    color: var(--neutral-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.rubric-card-header {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--neutral-border-light);
    margin-bottom: var(--space-sm);
    text-transform: none;
    letter-spacing: 0;
    color: var(--theme-primary-dark);
    font-weight: var(--fw-semibold);
}
.rubric-card-foot {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--neutral-border-light);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    color: var(--neutral-text-muted);
}

.rubric-section {
    margin-bottom: var(--space-md);
}
.rubric-section:last-of-type { margin-bottom: 0; }

.rubric-section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: var(--fw-semibold);
    color: var(--theme-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.rubric-question {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.6rem;
    align-items: start;
    padding: 0.4rem 0;
    color: var(--neutral-text-body);
    line-height: 1.45;
}

.rubric-question-mark {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--theme-primary);
    border-radius: 3px;
    margin-top: 2px;
    background: var(--neutral-white);
}
.rubric-question em {
    color: var(--theme-primary-dark);
    font-style: italic;
    font-weight: var(--fw-medium);
}


/* ════════════════════════════════════════════════════════════════════════════
   The Quad section — 3 cards
   ════════════════════════════════════════════════════════════════════════════ */
.quad {
    background: var(--theme-primary-darker);
    color: var(--neutral-text-light);
    position: relative;
    overflow: hidden;
}
.quad::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(207, 250, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.quad > * { position: relative; z-index: 1; }

.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}
.quad-content .section-label    { color: var(--theme-accent); }
.quad-content .section-title    { color: var(--neutral-white); }
.quad-content p {
    font-size: var(--fs-md);
    color: rgba(255, 255, 255, 0.75);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}
.quad-content strong { color: var(--neutral-white); }

.quad-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.quad-cards {
    display: grid;
    gap: var(--space-md);
}
.quad-cards-4 {
    grid-template-columns: 1fr 1fr;
}

/* Synthesis layer — visually outside the Quad */
.quad-synth-divider {
    text-align: center;
    margin-top: 0.25rem;
}
.quad-synth-divider-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: var(--fw-semibold);
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.quad-synth-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--theme-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--space-md);
    align-items: start;
}
.quad-synth-card .quad-card-num {
    background: var(--theme-accent);
    color: var(--neutral-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
}
.quad-synth-card h3,
.quad-synth-card p {
    grid-column: 2;
}
.quad-synth-card h3 {
    color: var(--neutral-white);
    font-size: var(--fs-md);
    margin-bottom: 0.3rem;
}
.quad-synth-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
}
.quad-synth-card em {
    color: var(--theme-accent);
    font-style: italic;
}

.quad-config-note {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-left: 2px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    font-style: italic;
}
.quad-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: var(--space-md);
    align-items: start;
}
.quad-card-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--theme-accent);
    color: var(--neutral-white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
}
.quad-card h3,
.quad-card p {
    grid-column: 2;             /* keep them out of the 44px num column */
}
.quad-card h3 {
    color: var(--neutral-white);
    font-size: var(--fs-md);
    margin-bottom: 0.3rem;
}
.quad-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.5;
}


/* ════════════════════════════════════════════════════════════════════════════
   Roadmap — Live vs Coming Soon
   ════════════════════════════════════════════════════════════════════════════ */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.roadmap-card {
    background: var(--neutral-white);
    border: 1.5px solid var(--neutral-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}
.roadmap-card-live { border-color: var(--theme-primary); }
.roadmap-card-soon {
    background: var(--neutral-cream-dark);
    border-style: dashed;
}
.roadmap-card-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}
.roadmap-card-live .roadmap-card-tag {
    background: var(--theme-primary);
    color: var(--neutral-white);
}
.roadmap-card-soon .roadmap-card-tag {
    background: var(--theme-accent);
    color: var(--neutral-white);
}
.roadmap-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.roadmap-card li {
    font-size: var(--fs-sm);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
    padding-left: 1.4rem;
    position: relative;
}
.roadmap-card-live li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--theme-primary);
    font-weight: var(--fw-bold);
}
.roadmap-card-soon li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: var(--neutral-text-muted);
}


/* ════════════════════════════════════════════════════════════════════════════
   Pricing extras — beta pricing strike-through, foot note
   ════════════════════════════════════════════════════════════════════════════ */
.price-target {
    font-size: 0.82rem;
    color: var(--neutral-text-muted);
    margin-bottom: 0.5rem;
}
.price-currency {
    font-size: 1.4rem;
    vertical-align: super;
    font-weight: var(--fw-semibold);
}
.price-divider {
    height: 1px;
    background: var(--neutral-border-light);
    margin: 1rem 0;
}
.price-strike {
    font-size: 0.78rem;
    color: var(--neutral-text-muted);
    margin-top: 0.4rem;
}
.pricing-foot {
    margin-top: var(--space-2xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--theme-primary-light);
    border: 1px solid var(--theme-primary-tint);
    border-radius: var(--radius-lg);
    font-size: var(--fs-sm);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-foot strong {
    color: var(--theme-primary-dark);
    font-weight: var(--fw-semibold);
}


/* ════════════════════════════════════════════════════════════════════════════
   MOBILE — Research-specific stacking
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .quad-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
    .roadmap-grid { grid-template-columns: 1fr; }
    .pedagogy-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
    .quad-cards-4 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .workflow-step { grid-template-columns: 1fr; gap: var(--space-sm); }
    .workflow-step-num { margin-bottom: 0.4rem; }
    .workflow-step h3,
    .workflow-step p { grid-column: 1; }   /* mobile is single-column */
}


/* ════════════════════════════════════════════════════════════════════════════
   Phase Map — four-tile 2x2 grid above the fold
   Reuses .features-grid + .feature-card from shared/components.css.
   Adds Research-local phase-tile badge variants (live / soon / mixed).
   ════════════════════════════════════════════════════════════════════════════ */
.phase-map {
    background: var(--neutral-cream-dark);
    border-bottom: 1px solid var(--neutral-border-light);
}
.features-grid.phase-tiles {
    grid-template-columns: repeat(2, 1fr);   /* 2x2 on desktop */
    gap: var(--space-lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.feature-card.phase-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: calc(var(--space-xl) + 0.5rem); /* extra room for inline badge */
}
.feature-card.phase-tile .feature-icon { margin-bottom: var(--space-sm); }
.feature-card.phase-tile h3 {
    font-size: var(--fs-xl);
    margin-bottom: 0.25rem;
}
.feature-card.phase-tile > p {
    font-size: var(--fs-sm);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
    margin: 0;
}
.phase-tile-meta {
    font-size: 0.78rem !important;
    color: var(--neutral-text-muted) !important;
    line-height: 1.5 !important;
    font-style: italic;
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--neutral-border-light);
    margin-top: var(--space-xs) !important;
}
.phase-tile-link {
    margin-top: auto;
    display: inline-block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--theme-primary);
    padding-top: var(--space-sm);
}
.phase-tile-link:hover {
    color: var(--theme-primary-dark);
    text-decoration: underline;
}

/* Phase-tile badges — inline-positioned, distinct from absolutely-positioned
 * .price-badge (which is centred above pricing cards). */
.phase-tile-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    white-space: nowrap;
}
.phase-tile-badge-live {
    background: var(--theme-primary);
    color: var(--neutral-white);
}
.phase-tile-badge-soon {
    background: #f59e0b;
    color: var(--neutral-white);
}
/* Mixed badge for Tile 4 — split green / amber treatment */
.phase-tile-badge-mixed {
    padding: 0;
    background: transparent;
    overflow: hidden;
    display: inline-flex;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.phase-tile-badge-mixed-live,
.phase-tile-badge-mixed-soon {
    padding: 0.25rem 0.6rem;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    color: var(--neutral-white);
}
.phase-tile-badge-mixed-live {
    background: var(--theme-primary);
}
.phase-tile-badge-mixed-soon {
    background: #f59e0b;
}


/* ════════════════════════════════════════════════════════════════════════════
   Trust pillar — observes-doesn't-collect, dispute-as-conversation
   ════════════════════════════════════════════════════════════════════════════ */
.trust {
    background: var(--neutral-cream-dark);
    border-top: 1px solid var(--neutral-border-light);
    border-bottom: 1px solid var(--neutral-border-light);
}
.trust-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--neutral-text-dark);
    margin-bottom: var(--space-md);
}
.trust-text {
    font-size: var(--fs-md);
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}
.trust-callout {
    margin-top: var(--space-md);
    font-size: var(--fs-sm);
    color: var(--theme-primary-dark);
    font-style: italic;
}
.trust-callout em {
    font-style: italic;
    font-weight: var(--fw-medium);
}


/* ════════════════════════════════════════════════════════════════════════════
   Section subtitle — small variants for asides + EndNote-preamble blocks
   ════════════════════════════════════════════════════════════════════════════ */
.section-subtitle.section-subtitle-aside {
    margin-top: var(--space-sm);
    font-size: 0.92rem;
    color: var(--neutral-text-muted);
}
.section-subtitle.endnote-preamble {
    margin-top: var(--space-md);
    text-align: left;
    max-width: 760px;
    background: var(--theme-primary-light);
    border: 1px solid var(--theme-primary-tint);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.92rem;
    color: var(--neutral-text-body);
    line-height: var(--lh-relaxed);
}
.section-subtitle.endnote-preamble strong {
    color: var(--theme-primary-darker);
    font-weight: var(--fw-semibold);
}
.section-subtitle.endnote-import-line {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--neutral-text-muted);
}
.section-subtitle.endnote-import-line code {
    background: var(--neutral-cream-dark);
    border: 1px solid var(--neutral-border-light);
    border-radius: var(--radius-sm);
    padding: 0 0.3rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
    color: var(--theme-primary-dark);
}


/* ════════════════════════════════════════════════════════════════════════════
   MOBILE — Phase Map + Trust pillar
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .features-grid.phase-tiles { grid-template-columns: 1fr; }
    .feature-card.phase-tile {
        padding-top: calc(var(--space-lg) + 0.25rem);
    }
    .phase-tile-badge,
    .phase-tile-badge-mixed {
        top: var(--space-sm);
        right: var(--space-sm);
    }
    .section-subtitle.endnote-preamble {
        text-align: center;
    }
    .prisma-card-live-badge {
        top: var(--space-sm);
        right: var(--space-sm);
    }
}

@media (max-width: 480px) {
    /* Smallest screens: collapse the mixed badge so two pills stack
     * cleanly rather than overflowing the tile width. */
    .phase-tile-badge-mixed {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        background: transparent;
        box-shadow: none;
    }
    .phase-tile-badge-mixed-live,
    .phase-tile-badge-mixed-soon {
        border-radius: var(--radius-pill);
    }
}
