/* === Humble Education — Design System === */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #6C3AE0;
    --color-primary-hover: #5A2CC7;
    --color-primary-light: #EDE8FB;
    --color-navy: #1a0a4e;
    --color-pink: #F2A7C3;
    --color-text: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-bg: #ffffff;
    --color-stone: #f5f3f0;
    --color-chalk: #f8f9fa;
    --color-border: #e5e7eb;
    --color-white: #ffffff;
    --font-primary: 'Manrope', sans-serif;
    --max-width: 1140px;
    --section-padding: 6rem 0;
    --border-radius: 12px;
    --border-radius-pill: 9999px;
    --border-radius-card: 16px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-hover);
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Sticky Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-logo img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
}

.site-logo .logo-dot {
    color: var(--color-primary);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    color: var(--color-white);
}

.btn--outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.btn--small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* === Skip to Content === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: var(--color-white);
}

/* === Header Nav === */
.site-header {
    transition: box-shadow 0.2s;
}

.site-header--scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link--active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link--active::after {
    transform: scaleX(1);
}

/* === Mobile Nav Toggle === */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--color-text);
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--color-stone);
}

.nav-toggle__icon {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: background 0.2s;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s;
}

.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after  { top: 7px; }

/* Open state */
.site-header.nav-open .nav-toggle__icon {
    background: transparent;
}
.site-header.nav-open .nav-toggle__icon::before {
    top: 0;
    transform: rotate(45deg);
}
.site-header.nav-open .nav-toggle__icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* === Mobile Nav Drawer === */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.site-header.nav-open .mobile-nav {
    display: flex;
}

.mobile-nav__link {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s;
}

.mobile-nav__link:last-child {
    border-bottom: none;
}

.mobile-nav__link:hover {
    color: var(--color-text);
}

.mobile-nav__link--active {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-nav__cta {
    margin-top: 1rem;
}

.mobile-nav__cta .btn {
    width: 100%;
    text-align: center;
}

/* === Badge Pill === */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--border-radius-pill);
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* === Sections === */
.section {
    padding: var(--section-padding);
}

.section--stone {
    background: var(--color-stone);
}

.section--chalk {
    background: var(--color-chalk);
}

.section__label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* === Hero === */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero .section__title {
    font-size: 3rem;
    max-width: 780px;
    margin: 0 auto 1.25rem;
}

.hero .section__subtitle {
    font-size: 1.2rem;
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* === Card Grid === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.card-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 800px;
}

/* === Pain Cards === */
.pain-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pain-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.pain-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pain-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.pain-card__body {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === Steps === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__content {
    flex: 1;
}

.step__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text);
}

.step__body {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === Tags === */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: var(--border-radius-pill);
    margin-bottom: 0.5rem;
}

.tag--live {
    background: #dcfce7;
    color: #166534;
}

.tag--soon {
    background: #fef3c7;
    color: #92400e;
}

/* === Nudge Mockup === */
.nudge {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    text-align: left;
}

.nudge__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.nudge__icon {
    font-size: 1.2rem;
}

.nudge__text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.nudge__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* === Journal / Timeline === */
.journal {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.journal__entry {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.journal__entry:last-child {
    padding-bottom: 0;
}

.journal__marker {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journal__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.journal__dot--green {
    background: #22c55e;
}

.journal__dot--amber {
    background: #f59e0b;
}

.journal__dot--blue {
    background: #3b82f6;
}

.journal__line {
    width: 2px;
    flex: 1;
    background: var(--color-border);
    margin-top: 6px;
}

.journal__content {
    flex: 1;
}

.journal__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.journal__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.journal__meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* === Quote === */
.quote-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 2rem 0;
}

.quote-block::before {
    content: '\201C';
    font-size: 6rem;
    line-height: 1;
    color: var(--color-primary-light);
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.quote-block__text {
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.quote-block__author {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* === Tool Badges === */
.tool-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-pill);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    transition: box-shadow 0.2s;
}

.tool-badge:hover {
    box-shadow: var(--shadow-card);
}

/* === Privacy === */
.privacy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-point {
    text-align: center;
}

.privacy-point__icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.privacy-point__text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* === Final CTA === */
.final-cta {
    padding: var(--section-padding);
    text-align: center;
}

.final-cta .section__title {
    font-size: 2.5rem;
}

.final-cta__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* === Footer === */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* === Fade-in Animations === */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* === 404 Page === */
.error-page {
    text-align: center;
    padding: 6rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.error-page__body {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero .section__title {
        font-size: 2rem;
    }

    .hero .section__subtitle {
        font-size: 1.05rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    .header-nav .nav-link,
    .header-nav .btn {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .quote-block__text {
        font-size: 1.15rem;
    }

    .final-cta .section__title {
        font-size: 1.8rem;
    }

    .error-page__code {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero .section__title {
        font-size: 1.65rem;
    }

    .hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .tool-badges {
        gap: 0.75rem;
    }
}
