/* Yu Sleep — product page styles */
:root {
    --ys-indigo: #4f46e5;
    --ys-indigo-dark: #4338ca;
    --ys-lavender: #818cf8;
    --ys-gold: #fbbf24;
    --ink: #1f2937;
    --ink-muted: #6b7280;
    --card: #ffffff;
}

[data-theme="dark"] {
    --ink: #f4f4f5;
    --ink-muted: #c4c4cc;
    --card: #1f1f24;
    --ys-indigo: #818cf8;
    --ys-indigo-dark: #a5b4fc;
    --ys-lavender: #c4b5fd;
}

body.ve-review-body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-align: center;
}

body.ys-has-sticky {
    padding-bottom: max(72px, calc(64px + env(safe-area-inset-bottom)));
}

.ve-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 18px 60px;
}

.page-intro,
.verdict-strip,
.toc,
section,
.cta-band,
.verdict-card,
.faq-wrap {
    text-align: center;
}

.page-intro {
    padding: 40px 20px 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.intro-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ys-indigo);
    background: rgba(79, 70, 229, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.page-intro h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 14px;
}

.intro-heading {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 14px;
}

.page-intro h1 span { color: var(--ys-indigo); }

.intro-sub {
    font-size: 1.05rem;
    color: var(--ink-muted);
    max-width: 680px;
    margin: 0 auto 16px;
    line-height: 1.65;
}

.intro-stars { font-size: 1.5rem; margin-bottom: 4px; }
.intro-rating { font-size: 14px; color: var(--ink-muted); margin-bottom: 8px; }
.intro-disclaimer { font-size: 13px; color: var(--ink-muted); margin-top: 10px; }

.btn-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--ys-indigo), var(--ys-indigo-dark));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-primary {
    display: inline-block;
    background: var(--card);
    color: var(--ys-indigo);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--ys-indigo);
    transition: background 0.2s;
}

.btn-primary:hover { background: rgba(79, 70, 229, 0.08); }

.verdict-strip {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(251, 191, 36, 0.08));
    border-left: 4px solid var(--ys-indigo);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.7;
}

.toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 36px;
}

.toc-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.toc ol {
    padding-left: 0;
    list-style-position: inside;
    columns: 2;
    column-gap: 24px;
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: var(--ys-indigo); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

section { margin-bottom: 36px; }

.sh2 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ys-indigo);
}

.sh3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 18px 0 10px;
}

.ys-section-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ys-section-lead {
    color: var(--ink-muted);
    max-width: 640px;
    margin: 0 auto 20px;
}

.ys-center-img {
    display: block;
    max-width: min(100%, 720px);
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
    object-fit: contain;
}

.ys-media-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: min(100%, 720px);
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--border);
}

.ys-media-frame .ys-center-img {
    margin: 0;
    border-radius: 8px;
}

/* Hero — rebuilt v2 */
.ys-hero {
    background: linear-gradient(165deg, #0c1222 0%, #1e1b4b 42%, #3730a3 100%);
    color: #fff;
    padding: 36px 0 52px;
    position: relative;
    overflow: hidden;
}

.ys-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(129, 140, 248, 0.35), transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(251, 191, 36, 0.1), transparent 40%);
    pointer-events: none;
}

.ys-hero-shell {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ys-hero-head { width: 100%; }

.ys-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ys-gold);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.ys-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 16px;
}

.ys-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ys-gold);
    animation: ys-pulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes ys-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.ys-hero-h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #fff;
}

.ys-hero-sub {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 600;
    color: var(--ys-lavender);
    margin: 0 0 14px;
    line-height: 1.35;
}

.ys-hero-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 440px;
    margin: 0 auto 24px;
}

.ys-hero-desc strong { color: #fff; font-weight: 700; }

.ys-hero-showcase {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ys-hero-showcase-ring {
    position: absolute;
    width: min(72vw, 260px);
    height: min(72vw, 260px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(129, 140, 248, 0.08) 45%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    animation: ys-ring-pulse 4s ease-in-out infinite;
}

@keyframes ys-ring-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -48%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -48%) scale(1.06); }
}

.ys-hero-showcase-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    padding: 10px 18px 6px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.18),
        0 24px 48px rgba(0, 0, 0, 0.22);
    max-width: min(100%, 168px);
}

.ys-hero-bottle {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(42vw, 220px);
    object-fit: contain;
    margin: 0 auto;
    animation: ys-bottle-float 4.5s ease-in-out infinite;
}

@keyframes ys-bottle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ys-hero-proof {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 4px;
}

.ys-hero-proof::-webkit-scrollbar { display: none; }

.ys-hero-proof li {
    flex: 1 1 0;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 0 8px;
    line-height: 1.35;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ys-hero-proof li:last-child { border-right: none; }

.ys-proof-ic { margin-right: 3px; }

.ys-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 380px;
}

.ys-btn-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #1e1b4b;
    font-weight: 800;
    font-size: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ys-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.55);
}

.ys-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s;
}

.ys-btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* 3-step flow (How It Works) */
.ys-steps-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px auto;
    max-width: 720px;
    text-align: left;
}

.ys-step-card {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.07) 0%, rgba(79, 70, 229, 0.02) 100%);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 16px;
    padding: 22px 18px;
    position: relative;
}

.ys-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ys-indigo), var(--ys-indigo-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ys-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ys-indigo);
    margin-bottom: 8px;
}

.ys-step-card p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.55;
}

