/* Today action hub */
.hh-dashboard {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 4vw, 2rem);
    justify-content: flex-start;
    min-width: 0;
    min-height: calc(100dvh - 72px - 1.5rem);
}

.hh-today-page {
    width: min(100%, 68rem);
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.hh-today-header {
    display: grid;
    gap: 0.5rem;
}

.hh-today-header h1 {
    margin: 0;
}

.hh-today-subtitle {
    max-width: 44rem;
    margin: 0;
    color: var(--hh-text-secondary);
    font-size: clamp(0.9375rem, 3vw, 1.0625rem);
    line-height: 1.6;
}

.hh-discover-hero {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: clamp(1.25rem, 5vw, 2rem);
    color: var(--hh-text-primary);
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(var(--hh-primary-rgb), 0.2);
    border-radius: 1.25rem;
    transition:
        transform var(--hh-transition-normal),
        border-color var(--hh-transition-normal),
        box-shadow var(--hh-transition-normal);
}

.hh-discover-hero:hover {
    color: var(--hh-text-primary);
    text-shadow: none;
    transform: translateY(-2px);
    border-color: rgba(var(--hh-primary-rgb), 0.42);
    box-shadow: 0 12px 36px rgba(var(--hh-primary-rgb), 0.15);
}

.hh-discover-glow {
    position: absolute;
    inset: auto -4rem -6rem auto;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: rgba(var(--hh-primary-rgb), 0.14);
    filter: blur(2rem);
    pointer-events: none;
}

.hh-discover-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.hh-discover-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.875rem;
    color: var(--hh-primary);
    background: rgba(var(--hh-primary-rgb), 0.12);
    border-radius: 50%;
}

.hh-discover-title {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--hh-text-primary);
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hh-discover-subtitle {
    display: block;
    max-width: 38rem;
    margin-bottom: 1.25rem;
    color: var(--hh-text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.hh-discover-cta {
    display: inline-flex;
    min-height: 44px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--hh-action-primary-fg);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    background: var(--hh-action-primary-bg);
    border-radius: 0.625rem;
    transition:
        background var(--hh-transition-normal),
        transform var(--hh-transition-normal),
        box-shadow var(--hh-transition-normal);
}

.hh-discover-hero:hover .hh-discover-cta {
    background: var(--hh-action-primary-bg-hover);
    box-shadow: var(--hh-shadow-md);
}

.hh-today-status {
    display: grid;
    min-width: 0;
    gap: 1rem;
}

.hh-today-section-heading {
    display: grid;
    gap: 0.35rem;
}

.hh-today-section-heading h2 {
    margin: 0;
    color: var(--hh-text-primary);
    font-size: clamp(1.25rem, 4vw, 1.625rem);
}

.hh-today-section-heading p {
    max-width: 44rem;
    margin: 0;
    line-height: 1.55;
}

.hh-today-loading {
    display: flex;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    color: var(--hh-text-secondary);
}

.hh-today-loading p {
    margin: 0;
}

.hh-today-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
    min-width: 0;
    margin: 0;
}

.hh-today-status-card {
    display: flex;
    min-width: 0;
    min-height: 16rem;
    flex-direction: column;
    padding: clamp(1rem, 4vw, 1.25rem);
    border: 1px solid var(--hh-glass-border);
}

.hh-today-status-card dt {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.625rem;
    color: var(--hh-text-secondary);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.hh-today-status-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    color: var(--hh-primary);
    background: rgba(var(--hh-primary-rgb), 0.1);
    border-radius: 0.625rem;
}

.hh-today-status-card dd {
    min-width: 0;
    margin-inline-start: 0;
}

