/* ==========================================================================
   KALPANA SOFTTECH SOLUTIONS — shared styles
   Palette: deep blue #0D2B5E · mid blue #1E5FA8 · teal #12B5A5 · slate #5B6B7B
   ========================================================================== */

:root {
  --navy:   #0D2B5E;
  --blue:   #1E5FA8;
  --teal:   #12B5A5;
  --slate:  #5B6B7B;
  --ink:    #0A2247;
  --bg:     #F4F7FB;
  --card:   #FFFFFF;
  --line:   #E2E9F2;
  --white:  #FFFFFF;
  --good:   #12A36B;

  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--teal) 100%);

  --fs-hero: clamp(2.15rem, 1.3rem + 3.6vw, 3.5rem);
  --fs-h2:   clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem);
  --fs-h3:   1.25rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.9rem;
  --fs-xs:   0.8rem;

  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;
  --sp-4: 2rem;   --sp-5: 3rem;  --sp-6: 4.5rem;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13,43,94,.04), 0 10px 30px rgba(13,43,94,.07);
  --shadow-sm: 0 1px 2px rgba(13,43,94,.06), 0 4px 14px rgba(13,43,94,.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 var(--sp-2);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { margin: 0 0 var(--sp-2); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }

/* Eyebrow label — encodes section context, small caps tracked */
.eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--sp-1);
}

