/* SiteHisab public marketing shell — shared by index.html, tools.html,
   boq-software.html, bbs-calculator.html, about.html. Deliberately independent
   of the app's stylesheets so public pages stay light and the app's design can
   evolve without breaking the marketing site. Brand: #E8531F on #1B222B. */

:root {
  --mk-orange: #E8531F;
  --mk-orange-dark: #C74316;
  --mk-ink: #1B222B;
  --mk-ink-soft: #2A3340;
  --mk-body: #3D4653;
  --mk-muted: #6B7686;
  --mk-line: #E4E7EC;
  --mk-bg: #FFFFFF;
  --mk-bg-soft: #F6F7F9;
  --mk-bg-warm: #FDF3EF;
  --mk-radius: 14px;
  --mk-max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mk-body);
  background: var(--mk-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  color: var(--mk-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--mk-orange-dark); }
img { max-width: 100%; height: auto; }

.mk-wrap { max-width: var(--mk-max); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.mk-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mk-line);
}
.mk-header-in {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--mk-max); margin: 0 auto; padding: 10px 20px;
}
.mk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mk-logo img { width: 34px; height: 34px; }
.mk-logo b { color: var(--mk-ink); font-size: 1.15rem; font-family: "Barlow Semi Condensed", sans-serif; }
.mk-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.mk-nav a {
  color: var(--mk-body); text-decoration: none; font-weight: 500;
  padding: 7px 10px; border-radius: 8px; font-size: 0.95rem;
}
.mk-nav a:hover { background: var(--mk-bg-soft); color: var(--mk-ink); }
.mk-cta-row { display: flex; gap: 10px; align-items: center; }

.mk-btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 10px; padding: 10px 18px; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
}
.mk-btn-primary { background: var(--mk-orange); color: #fff; }
.mk-btn-primary:hover { background: var(--mk-orange-dark); }
.mk-btn-ghost { border-color: var(--mk-line); color: var(--mk-ink); background: #fff; }
.mk-btn-ghost:hover { border-color: var(--mk-ink-soft); }
.mk-btn-big { padding: 14px 26px; font-size: 1.08rem; border-radius: 12px; }

/* ---- hero ---- */
.mk-hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--mk-bg-warm), var(--mk-bg) 75%); }
.mk-hero-in { max-width: 780px; }
.mk-kicker {
  display: inline-block; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mk-orange-dark);
  margin-bottom: 14px;
}
.mk-hero p.mk-lead { font-size: 1.2rem; color: var(--mk-body); max-width: 640px; }
.mk-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.mk-hero-note { font-size: 0.9rem; color: var(--mk-muted); margin-top: 12px; }

/* ---- sections ---- */
.mk-section { padding: 56px 0; }
.mk-section-soft { background: var(--mk-bg-soft); }
.mk-section-head { max-width: 680px; margin-bottom: 34px; }
.mk-section-head p { color: var(--mk-muted); font-size: 1.05rem; }

.mk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.mk-card {
  background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  padding: 22px;
}
.mk-card .mk-ico {
  width: 40px; height: 40px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--mk-bg-warm); color: var(--mk-orange-dark); font-size: 1.2rem;
}
.mk-card p { color: var(--mk-muted); font-size: 0.97rem; margin: 0; }

/* ---- steps ---- */
.mk-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.mk-step { position: relative; padding: 22px 22px 22px 64px; background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); }
.mk-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mk-ink); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.mk-step p { color: var(--mk-muted); font-size: 0.95rem; margin: 0; }

/* ---- pricing ---- */
.mk-pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.mk-price-card {
  background: #fff; border: 1.5px solid var(--mk-line); border-radius: var(--mk-radius);
  padding: 26px;
}
.mk-price-card.mk-featured { border-color: var(--mk-orange); box-shadow: 0 6px 24px rgba(232, 83, 31, 0.10); }
.mk-price-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mk-orange-dark); }
.mk-price { font-size: 2.2rem; font-weight: 700; color: var(--mk-ink); font-family: "Barlow Semi Condensed", sans-serif; }
.mk-price span { font-size: 1rem; font-weight: 500; color: var(--mk-muted); }
.mk-price-card ul { padding-left: 20px; margin: 14px 0 20px; color: var(--mk-body); }
.mk-price-card li { margin-bottom: 7px; font-size: 0.97rem; }
.mk-price-note { font-size: 0.9rem; color: var(--mk-muted); margin-top: 14px; }

