/* ===== Yu Sleep Sleep Support Guide — Premium Dark Theme ===== */
:root{
  --bg:#080b15; --bg-2:#0b1020; --surface:#11172a; --surface-2:#161d33;
  --text:#eef2fb; --muted:#9aa6c2; --border:#243049;
  --brand:#6ee7d6; --brand-2:#7c8cff; --accent:#a78bfa;
  --cta:#ffd166; --cta-ink:#1a1505;
  --radius:18px; --radius-sm:12px; --shadow:0 18px 40px -20px rgba(0,0,0,.7);
  --maxw:1120px; --ease:cubic-bezier(.22,.61,.36,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:
    radial-gradient(1100px 600px at 80% -10%, rgba(124,140,255,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(110,231,214,.12), transparent 55%),
    var(--bg);
  color:var(--text); font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  line-height:1.65; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Sora',system-ui,sans-serif; line-height:1.15; margin:0 0 .5em}
a{color:var(--brand)}
img{max-width:100%}
.container{max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(16px,4vw,32px)}
.muted{color:var(--muted)}
.center{text-align:center}

/* Top affiliate disclosure bar */
.top-disclosure{
  font-size:.72rem; line-height:1.4; color:var(--muted);
  background:rgba(8,11,21,.92); border-bottom:1px solid var(--border);
  padding:6px 14px; text-align:center;
}
.top-disclosure a{color:var(--brand); }

/* Sticky nav */
.nav{position:sticky; top:0; z-index:50; backdrop-filter:blur(12px);
  background:rgba(8,11,21,.72); border-bottom:1px solid var(--border)}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:12px clamp(16px,4vw,32px); max-width:var(--maxw); margin-inline:auto}
.brand{display:flex; align-items:center; gap:10px; font-family:'Sora'; font-weight:700; color:var(--text); text-decoration:none}
.brand .dot{width:11px; height:11px; border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); box-shadow:0 0 14px var(--brand)}
.nav-links{display:flex; gap:18px; align-items:center}
.nav-links a{color:var(--muted); text-decoration:none; font-size:.92rem}
.nav-links a:hover{color:var(--text)}
.nav-toggle{display:none}

/* Buttons / CTA */
.cta-button{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  background:linear-gradient(135deg,var(--cta),#ffb84d); color:var(--cta-ink);
  font-weight:700; font-family:'Sora'; text-decoration:none;
  padding:12px 22px; border-radius:999px; border:0; min-height:44px;
  box-shadow:0 10px 30px -10px rgba(255,209,102,.6); transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cta-button:hover{transform:translateY(-2px); box-shadow:0 16px 36px -10px rgba(255,209,102,.7)}
.cta-button.small{padding:9px 16px; font-size:.9rem}
.cta-button.ghost{background:transparent; color:var(--text); border:1px solid var(--border); box-shadow:none}
.cta-button.ghost:hover{border-color:var(--brand)}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px; border-radius:6px}

/* Hero */
.hero{position:relative; padding:clamp(48px,8vw,96px) 0; overflow:hidden}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center}
.eyebrow{display:inline-block; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand); border:1px solid var(--border); padding:5px 12px; border-radius:999px; margin-bottom:18px}
.hero h1{font-size:clamp(2rem,4.6vw,3.4rem)}
.hero h1 .grad{background:linear-gradient(120deg,var(--brand),var(--brand-2),var(--accent));
  -webkit-background-clip:text; background-clip:text; color:transparent}
.hero p.lead{font-size:1.08rem; color:var(--muted); max-width:46ch}
.hero-cta{display:flex; gap:14px; flex-wrap:wrap; margin-top:22px}
.hero-media{position:relative}
.hero-media img{border-radius:var(--radius); border:1px solid var(--border);
  box-shadow:var(--shadow); width:100%; object-fit:cover; aspect-ratio:4/5}
.glow{position:absolute; inset:-20% -10% auto auto; width:60%; height:60%;
  background:radial-gradient(circle, rgba(110,231,214,.35), transparent 70%); filter:blur(20px); z-index:-1}

/* Sections */
section{padding:clamp(40px,6vw,76px) 0}
.section-head{max-width:680px; margin:0 auto clamp(24px,4vw,44px); text-align:center}
.section-head h2{font-size:clamp(1.6rem,3.4vw,2.4rem)}
.section-head p{color:var(--muted)}

/* Glass + bento cards */
.card{background:rgba(255,255,255,.045); backdrop-filter:blur(14px);
  border:1px solid var(--border); border-radius:var(--radius); padding:22px;
  transition:transform .2s var(--ease), border-color .2s var(--ease)}