.lead { font-size: 1.15rem; color: #35486a; }
.muted { color: var(--slate); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: var(--fs-sm);
  padding: .72rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(18,181,165,.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(18,181,165,.36); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink); padding: .35rem 0; position: relative;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--teal); border-radius: 2px;
}
.nav-cta { margin-left: var(--sp-1); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Sections ---------- */
.section { padding: var(--sp-6) 0; }
.section-tint { background: var(--bg); }
.section-navy { background: var(--navy); color: #dfe8f5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--sp-4); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 88% -10%, rgba(18,181,165,.10), transparent 60%),
    radial-gradient(700px 340px at 0% 110%, rgba(30,95,168,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-5); align-items: center; padding: var(--sp-6) 0;
}
.hero h1 span.hl { color: var(--teal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: var(--sp-4); color: var(--slate); font-size: var(--fs-sm); }
.hero-trust b { color: var(--navy); }

/* Signature: reconciliation / verification card */
.verify-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: var(--sp-3); font-family: "Poppins", sans-serif;
}
.verify-card .vc-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: var(--sp-2); }
.verify-card .vc-title { font-weight:600; color: var(--navy); font-size: var(--fs-sm); }
.vc-match {
  display:inline-flex; align-items:center; gap:.35rem; font-size: var(--fs-xs); font-weight:700;
  color: var(--good); background: #E7F6EF; padding:.25rem .6rem; border-radius:999px;
}
.vc-row { display:flex; justify-content:space-between; align-items:center; padding:.55rem 0; border-bottom:1px dashed var(--line); font-size: var(--fs-sm); }
.vc-row:last-child { border-bottom:0; }
.vc-row .vc-k { color: var(--slate); }
.vc-row .vc-v { font-variant-numeric: tabular-nums; color: var(--ink); font-weight:500; }
.vc-total { margin-top:.5rem; padding-top:.7rem; border-top:2px solid var(--navy); display:flex; justify-content:space-between; font-weight:700; color:var(--navy); }
.vc-forms { display:flex; flex-wrap:wrap; gap:.4rem; margin-top: var(--sp-2); }
.vc-chip { font-size: var(--fs-xs); color: var(--blue); background:#EAF1FA; border:1px solid #DCE8F6; padding:.2rem .55rem; border-radius:6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-3); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f2; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: #EAF1FA; color: var(--blue); margin-bottom: var(--sp-2); font-size: 1.4rem;
}
.card.tick .ico { background: #E7F1EE; color: var(--teal); }
.card h3 { margin-bottom: .4rem; }
.card p { color: #43567a; font-size: var(--fs-sm); margin: 0; }

/* Product entry card (home) */
.product-card { display: flex; flex-direction: column; }
.product-card .pc-tag { font-size: var(--fs-xs); font-weight:600; letter-spacing:.06em; text-transform:uppercase; color: var(--teal); }
.product-card h3 { font-size: 1.35rem; margin:.35rem 0 .5rem; }
.product-card ul { margin:.3rem 0 var(--sp-3); padding-left: 1.1rem; color:#43567a; font-size: var(--fs-sm); }
.product-card ul li { margin:.25rem 0; }
.product-card .pc-foot { margin-top: auto; }

/* Numbered step */
.step { position: relative; }
.step .num {
  font-family:"Poppins",sans-serif; font-weight:700; font-size:.85rem; color:#fff;
  background: var(--grad); width:30px; height:30px; border-radius:8px; display:grid; place-items:center; margin-bottom:.7rem;
}

/* Feature list check */
.feat { display:flex; gap:.7rem; align-items:flex-start; }
.feat .fk { color: var(--teal); flex: 0 0 auto; margin-top:.15rem; }
.feat h4 { font-family:"Poppins",sans-serif; font-size:1rem; color:var(--navy); margin:0 0 .2rem; }
.feat p { font-size: var(--fs-sm); color:#43567a; margin:0; }

/* Output / sample list */
.samples { display:grid; gap: var(--sp-2); }
.sample {
  display:flex; align-items:center; gap: var(--sp-2); background:#fff; border:1px solid var(--line);
  border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3);
}
.sample .si { font-size:1.4rem; }
.sample .sm { flex:1; }
.sample .sm b { display:block; color:var(--navy); font-family:"Poppins",sans-serif; font-size:.98rem; }
.sample .sm span { font-size: var(--fs-sm); color: var(--slate); }

/* Chips row */
.chips { display:flex; flex-wrap:wrap; gap:.5rem; }
.chip {
  font-family:"Poppins",sans-serif; font-size: var(--fs-xs); font-weight:500;
  color: var(--navy); background:#fff; border:1px solid var(--line);
  padding:.4rem .8rem; border-radius:999px;
}

/* Video frame */
.video-frame {
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--line);
  box-shadow: var(--shadow); background:#000;
}
.video-frame video { width:100%; display:block; }
.video-placeholder {
  aspect-ratio: 16/9; display:grid; place-items:center; text-align:center;
  background: var(--grad); color:#fff; padding: var(--sp-4);
}
.video-placeholder .vp-play {
  width:66px; height:66px; border-radius:50%; background:rgba(255,255,255,.16);
  border:2px solid rgba(255,255,255,.6); display:grid; place-items:center; margin:0 auto var(--sp-2);
  font-size:1.5rem;
}

/* CTA band */
.cta-band { background: var(--grad); color:#fff; border-radius: var(--radius); padding: var(--sp-5); text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width:560px; margin:0 auto var(--sp-3); }

/* Contact */
.office { display:flex; gap: var(--sp-2); align-items:flex-start; }
.office .oi { font-size:1.4rem; }
.office h4 { font-family:"Poppins",sans-serif; margin:0 0 .25rem; color:var(--navy); }
.office p { margin:0; font-size: var(--fs-sm); color:#43567a; }
.field { margin-bottom: var(--sp-2); }
.field label { display:block; font-family:"Poppins",sans-serif; font-size: var(--fs-sm); font-weight:500; color:var(--navy); margin-bottom:.3rem; }
.field input, .field textarea {
  width:100%; padding:.7rem .85rem; border:1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background:#fff;
}
.field input:focus, .field textarea:focus { outline:2px solid var(--blue); outline-offset:1px; border-color:var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color:#b9c8de; padding: var(--sp-5) 0 var(--sp-3); }
.site-footer a { color:#cdd9ec; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-4); }
.site-footer .flogo img { height:40px; margin-bottom: var(--sp-2); }
.site-footer h5 { font-family:"Poppins",sans-serif; color:#fff; font-size:.95rem; margin:0 0 var(--sp-2); letter-spacing:.02em; }
.site-footer ul { list-style:none; margin:0; padding:0; font-size: var(--fs-sm); line-height:2; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top: var(--sp-4); padding-top: var(--sp-3); font-size: var(--fs-xs); color:#8ea3c2; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-sm > * + * { margin-top: var(--sp-2); }

/* Reveal on scroll — only hidden when JS is active, so no-JS users still see everything */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity:0; transform: translateY(14px); }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start;
    background:#fff; border-bottom:1px solid var(--line); padding: var(--sp-3);
    gap: var(--sp-2); transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .nav-cta { margin:0; }
  .nav-toggle { display:block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-5) 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal, .js .reveal { transition: none; opacity:1; transform:none; }
  .btn:hover, .card.hover:hover { transform: none; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
