*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#2EC4B6;
  --primary-dark:#25a99d;
  --primary-light:#e6f9f7;
  --primary-gradient:linear-gradient(135deg,#2EC4B6 0%,#1aa396 100%);
  --accent:#F5B731;
  --accent-dark:#e0a520;
  --green:#2EC4B6;
  --green-light:#e6f9f7;
  --red:#FF6B6B;
  --red-light:#ffe0e0;
  --orange:#FF9F43;
  --orange-light:#fff3e0;
  --purple:#A855F7;
  --purple-light:#f3e8ff;
  --gray-50:#F8F9FA;
  --gray-100:#F1F3F5;
  --gray-200:#E9ECEF;
  --gray-300:#DEE2E6;
  --gray-400:#ADB5BD;
  --gray-500:#868E96;
  --gray-600:#6C757D;
  --gray-700:#495057;
  --gray-800:#343A40;
  --gray-900:#212529;
  --white:#FFFFFF;
  --radius:16px;
  --radius-sm:10px;
  --radius-full:50px;
  --shadow:0 2px 8px rgba(0,0,0,.06);
  --shadow-md:0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:0 8px 30px rgba(0,0,0,.12);
  --max-w:480px;
  --nav-h:64px;
}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--gray-800);
  background:var(--gray-50);
  line-height:1.5;
  padding-bottom:calc(var(--nav-h) + 16px);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%;height:auto}

/* TOP HEADER BAR */
.site-header{
  background:var(--white);
  position:sticky;top:0;z-index:100;
  box-shadow:0 1px 4px rgba(0,0,0,.05);
}
.header-inner{
  max-width:var(--max-w);margin:0 auto;
  padding:14px 20px;
  display:flex;align-items:center;justify-content:space-between;
}
.header-menu-btn{
  background:none;border:none;cursor:pointer;padding:4px;
  display:flex;align-items:center;justify-content:center;
}
.header-menu-btn svg{width:24px;height:24px;color:var(--gray-700)}
.header-title{font-size:1.1rem;font-weight:700;color:var(--gray-900);letter-spacing:-.3px}
.header-logo{display:flex;align-items:center;gap:8px;color:var(--primary);font-weight:700;font-size:1.15rem}
.header-logo svg{width:26px;height:26px}

/* SIDEBAR DRAWER */
.sidebar-overlay{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;
  opacity:0;transition:opacity .3s;
}
.sidebar-overlay.open{display:block;opacity:1}
.sidebar{
  position:fixed;top:0;left:-280px;width:280px;height:100%;
  background:var(--white);z-index:201;
  transition:left .3s ease;
  box-shadow:var(--shadow-lg);
  overflow-y:auto;
}
.sidebar.open{left:0}
.sidebar-header{
  padding:28px 20px 20px;
  background:var(--primary-gradient);
  color:#fff;
}
.sidebar-header h3{font-size:1.2rem;margin-bottom:2px}
.sidebar-header p{font-size:.8rem;opacity:.85}
.sidebar-nav{padding:12px 0}
.sidebar-nav a{
  display:flex;align-items:center;gap:14px;
  padding:14px 20px;
  color:var(--gray-700);font-size:.95rem;
  border-bottom:1px dashed var(--gray-200);
  transition:background .2s;
}
.sidebar-nav a:hover{background:var(--gray-50)}
.sidebar-nav a svg{width:20px;height:20px;color:var(--primary);flex-shrink:0}
.sidebar-nav a.active{color:var(--primary);font-weight:600}

/* BOTTOM NAV */
.bottom-nav{
  position:fixed;bottom:0;left:0;right:0;
  background:var(--white);
  box-shadow:0 -2px 10px rgba(0,0,0,.06);
  z-index:100;
  height:var(--nav-h);
}
.bottom-nav-inner{
  max-width:var(--max-w);margin:0 auto;
  display:flex;align-items:center;justify-content:space-around;
  height:100%;padding:0 8px;
}
.nav-item{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:8px 12px;cursor:pointer;
  color:var(--gray-400);font-size:.7rem;font-weight:500;
  transition:color .2s;text-decoration:none;
}
.nav-item svg{width:24px;height:24px;transition:color .2s}
.nav-item.active{color:var(--primary)}
.nav-item.active svg{color:var(--primary)}
.nav-item:hover{color:var(--primary);text-decoration:none}