.hh-today-status-value {
    margin-top: 1rem;
    color: var(--hh-text-primary);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hh-today-status-detail {
    flex: 1;
    margin-top: 0.625rem;
    color: var(--hh-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.hh-today-status-action {
    margin-top: 1rem;
}

.hh-today-status-action a {
    display: inline-flex;
    min-height: 44px;
    max-width: 100%;
    align-items: center;
    gap: 0.35rem;
    padding-block: 0.625rem;
    color: var(--hh-accent);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.hh-today-status-action a:hover {
    color: var(--hh-link-hover);
    text-shadow: none;
}

@media (max-width: 24rem) {
    .hh-discover-cta {
        width: 100%;
    }

    .hh-today-status-card {
        min-height: 0;
    }
}

@media (min-width: 769px) {
    .hh-dashboard {
        min-height: calc(100dvh - 56px - 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-discover-hero,
    .hh-discover-cta {
        transition: none;
    }

    .hh-discover-hero:hover,
    .hh-discover-hero:hover .hh-discover-cta {
        transform: none;
    }
}

/* --- LANDING PAGE STYLES --- */
.hh-landing {
    --hh-landing-hero-fg: var(--hh-text-primary);
    --hh-landing-hero-muted: var(--hh-text-secondary);
    --hh-landing-chip-bg: var(--hh-surface-soft-alt);
    --hh-landing-chip-border: var(--hh-glass-border-highlight);
    --hh-landing-chip-fg: var(--hh-text-secondary);
    --hh-landing-divider: var(--hh-glass-border);
    --hh-landing-visual-bg: var(--hh-surface-soft);
    --hh-landing-visual-border: var(--hh-glass-border);
    --hh-landing-login-text: var(--hh-button-secondary-text);
    --hh-landing-login-border: var(--hh-glass-border-highlight);
    --hh-landing-step-number: rgba(var(--hh-primary-rgb), 0.2);
    --hh-landing-footer-copy: var(--hh-text-muted);
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

:root[data-hh-theme="paper"] .hh-landing {
    --hh-landing-chip-bg: rgba(var(--hh-primary-rgb), 0.08);
    --hh-landing-chip-border: rgba(var(--hh-primary-rgb), 0.24);
    --hh-landing-divider: rgba(var(--hh-primary-rgb), 0.2);
    --hh-landing-visual-bg: rgba(var(--hh-primary-rgb), 0.05);
    --hh-landing-visual-border: rgba(var(--hh-primary-rgb), 0.18);
    --hh-landing-step-number: rgba(var(--hh-primary-rgb), 0.24);
}

.hh-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.hh-hero-subtitle {
    font-size: 1rem;
}

.hh-landing-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hh-dark);
}

.hh-landing-content {
    max-width: 800px;
    margin: 0 auto;
}

.hh-landing-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: var(--hh-landing-chip-bg);
    border: 1px solid var(--hh-landing-chip-border);
    border-radius: 9999px;
    color: var(--hh-landing-hero-fg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.hh-landing-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--hh-landing-hero-fg);
}

.hh-landing-subtitle {
    font-size: 1rem;
    color: var(--hh-landing-hero-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hh-landing-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.hh-landing-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hh-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: var(--hh-landing-chip-bg);
    border: 1px solid var(--hh-landing-chip-border);
    color: var(--hh-landing-chip-fg);
    font-size: 0.75rem;
    font-weight: 500;
}

.hh-cta-btn {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hh-login-btn {
    color: var(--hh-landing-login-text) !important;
    border-color: var(--hh-landing-login-border) !important;
    background: transparent !important;
}

.hh-login-btn .mud-button-label {
    color: inherit !important;
}

.hh-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--hh-primary-rgb), 0.3);
}

.hh-login-btn:hover {
    color: var(--hh-landing-login-text) !important;
    border-color: var(--hh-primary) !important;
    background: rgba(var(--hh-primary-rgb), 0.08) !important;
}

/* Sections */
.hh-section-voice, .hh-section-privacy, .hh-section-scarcity {
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--hh-landing-divider);
}

.hh-landing-hero + .hh-section-voice {
    border-top: none;
}

.hh-section-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hh-section-content.reverse {
    flex-direction: column;
}

.hh-text-block {
    flex: 1;
}

.hh-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.voice-glow { background: rgba(var(--hh-secondary-rgb), 0.15); color: var(--hh-secondary); }
.security-glow { background: rgba(var(--hh-accent-rgb), 0.15); color: var(--hh-accent); }
.heart-glow { background: rgba(var(--hh-primary-rgb), 0.15); color: var(--hh-primary); }

.hh-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hh-section-title.center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hh-section-desc {
    font-size: 1rem;
    color: var(--hh-text-secondary);
    line-height: 1.7;
}

.hh-visual-block {
    flex: 1;
    width: 100%;
    height: 220px;
    background: var(--hh-landing-visual-bg);
    border-radius: 24px;
    border: 1px solid var(--hh-landing-visual-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Visual Animations */
.voice-waveform {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 80px;
}

.waveform-bar {
    width: 4px;
    background: var(--hh-secondary);
    border-radius: 3px;
    animation: waveform 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.12s);
    min-height: 12px;
}

@keyframes waveform {
    0%, 100% { height: 20px; opacity: 0.5; }
    50% { height: calc(40px + var(--i) * 8px); opacity: 1; }
}

.visual-label {
    position: static;
    transform: none;
    font-size: 0.8rem;
    color: var(--hh-text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Curated Grid Visual — Quality Over Quantity */
.hh-curated-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 0 1rem;
    max-width: 200px;
}

.hh-curated-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hh-landing-visual-border);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.hh-curated-dot.active {
    background: var(--hh-primary);
    opacity: 1;
    box-shadow: 0 0 12px rgba(var(--hh-primary-rgb), 0.4);
    animation: curated-pulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.15s);
}

.hh-curated-dot.active:nth-child(1) { --i: 0; }
.hh-curated-dot.active:nth-child(2) { --i: 1; }
.hh-curated-dot.active:nth-child(3) { --i: 2; }

@keyframes curated-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hh-curated-label {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-size: 0.85rem;
    color: var(--hh-text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hh-curated-count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hh-primary);
}

/* Privacy Lock Visual — Safe & Easy */
.hh-privacy-lock-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hh-privacy-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(var(--hh-accent-rgb, 100, 149, 237), 0.2);
}

.hh-privacy-ring-outer {
    width: 100px;
    height: 100px;
    animation: privacy-ring-pulse 3s ease-in-out infinite;
}

.hh-privacy-ring-inner {
    width: 70px;
    height: 70px;
    border-color: rgba(var(--hh-accent-rgb, 100, 149, 237), 0.35);
    animation: privacy-ring-pulse 3s ease-in-out infinite 0.5s;
}

@keyframes privacy-ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hh-privacy-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.hh-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--hh-accent-rgb, 100, 149, 237), 0.1);
    border: 1px solid rgba(var(--hh-accent-rgb, 100, 149, 237), 0.2);
    color: var(--hh-text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* How It Works Grid */
.hh-how-it-works {
    padding: 3rem 1.5rem 4rem;
}

.hh-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.hh-step-card {
    padding: 1.5rem;
    position: relative;
    border-top: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    background: var(--hh-dark-surface);
    border: 1px solid var(--hh-glass-border);
    border-top: 2px solid transparent;
    border-radius: var(--hh-radius-lg);
}

.hh-step-card:hover {
    border-top-color: var(--hh-primary);
    box-shadow: 0 8px 32px rgba(var(--hh-primary-rgb), 0.12);
    transform: translateY(-4px);
}

.hh-step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hh-landing-step-number);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.hh-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--hh-text-primary);
}

