:root{
  --bg:#0b1020;
  --panel:#10172d;
  --panel-2:#151d39;
  --ink:#e9eefc;
  --muted:#a9b5d1;
  --line:#253052;
  --brand:#79d16a;
  --brand-dark:#59a84b;
  --surface:#f5f8ff;
  --text:#10203a;
  --text-soft:#52627f;
  --white:#ffffff;
  --shadow:0 18px 48px rgba(10,18,38,.12);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#f7f9fe 0%,#edf2fb 100%);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  background:#eef3ff;
  border-radius:8px;
  padding:.15rem .35rem;
}
.container{
  width:min(1180px,calc(100% - 2rem));
  margin-inline:auto;
}
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(11,16,32,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:78px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.75rem;
  color:var(--white);
  font-weight:800;
  letter-spacing:.01em;
}
.brand-mark{
  width:2.1rem;
  height:2.1rem;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:linear-gradient(135deg,var(--brand),#a3e66d);
  color:#0a1308;
  font-weight:900;
}
.menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.16);
  background:transparent;
  color:#fff;
  padding:.75rem 1rem;
  border-radius:999px;
  font:inherit;
}
.site-nav{
  display:flex;
  align-items:flex-start;
  gap:1rem;
  color:#fff;
}
.top-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.5rem;
}
.top-links a{
  padding:.75rem .9rem;
  border-radius:999px;
  color:#edf2ff;
}
.top-links a.active,
.top-links a:hover{
  background:rgba(255,255,255,.1);
}
.menu-group{
  min-width:330px;
  max-width:min(520px, calc(100vw - 3rem));
  max-height:min(70vh, 36rem);
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  padding:.25rem .9rem .9rem;
}
.menu-group summary{
  cursor:pointer;
  list-style:none;
  padding:.75rem 0;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.menu-group summary::after{
  content:"▾";
  font-size:.9rem;
  opacity:.85;
  transition:transform .18s ease;
}
.menu-group[open] summary::after{
  transform:rotate(180deg);
}
.menu-group summary::-webkit-details-marker{display:none}
.menu-group:not([open]) .mega-links{display:none}
.menu-group[open]{padding-bottom:.9rem}
.mega-links{
  list-style:none;
  padding:0 .2rem 0 0;
  margin:0;
  column-count:2;
  column-gap:1rem;
  max-height:calc(min(70vh, 36rem) - 4rem);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.mega-links::-webkit-scrollbar{width:10px}
.mega-links::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px}
.mega-links::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px}
.mega-links::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.34)}
.mega-links li{break-inside:avoid}
.mega-links a{
  display:block;
  padding:.42rem 0;
  color:#dfe8ff;
}
.mega-links a.active,
.mega-links a:hover{
  color:#fff;
  text-decoration:underline;
  text-underline-offset:3px;
}
.hero{
  background:
    radial-gradient(circle at top left, rgba(121,209,106,.18), transparent 26%),
    linear-gradient(180deg, #0e1530 0%, #12193a 100%);
  color:#fff;
  padding:4rem 0 3rem;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:1.5rem;
  align-items:center;
}
.hero-card, .calc-card, .info-card, .tool-card, .ad-placeholder, .search-box, .related-card{
  background:var(--white);
  border:1px solid rgba(16,32,58,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.hero-card{
  padding:1.5rem;
  color:var(--text);
}
.hero-card h2{margin-top:0}
.hero-links{margin:0;padding-left:1.15rem}
.hero-links li+li{margin-top:.55rem}
.page-hero{
  background:linear-gradient(180deg,#0e1530 0%,#12193a 100%);
  color:#fff;
  padding:3rem 0 2rem;
}
.page-hero.slim{padding:2.5rem 0 1.75rem}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.78rem;
  color:var(--brand);
  font-weight:800;
}
.hero h1, .page-hero h1{
  margin:.3rem 0 .7rem;
  font-size:clamp(2rem,5vw,3.6rem);
  line-height:1.06;
}
.lede{
  font-size:1.08rem;
  color:inherit;
  max-width:65ch;
  opacity:.92;
}
.button-row{
  display:flex;
  gap:1rem 1.15rem;
  flex-wrap:wrap;
  align-items:stretch;
  margin-top:1.75rem;
}
.button-row .button{
  min-height:3.35rem;
  padding:1rem 1.35rem;
  line-height:1.35;
}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.9rem 1.15rem;
  border-radius:999px;
  font-weight:700;
}
.button-primary{
  background:var(--brand);
  color:#081107;
}
.button-secondary{
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.feature-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.75rem;
  list-style:none;
  padding:0;
  margin:1.5rem 0 0;
}
.feature-list li{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:.9rem 1rem;
}
.content-section{
  padding:2rem 0;
}
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem 1.5rem;
  margin-bottom:1.35rem;
}
.section-head h2{
  line-height:1.2;
}
.section-head h2{margin:0}
.prose{
  background:var(--white);
  border:1px solid rgba(16,32,58,.08);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.4rem 1.5rem;
}
.prose h2:first-child{margin-top:0}
.tool-grid, .related-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.tool-card, .related-card{
  padding:1.25rem;
  transition:transform .16s ease, box-shadow .16s ease;
}
.tool-card:hover, .related-card:hover{
  transform:translateY(-2px);
}
.tool-card h3, .related-card strong{
  margin:.45rem 0 .65rem;
  display:block;
  line-height:1.35;
}
.tool-card p, .related-card span{
  color:var(--text-soft);
  line-height:1.65;
  display:block;
}
.pill{
  display:inline-flex;
  padding:.38rem .72rem;
  border-radius:999px;
  background:#eef8ed;
  color:#246618;
  font-size:.8rem;
  font-weight:700;
}
.search-box{
  display:block;
  margin-top:1.2rem;
  padding:1rem;
  max-width:540px;
}
.search-box span{
  display:block;
  font-weight:700;
  margin-bottom:.4rem;
}
.search-box input,
.calculator-form input{
  width:100%;
  padding:.92rem 1rem;
  border:1px solid #ccd6ef;
  border-radius:14px;
  font:inherit;
  color:var(--text);
  background:#fff;
}
.breadcrumb{
  display:flex;
  gap:.5rem;
  align-items:center;
  font-size:.95rem;
  color:var(--text-soft);
  padding:1rem 0 .2rem;
}
.calculator-shell{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:1rem;
  padding:1rem 0 0;
}
.calc-card, .info-card{
  padding:1.35rem;
}
.calc-card h1{
  margin:.2rem 0 .5rem;
  font-size:clamp(1.7rem,3.6vw,2.7rem);
  line-height:1.08;
}
.calculator-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  margin-top:1.2rem;
}
.calculator-form label{
  display:block;
}
.calculator-form label span{
  display:block;
  font-weight:700;
  margin-bottom:.42rem;
}
.calculator-form button{
  grid-column:1/-1;
  padding:1rem 1.2rem;
  border:none;
  border-radius:16px;
  font:inherit;
  font-weight:800;
  background:var(--brand);
  color:#091306;
  cursor:pointer;
}
.result-card{
  margin-top:1rem;
  padding:1rem 1.1rem;
  border-radius:18px;
  background:#f2f7ff;
  border:1px solid #dbe6fb;
}
.result-card h2{
  margin:0 0 .4rem;
  font-size:1rem;
}
.result-output{
  font-size:1.15rem;
  font-weight:700;
}
.info-card h2{
  margin-top:0;
  font-size:1.05rem;
}
.info-card h2+h2{margin-top:1.1rem}
.ad-section{
  padding:1.2rem 0 .5rem;
}
.ad-placeholder{
  padding:1.1rem 1rem;
  text-align:center;
  color:var(--text-soft);
  border-style:dashed;
}
.ad-live{
  min-height:120px;
}
.faq-list{
  display:grid;
  gap:.85rem;
}
.faq-item{
  background:#fff;
  border:1px solid rgba(16,32,58,.08);
  border-radius:18px;
  padding:1rem 1.1rem;
  box-shadow:var(--shadow);
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
}
.site-footer{
  margin-top:2rem;
  background:#0e1530;
  color:#eaf0ff;
  padding-top:2rem;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr repeat(5,1fr);
  gap:1.2rem;
}
.site-footer h3{
  margin-top:0;
  color:#fff;
}
.site-footer ul{
  list-style:none;
  padding:0;
  margin:0;
}
.site-footer li+li{margin-top:.45rem}
.site-footer a{color:#dfe7ff}
.site-footer a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.footer-simple{margin-top:1rem !important}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:1.4rem;
  padding:1rem 0 1.4rem;
  color:#b8c5e8;
}
.hidden-by-search{display:none !important}