/* Benefits */
.ys-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.ys-benefit-card {
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 14px;
}

.ys-benefit-icon { font-size: 2rem; margin-bottom: 8px; }

/* Ingredients */
.ys-ingredient-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
    text-align: left;
}

.ys-ingredient-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.ys-ingredient-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ys-indigo);
    margin-bottom: 6px;
}

.ys-ingredient-card p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
}

/* Timeline */
.ys-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.ys-timeline-step {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08), transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px;
}

.ys-timeline-step h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--ys-indigo);
    margin-bottom: 8px;
}

/* Pricing */
.ys-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    align-items: stretch;
}

.ys-price-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 18px;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ys-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.15);
}

.ys-price-card.is-popular {
    border-color: var(--ys-indigo);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.2);
}

.ys-price-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ys-indigo), var(--ys-indigo-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.ys-price-card img {
    max-width: 140px;
    height: auto;
    margin: 12px auto;
    display: block;
}

.ys-price-img-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    margin: 12px auto;
    max-width: 170px;
}

.ys-price-img-wrap img {
    max-width: 100%;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
}

.ys-price-img-wrap--featured {
    min-height: 170px;
    max-width: 190px;
}

.ys-price-img-wrap--featured img {
    max-height: 150px;
}

.ys-price-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ys-indigo);
    margin: 10px 0;
}

.ys-price-card .price small { font-size: 0.45em; font-weight: 600; color: var(--ink-muted); }
.ys-price-card .was { text-decoration: line-through; color: var(--ink-muted); font-size: 14px; }
.ys-price-card .total { font-size: 14px; color: var(--ink-muted); margin-bottom: 14px; }

.ys-buy-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--ys-indigo), var(--ys-indigo-dark));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.ys-buy-btn:hover { transform: scale(1.03); }
.ys-buy-btn--primary { background: linear-gradient(135deg, var(--ys-gold), #f59e0b); color: #1e1b4b; }

/* Reviews */
.ys-review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
    text-align: left;
}

.ys-review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.ys-review-card .stars { color: var(--ys-gold); font-size: 14px; margin-bottom: 8px; }
.ys-review-card .author { font-weight: 700; font-size: 14px; margin-top: 10px; color: var(--ys-indigo); }

/* Bonuses */
.ys-bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.ys-bonus-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    overflow: hidden;
    text-align: center;
}

.ys-bonus-card img {
    width: auto;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto 12px;
    display: block;
}

.ys-bonus-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.ys-bonus-card p { font-size: 14px; color: var(--ink-muted); text-align: center; }

/* Keywords */
.ys-keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.ys-keyword {
    font-size: 13px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--ys-indigo);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* FAQ */
.faq-wrap { text-align: left; max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--ys-indigo); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 0 16px; font-size: 14px; color: var(--ink-muted); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(251, 191, 36, 0.08));
    border-radius: 16px;
    padding: 32px 24px;
    margin: 36px 0;
}

/* Verdict */
.verdict-card {
    background: var(--card);
    border: 2px solid var(--ys-indigo);
    border-radius: 16px;
    padding: 28px 24px;
    margin-top: 20px;
}

.verdict-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ys-indigo);
    margin-bottom: 4px;
}

.verdict-score-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 16px; }

.ys-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}

.ys-badge {
    font-size: 12px;
    font-weight: 600;
    background: rgba(79, 70, 229, 0.08);
    color: var(--ys-indigo);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Sticky bar */
.ys-sticky-offer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 9998;
    transform: translateY(110%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.ys-sticky-offer.is-visible { transform: translateY(0); }

.ys-sticky-offer p { margin: 0; font-size: 14px; font-weight: 600; }

.btn-sticky {
    background: linear-gradient(135deg, var(--ys-gold), #f59e0b);
    color: #1e1b4b;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

#ve-progress { background: linear-gradient(90deg, var(--ys-indigo), var(--ys-lavender)) !important; }

/* Responsive */
@media (max-width: 900px) {
    .ys-steps-flow { grid-template-columns: 1fr; max-width: 400px; }
    .ys-benefit-grid,
    .ys-bonus-grid,
    .ys-price-grid,
    .ys-timeline { grid-template-columns: 1fr; }
    .ys-review-grid { grid-template-columns: 1fr; }
    .ys-ingredient-grid { grid-template-columns: 1fr; }
    .toc ol { columns: 1; }
}

@media (max-width: 640px) {
    .ys-hero { padding: 28px 0 40px; }
    .ys-hero-shell { max-width: 100%; }
    .ys-hero-showcase-card { max-width: 150px; padding: 8px 14px 4px; }
    .ys-hero-bottle { max-height: 190px; }
    .ys-hero-proof li { font-size: 10px; padding: 0 6px; }
    .ys-btn-buy, .ys-btn-outline { font-size: 14px; padding: 13px 16px; }
    .ys-price-img-wrap { max-width: 200px; min-height: 140px; }
    .ys-price-img-wrap--featured { max-width: 220px; }
}

@media (min-width: 768px) {
    .ys-hero-shell { max-width: 640px; }
    .ys-hero-showcase-card { max-width: 200px; }
    .ys-hero-bottle { max-height: 260px; }
    .ys-hero-proof li { font-size: 12px; }
    .ys-hero-actions { flex-direction: row; max-width: 100%; }
    .ys-btn-buy, .ys-btn-outline { width: auto; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ys-hero-bottle,
    .ys-hero-showcase-ring,
    .ys-hero-dot { animation: none !important; }
}
