:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #5b6472;
  --border: rgba(15, 23, 42, .12);

  /* Brand (from your logo vibe) */
  --navy: #172548;
  --primary: #1B7BB9;
  --primary2:#1FA4E7;
  --sky:#48CAFA;
  --deep:#001E5E;

  --shadow: 0 16px 50px rgba(2, 6, 23, .10);
  --shadow2: 0 10px 28px rgba(2, 6, 23, .08);
  --radius: 16px;
  --radius2: 22px;
  --max: 1180px;

  --cta: linear-gradient(135deg, var(--primary), var(--primary2));
  --ctaHover: linear-gradient(135deg, var(--primary2), var(--sky));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height:1.55;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
p{margin:0 0 14px}
small{color:var(--muted)}
.container{max-width:var(--max); margin:0 auto; padding:0 18px}

.skip{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:18px; top:18px; width:auto; height:auto; background:#fff; padding:10px 12px; border-radius:12px; box-shadow:var(--shadow); z-index:9999}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand img{
  width: 56px; 
  height: auto;
}
@media (max-width:760px){
  .brand img{width:44px}
}

.brand .name{
  font-weight:800; letter-spacing:-.02em;
  display:flex; flex-direction:column;
  line-height:1.1;
}
.brand .name span:first-child{font-size:16px; color:var(--navy)}
.brand .name span:last-child{font-size:12px; color:var(--muted); font-weight:600}

.navlinks{display:flex; align-items:center; gap:18px; font-weight:700; color: rgba(23,37,72,.92)}
.navlinks a{padding:10px 10px; border-radius:12px}
.navlinks a:hover{background: rgba(31,164,231,.10)}

.actions{display:flex; align-items:center; gap:10px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadow2)}
.btn-primary{
  border:none;
  background: var(--cta);
  color:#fff;
}
.btn-primary:hover{background: var(--ctaHover)}
.btn-ghost{
  background: rgba(31,164,231,.08);
  border: 1px solid rgba(31,164,231,.22);
  color: var(--navy);
}
.btn-ghost:hover{background: rgba(31,164,231,.12)}

.burger{display:none}
.burger .btn{padding:10px 12px}

.mobilemenu{
  display:none;
  padding: 10px 0 16px;
}
.mobilemenu a{
  display:block; padding:12px 12px;
  border-radius: 14px; font-weight:800;
  border:1px solid var(--border);
  margin:10px 0;
  background:#fff;
}
.mobilemenu a:hover{background: rgba(31,164,231,.08)}

.hero{
  padding: 54px 0 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: stretch;
}
.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
}
.hero-card{padding: 28px}
.kicker{
  display:inline-flex;
  gap:10px; align-items:center;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid rgba(31,164,231,.22);
  background: rgba(31,164,231,.08);
  font-weight:900;
  color: var(--navy);
  font-size:12px;
  letter-spacing:.02em;
}
h1{
  margin: 14px 0 10px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing:-.03em;
  color: var(--navy);
}
.subhead{
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}
.hero-ctas{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
.trustline{margin-top:12px; color:var(--muted); font-size:13px}

.hero-side{padding: 22px}
.hero-side h3{margin:0 0 10px; color:var(--navy); letter-spacing:-.02em}
.hero-side p{color:var(--muted)}
.badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}
.badge{
  padding:10px 12px;
  border:1px dashed rgba(23,37,72,.25);
  border-radius: 14px;
  background: rgba(248, 250, 252, .9);
  font-weight:800;
  color: var(--navy);
  font-size:13px;
}

.section{padding: 36px 0}
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 14px; margin-bottom: 14px;
}
.section-head h2{
  margin:0;
  font-size: 26px;
  color: var(--navy);
  letter-spacing:-.02em;
}
.section-head p{margin:0; color:var(--muted); max-width: 70ch}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tile{
  padding: 16px;
  border-radius: var(--radius);
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow2);
  display:flex; flex-direction:column; gap:10px;
}
.tile h3{margin:0; color:var(--navy); letter-spacing:-.02em}
.tile p{margin:0; color:var(--muted)}
.tile .meta{display:flex; gap:10px; flex-wrap:wrap; margin-top:2px}
.pill{
  font-size:12px; font-weight:900;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(31,164,231,.10);
  border:1px solid rgba(31,164,231,.18);
  color: var(--navy);
}

