/* =========================================================
   DirectKhata — Design tokens
   ========================================================= */
:root {
  --green: #16B83E;
  --green-dark: #006B35;
  --green-light: #E9FBEF;
  --navy: #0B3554;
  --navy-dark: #06243A;
  --orange: #FF8A00;
  --orange-light: #FFF2DD;
  --bg: #F4F8FC;
  --surface: #FFFFFF;
  --text: #071E33;
  --text-secondary: #728093;
  --border: #DCE6F0;
  --danger: #DC2626;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 2px 4px rgba(6,36,58,0.04), 0 12px 28px -12px rgba(6,36,58,0.12);
  --shadow-float: 0 24px 60px -20px rgba(6,36,58,0.35);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid rgba(22,184,62,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.eyebrow.navy {
  color: var(--navy);
  background: #EAF2F8;
  border-color: var(--border);
}

.eyebrow.orange {
  color: #9A5300;
  background: var(--orange-light);
  border-color: rgba(255,138,0,0.3);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(22,184,62,0.55);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--navy); background: #EAF2F8; }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244,248,252,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy-dark);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}

.hero-copy h1 {
  font-size: 38px;
  line-height: 1.1;
  margin: 18px 0 18px;
}
@media (min-width: 640px) { .hero-copy h1 { font-size: 46px; } }
@media (min-width: 1040px) { .hero-copy h1 { font-size: 52px; } }

.hero-copy p.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-trustline span { display: flex; align-items: center; gap: 6px; }
.dot-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
}

/* ---- Mock App Card ---- */
.mock-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.mock-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 60% 20%, rgba(22,184,62,0.16), transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(11,53,84,0.14), transparent 55%);
  filter: blur(10px);
  z-index: 0;
}
.mock-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-float);
  color: #fff;
}
.mock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.mock-card-top .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.mock-card-top .badge {
  background: rgba(22,184,62,0.18);
  color: #7CE79A;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124,231,154,0.3);
}
.mock-figure {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 2px;
}
.mock-figure-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.mock-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 16px 0;
}
.mock-section-title {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.mock-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.mock-row-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.mock-row-sub { font-size: 11.5px; color: rgba(255,255,255,0.5); }
.mock-row-amt { margin-left: auto; text-align: right; }
.mock-row-amt .amt { font-size: 13.5px; font-weight: 700; }
.mock-row-amt .amt.due { color: #FF9F3F; }
.mock-row-amt .amt.paid { color: #7CE79A; }
.mock-chip {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  color: #FF9F3F;
  background: rgba(255,138,0,0.15);
  border: 1px solid rgba(255,159,63,0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

/* =========================================================
   Sections generic
   ========================================================= */
section { padding: 64px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 42px;
}
.section-head h2 {
  font-size: 30px;
  margin: 14px 0 14px;
  line-height: 1.2;
}
@media (min-width: 720px) { .section-head h2 { font-size: 36px; } }
.section-head p { font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Problem section ---- */
.problem-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
.problem-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}
.problem-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--orange-light); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.problem-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.problem-card p { font-size: 13.8px; }

/* ---- Feature cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(6,36,58,0.18); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; }

/* ---- How it works ---- */
.steps-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
@media (min-width: 860px) {
  .steps-wrap { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.step-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
@media (min-width: 860px) { .step-card { margin-bottom: 0; } }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; }

/* ---- Trust / Security section ---- */
.trust-section {
  background: var(--navy-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.trust-section .section-head h2,
.trust-section .section-head p { color: #fff; }
.trust-section .section-head p { color: rgba(255,255,255,0.65); }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}
.trust-card .feature-icon { background: rgba(22,184,62,0.16); color: #7CE79A; }
.trust-card h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.trust-card p { color: rgba(255,255,255,0.6); font-size: 13.5px; }

/* ---- Final CTA ---- */
.final-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 30px;
  text-align: center;
  color: #fff;
  margin: 0 20px;
  max-width: 1120px;
  margin-inline: auto;
}
.final-cta h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
@media (min-width: 720px) { .final-cta h2 { font-size: 34px; } }
.final-cta p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto 28px; font-size: 16px; }
.final-cta .cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 700px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { max-width: 320px; font-size: 13.5px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Privacy Policy page
   ========================================================= */
.policy-hero {
  padding: 44px 0 8px;
}
.policy-hero .eyebrow { margin-bottom: 16px; }
.policy-hero h1 { font-size: 34px; margin-bottom: 10px; }
@media (min-width: 720px) { .policy-hero h1 { font-size: 40px; } }
.policy-updated { font-size: 13.5px; color: var(--text-secondary); }

.policy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 0 70px;
  align-items: start;
}
@media (min-width: 940px) {
  .policy-layout { grid-template-columns: 260px 1fr; gap: 48px; }
}

.policy-toc {
  position: static;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
@media (min-width: 940px) {
  .policy-toc { position: sticky; top: 90px; }
}
.policy-toc h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.policy-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--navy);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.policy-toc a:last-child { border-bottom: none; }
.policy-toc a:hover { color: var(--green-dark); }

.policy-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
}
@media (min-width: 640px) { .policy-content { padding: 40px 44px; } }

.policy-section { padding: 22px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.policy-section:first-child { padding-top: 0; }
.policy-section:last-child { border-bottom: none; padding-bottom: 0; }
.policy-section h2 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.policy-section .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-dark);
  background: var(--green-light);
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.policy-section p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 10px; }
.policy-section ul { margin: 0 0 10px; padding-left: 20px; color: var(--text-secondary); font-size: 14.5px; }
.policy-section li { margin-bottom: 6px; }
.policy-section strong { color: var(--text); }
.policy-note {
  background: var(--green-light);
  border: 1px solid rgba(22,184,62,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--green-dark);
}
.policy-contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
}
.policy-contact-box a { color: var(--green-dark); font-weight: 600; }