/* HERO / WELCOME */
.hero{
  background:var(--primary-gradient);
  color:#fff;padding:36px 20px 32px;
  border-radius:0 0 28px 28px;
  margin-bottom:20px;
  text-align:center;
}
.hero h1{font-size:1.5rem;font-weight:700;margin-bottom:6px;letter-spacing:-.3px}
.hero p{font-size:.9rem;opacity:.9;max-width:400px;margin:0 auto;line-height:1.5}

/* CATEGORY CHIPS */
.category-chips{
  display:flex;gap:10px;
  overflow-x:auto;
  padding:0 20px 16px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.category-chips::-webkit-scrollbar{display:none}
.chip{
  flex-shrink:0;
  padding:8px 18px;
  border-radius:var(--radius-full);
  background:var(--white);
  border:1.5px solid var(--gray-200);
  color:var(--gray-600);
  font-size:.85rem;font-weight:500;
  cursor:pointer;transition:all .2s;
  text-decoration:none;
}
.chip:hover,.chip.active{
  background:var(--primary);color:#fff;border-color:var(--primary);
  text-decoration:none;
}

/* SECTION TITLE */
.section-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:0 20px;margin-bottom:14px;
}
.section-header h2{font-size:1.1rem;font-weight:700;color:var(--gray-900)}
.section-header a{font-size:.85rem;color:var(--primary);font-weight:500}

/* CONTAINER */
.container{max-width:var(--max-w);margin:0 auto;padding:0 20px}
.page-section{padding:20px 0}

/* BREADCRUMB */
.breadcrumb{font-size:.8rem;color:var(--gray-500);padding:8px 0 16px}
.breadcrumb a{color:var(--primary)}

/* TOOL CARDS - HORIZONTAL SCROLL */
.tools-scroll{
  display:flex;gap:12px;
  overflow-x:auto;
  padding:0 20px 20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.tools-scroll::-webkit-scrollbar{display:none}

/* TOOL CARDS - GRID */
.tools-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:12px;padding:0 0 20px;
}

/* TOOL CARD */
.tool-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  transition:box-shadow .2s,transform .2s;
  display:flex;flex-direction:column;
  gap:10px;
  min-width:180px;
  text-decoration:none;
  color:inherit;
}
.tool-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px);text-decoration:none}
.tool-card-icon{
  width:48px;height:48px;
  border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;
}
.tool-card-icon.labor{background:var(--primary-light);color:var(--primary)}
.tool-card-icon.tax{background:var(--orange-light);color:var(--orange)}
.tool-card-icon.health{background:var(--red-light);color:var(--red)}
.tool-card-icon.general{background:var(--purple-light);color:var(--purple)}
.tool-card h3{font-size:.9rem;font-weight:600;color:var(--gray-800);line-height:1.3}
.tool-card p{font-size:.78rem;color:var(--gray-500);line-height:1.4}
.tool-card .tool-badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:var(--radius-full);
  font-size:.7rem;font-weight:600;
  background:var(--primary-light);color:var(--primary);
  align-self:flex-start;
}
.tool-card .tool-badge.soon{background:var(--gray-100);color:var(--gray-400)}

/* TOOL LIST (vertical cards) */
.tool-list{display:flex;flex-direction:column;gap:12px}
.tool-list-item{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  display:flex;gap:14px;align-items:center;
  text-decoration:none;color:inherit;
  transition:box-shadow .2s;
}
.tool-list-item:hover{box-shadow:var(--shadow-md);text-decoration:none}
.tool-list-item .tl-icon{
  width:52px;height:52px;border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;flex-shrink:0;
}
.tool-list-item .tl-info{flex:1}
.tool-list-item .tl-info h3{font-size:.9rem;font-weight:600;color:var(--gray-800);margin-bottom:2px}
.tool-list-item .tl-info p{font-size:.78rem;color:var(--gray-500)}
.tool-list-item .tl-arrow{color:var(--gray-300);flex-shrink:0}
.tool-list-item .tl-arrow svg{width:20px;height:20px}