.hh-step-desc {
    color: var(--hh-text-secondary);
    line-height: 1.6;
}

.hh-final-cta {
    text-align: center;
}

/* Footer */
.hh-landing-footer {
    padding: 2rem 1rem calc(1rem + var(--hh-mobile-nav-height, 72px));
    border-top: 1px solid var(--hh-landing-divider);
    margin-top: 1rem;
}

.hh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.hh-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hh-text-primary);
}

.hh-footer-theme-selector {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hh-footer-links {
    display: flex;
    gap: 2rem;
}

.hh-footer-links a {
    color: var(--hh-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.hh-footer-links a:hover {
    color: var(--hh-link-hover);
}

.hh-footer-copy {
    font-size: 0.75rem;
    color: var(--hh-landing-footer-copy);
}

/* ── Desktop (≥769px) ── */
@media (min-width: 769px) {
    .hh-hero-title {
        font-size: clamp(1.75rem, 6vw, 3rem);
    }

    .hh-landing-hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 85svh;
    }

    .hh-landing-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }

    .hh-landing-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2.25rem;
    }

    .hh-landing-cta {
        gap: 1.5rem;
    }

    .hh-landing-trust {
        gap: 0.65rem;
    }

    .hh-trust-chip {
        font-size: 0.82rem;
        padding: 0.5rem 0.9rem;
    }

    .hh-section-voice,
    .hh-section-privacy,
    .hh-section-scarcity {
        padding: 4rem 1rem;
    }

    .hh-section-content {
        flex-direction: row;
        gap: 4rem;
    }

    .hh-section-content.reverse {
        flex-direction: row-reverse;
    }

    .hh-section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hh-section-title.center {
        margin-bottom: 4rem;
    }

    .hh-section-desc {
        font-size: 1.125rem;
    }

    .hh-visual-block {
        height: 400px;
        flex-direction: row;
    }

    .voice-waveform {
        height: 120px;
    }

    .waveform-bar {
        width: 6px;
    }

    .visual-label {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .hh-how-it-works {
        padding: 4rem 1rem 5rem;
    }

    .hh-steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .hh-step-card {
        padding: 2.5rem;
    }

    .hh-step-num {
        font-size: 4rem;
    }

}
