/* =========================================================
   Hushed Sleep — Dark Theme
   Palette pulled from hushedsleep.lavrdeveloper.com
   ========================================================= */

:root {
    --bg: #060611;
    --bg-card: #1A1930;
    --surface: #252347;
    --primary: #7B6CF6;
    --primary-light: #9D91FF;
    --accent: #F0ABFC;
    --gold: #FBBF54;
    --green: #6EE7B7;
    --cyan: #67E8F9;
    --red: #EF4444;
    --text: #F1F0FF;
    --text-soft: #9B97C2;
    --text-muted: #6B6899;
    --border: #3A3766;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow-glow: 0 8px 30px rgba(123, 108, 246, 0.3);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
    --container: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.serif { font-family: var(--font-serif); }

h1, h2, h3, h4 { line-height: 1.15; margin-bottom: 0.6em; letter-spacing: -0.5px; color: var(--text); }
h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -1px;
}
h2 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 44px);
    letter-spacing: -0.75px;
}
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1em; }

/* Background glow — fixed, behind everything */
.bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(123, 108, 246, 0.18) 0%, rgba(240, 171, 252, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    padding: 0 24px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section { padding: 90px 0; position: relative; z-index: 1; }
.section--alt { background: rgba(26, 25, 48, 0.4); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { margin-bottom: 14px; }
.section__sub { color: var(--text-soft); font-size: 1.05rem; line-height: 1.7; }
.section__more { text-align: center; margin-top: 36px; }

/* Gradient text helper */
.grad-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}
.btn-appstore,
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.btn-appstore:hover,
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--text); background: transparent; }

/* Hero badge (pill above hero title) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(123, 108, 246, 0.15), rgba(240, 171, 252, 0.1));
    border: 1px solid rgba(123, 108, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 6, 17, 0.7);
    backdrop-filter: saturate(1.4) blur(20px);
    -webkit-backdrop-filter: saturate(1.4) blur(20px);
    border-bottom: 1px solid rgba(58, 55, 102, 0.4);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.site-header__brand .site-header__title,
.site-header__brand .custom-logo-link {
    font-weight: 700;
    color: var(--text);
    font-size: 20px;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-header__nav { flex: 1; display: flex; justify-content: center; }
.menu--primary { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; }
.menu--primary a {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 14px;
}
.menu--primary a:hover { color: var(--text); }
.site-header__cta .btn { padding: 10px 22px; font-size: 14px; }

@media (max-width: 768px) {
    .site-header__nav { display: none; }
    .site-header__cta .btn { padding: 9px 18px; font-size: 13px; }
}

/* Hero */
.hero { padding: 90px 0 60px; position: relative; z-index: 1; }
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}
.hero__title .grad-text { display: inline; }
.hero__sub { font-size: 18px; color: var(--text-soft); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero__note { color: var(--text-muted); font-size: 13px; margin: 0; }
.hero__visual { text-align: center; }
.hero__visual img {
    margin: 0 auto;
    max-height: 620px;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
}
.hero__placeholder {
    aspect-ratio: 9/16;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 36px;
    background: var(--bg-card);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__sub { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
}

/* Features */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.feature__icon { font-size: 32px; margin-bottom: 14px; }
.feature__title { margin-bottom: 8px; font-size: 1.05rem; color: var(--text); font-weight: 600; font-family: var(--font); }
.feature__text { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}
.step__num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: var(--shadow-glow);
}
.step__title { margin-bottom: 8px; font-family: var(--font); font-size: 1.05rem; font-weight: 600; }
.step__text { color: var(--text-soft); margin: 0; }

/* Sounds */
.sounds__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.sound {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.sound:hover { border-color: var(--primary); transform: translateY(-2px); }
.sound__emoji { font-size: 22px; }
.sound__name { font-weight: 500; font-size: 0.95rem; color: var(--text); }

/* Pricing */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}
.plan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.plan--featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}
.plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.plan__title { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-soft); font-weight: 600; font-family: var(--font); }
.plan__price { font-size: 2.5rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; color: var(--text); font-family: var(--font); }
.plan__price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.plan__equiv { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 18px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 26px; }
.plan__list li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-soft);
}
.plan__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary-light);
    font-weight: 700;
}
.plan .btn { width: 100%; margin-top: auto; }

/* Testimonials */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.quote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin: 0;
}
.quote p { font-size: 1.05rem; margin-bottom: 14px; color: var(--text); font-style: italic; }
.quote footer { color: var(--text-soft); font-size: 0.92rem; font-weight: 500; background: none; padding: 0; }

/* Final CTA */
.final-cta__inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 36px;
    background: linear-gradient(135deg, rgba(123, 108, 246, 0.12), rgba(240, 171, 252, 0.06));
    border: 1px solid rgba(123, 108, 246, 0.3);
    border-radius: var(--radius);
}
.final-cta__title { margin-bottom: 14px; }
.final-cta__sub { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 32px; }

/* Footer */
.site-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    padding: 56px 0 36px;
    position: relative;
    z-index: 1;
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--primary-light); }
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}
.site-footer__brand strong { color: var(--text); font-size: 1.1rem; display: block; font-weight: 700; }
.site-footer__tagline { font-size: 0.9rem; color: var(--text-muted); margin: 4px 0 0; }
.menu--footer { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; padding: 0; margin: 0; }
.menu--footer a { font-size: 0.95rem; }
.site-footer__copy {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 22px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 18px 0 0;
}

