:root{
  --header-height: 70px;

  --bg:#e1f1fd;
  --card:#ffffff;
  --muted:#323E48;
  --text:#323E48;
  --accent:#323E48;
  --accent2:#2f4f9a;
  --border:rgba(70,99,172,.12);
  --shadow: 0 12px 30px rgba(70,99,172,.10);
  --radius:20px;
  --max:1100px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
          "Apple Color Emoji","Segoe UI Emoji";

  --space-lg: 56px;
  --space-md: 38px;
  --space-sm: 10px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  font-family:var(--font);
  color:var(--text);
  overflow-x:hidden;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(70,99,172,.10), transparent 60%),
    radial-gradient(700px 500px at 80% 20%, rgba(70,99,172,.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg) 70%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll;
}

img,
svg,
video,
canvas,
iframe{
  max-width:100%;
  height:auto;
}

table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

pre{
  max-width:100%;
  overflow-x:auto;
}

/* links */
a{color:inherit}

.section-lite{
    margin-top: 24px;
}

.space1{
    margin-top:12px;
}
.space2{
    margin-top:24px;
}
.space3{
    margin-top:32px;
}

/* ✅ fixed container centering (your old margin:10 auto was invalid) */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
  width:100%;
}

/* ✅ Sticky header (no overlap) */
.nav{
  position:fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background:#ffffff;
  box-shadow: 0 8px 16px rgba(70, 99, 172, 0.07);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(70,99,172,.09);
}

/* Make header height stable but flexible */
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height: var(--header-height);
  padding: 0 10px;
}

#site-header{
  min-height: var(--header-height);
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand img{
  width: 220px;          /* responsive default */
  height: auto;
  display:block;
}
@media (max-width: 700px){
  .brand img{ width: 200px; }
}

/* Nav links */
.nav-links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  vertical-align:middle;
  max-width:100%;
}
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:10px;
  background:none;
  color:var(--text);
  cursor:pointer;
}
.nav-toggle .bar{
  display:block;
  width:24px;
  height:2px;
  margin:5px auto;
  border-radius:999px;
  background:currentColor;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-links a{
  padding:9px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
}
.nav-links a:hover{
  color:var(--text);
  border-color:var(--border);
  background:rgba(70,99,172,.06);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(70, 99, 172, .22);
  background: linear-gradient(135deg, rgba(255, 248, 228, .95), rgba(226, 240, 255, .98));
  color:#273f6e;
  text-decoration:none;
  font-weight:600;
  box-shadow:0 0 0 rgba(0,0,0,0);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover{
  transform:translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 244, 214, .98), rgba(214, 233, 255, 1));
  border-color: rgba(70, 99, 172, .32);
  color:#1f356d;
  box-shadow:var(--shadow);
}
.btn.secondary {
    border-radius:8px;
}

/* Global Read review button style (matches Reviews hero gradient) */
a.btn[href$="-review.html"] {
  background: linear-gradient(135deg, rgba(255, 248, 228, .95), rgba(226, 240, 255, .98));
  border: 1px solid rgba(70, 99, 172, .22);
  color: #273f6e;
}
a.btn[href$="-review.html"]:hover {
  background: linear-gradient(135deg, rgba(255, 244, 214, .98), rgba(214, 233, 255, 1));
  border-color: rgba(70, 99, 172, .32);
  color: #1f356d;
}

/* Global Amazon affiliate link style (plain text, not button) */
a[href*="amzn.to"],
a[href*="amazon.com/dp/"],
a.amazon-link {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #2f4f9a !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline;
  transform: none !important;
}

