
/* Balanced Habits Library — v1 (no JS) */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --line: rgba(255,255,255,.12);
  --accent: #8ef0c8;
  --accent2: #7db3ff;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 26px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1000px 650px at 12% 12%, rgba(125,179,255,.28), transparent 60%),
    radial-gradient(950px 650px at 88% 10%, rgba(142,240,200,.22), transparent 55%),
    radial-gradient(900px 600px at 55% 90%, rgba(255,255,255,.10), transparent 60%),
    var(--bg);
  line-height:1.55;
}

a{color:inherit}
.wrap{max-width:var(--max); padding:0 22px; margin:0 auto}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,18,32,.80), rgba(11,18,32,.55));
  border-bottom:1px solid var(--line);
}
.topbar--simple{background: rgba(11,18,32,.75)}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:14px}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none}
.brand__mark{
  width:26px; height:26px; border-radius:9px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 30px rgba(125,179,255,.25);
}
.brand__text{font-weight:700; letter-spacing:.2px}
.nav{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.nav a{opacity:.9; text-decoration:none; padding:8px 10px; border-radius:12px}
.nav a:hover{background:var(--panel); opacity:1}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  font-weight:650;
  transition: transform .14s ease, background .14s ease;
}
.btn:hover{transform: translateY(-1px); background: var(--panel)}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color:#08111f;
}
.btn--ghost{background: transparent}
.btn--full{width:100%}