.featurelist{display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top:14px}
.feature{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background:#fff;
}
.feature b{display:block; color:var(--navy); margin-bottom:6px}
.feature span{color:var(--muted)}

.callout{
  padding: 20px;
  border-radius: var(--radius2);
  border: 1px solid rgba(31,164,231,.22);
  background: linear-gradient(180deg, rgba(31,164,231,.10), rgba(72,202,250,.06));
  box-shadow: var(--shadow2);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.callout h3{margin:0; color:var(--navy); letter-spacing:-.02em}
.callout p{margin:6px 0 0; color:var(--muted)}
.callout form{display:flex; gap:10px; flex-wrap:wrap}
.input{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  min-width: 240px;
  font-weight:700;
}

.faq{margin-top: 10px}
details{
  border:1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background:#fff;
  box-shadow: var(--shadow2);
  margin: 10px 0;
}
summary{
  cursor:pointer;
  font-weight:900;
  color: var(--navy);
  list-style:none;
}
summary::-webkit-details-marker{display:none}
details p{margin-top:10px; color:var(--muted)}

.breadcrumbs{
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.breadcrumbs a{color: var(--primary); font-weight:900}

.pagehead{padding: 28px 0 10px}
.pagehead h1{font-size: 34px}
.pagehead p{color:var(--muted); max-width: 75ch}

.notice{
  border:1px solid rgba(23,37,72,.18);
  background: rgba(248,250,252,.9);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

.sticky-cta{
  position:fixed;
  left:0; right:0; bottom:0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--border);
  z-index: 60;
  display:none;
}
.sticky-cta .wrap{
  max-width: var(--max);
  margin:0 auto;
  padding: 10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.sticky-cta b{color: var(--navy)}
.sticky-cta span{color: var(--muted); font-weight:700; font-size:13px}
.sticky-cta .right{display:flex; gap:10px; align-items:center}

.footer{
  background: #0B1220;
  color: rgba(255,255,255,.86);
  padding: 34px 0;
  margin-top: 34px;
}
.footer .top{
  display:flex;
  justify-content:space-between;
  gap: 20px;
  flex-wrap:wrap;
}
.footer .brandline{
  display:flex; align-items:center; gap:12px;
}
.footer .brandline img{width:42px; height:42px}
.footer h4{margin:0 0 10px; color:#fff}
.footer a{color: rgba(255,255,255,.82)}
.footer a:hover{color:#fff}
.footer .cols{display:grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 14px}
.footer .cols a{display:block; padding:6px 0}
.footer .sub{
  margin-top: 14px;
  padding-top: 14px;
  border-top:1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.70);
  font-size: 12px;
}
.footer .disclosure{
  margin-top: 10px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  max-width: 95ch;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .featurelist{grid-template-columns: 1fr}
  h1{font-size: 36px}
}
@media (max-width: 760px){
  .navlinks{display:none}
  .burger{display:block}
  .mobilemenu.show{display:block}
  .sticky-cta{display:block}
  h1{font-size: 34px}
}
/* MOBILE: header compact + 1 CTA only */
@media (max-width: 760px){

  /* Header height / spacing */
  .nav{
    padding: 10px 0;
    gap: 10px;
  }

  /* Brand: keep it single-line, hide tagline */
  .brand{
    gap: 10px;
    min-width: 0;
  }
  .brand img{
    width: 36px;
    height: 36px;
  }
  .brand .name span:last-child{
    display: none; /* hide "Better Sleep Starts Tonight." */
  }
  .brand .name span:first-child{
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px; /* adjust if needed */
  }

  /* Actions: show only ONE CTA + Menu */
  .actions{
    gap: 8px;
  }

  /* Hide secondary CTA (the 2nd button) */
  .actions .btn-ghost{
    display: none !important;
  }

  /* Make primary CTA compact */
  .actions .btn-primary{
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Menu button smaller */
  .burger .btn{
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
  }
}