a[href*="amzn.to"]:hover,
a[href*="amazon.com/dp/"]:hover,
a.amazon-link:hover {
  color: #1f356d !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ✅ Prevent anchor jumps from hiding under sticky header */
[id]{ scroll-margin-top: calc(var(--header-height) + 12px); }

/* Page sections spacing */
.section,
.products,
.content,
.review{
  margin-bottom: var(--space-lg);
  margin-top: var(--space-md);
}

/* Cards */
.h-card{
  margin-bottom: var(--space-md);
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.90));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:34px;
  box-shadow:var(--shadow);
}
.h-card > * + *{
  margin-top: 18px;
}
.h-card p{
  max-width:78ch;
}
.h-card > h2{
  margin-top:56px;
  margin-bottom:18px;
}
.h-card + .h-card{
  margin-top: 8px;
}
.card{
  background:rgba(255,255,255,.93);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  min-width:0;
}
.card + .card{ margin-top: var(--space-sm); }

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
}
.badge b{color:var(--text)}

h1{font-size:40px;line-height:1.1;margin:24px 0 24px}
h2{
  margin:56px 0 18px;
  line-height:1.22;
  font-size:1.65rem;
  font-weight:650;
}
h3{margin:0 0 10px;line-height:1.3;font-size:1.22rem;font-weight:600}
h4{margin:0 0 10px;line-height:1.35;font-size:1.08rem;font-weight:600}
@media (max-width: 500px){h1{font-size:34px}}
p{color:var(--muted);line-height:1.8;margin:0 0 20px}
h1,h2,h3,h4,p,li{
  overflow-wrap:anywhere;
}

.hero{padding:56px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
  align-items:stretch;
}

.hero-primary{max-width:stretch;text-align:left}
.hero-primary .kpis{justify-items:stretch}
.hero-secondary{max-width:stretch;}

.kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:24px;
  margin-bottom:16px;
}
@media (max-width: 700px){.kpis{grid-template-columns:1fr}}
.kpi{
  padding:16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(70,99,172,.05)
}
.kpi .n{font-size:18px;font-weight:750;color:var(--text)}
.kpi .d{font-size:16px;color:var(--muted);margin-top:6px}

.section{padding:18px 0 44px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 900px){.grid-3{grid-template-columns:1fr}}
.card h3{margin:0 0 8px;font-size:16px;text-align:start}
.ul {margin:0;color:var(--muted);line-height:1.2;text-align:start}