/* Hero */
.hero{padding:54px 0 26px}
.hero__grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:26px; align-items:start}
@media (max-width: 980px){ .hero__grid{grid-template-columns:1fr; } }
.pill{
  display:inline-block;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  margin:0 0 14px;
  font-weight:600;
  letter-spacing:.2px;
}
.hero h1{font-size:42px; line-height:1.12; margin:0 0 14px}
@media (max-width: 640px){ .hero h1{font-size:34px} }
.lead{font-size:17px; color:var(--muted); margin:0 0 18px}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin:10px 0 16px}
.note{
  padding:14px 14px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Panels */
.panel-card, .price-card{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:18px;
}
.panel-card h3{margin:0 0 10px}
.checklist{list-style:none; padding:0; margin:0; display:grid; gap:8px; color:var(--muted)}
.checklist li{position:relative; padding-left:26px}
.checklist li:before{
  content:"";
  position:absolute; left:0; top:7px;
  width:14px; height:14px; border-radius:6px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
.price-card{margin-top:14px}
.price-card__row{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.price-card__label{color:var(--muted); font-weight:650}
.price-card__price{font-size:30px; font-weight:800}
.muted{color:var(--muted)}
.price-card p{margin:10px 0 14px}

/* Sections */
.section{padding:40px 0}
.section--alt{
  background: linear-gradient(to bottom, rgba(255,255,255,.02), rgba(255,255,255,.04));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:18px}
.section__head h2{margin:0; font-size:28px}
.cards{display:grid; grid-template-columns: repeat(4, 1fr); gap:14px}
@media (max-width: 980px){ .cards{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .cards{grid-template-columns: 1fr;} }
.card{
  padding:18px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: 0 10px 34px rgba(0,0,0,.22);
}
.card__tag{
  display:inline-block;
  font-size:12px;
  letter-spacing:.3px;
  text-transform:uppercase;
  color: rgba(8,17,31,.92);
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  margin-bottom:12px;
}
.card h3{margin:0 0 10px}
.card p{margin:0 0 12px; color:var(--muted)}
.mini{margin:0; padding-left:18px; color:var(--muted)}
.mini li{margin:6px 0}

/* How */
.how{display:grid; gap:18px}
.how__left{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap}
.steps{list-style:none; padding:0; margin:0; display:grid; gap:12px}
.step{
  display:grid; grid-template-columns: 44px 1fr; gap:12px;
  padding:16px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
}
.step__num{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  color:#08111f;
  font-weight:900;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
.step h3{margin:0 0 6px}
.step p{margin:0; color:var(--muted)}
.disclaimer{
  margin-top:8px;
  padding:16px;
  border-radius: var(--radius2);
  border:1px dashed rgba(255,255,255,.22);
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

/* FAQ */
.faq{display:grid; gap:10px}
.qa{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  padding:14px 16px;
}
.qa summary{cursor:pointer; font-weight:750}
.qa p{margin:10px 0 0; color:var(--muted)}

/* Request */
.section--cta{padding:48px 0 64px}
.request{display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start}
@media (max-width: 980px){ .request{grid-template-columns:1fr} }
.contact-box{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 520px){ .contact-box{grid-template-columns:1fr} }
.label{color:var(--muted); font-size:12px; letter-spacing:.25px; text-transform:uppercase; margin-bottom:4px}
.value a{opacity:.95}

.form{
  padding:18px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  display:grid;
  gap:12px;
}
.form label span{display:block; font-weight:700; margin:0 0 6px}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(10,16,28,.65);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(142,240,200,.55);
  box-shadow: 0 0 0 4px rgba(142,240,200,.14);
}
.fineprint{margin:0; color:var(--muted); font-size:13px}
.fineprint a{text-decoration:none; border-bottom:1px solid rgba(255,255,255,.24)}
.fineprint a:hover{border-bottom-color: rgba(142,240,200,.6)}

/* Docs */
.doc{padding:34px 0 60px}
.doc__wrap{max-width: 860px}
.doc h1{margin:0 0 6px; font-size:34px}
.doc-card{
  margin:14px 0;
  padding:18px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius: var(--radius2);
}
.doc-card h2{margin:0 0 10px; font-size:18px}
.doc-card p{margin:8px 0; color:var(--muted)}
.doc-card ul{margin:10px 0 0; color:var(--muted)}
.callout{
  padding:12px 14px;
  border-radius: 16px;
  border:1px dashed rgba(255,255,255,.24);
  background: rgba(255,255,255,.03);
}
.backlink{margin-top:18px}
.backlink a{text-decoration:none; opacity:.9}
.backlink a:hover{opacity:1}

/* Thank you */
.thanks{padding:54px 0 70px}
.thanks__wrap{max-width: 920px}
.thanks__card{
  padding:22px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.thanks__icon{
  width:44px; height:44px; border-radius:16px;
  display:grid; place-items:center;
  color:#08111f;
  font-weight:950;
  margin-bottom:10px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
}
.thanks h1{margin:0 0 6px; font-size:34px}
.thanks__grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin:16px 0}
@media (max-width: 520px){ .thanks__grid{grid-template-columns:1fr} }
.mini-card{
  padding:14px;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.thanks__actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:14px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:24px 0;
  background: rgba(10,16,28,.55);
}
.footer--simple{background: rgba(10,16,28,.45)}
.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){ .footer__grid{grid-template-columns:1fr; } }
.footer__brand{font-weight:850; margin-bottom:6px}
.footer__links{display:flex; gap:12px; flex-wrap:wrap}
.footer__links a{text-decoration:none; opacity:.86; padding:6px 10px; border-radius:12px}
.footer__links a:hover{background: var(--panel); opacity:1}
.footer__meta{color:var(--muted)}

/* visual tweaks for unique layout */
.hero { background: linear-gradient(135deg, #eef6ff, #ffffff); }
.btn--primary { background: #2b6cb0; }
.topbar { border-bottom: 2px solid #e2e8f0; }
.panel-card, .price-card { box-shadow: 0 12px 30px rgba(0,0,0,.06); }

/* --- readability fixes --- */
.hero .eyebrow,
.hero h1,
.hero p,
.hero .note,
.hero .actions a,
.hero .actions button { color: #0b1220 !important; }

.hero { background: linear-gradient(135deg, #f5fbff, #ffffff) !important; }
.hero .panel { background: rgba(255,255,255,0.92) !important; border: 1px solid rgba(15,23,42,0.10) !important; }
.hero .panel h3, .hero .panel p, .hero .panel li { color: #0b1220 !important; }
.hero .btn, .hero .btn-primary { color: #ffffff !important; }

/* lighten any global low-contrast text */
.muted, .subtle, .soft { color: rgba(11,18,32,0.72) !important; }

/* --- force top contrast --- */
header, .topbar, .navbar, .nav, .nav a, .nav span,
.hero *, .hero h1, .hero h2, .hero h3, .hero p {
  color: #0b1220 !important;
}
header a, .nav a { opacity: 1 !important; }

/* --- header contrast final fix --- */
/* Dark header background -> light text */
header, .topbar, .navbar {
  background: #0b1220 !important;
}

header a,
header span,
header .logo,
header .nav a,
header .nav span {
  color: #ffffff !important;
}

header a:hover {
  color: #c7d2fe !important;
}

/* Keep hero section readable on light bg */
.hero {
  background: linear-gradient(135deg, #f5fbff, #ffffff) !important;
}

.hero h1,
.hero h2,
.hero h3,
.hero p {
  color: #0b1220 !important;
}

/* --- contrast fix: muted text should be light on dark sections --- */
.muted, .subtle, .soft { color: var(--muted) !important; }
/* hero is light, so muted inside hero should be dark */
.hero .muted, .hero .subtle, .hero .soft { color: rgba(11,18,32,0.72) !important; }
/* footer links and small text stay readable */
.footer, .footer a, .footer p, .footer__meta, .footer__brand { color: rgba(255,255,255,0.92) !important; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
