/* Hisabnex website: same palette as the app. */
:root {
  --ground: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #eaf0ee;
  --ink: #0f172a;
  --ink-soft: #55636f;
  --line: #dbe4e1;
  --teal: #0f766e;
  --teal-dark: #0b5049;
  --teal-soft: #ccfbf1;
  --teal-tint: #effaf7;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #f59e0b;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --navy: #0f172a;
  --display: "Archivo", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #080e14;
    --surface: #111b23;
    --surface-2: #17242d;
    --ink: #eef4f2;
    --ink-soft: #a2b2ba;
    --line: #213039;
    --teal: #19a396;
    --teal-soft: #0c3b38;
    --teal-tint: #0e2b2a;
    --green-soft: #0d3320;
    --red-soft: #3a1516;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #080e14;
  --surface: #111b23;
  --surface-2: #17242d;
  --ink: #eef4f2;
  --ink-soft: #a2b2ba;
  --line: #213039;
  --teal: #19a396;
  --teal-soft: #0c3b38;
  --teal-tint: #0e2b2a;
  --green-soft: #0d3320;
  --red-soft: #3a1516;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip; /* clip keeps the sticky header working; hidden is the fallback */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(31px, 5.2vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.16; letter-spacing: -.015em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
main.wrap { padding-block: 0; }
section { padding-block: clamp(46px, 7vw, 86px); }
.center { text-align: center; }

/* ---------- top strip + header ---------- */
.topstrip {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 12px;
  letter-spacing: .04em;
}
.topstrip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-block: 8px;
  text-align: center;
}
.topstrip span { display: inline-flex; align-items: center; gap: 6px; }
.topstrip b { color: #6ee7d7; font-weight: 700; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .names { display: flex; flex-direction: column; line-height: 1.05; }
.brand b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand b span { color: var(--teal); }
.brand .by {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.site-head nav { display: flex; align-items: center; gap: 26px; }
.site-head nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding-block: 4px;
}
.site-head nav a:hover { color: var(--teal); }
.site-head nav a.current { color: var(--teal); }
.site-head nav a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.site-head nav a.btn { color: #fff; }
.site-head nav a.btn::after { display: none; }

.burger {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn.ghost:hover { background: var(--teal-tint); border-color: var(--teal); }
.btn.light { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn.light:hover { background: #e8faf6; border-color: #e8faf6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(38px, 6vw, 70px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--teal); display: block; }
.hero .sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-notes span {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-notes b { color: var(--teal); font-weight: 700; }
.promise { margin-top: 18px; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.promise .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* ---------- phone mockup ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border: 10px solid #101b21;
  border-radius: 38px;
  background: #101b21;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .22);
}
.phone .screen {
  background: var(--ground);
  border-radius: 28px;
  overflow: hidden;
}
.phone .topbar {
  background: var(--teal);
  color: #fff;
  padding: 16px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.phone .topbar b { font-family: var(--display); font-size: 15px; }
.phone .topbar span { font-size: 11px; opacity: .85; }
.phone .body { padding: 12px; display: grid; gap: 10px; }
.floatcard {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.floatcard .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.floatcard.one { top: 16%; left: -14%; }
.floatcard.two { bottom: 18%; right: -12%; }

/* app UI pieces, used in the phone and the mini screens */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}
.card.dark { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.card.dark .k { color: #b9ded9; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row.tight { gap: 6px; justify-content: flex-start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k { font-size: 11px; color: var(--ink-soft); }
.v { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.v.small { font-size: 19px; }
.line { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; }
.muted { font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.money { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.money.up { color: var(--green); }
.money.down { color: var(--red); }
.chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip.paid { background: var(--green-soft); color: var(--green); border-color: transparent; }
.chip.due { background: var(--red-soft); color: var(--red); border-color: transparent; }
.meter { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; }
.meter i.green { background: var(--green); }
.meter i.red { background: var(--red); }

/* ---------- section headings ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.lede { color: var(--ink-soft); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.center .lede, .section-head .lede { margin-inline: auto; }
.section-head { text-align: center; margin-bottom: 40px; }

/* ---------- tool cards ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tool .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.tool h3 { margin-bottom: 14px; }
.tool ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.tool li b { color: var(--ink); font-weight: 700; }
.tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.tool .foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- full width dark band ---------- */
.bleed {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  background: var(--teal-dark);
  color: #fff;
  padding-block: clamp(44px, 6vw, 76px);
}
.bleed .inner {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.bleed h2, .bleed h3 { color: #fff; }
.bleed .eyebrow { color: #7fe3d6; }
.bleed p { color: #c9e6e2; }
.bcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bcard {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 18px;
}
.bcard h3 { font-size: 15px; margin-bottom: 8px; }
.bcard p { font-size: 13.5px; line-height: 1.55; }
.bcard .icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 15px;
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #9fd8d0;
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---------- showcase (three mini screens) ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.showcase figure { margin: 0; }
.mini {
  background: var(--ground);
  border: 8px solid #101b21;
  border-radius: 26px;
  padding: 12px;
  display: grid;
  gap: 9px;
  box-shadow: var(--shadow);
}
.showcase figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.showcase figcaption b { display: block; color: var(--ink); font-family: var(--display); font-size: 16px; margin-bottom: 4px; }

/* ---------- closing call to action ---------- */
.cta-card {
  background: var(--teal-dark);
  border-radius: 24px;
  color: #fff;
  text-align: center;
  padding: clamp(34px, 5vw, 60px) 24px;
  position: relative;
  overflow: hidden;
}
.cta-card h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-card p { color: #c9e6e2; margin-top: 14px; max-width: 54ch; margin-inline: auto; }
.cta-card .btn { margin-top: 26px; }
.cta-card .fineprint { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: #92cdc5; letter-spacing: .04em; }

/* ---------- generic page pieces ---------- */
.page-head { padding-bottom: 8px; }
.page-head h1 { margin-top: 6px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.fact { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.fact b { color: var(--green); flex: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.list li b {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--display);
}
.download-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-box .meta { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.download-box .req { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.req { font-size: 13.5px; color: var(--ink-soft); }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step b {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stat .v { font-size: 22px; color: var(--teal); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.table td:first-child { font-weight: 700; white-space: nowrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
#contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-tint); }
.form-status { font-size: 13.5px; color: var(--ink-soft); }
.form-status.ok { color: var(--green); font-weight: 600; }
.form-status.bad { color: var(--red); font-weight: 600; }
.contact-list { display: grid; gap: 14px; }
.contact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.contact-item .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; font-family: var(--mono); }

/* ---------- footer ---------- */
footer {
  background: var(--navy);
  color: #94a3b8;
  font-size: 14px;
  padding-block: 46px 0;
  margin-top: 20px;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
}
footer .brand b { color: #fff; }
footer .brand .by { color: #7c8ea1; }
footer p { margin-top: 14px; max-width: 42ch; line-height: 1.6; }
footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-weight: 600;
}
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #6ee7d7; }
footer .legal {
  border-top: 1px solid #1e293b;
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 12.5px;
}
footer .legal span { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero .sub { max-width: none; }
  .floatcard.one { left: 0; }
  .floatcard.two { right: 0; }
  .tools, .features, .showcase { grid-template-columns: 1fr 1fr; }
  .bleed .inner { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .site-head .bar { flex-wrap: wrap; }
  .site-head nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 14px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .site-head nav.open { display: flex; }
  .site-head nav a { padding: 12px 6px; font-size: 16px; }
  .site-head nav a.current::after { display: none; }
  .site-head nav a.btn { margin-top: 8px; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .tools, .features, .showcase, .facts, .split, .stats, .bcards { grid-template-columns: 1fr; }
  .showcase { gap: 34px; }
  .mini { max-width: 320px; margin-inline: auto; }
  footer .cols { grid-template-columns: 1fr; gap: 26px; }
  .cta { gap: 10px; }
  .btn { width: 100%; }
  .site-head nav a.btn, .cta .btn { width: 100%; }
  .topstrip .wrap { font-size: 11px; gap: 4px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
