/* JKCalcHub: modern, colorful, accessible homepage presentation. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --brand: #4659df;
  --brand-dark: #293baf;
  --ink: #17243a;
  --muted: #667085;
  --paper: #ffffff;
  --background: #f5f7ff;
  --line: #e7ebf4;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 12%, rgba(144, 132, 239, .10), transparent 20rem),
    radial-gradient(circle at 92% 18%, rgba(49, 184, 155, .09), transparent 22rem),
    var(--background);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(225, 229, 240, .9);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.page-shell {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: Manrope, sans-serif; font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #6654d9, #536be7 55%, #31b89b); color: #fff; box-shadow: 0 8px 18px rgba(83,107,231,.20); }
.brand-accent { color: #5365df; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: #59657d; font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--brand); }
.header-cta { padding: 9px 13px; border: 1px solid #dde3fb; border-radius: 11px; background: #f2f4ff; color: #4457ca; font-size: 13px; font-weight: 800; }

.directory { padding-top: 34px; padding-bottom: 46px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h1,
.hero h1,
.how-section h2,
.editorial-copy h2,
.about-strip h2 { margin: 0; font-family: Manrope, sans-serif; letter-spacing: -.045em; }
.section-heading h1 { max-width: 760px; font-size: clamp(32px, 4.8vw, 48px); line-height: 1.08; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #69759a; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #31b89b; box-shadow: 0 0 0 5px rgba(49,184,155,.12); }
.section-intro { margin: 9px 0 0; color: var(--muted); }
.tool-count { display: grid; min-width: 96px; min-height: 72px; place-content: center; border: 1px solid #dde3f7; border-radius: 16px; background: linear-gradient(145deg,#fff,#f0f2ff); text-align: center; box-shadow: 0 10px 28px rgba(48,70,197,.08); }
.tool-count strong { color: #4559d4; font-size: 25px; line-height: 1; }
.tool-count span { margin-top: 5px; color: #7c8498; font-size: 11px; }

.directory-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.search-box { display: flex; align-items: center; width: 100%; height: 52px; border: 1px solid #dee4f1; border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(37,48,93,.05); }
.search-icon { width: 48px; text-align: center; color: #7b86a3; font-size: 20px; }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.search-box:focus-within { border-color: #7d8bf1; box-shadow: 0 0 0 4px rgba(83,101,232,.10); }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.filter-btn { flex: 0 0 auto; min-height: 38px; padding: 7px 13px; border: 1px solid #e1e5ef; border-radius: 999px; background: #fff; color: #69738a; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.filter-btn.is-active { border-color: #5365df; background: #5365df; color: #fff; box-shadow: 0 7px 16px rgba(83,101,223,.18); }

.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.tool-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) 16px; align-items: center; gap: 10px; min-height: 108px; padding: 14px; overflow: hidden; border: 1px solid var(--tile-border,#e6e9f1); border-radius: 16px; background: linear-gradient(145deg,#fff 0%,var(--tile-bg,#f7f8ff) 100%); color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(37,48,93,.045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card::after { content:""; position:absolute; width:72px; height:72px; right:-42px; bottom:-44px; border-radius:50%; background:var(--tile-color,#5365df); opacity:.08; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--tile-border); box-shadow: 0 15px 32px rgba(37,48,93,.12); }
.tool-card:focus-visible { outline: 3px solid #5365df; outline-offset: 3px; }
.tool-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:13px; background:var(--tile-bg,#f1efff); color:var(--tile-color,#5365df); font-size:19px; font-weight:800; }
.tool-card-copy { display:grid; min-width:0; gap:4px; }
.tool-card-copy strong { font-size:13px; line-height:1.32; }
.tool-card-copy small { color:#747f94; font-size:11px; line-height:1.38; }
.tool-arrow { color:#8b94a8; font-weight:800; }
.tool-card:nth-child(8n+1){--tile-bg:#f1efff;--tile-border:#ddd7ff;--tile-color:#6951d8}.tool-card:nth-child(8n+2){--tile-bg:#eaf8ff;--tile-border:#cdeeff;--tile-color:#1683b3}.tool-card:nth-child(8n+3){--tile-bg:#eaf9f2;--tile-border:#cceedd;--tile-color:#18845c}.tool-card:nth-child(8n+4){--tile-bg:#fff4e8;--tile-border:#ffe2c3;--tile-color:#c86a22}.tool-card:nth-child(8n+5){--tile-bg:#fff0f2;--tile-border:#ffd9df;--tile-color:#c54c68}.tool-card:nth-child(8n+6){--tile-bg:#eef4ff;--tile-border:#d7e3ff;--tile-color:#4163c8}.tool-card:nth-child(8n+7){--tile-bg:#f5f8e9;--tile-border:#e5edc7;--tile-color:#788c26}.tool-card:nth-child(8n){--tile-bg:#fff0e9;--tile-border:#ffddd0;--tile-color:#c65a3b}
.empty-state { padding:18px; border:1px dashed #d9deea; border-radius:14px; background:#fff; color:#68738a; text-align:center; }

.hero { display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center; padding-top:52px; padding-bottom:66px; }
.hero h1 { font-size:clamp(42px,6vw,68px); line-height:1.03; }.hero h1 span{color:#5365df}
.hero-text{max-width:570px;color:var(--muted);font-size:17px}.hero-actions{display:flex;align-items:center;gap:20px;margin:25px 0}.button-primary{display:inline-flex;align-items:center;gap:9px;padding:12px 16px;border-radius:12px;background:linear-gradient(135deg,#5365df,#3f50c8);color:#fff;font-weight:800;box-shadow:0 10px 22px rgba(83,101,223,.21)}.text-link{color:#5365df;font-weight:800}.trust-points{display:flex;flex-wrap:wrap;gap:17px;margin:18px 0 0;padding:0;list-style:none;color:#667085;font-size:12px}.trust-points li span{color:#31a57f;font-weight:900}
.hero-card{position:relative;padding:22px;border:1px solid #e3e1f8;border-radius:20px;background:linear-gradient(145deg,#fff,#efefff);box-shadow:0 22px 60px rgba(37,48,93,.12);}.hero-card-top{display:flex;justify-content:space-between;color:#69759a;font-size:10px;font-weight:800}.sparkle{color:#f39b55;font-size:18px}.illustration{position:relative;display:grid;min-height:250px;place-items:center}.calc-sheet{width:min(270px,75%);padding:18px;border:1px solid #e5e7f2;border-radius:16px;background:#fff;box-shadow:0 16px 30px rgba(57,66,118,.10);transform:rotate(-2deg)}.sheet-title,.sheet-line,.sheet-answer{display:block}.sheet-title{font-weight:800}.sheet-line{display:flex;gap:8px;margin-top:13px}.sheet-line i{width:60%;height:7px;border-radius:99px;background:#e7e9f4}.sheet-line b{width:25%;height:7px;border-radius:99px;background:#bfc6ed}.sheet-answer{margin-top:14px;padding:12px;border-radius:11px;background:#eff7ff}.sheet-answer small,.sheet-answer strong,.sheet-answer span{display:block}.sheet-answer small{color:#6382af;font-size:8px}.sheet-answer strong{margin:3px 0;color:#374da0}.sheet-answer span{color:#7d8799;font-size:9px}.float-chip{position:absolute;display:grid;width:46px;height:46px;place-items:center;border-radius:15px;color:#fff;font-weight:900;box-shadow:0 10px 20px rgba(37,48,93,.14)}.chip-one{left:8%;top:20%;background:#6654d9}.chip-two{right:6%;top:28%;background:#31b89b}.chip-three{right:14%;bottom:10%;background:#f39b55}.hero-card-note{margin:8px 0 0;color:#69738a;font-size:12px}

.how-section { padding:62px 0; background:linear-gradient(135deg,#eff0fb,#f7f9ff); }.how-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:70px}.how-section h2{max-width:390px;font-size:38px;line-height:1.14}.how-section .section-intro{max-width:390px}.principles{display:grid;gap:10px}.principle{display:grid;grid-template-columns:42px 1fr;gap:12px;padding:15px;border:1px solid #e2e5f2;border-radius:14px;background:rgba(255,255,255,.75)}.principle-number{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#ecebff;color:#5e61ce;font-size:12px;font-weight:900}.principle h3{margin:0 0 3px;font-size:15px}.principle p{margin:0;color:#747d91;font-size:12px}
.editorial-section{display:grid;grid-template-columns:1.35fr .65fr;gap:42px;align-items:center;padding-top:58px;padding-bottom:58px}.editorial-copy h2{max-width:650px;font-size:36px;line-height:1.15}.editorial-copy p:not(.eyebrow){color:var(--muted)}.editorial-note{padding:24px;border:1px solid #dde2fa;border-radius:18px;background:linear-gradient(145deg,#fff,#f0f1ff)}.editorial-note .note-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:12px;background:#e8e5ff;color:#6654d9}.editorial-note h3{margin:15px 0 6px}.editorial-note p{color:#747d91}.editorial-note a{color:#4657c8;font-weight:800}
.site-footer{border-top:1px solid var(--line);background:#fff}.footer-main{display:grid;grid-template-columns:1.7fr 1fr 1fr;gap:45px;padding-top:36px;padding-bottom:32px}.footer-brand p{max-width:390px;color:#7d8597}.footer-links{display:grid;align-content:start;gap:8px}.footer-heading{margin-bottom:3px;font-weight:800}.footer-links a{color:#70798d}.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:17px;padding-bottom:17px;border-top:1px solid #edf0f5;color:#858da0;font-size:12px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:12px;top:12px;z-index:50;padding:8px 12px;border-radius:8px;background:#fff;color:#17243a}

@media(max-width:900px){.tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero{gap:35px}.how-grid{gap:35px}.footer-main{gap:25px}}
@media(max-width:720px){.header-inner,.page-shell{width:min(100% - 28px,1120px)}.header-inner{height:64px}.main-nav{gap:13px}.main-nav a{font-size:12px}.header-cta{display:none}.hero{grid-template-columns:1fr;padding-top:36px}.hero-card{display:none}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.how-grid,.editorial-section{grid-template-columns:1fr}.section-heading{align-items:flex-start}.tool-count{min-width:78px}.footer-main{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column}}
@media(max-width:480px){.brand{font-size:16px}.brand-mark{width:34px;height:34px}.main-nav{gap:10px}.main-nav a{font-size:11px}.directory{padding-top:22px}.section-heading h1{font-size:30px}.tool-count{display:none}.tool-grid{gap:9px}.tool-card{grid-template-columns:38px minmax(0,1fr);min-height:98px;padding:10px}.tool-icon{width:36px;height:36px}.tool-card-copy strong{font-size:12px}.tool-card-copy small{font-size:10px}.tool-arrow{display:none}.hero h1{font-size:43px}.hero-actions{align-items:flex-start;flex-direction:column}.trust-points{gap:9px}.how-section h2,.editorial-copy h2{font-size:30px}.footer-main{gap:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
