/**
 * Home Page
 * =========
 */

/* Top section — compact, NOT full-screen hero */
.home-top {
    text-align: center;
    padding: var(--space-16) 0 var(--space-12);
}

.home-logo {
    display: block;
    width: 80px;
    margin: 0 auto var(--space-6);
}
/* Inline SVG mark (gradient from tokens); size is set here, not on the image. */
.home-logo .t6-hat-lg {
    display: block;
    width: 100%;
    height: auto;
}

.home-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
    /* Static hero gradient, no animation (animated variants are suppressed
       under prefers-reduced-motion). */
    background: var(--color-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.home-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* Features row */
.features {
    padding: var(--space-12) 0;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-4) 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.stats-bar a {
    color: var(--color-text-link);
    font-family: var(--font-family-mono);
}

.stats-bar .verified {
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.stats-bar .verified img,
.stats-bar .verified .footer-check {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Timeline roadmap.
   Left-aligned to the content grid; line length is capped on .timeline-item. */
.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline-item > * {
    max-width: 76ch;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border-default);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-8);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * var(--space-8) + 4px);
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-border-default);
    background: var(--color-bg-primary);
    z-index: 1;
}

.timeline-item.done .timeline-dot {
    border-color: var(--color-success);
    background: var(--color-success);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-success) 30%, transparent);
}

.timeline-item.current .timeline-dot {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.timeline-item.future .timeline-dot {
    border-color: var(--color-border-strong);
    background: var(--color-bg-secondary);
}

.timeline-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.timeline-item.done .timeline-title {
    color: var(--color-success);
}

.timeline-item.current .timeline-title {
    color: var(--color-primary);
}

.timeline-item.future .timeline-title {
    color: var(--color-text-tertiary);
}

.timeline-list {
    list-style: none;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.timeline-list li::before {
    content: '—';
    margin-right: var(--space-2);
    color: var(--color-text-muted);
}

/* ───────────────────────────────────────────────────────────────
   Pitch — the 2-minute presentation on the homepage
   (hero → two-truths → 3 rising cards → who-it's-for → live).
   Non-expert reads the leads; expert reads the tech grid.
   ─────────────────────────────────────────────────────────────── */

/* Slogan eyebrow above the hero title — mono, quiet, kept for identity */
.home-eyebrow {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.home-title br {
    display: block;
}

/* "Same transaction, two truths" block — sits right under the hero */
.pitch-split {
    padding: var(--space-10) 0 var(--space-4);
}

/* The three rising cards (1 → 2 → 3): one big card per section */
.pitch-card {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

/* Card spans the full content width; line length is capped on .pitch-lead. */
.pitch-card-inner {
    width: 100%;
    padding: var(--space-8);
}

/* Prose inside the wide card is capped for readability; lists, grids and
   tables use the full width. */
.pitch-lead {
    max-width: 76ch;
}

/* Big, readable paragraph — the part a non-expert actually reads */
.pitch-lead {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: var(--space-4);
}

.pitch-lead b {
    color: var(--color-text-primary);
}

/* Tech grid inside card 2 */
.tech-item {
    padding: var(--space-4);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
}

.tech-item .card-title {
    margin-bottom: var(--space-2);
}

/* Live checklist inside card 3 — green ticks, no pills */
.pitch-checklist {
    list-style: none;
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
}

.pitch-checklist li {
    padding-left: var(--space-6);
    position: relative;
    line-height: 1.5;
}

.pitch-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-success);
    font-weight: var(--font-weight-bold);
}

.pitch-checklist code {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    color: var(--color-text-link);
}

/* Monetization band — subtle accent, still square corners */
.pitch-money .pitch-card-inner {
    border-left: 3px solid var(--color-primary);
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--color-primary) 6%, transparent) 0%,
        transparent 60%);
}

/* Ceremony ask. Not a banded section like .pitch-money: the card stays plain,
   the accent sits on the island with the count and the button. */
.help-ask {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-6);
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--color-border-default);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-surface-primary);
}

.help-count {
    flex: 0 0 auto;
    text-align: center;
    min-width: 5.5rem;
}

.help-count-num {
    display: block;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-3xl);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--color-text-primary);
}

.help-count-lbl {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

.help-body p {
    margin: 0 0 var(--space-4);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .help-ask {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    .help-count { text-align: left; }
}

/* Divider between the pitch and the deeper existing sections */
.pitch-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: var(--space-12) 0 var(--space-4);
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

.pitch-divider span {
    padding: 0 var(--space-4);
}

.pitch-divider::before,
.pitch-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border-subtle);
    max-width: 120px;
}

@media (max-width: 768px) {
    .home-title { font-size: var(--font-size-3xl); }
    .home-actions { flex-direction: column; align-items: center; }
    .stats-bar { flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
}

/* Paired card titles: public view vs granted view. Color carries meaning
   (closed / open), so it is part of the class. */
.card-title--public  { color: var(--color-error); }
.card-title--granted { color: var(--color-success); }

/* Left-aligned action row (under a paragraph, not centered). */
.home-actions--start { justify-content: flex-start; }

/* Section footer link row; wraps on narrow screens. */
.home-links-row {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}