@media (max-width: 640px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card__media { aspect-ratio: 16/9; background: var(--surface); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(123, 108, 246, 0.35), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(240, 171, 252, 0.25), transparent 55%),
        linear-gradient(135deg, #1A1930 0%, #252347 100%);
}
.card__media-emoji { font-size: 44px; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    font-weight: 600;
}
.card__title { margin: 0; font-size: 1.2rem; color: var(--text); font-family: var(--font); font-weight: 600; }
.card__excerpt { color: var(--text-soft); font-size: 0.95rem; margin: 0; flex: 1; }
.card__more { color: var(--primary-light); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.card:hover .card__more { color: var(--accent); }

/* Archive hero */
.archive-hero { padding: 70px 0 36px; }
.archive-hero__eyebrow {
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.archive-hero__title { margin-bottom: 14px; }
.archive-hero__sub,
.archive-hero__desc { color: var(--text-soft); font-size: 1.1rem; max-width: 680px; }
.archive-list { padding-bottom: 90px; }

.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 10px;
    color: var(--text-soft);
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.pagination .page-numbers:hover { color: var(--text); border-color: var(--primary); }
.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
}

/* Single article */
.post__head { padding: 70px 0 28px; text-align: center; }
.post__head-inner { max-width: 760px; margin: 0 auto; }
.post__cat {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.post__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(32px, 4.5vw, 54px);
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.post__meta { color: var(--text-muted); font-size: 0.92rem; display: flex; justify-content: center; gap: 10px; }

.post__cover { padding: 16px 0 44px; }
.post__cover img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.post__container { max-width: 760px; padding-bottom: 60px; }
.post__content { font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.post__content h2, .post__content h3 { margin-top: 1.8em; }
.post__content h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.9rem; }
.post__content h3 { font-family: var(--font); font-weight: 600; font-size: 1.25rem; }
.post__content img { border-radius: 14px; margin: 1.2em 0; }
.post__content a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }
.post__content a:hover { color: var(--accent); }
.post__content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    color: var(--text-soft);
    font-size: 1.1rem;
    font-style: italic;
}
.post__content ul, .post__content ol { padding-left: 26px; color: var(--text); }
.post__content strong { color: var(--text); }

/* Article banner (top/bottom) — breaks out wider than article body,
   with a phone mockup that peeks out above the banner */
.article-banner-wrap {
    max-width: 960px;
    margin: 64px auto;
    padding-top: 140px; /* room for the phone that peeks out above the banner */
}
.article-banner-wrap[data-position="top"] { margin-top: 24px; }
.article-banner-wrap[data-position="bottom"] { margin-bottom: 32px; }

.article-banner {
    position: relative;
    border-radius: 28px;
    padding: 44px 48px;
    overflow: visible;
    background: var(--bg-card);
    border: 1px solid rgba(123, 108, 246, 0.4);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    isolation: isolate;
}
.article-banner--with-phone {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 32px;
    padding-right: 32px;
}

/* Layered gradient + glow background — sits behind content */
.article-banner__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 85% 0%, rgba(240, 171, 252, 0.25), transparent 55%),
        radial-gradient(circle at 10% 100%, rgba(123, 108, 246, 0.22), transparent 50%),
        linear-gradient(135deg, rgba(123, 108, 246, 0.10), rgba(240, 171, 252, 0.04));
    z-index: -1;
    pointer-events: none;
}

.article-banner__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}
.article-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(123, 108, 246, 0.18);
    border: 1px solid rgba(123, 108, 246, 0.35);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.article-banner__text {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.5px;
}
.article-banner .btn { align-self: flex-start; }

/* Phone mockup — sticks out above the banner */
.article-banner__phone {
    position: relative;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 280px;
    margin-top: -140px;       /* overflow above the banner */
    margin-bottom: -24px;     /* slight overflow below to feel grounded */
    transform: rotate(-4deg);
    transition: transform 0.4s ease;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.article-banner__phone img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    display: block;
}
.article-banner:hover .article-banner__phone { transform: rotate(-2deg) translateY(-6px); }

/* Tablet: smaller phone, less overflow */
@media (max-width: 900px) {
    .article-banner-wrap { padding-top: 110px; margin-left: 20px; margin-right: 20px; }
    .article-banner--with-phone { grid-template-columns: 1.2fr 0.8fr; gap: 20px; padding: 36px 32px; }
    .article-banner__phone { max-width: 200px; margin-top: -110px; margin-bottom: -16px; }
}

/* Mobile: single column, phone centered above text */
@media (max-width: 640px) {
    .article-banner-wrap { padding-top: 210px; margin: 48px 0; }
    .article-banner,
    .article-banner--with-phone {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
        text-align: center;
    }
    .article-banner__body { align-items: center; }
    .article-banner .btn { align-self: center; }
    .article-banner__phone {
        order: -1;
        justify-self: center;
        max-width: 190px;
        margin-top: -210px;
        margin-bottom: 0;
        transform: rotate(-2deg);
    }
}

/* Tags */
.tags { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    background: var(--bg-card);
    color: var(--text-soft);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* Page */
.page__head { padding: 70px 0 28px; }
.page__content { padding-bottom: 90px; max-width: 760px; font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.page__content a { color: var(--primary-light); text-decoration: underline; }