.card:hover{transform:translateY(-4px); border-color:rgba(110,231,214,.5)}
.card h3{font-size:1.12rem}
.card p{color:var(--muted); margin:.4em 0 0; font-size:.96rem}
.bento{display:grid; grid-template-columns:repeat(12,1fr); gap:16px}
.bento .card.span3{grid-column:span 3}
.bento .card.span4{grid-column:span 4}
.bento .card.span6{grid-column:span 6}
.bento .card.span8{grid-column:span 8}
.bento .card.span12{grid-column:span 12}
@media(max-width:900px){.bento .card[class*="span"]{grid-column:span 12}}

/* Summary box */
.summary{background:linear-gradient(180deg, rgba(124,140,255,.08), rgba(110,231,214,.05));
  border:1px solid var(--border); border-radius:var(--radius); padding:26px}
.summary dl{display:grid; grid-template-columns:max-content 1fr; gap:10px 18px; margin:14px 0 0}
.summary dt{color:var(--muted); font-size:.9rem}
.summary dd{margin:0; font-weight:600}

/* Tables */
.table-wrap{overflow:auto; border:1px solid var(--border); border-radius:var(--radius)}
table{width:100%; border-collapse:collapse; font-size:.95rem; min-width:520px}
th,td{padding:13px 16px; text-align:left; border-bottom:1px solid var(--border)}
th{background:var(--surface); color:var(--text); font-family:'Sora'; font-weight:600}
tbody tr:last-child td{border-bottom:0}
.tag{font-size:.76rem; padding:3px 9px; border-radius:999px; border:1px solid var(--border); color:var(--muted)}
.tag.ok{color:var(--brand); border-color:rgba(110,231,214,.4)}
.tag.warn{color:#ffd166; border-color:rgba(255,209,102,.4)}

/* FAQ */
.faq details{border:1px solid var(--border); border-radius:var(--radius-sm); padding:4px 18px; margin-bottom:10px; background:var(--surface)}
.faq summary{cursor:pointer; font-family:'Sora'; font-weight:600; padding:12px 0; list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq details[open] summary{color:var(--brand)}
.faq p{color:var(--muted); padding:0 0 14px}

/* Pros/Cons */
.procon{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media(max-width:760px){.procon{grid-template-columns:1fr}}
.procon .col{border:1px solid var(--border); border-radius:var(--radius); padding:22px}
.procon ul{margin:0; padding-left:18px; color:var(--muted)}
.procon ul li{margin:.4em 0}
.procon h3{display:flex; align-items:center; gap:8px}

/* Sticky bottom CTA */
.sticky-cta{position:fixed; left:0; right:0; bottom:0; z-index:60; display:none;
  align-items:center; justify-content:space-between; gap:14px;
  padding:12px clamp(16px,4vw,32px); backdrop-filter:blur(12px);
  background:rgba(8,11,21,.9); border-top:1px solid var(--border)}
.sticky-cta .txt{font-family:'Sora'; font-weight:600; font-size:.95rem}
.sticky-cta .x{background:none; border:0; color:var(--muted); cursor:pointer; font-size:1.2rem}
@media(max-width:760px){.sticky-cta.show{display:flex}}

/* Footer */
footer{border-top:1px solid var(--border); background:var(--bg-2); padding:40px 0 28px; margin-top:30px}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:28px}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr}}
.foot-grid h4{font-size:.95rem; margin-bottom:10px}
.foot-grid a{display:block; color:var(--muted); text-decoration:none; font-size:.9rem; padding:4px 0}
.foot-grid a:hover{color:var(--brand)}
.disclaimer{font-size:.78rem; color:var(--muted); border-top:1px solid var(--border); margin-top:26px; padding-top:18px}
.copyright{font-size:.8rem; color:var(--muted); margin-top:10px}

/* Reveal (motion adds entrance; default visible for no-JS) */
.reveal,.reveal-item{will-change:transform,opacity}

/* Responsive nav */
@media(max-width:820px){
  .nav-links{position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:4px;
    background:var(--bg-2); border-bottom:1px solid var(--border); padding:12px 16px; display:none}
  .nav-links.open{display:flex}
  .nav-toggle{display:inline-flex; background:none; border:1px solid var(--border); color:var(--text);
    border-radius:10px; width:42px; height:42px; cursor:pointer; align-items:center; justify-content:center}
  .hero-grid{grid-template-columns:1fr}
  .hero-media{order:-1}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none!important; transition:none!important}
  html{scroll-behavior:auto}
}