@media (max-width: 1060px){
  .tool-grid, .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-grid, .calculator-shell{grid-template-columns:1fr}
  .feature-list{grid-template-columns:1fr}
}
@media (max-width: 860px){
  .menu-toggle{display:inline-flex}
  .site-nav{
    display:none;
    position:absolute;
    top:78px;
    left:1rem;
    right:1rem;
    flex-direction:column;
    background:#0f1734;
    border:1px solid rgba(255,255,255,.09);
    border-radius:22px;
    padding:1rem;
  }
  .site-nav.open{display:flex}
  .top-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .menu-group{
    min-width:unset;
    max-width:100%;
    max-height:calc(100vh - 10rem);
  }
  .mega-links{
    column-count:1;
    max-height:calc(100vh - 15rem);
  }
  .calculator-form{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  .tool-grid, .related-grid, .footer-grid{grid-template-columns:1fr}
  .container{width:min(100% - 1rem,1180px)}
  .hero, .page-hero{padding-top:2.3rem}
  .top-links{grid-template-columns:1fr}
}


.footer-grid-wide{
  grid-template-columns:minmax(220px,1.35fr) repeat(6,minmax(120px,1fr));
}
.chart-card{
  margin-top:1rem;
  padding:1rem 1.1rem;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(16,32,58,.08);
  box-shadow:var(--shadow);
}
.chart-card-head h2{
  margin:0 0 .25rem;
  font-size:1rem;
}
.chart-card-head p{
  margin:.1rem 0 .8rem;
  color:var(--text-soft);
}
.chart-wrap{
  position:relative;
  min-height:290px;
}
.guide-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:1rem 0 1.3rem;
}
.top-links a{
  white-space:nowrap;
}
@media (max-width: 1180px){
  .footer-grid-wide{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media (max-width: 1060px){
  .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 860px){
  .footer-grid-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 560px){
  .guide-grid,.footer-grid-wide{grid-template-columns:1fr}
  .chart-wrap{min-height:240px}
}