/* CALCULATOR CARD */
.calc-card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
  padding:24px 20px;
  margin-bottom:16px;
}
.calc-card h1{font-size:1.25rem;font-weight:700;color:var(--gray-900);margin-bottom:4px}
.calc-card .subtitle{font-size:.85rem;color:var(--gray-500);margin-bottom:20px}
.form-group{margin-bottom:16px}
.form-group label{
  display:block;font-size:.8rem;font-weight:600;
  color:var(--gray-600);margin-bottom:6px;
  text-transform:uppercase;letter-spacing:.3px;
}
.form-group input,.form-group select{
  width:100%;padding:12px 16px;
  border:1.5px solid var(--gray-200);
  border-radius:var(--radius-sm);
  font-size:.95rem;color:var(--gray-800);
  background:var(--gray-50);
  transition:all .2s;
}
.form-group input:focus,.form-group select:focus{
  outline:none;border-color:var(--primary);
  background:var(--white);
  box-shadow:0 0 0 3px rgba(46,196,182,.15);
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

/* PRIMARY BUTTON (yellow like Mesio) */
.btn-calc{
  width:100%;padding:14px;
  background:var(--accent);
  color:var(--gray-900);
  border:none;
  border-radius:var(--radius-full);
  font-size:1rem;font-weight:700;
  cursor:pointer;transition:all .2s;
  box-shadow:0 4px 12px rgba(245,183,49,.3);
}
.btn-calc:hover{background:var(--accent-dark);transform:translateY(-1px)}

/* RESULTS */
.result-box{display:none;margin-top:20px;border-radius:var(--radius);overflow:hidden;border:1.5px solid var(--gray-200)}
.result-box.show{display:block;animation:slideUp .3s ease}
@keyframes slideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.result-header{
  background:var(--primary-gradient);
  color:#fff;padding:14px 20px;
  font-weight:600;font-size:.95rem;
  display:flex;align-items:center;gap:8px;
}
.result-rows{padding:0}
.result-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:13px 20px;border-bottom:1px solid var(--gray-100);
  font-size:.9rem;
}
.result-row:last-child{border-bottom:none}
.result-row .label{color:var(--gray-600)}
.result-row .value{font-weight:600;color:var(--gray-800)}
.result-total{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 20px;
  background:var(--primary-light);
  font-size:1.05rem;font-weight:700;
}
.result-total .value{color:var(--primary)}
.result-note{padding:12px 20px;font-size:.75rem;color:var(--gray-500);background:var(--gray-50)}

/* INFO CONTENT */
.info-content{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px 20px;
  margin-bottom:16px;
}
.info-content h2{font-size:1.05rem;font-weight:700;color:var(--gray-900);margin:20px 0 8px}
.info-content h2:first-child{margin-top:0}
.info-content h3{font-size:.95rem;font-weight:600;color:var(--gray-800);margin:16px 0 6px}
.info-content p{color:var(--gray-600);margin-bottom:10px;font-size:.88rem;line-height:1.6}
.info-content ul,.info-content ol{color:var(--gray-600);margin:0 0 10px 18px;font-size:.88rem}
.info-content li{margin-bottom:5px}
.info-content strong{color:var(--gray-800)}

/* FAQ */
.faq-item{border-bottom:1px solid var(--gray-200);padding:14px 0}
.faq-item:last-child{border-bottom:none}
.faq-q{font-weight:600;color:var(--gray-800);margin-bottom:4px;font-size:.9rem}
.faq-a{color:var(--gray-600);font-size:.85rem;line-height:1.5}

/* AD PLACEHOLDER */
.ad-space{
  background:var(--gray-100);
  border:2px dashed var(--gray-300);
  border-radius:var(--radius-sm);
  text-align:center;padding:18px;
  color:var(--gray-400);font-size:.8rem;
  margin:16px 0;
}

/* FOOTER */
.site-footer{
  background:var(--white);
  border-top:1px solid var(--gray-200);
  padding:28px 20px;
  margin-top:20px;
  margin-bottom:var(--nav-h);
}
.footer-inner{
  max-width:var(--max-w);margin:0 auto;
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;
}
.footer-col h4{font-size:.8rem;font-weight:700;color:var(--gray-800);margin-bottom:10px;text-transform:uppercase;letter-spacing:.3px}
.footer-col a{display:block;font-size:.82rem;color:var(--gray-500);margin-bottom:6px}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{
  max-width:var(--max-w);margin:14px auto 0;
  padding-top:14px;border-top:1px solid var(--gray-200);
  font-size:.75rem;color:var(--gray-400);text-align:center;
}

/* RESPONSIVE */
@media(max-width:640px){
  .form-row{grid-template-columns:1fr}
  .hero h1{font-size:1.3rem}
  .hero{padding:28px 20px 24px}
  .tools-grid{grid-template-columns:1fr}
  .calc-card{padding:20px 16px}
  .info-content{padding:20px 16px}
  .footer-inner{flex-direction:column;gap:16px}
}
@media(min-width:641px){
  .bottom-nav{display:none}
  body{padding-bottom:0}
}
