
:root{
  --primary:#0F172A;--secondary:#2563EB;--accent:#06B6D4;--bg:#F8FAFC;--card:#FFFFFF;
  --text:#0F172A;--muted:#64748B;--border:#E2E8F0;--shadow:0 18px 45px rgba(15,23,42,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,92%);margin:auto}
.mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--secondary),var(--accent));display:grid;place-items:center;color:white;font-weight:900}
.nav-links{display:flex;gap:22px;align-items:center;font-weight:700;color:#334155}
.nav-links a:hover{color:var(--secondary)}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:var(--secondary);color:#fff;padding:13px 18px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(37,99,235,.25)}
.btn:hover{filter:brightness(.96)}
.btn.secondary{background:#fff;color:var(--secondary);border:1px solid #bfdbfe;box-shadow:none}
.hero{background:radial-gradient(circle at 20% 10%,rgba(6,182,212,.22),transparent 30%),linear-gradient(135deg,#0F172A,#172554 65%,#0F172A);color:white;padding:82px 0 70px}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}
.badge{display:inline-flex;gap:8px;align-items:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 13px;color:#DDFBFF;font-weight:800}
.hero h1{font-size:56px;line-height:1.02;margin:18px 0 14px;letter-spacing:-2px}
.hero p{font-size:19px;color:#CBD5E1;line-height:1.7;max-width:650px}
.searchbox{display:flex;gap:10px;margin-top:25px;background:white;padding:10px;border-radius:18px;box-shadow:var(--shadow)}
.searchbox input{flex:1;border:0;outline:0;font-size:16px;padding:13px;color:#0F172A}
.hero-card{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);border-radius:26px;padding:24px;box-shadow:var(--shadow)}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.mini{background:white;color:#0F172A;border-radius:18px;padding:18px;font-weight:900;min-height:92px;display:flex;flex-direction:column;gap:8px}
.mini span{font-size:13px;color:var(--muted);font-weight:700}
.section{padding:58px 0}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.section-title h2{font-size:36px;margin:0;letter-spacing:-1px}
.section-title p{color:var(--muted);margin:8px 0 0;max-width:650px;line-height:1.6}
.tools-grid{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:18px;
}

.tool-card{
width:320px;
flex:0 0 320px;
background:var(--card);
border:1px solid var(--border);
border-radius:22px;
padding:22px;
box-shadow:0 8px 25px rgba(15,23,42,.055);
transition:.2s;
}

.tool-card:hover{
transform:translateY(-4px);
box-shadow:var(--shadow);
border-color:#BDBFFE;
}
.tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#BFDBFE}
.icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#EFF6FF;color:var(--secondary);font-size:22px;margin-bottom:15px}
.tool-card h3{margin:0 0 8px;font-size:19px}
.tool-card p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}

.cat{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
background:white;
border:1px solid var(--border);
border-radius:20px;
padding:18px 24px;
text-align:center;
font-weight:900;
box-shadow:0 8px 22px rgba(15,23,42,.05);
text-decoration:none;
color:#0f172a;
cursor:pointer;
transition:.3s;
}

.cat:hover{
background:#2563eb;
color:#fff;
transform:translateY(-6px);
box-shadow:0 15px 35px rgba(37,99,235,.18);}

.cat-icon{
font-size:40px;
line-height:1;
margin-bottom:6px;
}

.why{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.why-card{background:white;border:1px solid var(--border);padding:24px;border-radius:22px;text-align:center}
.page-hero{background:linear-gradient(135deg,#0F172A,#172554);color:white;padding:54px 0}
.page-hero h1{font-size:42px;margin:0 0 10px}
.page-hero p{color:#CBD5E1;line-height:1.7;max-width:720px}
.tool-layout{display:grid;grid-template-columns:1fr 330px;gap:24px;align-items:start}
.calculator{background:white;border:1px solid var(--border);border-radius:24px;padding:26px;box-shadow:var(--shadow)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:15px}
.field label{font-weight:800;color:#334155}
input,select,textarea{width:100%;border:1px solid #CBD5E1;border-radius:14px;padding:13px 14px;font-size:16px;background:white;outline:0}
textarea{min-height:160px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--secondary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.result{margin-top:18px;background:#F0F9FF;border:1px solid #BAE6FD;border-radius:18px;padding:18px;font-weight:900;color:#075985;line-height:1.7;min-height:58px}
.content-box,.sidebar-box{background:white;border:1px solid var(--border);border-radius:22px;padding:24px;box-shadow:0 8px 25px rgba(15,23,42,.05);margin-top:24px}
.content-box h2,.content-box h3{letter-spacing:-.4px}
.content-box p,.content-box li{color:#475569;line-height:1.75}
.sidebar-box{margin-top:0;position:sticky;top:92px}
.related{display:flex;flex-direction:column;gap:10px}
.related a{padding:12px;border-radius:14px;background:#F8FAFC;border:1px solid var(--border);font-weight:800}
/* Final footer fix */
.footer{
  background:#0F172A;
  color:#fff;
  padding:60px 0 25px;
  margin-top:50px;
  width:100%;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:40px;
    align-items:flex-start;
}

.footer-brand h2{
    font-size:24px !important;
    font-weight:700 !important;
    line-height:1.4 !important;
}

.footer h3{
    font-size:20px !important;
    font-weight:700 !important;
}

.footer a{
    font-size:17px !important;
    font-weight:400 !important;
}

.footer p a{
    display:inline-block;
    margin-bottom:10px;
    color:#E5E7EB;
    text-decoration:none;
    transition:.2s;
}

.footer p a:hover{
    color:#3B82F6;
}

.footer{
    padding:70px 0 35px !important;
}

.footer-bottom{
    color:#94A3B8 !important;
    font-size:16px !important;
}

.footer-brand p,
.footer-bottom{
    font-size:17px !important;
    font-weight:400 !important;
    color:#CBD5E1 !important;
}

@media(max-width:900px){
    .footer-grid{
        grid-template-columns:1fr;
    }
}
.logo-nav{
  height:55px !important;
  width:auto !important;
  max-width:180px !important;
  display:block !important;
}

.nav-inner{
  height:80px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}

.hero .container,
.section .container{
  width:min(1180px,92%) !important;
  margin:auto !important;
}
/* Professional final polish */
.menu-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--text);font-size:22px;cursor:pointer}
.no-results{margin:24px 0 0;padding:18px;border:1px dashed #CBD5E1;border-radius:16px;background:#F8FAFC;color:var(--muted);text-align:center;font-weight:700}
.tool-card .icon{font-size:24px;background:linear-gradient(135deg,#EFF6FF,#F0FDFA);border:1px solid #DBEAFE}
.tool-card h3{line-height:1.3}
.nav{background:rgba(255,255,255,.96);border-bottom:1px solid #E2E8F0;position:sticky;top:0;z-index:50;backdrop-filter:blur(12px)}
@media(max-width:900px){
  .menu-toggle{display:inline-flex}
  .nav-links{display:none;position:absolute;top:80px;left:4%;right:4%;padding:12px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:4px}
  .nav-links.active{display:flex}
  .nav-links a{padding:13px 14px;border-radius:10px}
  .nav-links a:hover{background:#EFF6FF}
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:clamp(38px,8vw,56px)}
}
@media(max-width:640px){
  .hero{padding:54px 0 48px}
  .hero p{font-size:17px}
  .searchbox{flex-direction:column}
  .searchbox .btn{width:100%}
  .mini-grid{grid-template-columns:1fr}
  .tools-grid{display:grid;grid-template-columns:1fr;gap:14px}
  .tool-card{width:auto;flex:initial}
  .categories{grid-template-columns:repeat(2,1fr)}
  .tool-layout{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
}

/* Caluler professional minimal footer */
.footer{margin-top:0;background:linear-gradient(180deg,#0b1730 0%,#081226 100%);color:#e7eefb;border-top:1px solid rgba(148,163,184,.16)}
.footer .container{padding-top:58px;padding-bottom:0}
.footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:44px;align-items:start}
.footer-brand{max-width:360px}
.footer-wordmark{font-size:32px;line-height:1;font-weight:900;letter-spacing:-1.4px;color:#fff;margin-bottom:18px}
.footer-wordmark::first-letter{color:#1688ff}
.footer-brand p,.footer p{color:#aebed7;line-height:1.75;margin:0}
.footer h3{color:#fff;font-size:17px;margin:0 0 16px;font-weight:800}
.footer a{color:#b9c8df;text-decoration:none;line-height:2.05;transition:color .2s ease}
.footer a:hover{color:#48a8ff}
.footer-bottom{margin-top:44px;padding:20px 0;border-top:1px solid rgba(148,163,184,.16);display:flex;justify-content:space-between;gap:20px;color:#8fa2bf;font-size:14px}
.footer-note{color:#9eb0c9}
@media(max-width:800px){.footer-grid{grid-template-columns:1fr 1fr;gap:32px}.footer-brand{grid-column:1/-1;max-width:600px}.footer-bottom{flex-direction:column;gap:6px}}
@media(max-width:520px){.footer-grid{grid-template-columns:1fr;gap:26px}.footer-brand{grid-column:auto}.footer .container{padding-top:44px}}

/* =========================
   Home page — professional tool directory
   ========================= */
.home-page .hero{padding:92px 0 84px;position:relative;overflow:hidden}
.home-page .hero:after{content:"";position:absolute;inset:auto -10% -45% auto;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.22),transparent 68%);pointer-events:none}
.home-page .hero-grid{position:relative;z-index:1}
.home-page .badge{letter-spacing:.1px}
.home-page .hero h1{max-width:780px;font-size:clamp(46px,5vw,72px);line-height:.99}
.home-page .hero p{max-width:690px}
.home-page .searchbox{max-width:690px;border:1px solid rgba(255,255,255,.22);padding:8px;background:rgba(255,255,255,.98)}
.home-page .searchbox input{font-size:17px}
.home-page .hero-card{padding:25px;background:rgba(255,255,255,.075);backdrop-filter:blur(10px)}
.hero-tools-head{margin:0 0 18px}
.hero-tools-head h2{margin:0;color:#fff;font-size:21px}
.hero-tools-head p{margin:6px 0 0;color:#cbd5e1;font-size:14px;line-height:1.5}
.home-page .mini{min-height:104px;padding:17px;display:flex;flex-direction:row;align-items:center;gap:13px;border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s,border-color .2s}
.home-page .mini:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(2,8,23,.16);border-color:#bfdbfe}
.mini-icon{width:46px;height:46px;flex:0 0 46px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#eff6ff,#ecfeff);font-size:22px}
.mini-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.mini-copy strong{font-size:15px;line-height:1.25}
.mini-copy small{font-size:12px;color:#64748b;font-weight:800;text-transform:uppercase;letter-spacing:.04em}

.home-page #tools{padding-top:76px}
.home-page #tools .section-title{align-items:center;margin-bottom:25px}
.section-eyebrow{font-size:12px;letter-spacing:.16em;font-weight:900;color:#2563eb;margin-bottom:8px}
.home-page #tools .section-title h2{font-size:40px}
.home-page #tools .section-title p{font-size:16px}
.tool-count-badge{white-space:nowrap;padding:10px 14px;border-radius:999px;background:#eff6ff;border:1px solid #dbeafe;color:#1d4ed8;font-weight:900;font-size:13px}
.tool-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:14px;align-items:center;margin-bottom:12px;padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.directory-search{height:48px;display:flex;align-items:center;gap:9px;padding:0 14px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc;transition:.2s}
.directory-search:focus-within{background:#fff;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.search-icon{font-size:25px;line-height:1;color:#64748b;transform:rotate(-15deg)}
.directory-search input{border:0!important;box-shadow:none!important;background:transparent;padding:0!important;height:44px;font-size:15px;outline:0}
.category-filters{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.filter-btn{border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:850;cursor:pointer;transition:.18s;white-space:nowrap}
.filter-btn:hover{border-color:#93c5fd;color:#1d4ed8;background:#f8fbff}
.filter-btn.active{background:#0f172a;border-color:#0f172a;color:#fff}
.directory-status{font-size:13px;color:#64748b;margin:10px 3px 14px;font-weight:700}
.home-page .tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;justify-content:initial}
.home-page .tool-card{width:auto;min-width:0;flex:initial;padding:19px;border-radius:19px;box-shadow:0 5px 18px rgba(15,23,42,.045);display:flex;flex-direction:column;min-height:214px;position:relative;overflow:hidden}
.home-page .tool-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#2563eb,#06b6d4);opacity:0;transition:.2s}
.home-page .tool-card:hover:before{opacity:1}
.home-page .tool-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,23,42,.1);border-color:#bfdbfe}
.home-page .tool-card .icon{width:44px;height:44px;border-radius:13px;margin-bottom:13px;font-size:21px;flex:0 0 auto}
.tool-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.tool-category{font-size:10px;line-height:1;padding:6px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.tool-open{font-size:11px;color:#2563eb;font-weight:900;opacity:0;transform:translateX(-4px);transition:.18s}
.home-page .tool-card:hover .tool-open{opacity:1;transform:none}
.home-page .tool-card h3{font-size:17px;line-height:1.3;margin:0 0 8px}
.home-page .tool-card p{font-size:13px;line-height:1.55;margin-top:auto}
.home-page .categories{grid-template-columns:repeat(4,1fr);gap:14px}
.home-page .cat{min-height:128px;padding:17px;border-radius:18px}
.home-page .cat-icon{font-size:30px}
.home-page .why{gap:14px}
.home-page .why-card{padding:22px;box-shadow:0 6px 20px rgba(15,23,42,.035)}
.home-page .why-card h3{margin:0 0 7px}
.home-page .why-card p{margin:0;color:#64748b;line-height:1.5}

@media(max-width:1100px){
 .home-page .tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .tool-toolbar{grid-template-columns:1fr}
 .category-filters{justify-content:flex-start}
}
@media(max-width:820px){
 .home-page .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-page .categories{grid-template-columns:repeat(2,1fr)}
 .home-page #tools .section-title{align-items:flex-start;flex-direction:column}
 .tool-count-badge{align-self:flex-start}
}
@media(max-width:560px){
 .home-page .hero{padding:64px 0 58px}
 .home-page .hero h1{font-size:43px;letter-spacing:-1.6px}
 .home-page .hero-card{padding:17px}
 .home-page .tools-grid{grid-template-columns:1fr}
 .home-page .categories{grid-template-columns:1fr 1fr}
 .home-page .tool-card{min-height:190px}
 .filter-btn{padding:8px 10px;font-size:11px}
 .tool-toolbar{padding:9px}
}


/* =========================
   Final 2026 Caluler polish
   ========================= */
.nav{min-height:78px}
.nav-inner{min-height:78px;height:auto!important;gap:28px}
.logo-nav{height:52px!important;max-width:176px!important;width:auto!important}
.nav-links{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap}
.nav-links a{display:inline-flex;align-items:center;gap:7px;padding:10px 12px;border-radius:10px;color:#1e293b;font-size:15px;font-weight:800;line-height:1.1}
.nav-links a:hover{background:#eff6ff;color:#2563eb}
.nav-sub{font-size:10px;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.menu-toggle{flex:0 0 auto}
.page-kicker{display:inline-block;margin-bottom:10px;font-size:12px;letter-spacing:.14em;font-weight:900;color:#7dd3fc}
.page-hero h1{max-width:820px}
.section-tight{padding-top:32px;padding-bottom:32px}
.info-grid,.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.info-grid .content-box,.contact-grid .content-box{margin-top:0}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
.steps>div{padding:20px;border:1px solid var(--border);border-radius:18px;background:#f8fafc}
.steps strong{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#eff6ff;color:#2563eb;font-size:12px}
.steps h3{margin:14px 0 6px;font-size:17px}
.steps p{margin:0;color:#64748b;line-height:1.65}
.contact-email a{display:inline-flex;padding:12px 16px;border-radius:12px;background:#eff6ff;color:#2563eb;font-weight:900}
.footer{margin-top:0!important;background:linear-gradient(180deg,#0b1730 0%,#081226 100%);border-top:1px solid rgba(148,163,184,.16);padding:0!important}
.footer .container{padding-top:34px!important;padding-bottom:0!important}
.footer-grid{grid-template-columns:minmax(0,1.55fr) minmax(180px,1fr) minmax(210px,1fr)!important;gap:44px!important}
.footer-brand{max-width:470px!important}
.footer-logo{display:inline-block;margin-bottom:12px}
.footer-logo img{display:block;width:132px;height:auto;max-height:48px;object-fit:contain;object-position:left center}
.footer-brand p{font-size:14px!important;line-height:1.6!important;max-width:440px}
.footer-links{display:flex;flex-direction:column;align-items:flex-start}
.footer h3{font-size:14px!important;text-transform:uppercase;letter-spacing:.09em;margin:2px 0 10px!important;color:#eaf2ff!important}
.footer a{font-size:14px!important;line-height:1.45!important;padding:3px 0;color:#aebed7}
.footer-links a:hover{color:#48a8ff}
.footer-bottom{margin-top:28px!important;padding:14px 0!important;font-size:12px!important}
.footer-note{font-size:12px!important}
@media(max-width:900px){
 .nav-inner{padding:10px 0}
 .nav-links{display:none!important;position:absolute;top:78px;left:4%;right:4%;margin-left:0;white-space:normal}
 .nav-links.active{display:flex!important}
 .nav-links a{justify-content:space-between}
 .nav-sub{font-size:10px}
 .info-grid,.contact-grid,.steps{grid-template-columns:1fr}
 .footer-grid{grid-template-columns:1.4fr 1fr!important;gap:28px!important}
 .footer-brand{grid-column:1/-1}
}
@media(max-width:560px){
 .logo-nav{height:46px!important;max-width:155px!important}
 .nav-inner{min-height:70px}
 .nav-links{top:70px}
 .footer-grid{grid-template-columns:1fr!important;gap:20px!important}
 .footer-brand{grid-column:auto}
 .footer .container{padding-top:28px!important}
 .footer-bottom{flex-direction:column;gap:5px}
}

/* =========================
   Compact calculator-first home page
   ========================= */
.home-hero-compact{padding:64px 0 50px !important}
.home-hero-inner{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:40px;align-items:end}
.home-hero-compact .hero-copy h1{font-size:clamp(44px,5vw,68px);line-height:1.02;margin:18px 0 16px;max-width:780px}
.home-hero-compact .hero-copy p{max-width:650px;margin:0;color:#d7e3f3;font-size:18px;line-height:1.65}
.home-hero-compact .hero-side{display:flex;justify-content:flex-end}
.quick-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;max-width:390px}
.quick-links a{padding:11px 14px;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:#eef6ff;text-decoration:none;background:rgba(255,255,255,.08);font-weight:750;font-size:13px}
.quick-links a:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35)}
.calculator-section{background:#f8fafc;padding:64px 0 70px;border-bottom:1px solid #e2e8f0}
.calc-section-head{text-align:center;max-width:700px;margin:0 auto 28px}
.calc-section-head h2{font-size:36px;margin:0 0 8px;color:#0f172a}
.calc-section-head p{margin:0;color:#64748b;line-height:1.6}
.calculator-shell{width:min(455px,100%);margin:0 auto;background:#0f172a;border:1px solid #24324a;border-radius:26px;padding:14px;box-shadow:0 24px 60px rgba(15,23,42,.18)}
.calc-display-wrap{background:#07101f;border:1px solid #263650;border-radius:18px;padding:11px 13px;margin-bottom:11px;min-height:78px;display:flex;flex-direction:column;justify-content:flex-end}
.calc-expression{min-height:22px;text-align:right;color:#8fa5c5;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.calc-display{width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#fff!important;text-align:right;font-size:38px!important;font-weight:800;padding:3px 0!important;height:auto!important;font-variant-numeric:tabular-nums}
.calc-keys{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.calc-key{min-height:48px;border:1px solid #263650;border-radius:14px;background:#17233a;color:#e8eef8;font-size:16px;font-weight:800;cursor:pointer;transition:transform .08s,background .15s,border-color .15s}
.calc-key:hover{background:#21304a;border-color:#3a4f70}
.calc-key:active{transform:translateY(1px)}
.calc-key:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.calc-key.op,.calc-key.equals{background:#2563eb;border-color:#2563eb;color:#fff}
.calc-key.equals{grid-column:span 2}
.calc-key.clear{background:#3b1d2a;border-color:#6b2a3e;color:#fecdd3}
.calc-key.mem{background:#111c2e;color:#9fb5d2;font-size:13px}
.calc-key.square,.calc-key.sqrt,.calc-key.sign{font-size:15px}
.calc-key.wide{grid-column:span 2}
.calc-hint{text-align:center;color:#8fa5c5;font-size:12px;line-height:1.5;margin:13px 2px 0}
.home-info{padding:52px 0 58px;background:#fff}
.home-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.home-info-card{padding:22px 24px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}
.home-info-card h3{margin:0 0 7px;color:#0f172a;font-size:18px}
.home-info-card p{margin:0;color:#64748b;line-height:1.55;font-size:14px}
.directory-hero{padding:64px 0 42px;background:linear-gradient(135deg,#0f2b45,#172554);color:#fff}
.directory-hero h1{font-size:clamp(40px,5vw,58px);margin:0 0 10px}
.directory-hero p{margin:0;color:#d7e3f3;font-size:17px}
.tools-directory-page #tools{padding-top:56px}
@media(max-width:800px){
 .home-hero-inner{grid-template-columns:1fr;gap:24px}
 .home-hero-compact .hero-side{justify-content:flex-start}
 .quick-links{justify-content:flex-start}
 .home-info-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
 .home-hero-compact{padding:52px 0 42px!important}
 .home-hero-compact .hero-copy h1{font-size:42px}
 .home-hero-compact .hero-copy p{font-size:16px}
 .calculator-section{padding:48px 0 54px}
 .calc-section-head h2{font-size:30px}
 .calculator-shell{padding:10px;border-radius:18px}
 .calc-keys{gap:6px}
 .calc-key{min-height:46px;border-radius:11px}
 .calc-display{font-size:32px!important}
}

/* Final home-page hierarchy: calculator first, compact introduction */
.home-page .home-hero-compact{padding:28px 0 26px!important}
.home-page .home-hero-inner{display:block!important;max-width:980px;margin:0 auto;text-align:center}
.home-page .home-hero-compact .hero-copy{display:flex;flex-direction:column;align-items:center}
.home-page .home-hero-compact .badge{margin:0 0 10px}
.home-page .home-hero-compact .hero-copy h1{font-size:clamp(34px,4vw,48px)!important;line-height:1.05!important;letter-spacing:-1.2px!important;margin:6px 0 9px!important;max-width:720px!important}
.home-page .home-hero-compact .hero-copy p{font-size:16px!important;line-height:1.55!important;max-width:680px!important;margin:0!important}
.home-page .home-hero-compact .hero-side{display:none!important}
.home-page .calculator-section{padding:34px 0 48px!important}
.home-page .calc-section-head{margin-bottom:18px!important}
.home-page .calc-section-head h2{font-size:30px!important;margin-bottom:5px!important}
.home-page .calc-section-head p{font-size:14px!important}
.home-page .calculator-shell{width:min(430px,100%)!important;padding:12px!important;border-radius:22px!important}
.home-page .calc-display-wrap{min-height:72px!important;padding:9px 12px!important;margin-bottom:9px!important}
.home-page .calc-display{font-size:34px!important}
.home-page .calc-keys{gap:6px!important}
.home-page .calc-key{min-height:45px!important;border-radius:12px!important}
.home-page .calc-hint{margin-top:10px!important}
.home-page .home-info{padding:34px 0 42px!important}
@media(max-width:560px){
 .home-page .home-hero-compact{padding:24px 0 22px!important}
 .home-page .home-hero-compact .hero-copy h1{font-size:34px!important}
 .home-page .home-hero-compact .hero-copy p{font-size:15px!important}
 .home-page .calculator-section{padding:30px 0 40px!important}
 .home-page .calc-section-head h2{font-size:27px!important}
 .home-page .calculator-shell{padding:9px!important}
 .home-page .calc-key{min-height:43px!important}
}


/* =========================
   Final home-page refinement
   ========================= */
.home-hero-compact{padding:34px 0 30px!important}
.home-hero-inner{display:block!important}
.home-hero-compact .hero-copy{text-align:center;max-width:900px;margin:0 auto}
.home-hero-compact .hero-copy h1{font-size:clamp(40px,4.2vw,56px)!important;line-height:1.04!important;margin:0 0 10px!important;max-width:none!important}
.home-hero-compact .hero-copy p{max-width:760px!important;margin:0 auto!important;font-size:17px!important;line-height:1.5!important}
.calculator-section{padding:34px 0 46px!important}
.calc-section-head{margin:0 auto 16px!important}
.calc-section-head h2{font-size:30px!important;margin:0 0 5px!important}
.calc-section-head p{font-size:14px;line-height:1.45}
.calculator-shell{width:min(405px,100%)!important;padding:11px!important;border-radius:22px!important}
.calc-display-wrap{min-height:68px!important;padding:9px 11px!important;margin-bottom:9px!important}
.calc-display{font-size:34px!important}
.calc-keys{gap:6px!important}
.calc-key{min-height:44px!important;border-radius:12px!important;font-size:15px!important}
.calc-key.mem{font-size:12px!important}
.calc-hint{font-size:11px!important;margin-top:10px!important}
.home-info{padding:38px 0 42px!important}
.home-info-card{padding:19px 20px!important}
@media(max-width:560px){
  .home-hero-compact{padding:28px 0 26px!important}
  .home-hero-compact .hero-copy h1{font-size:36px!important}
  .home-hero-compact .hero-copy p{font-size:15px!important}
  .calculator-section{padding:28px 0 38px!important}
  .calc-section-head{margin-bottom:12px!important}
  .calc-section-head h2{font-size:27px!important}
  .calculator-shell{width:min(370px,100%)!important;padding:9px!important}
  .calc-key{min-height:42px!important}
}


/* Final mobile navigation fix: closed by default; opens only after tapping the menu button. */
@media (max-width: 900px){
  .nav-links[data-mobile-menu]{
    display:none !important;
  }
  .nav-links[data-mobile-menu][data-open="true"]{
    display:flex !important;
  }
}
@media (min-width: 901px){
  .nav-links[data-mobile-menu]{
    display:flex !important;
  }
}


/* Caluler professional navigation and footer refinement */
.nav{position:relative;z-index:20;background:#fff;border-bottom:1px solid #e2e8f0}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:78px}
.nav-links{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;white-space:nowrap}
.nav-links a{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:10px;color:#1e293b;font-size:16px;font-weight:750;line-height:1.2;transition:background .18s ease,color .18s ease}
.nav-links a:hover,.nav-links a:focus-visible{background:#eff6ff;color:#2563eb;outline:none}
.footer-brand-title{display:inline-block;margin:1px 0 14px;color:#f8fbff;font-size:22px;font-weight:850;letter-spacing:.045em;line-height:1.2}
.footer-brand-title:after{content:"";display:block;width:42px;height:4px;margin-top:12px;border-radius:3px;background:linear-gradient(90deg,#2563eb,#06b6d4)}
.footer-brand p{max-width:440px}
@media(max-width:800px){.nav-inner{gap:16px}.nav-links{gap:6px}.nav-links a{padding:10px 12px;font-size:15px}}
@media(max-width:700px){.nav-inner{min-height:70px}.nav-links a{width:100%;justify-content:flex-start}}


/* Homepage additions: popular tools and a compact benefits strip */
.popular-calculators{padding:34px 0 38px;background:#fff;border-bottom:1px solid #e8eef6}
.popular-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.popular-eyebrow{display:block;color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.16em;margin-bottom:6px}
.popular-heading h2{font-size:25px;letter-spacing:-.5px;margin:0 0 5px;color:#0f172a}
.popular-heading p{font-size:14px;line-height:1.5;color:#64748b;margin:0}
.popular-view-all{display:inline-flex;align-items:center;gap:8px;color:#2563eb;font-size:13px;font-weight:850;white-space:nowrap;padding:9px 0}
.popular-view-all:hover{color:#1d4ed8}
.popular-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.popular-card{min-width:0;display:flex;align-items:center;gap:11px;padding:15px 14px;border:1px solid #e2e8f0;border-radius:15px;background:linear-gradient(145deg,#fff,#fbfdff);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.popular-card:hover{transform:translateY(-2px);border-color:#bfdbfe;box-shadow:0 10px 24px rgba(15,23,42,.07)}
.popular-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;background:#eff6ff;color:#2563eb;font-size:21px;font-weight:900}
.popular-card-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.popular-card-copy strong{font-size:13px;line-height:1.3;color:#0f172a}
.popular-card-copy small{font-size:11px;line-height:1.4;color:#64748b}
.popular-arrow{margin-left:auto;align-self:flex-start;color:#94a3b8;font-size:15px}
.home-page .home-info{padding:24px 0 30px!important;background:#f8fafc}
.home-page .home-info-grid{gap:12px}
.home-page .home-info-card{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:14px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.025)}
.home-page .home-info-card:before{content:"✓";flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:14px;font-weight:900}
.home-page .home-info-card h3{font-size:14px;margin:1px 0 4px}
.home-page .home-info-card p{font-size:12px;line-height:1.5}
@media(max-width:900px){.popular-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-page .home-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.popular-calculators{padding:27px 0 30px}.popular-heading{align-items:flex-start;flex-direction:column;gap:8px}.popular-heading h2{font-size:23px}.popular-grid{grid-template-columns:1fr}.popular-card{padding:13px}.home-page .home-info-grid{grid-template-columns:1fr}.home-page .home-info-card{padding:14px 15px}}


/* Caluler ad placeholders */
.caluler-ad-slot {
  box-sizing: border-box;
  width: min(100% - 32px, 970px);
  min-height: 110px;
  margin: 24px auto;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font: 500 12px/1.5 Arial, sans-serif;
}
.caluler-ad-slot__label {
  display: block;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.caluler-ad-slot--top { min-height: 100px; }
.caluler-ad-slot--content { min-height: 250px; }
@media (max-width: 600px) {
  .caluler-ad-slot {
    width: calc(100% - 24px);
    min-height: 90px;
    margin: 16px auto;
    padding: 8px;
  }
  .caluler-ad-slot--content { min-height: 180px; }
}

/* Hide empty ad placeholders until ad provider is configured */
.caluler-ad-slot {
  display: none !important;
}