.footer{
  border-top:0;
  padding:24px 0;
  background:#ffffff;
  box-shadow: 0 -8px 16px rgba(70, 99, 172, 0.07);
  color:var(--muted);
  font-size:16px;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.footer-copy{
  min-width:0;
}
.footer-logo{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  flex-shrink:0;
  margin-left:auto;
}
.footer-logo img{
  display:block;
  width:200px;
  max-width:100%;
  height:auto;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
@media (max-width: 700px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .footer-logo{
    justify-content:flex-start;
  }
}

.notice{
  border:1px dashed rgba(70,99,172,.45);
  background:rgba(70,99,172,.05);
  padding:14px 14px;
  border-radius:16px;
  color:var(--muted);
  font-size:14px;
}

/* Products grid */
.products,
.review{padding:22px 0 44px}
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
@media (max-width: 980px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 650px){.product-grid{grid-template-columns:1fr}}
.p-card{
  overflow:hidden;
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  margin:0;
  min-width:0;
}
.p-img{background:#ffffff;display:flex;align-items:center;justify-content:center;padding:10%}
.p-img img{max-width:90%;max-height:90%;object-fit:contain;align-items:center}
.p-body{padding:10px;display:flex;flex-direction:column;gap:10px;flex:1}
.p-title{font-weight:750}
.p-meta{color:var(--muted);font-size:16px;line-height:1.1}
.p-actions{display:flex;gap:10px;align-items:flex-start;margin-top:auto;flex-wrap:wrap}
.small{font-size:14px;color:var(--muted);text-align:start;margin-top:10px}

.affiliate-disclaimer {
  border-left: 3px solid rgba(70,99,172,.25);
  padding-left: 10px;
  margin: 24px 0 12px;
}

.title-disclosure-box {
  border-radius: 24px 24px 0 0;
  border: 0;
  background: linear-gradient(135deg, rgba(255, 248, 228, .9), rgba(226, 240, 255, .95));
  box-shadow: 0 18px 38px rgba(35, 64, 119, .12);
  padding: 42px 24px 36px;
  margin: 6px 0 0;
}
.title-disclosure-box h1 {
  margin: 0 0 10px !important;
}
.title-disclosure-box .badge {
  margin-bottom: 12px;
}
.title-disclosure-box .affiliate-disclaimer {
  margin: 8px 0 0;
}

.under-title-card {
  border: 0 !important;
  border-radius: 0 0 24px 24px !important;
  margin-top: 0 !important;
}

.pill{
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  border:1px solid;
  background:rgba(34,197,94,.10);
  padding:6px 10px;
  border-radius:999px;
  font-size:14px;
  color:var(--muted)
}
.pill b{color:var(--text)}

/* Content pages */
.content{padding:28px 0 44px}
.content h3{margin:24px 0 12px}
.content p{max-width:80ch}

.container + .container{
  margin-top: 18px;
}

/* Blog dropdown */
.dropdown {
    position:relative;
}
.dropdown summary{
  list-style:none;
  cursor:pointer;
  padding:8px 8px;
  border-radius:12px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid transparent;
  user-select:none;
}
.dropdown summary::-webkit-details-marker{display:none}
.dropdown[open] summary,
.dropdown summary:hover{
  color:var(--text);
  border-color:var(--border);
  background:rgba(70,99,172,.06);
}
.dropdown-menu{
  position:absolute;
  right:0;
  left:auto;
  top:44px;
  min-width:220px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(70,99,172,.12);
  background:rgba(255,255,255,.95);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:6px;
  max-width:min(92vw, 340px);
}
.dropdown-groups{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.dropdown-group-title{
  margin:0 0 6px;
  font-size:13px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#4a5e77;
}
.dropdown-group-links{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.dropdown-menu a{
  padding:10px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--text);
  border:1px solid transparent;
}
.dropdown-menu a:hover{
  background:rgba(70,99,172,.06);
  border-color:rgba(70,99,172,.12)
}
@media (min-width: 861px){
  .blog-dropdown{
    position:static;
  }
  .blog-dropdown .dropdown-menu{
    position:fixed;
    top:var(--header-height);
    left:0;
    right:0;
    width:100%;
    max-width:none;
    min-width:0;
    border-radius:0 0 16px 16px;
    border-top:0;
    padding:14px 18px 18px;
    box-shadow:0 14px 28px rgba(35,64,119,.12);
    background:rgba(255,255,255,.98);
  }
}
@media (max-width: 860px){
  .nav-inner{
    min-height:60px;
    padding:0 10px;
  }
  .nav-toggle{
    display:inline-block;
  }
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    max-width:none;
    padding:10px 18px 16px;
    background:rgba(255,255,255,.98);
    border-top:1px solid rgba(70,99,172,.14);
    box-shadow:0 14px 28px rgba(35,64,119,.12);
    flex-direction:column;
    align-items:stretch;
    gap:2px;
  }
  .nav.nav-open .nav-links{
    display:flex;
  }
  .nav-links a,
  .dropdown summary{
    padding:12px 10px;
  }
  .dropdown{
    width:100%;
  }
  .dropdown-menu{
    position:static;
    top:auto;
    left:auto;
    right:auto;
    min-width:100%;
    margin-top:6px;
    box-shadow:none;
    border-radius:12px;
    border-color:rgba(70,99,172,.16);
  }
  .dropdown-groups{
    grid-template-columns:1fr;
  }
  .dropdown-group{
    margin-top:6px;
  }
  .nav.nav-open .nav-toggle .bar:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav.nav-open .nav-toggle .bar:nth-child(2){
    opacity:0;
  }
  .nav.nav-open .nav-toggle .bar:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}
@media (max-width: 700px){
  .dropdown-menu{
      right:0;
      left:auto;}
  :root { --header-height: 60px; }
  #site-header{ min-height: 60px; }
}