/* ---- FAQ ---- */
.mk-faq { max-width: 760px; }
.mk-faq details { border-bottom: 1px solid var(--mk-line); padding: 14px 0; }
.mk-faq summary { font-weight: 600; color: var(--mk-ink); cursor: pointer; font-size: 1.02rem; }
.mk-faq details p { margin: 10px 0 0; color: var(--mk-muted); }

/* ---- CTA band ---- */
.mk-band { background: var(--mk-ink); border-radius: var(--mk-radius); padding: 40px 32px; text-align: center; }
.mk-band h2 { color: #fff; }
.mk-band p { color: #B9C2CE; max-width: 560px; margin: 0 auto 22px; }

/* ---- long-form content pages ---- */
.mk-article { max-width: 760px; }
.mk-article h2 { margin-top: 1.6em; }
.mk-article ul, .mk-article ol { color: var(--mk-body); }
.mk-article table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.95rem; }
.mk-article th, .mk-article td { border: 1px solid var(--mk-line); padding: 8px 12px; text-align: left; }
.mk-article th { background: var(--mk-bg-soft); color: var(--mk-ink); }

/* ---- calculators host (tools.html reuses the app's toolkit module) ----
   The module renders its own markup (tk-* classes, normally styled by the app
   stylesheets, which we can't load here — styles.css forces Times New Roman
   with !important). These rules restyle that exact markup for the public page. */
.mk-tools-host { margin-top: 8px; }
.mk-tools-host .acct-dash-head { display: none; } /* page provides its own H1/intro */
.mk-tools-host .tk-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mk-tools-host .tk-card {
  background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
  padding: 20px; scroll-margin-top: 90px;
}
.mk-tools-host .tk-card-head h2, .mk-tools-host .tk-card-head h3 { margin: 0 0 2px; font-size: 1.1rem; }
.mk-tools-host .eyebrow {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--mk-orange-dark); margin-bottom: 4px;
}
.mk-tools-host .muted-line { color: var(--mk-muted); font-size: 0.9rem; margin: 0 0 12px; }
.mk-tools-host .tk-inputs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.mk-tools-host .tk-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--mk-ink); flex: 1 1 110px; }
.mk-tools-host input, .mk-tools-host select {
  font: inherit; padding: 8px 10px; border: 1px solid var(--mk-line); border-radius: 8px;
  color: var(--mk-ink); background: #fff; width: 100%;
}
.mk-tools-host input:focus, .mk-tools-host select:focus { outline: 2px solid var(--mk-orange); outline-offset: 1px; }
.mk-tools-host .tk-results { border-top: 1px dashed var(--mk-line); padding-top: 10px; }
.mk-tools-host .tk-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 0.95rem; }
.mk-tools-host .tk-row-label { color: var(--mk-muted); }
.mk-tools-host .tk-row-value { font-weight: 700; color: var(--mk-ink); }
.mk-tools-host .tk-foot { font-size: 0.8rem; color: var(--mk-muted); margin-top: 10px; }
.mk-tools-host .tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-tools-host .tk-chip { background: var(--mk-bg-soft); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; }
.mk-tools-host .tk-conv-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; }
.mk-tools-host .tk-conv-label { flex: 1 1 130px; font-size: 0.9rem; color: var(--mk-muted); }
.mk-tools-host .tk-conv-out { font-weight: 700; color: var(--mk-ink); }

/* ---- footer ---- */
.mk-footer { border-top: 1px solid var(--mk-line); padding: 36px 0 44px; margin-top: 56px; background: var(--mk-bg-soft); }
.mk-footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.mk-footer h3 { font-size: 0.95rem; }
.mk-footer a { display: block; color: var(--mk-muted); text-decoration: none; padding: 3px 0; font-size: 0.94rem; }
.mk-footer a:hover { color: var(--mk-ink); }
.mk-footer-base { margin-top: 26px; font-size: 0.85rem; color: var(--mk-muted); }

@media (max-width: 720px) {
  .mk-nav { display: none; }
  .mk-hero { padding: 44px 0 36px; }
  .mk-section { padding: 40px 0; }
}
