/* ─── Expenses Web — Shared Stylesheet ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1565C0;
  --primary-light: #1E88E5;
  --primary-soft: #E3F2FD;
  --ink: #0D1B2A;
  --ink-2: #3D4F60;
  --ink-3: #7A8FA0;
  --surface: #F7FAFC;
  --white: #ffffff;
  --teal: #00897B;
  --amber: #F57C00;
  --red: #C62828;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 240px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-style: normal;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; border-radius: 7px; }
.nav-logo span {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }
.btn-nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.btn-nav-cta:hover { background: var(--primary-light); }

@media (max-width: 640px) { .nav-links { display: none; } }

/* ─── PAGE HEADER ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.page-header-inner { max-width: 720px; margin: 0 auto; }
.page-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.page-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb .material-symbols-outlined { font-size: 14px; }
.page-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-header p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── SIMPLE CONTENT PAGE ─────────────────────── */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.content-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.content-page h2:first-child { margin-top: 0; }
.content-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
}
.content-page p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content-page ul, .content-page ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.content-page li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 4px;
}
.content-page a { color: var(--primary); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }
.content-page strong { color: var(--ink); font-weight: 600; }
.content-page blockquote {
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.content-page blockquote p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ─── DATA TABLE ──────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.data-table th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.data-table td {
  padding: 10px 14px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.data-table td code {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

/* ─── CALLOUT / NOTE ──────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.65;
}
.callout .material-symbols-outlined { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.callout-info { background: var(--primary-soft); color: var(--ink-2); }
.callout-info .material-symbols-outlined { color: var(--primary); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.callout-warning { background: #FFF8E1; color: #5D4037; }
.callout-warning .material-symbols-outlined { color: #F57C00; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.callout p { margin: 0; }

/* ─── DOCS LAYOUT ─────────────────────────────── */
.docs-wrap {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: 1140px;
  margin: 0 auto;
  min-height: calc(100vh - 64px - 200px);
  align-items: start;
}
.docs-sidebar {
  position: sticky;
  top: 64px;
  padding: 32px 0 32px 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.docs-sidebar-section {
  margin-bottom: 24px;
}
.docs-sidebar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 12px;
  margin-bottom: 6px;
}
.docs-sidebar ul { list-style: none; }
.docs-sidebar li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
}
.docs-sidebar li a .material-symbols-outlined { font-size: 16px; color: var(--ink-3); }
.docs-sidebar li a:hover { background: var(--surface); color: var(--primary); }
.docs-sidebar li a:hover .material-symbols-outlined { color: var(--primary); }
.docs-sidebar li a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.docs-sidebar li a.active .material-symbols-outlined { color: var(--primary); }

.docs-content {
  padding: 40px 40px 80px 32px;
  min-width: 0;
  border-left: 1px solid rgba(0,0,0,0.06);
}
.docs-content h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.docs-content .doc-lead {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.docs-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.docs-content h2 .material-symbols-outlined {
  font-size: 18px;
  color: var(--primary);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.docs-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
}
.docs-content p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.docs-content ul, .docs-content ol {
  padding-left: 20px;
  margin-bottom: 14px;
}
.docs-content li {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 4px;
}
.docs-content a { color: var(--primary); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }
.docs-content strong { color: var(--ink); font-weight: 600; }
.docs-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}
.docs-content blockquote p { margin: 0; font-size: 14px; }

/* ─── SCREEN SHOT IN DOCS ─────────────────────── */
.doc-screenshot {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}
.doc-screenshot img {
  width: 220px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  display: block;
  margin: 0 auto;
}
.doc-screenshot-caption {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* ─── DOCS NAV FOOTER ─────────────────────────── */
.docs-nav-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.docs-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
  background: var(--white);
  max-width: 48%;
}
.docs-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.docs-nav-btn .material-symbols-outlined { font-size: 18px; }
.docs-nav-btn.next { margin-left: auto; text-align: right; }
.docs-nav-btn small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-3); }

/* ─── FAQ ACCORDION ───────────────────────────── */
.faq-section { margin-bottom: 40px; }
.faq-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.faq-item {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  user-select: none;
  transition: background .15s;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
}
.faq-question:hover { background: var(--surface); }
.faq-question .material-symbols-outlined {
  font-size: 20px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  background: var(--white);
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-item.open .faq-answer { display: block; }

/* ─── STEP GUIDE ──────────────────────────────── */
.step-guide { counter-reset: step; }
.step-guide-item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  position: relative;
}
.step-guide-item::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-guide-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: -4px;
  width: 1px;
  background: rgba(21,101,192,0.15);
}
.step-guide-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-guide-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.step-guide-body p:last-child { margin-bottom: 0; }

/* ─── SUPPORT PAGE ────────────────────────────── */
.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.support-btn:hover { transform: translateY(-2px); }
.support-btn .material-symbols-outlined { font-size: 20px; }
.support-btn-wise {
  background: #9FE870;
  color: #163300;
  box-shadow: 0 4px 16px rgba(159,232,112,0.4);
}
.support-btn-wise:hover { box-shadow: 0 8px 24px rgba(159,232,112,0.5); }
.qr-box {
  display: inline-block;
  background: #FFF5F5;
  border: 2px solid rgba(238,27,36,0.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.qr-box img { width: 200px; height: 200px; display: block; border-radius: 8px; }
.qr-box p { font-size: 12px; color: var(--ink-3); margin-top: 10px; margin-bottom: 0; }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.footer-logo img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-logo span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-built-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.footer-built-by .material-symbols-outlined {
  font-size: 12px;
  color: rgba(220,60,60,0.6);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.footer-built-by a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .15s;
}
.footer-built-by a:hover { color: rgba(255,255,255,0.8); }

/* ─── DOCS RESPONSIVE ─────────────────────────── */
@media (max-width: 780px) {
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-sidebar {
    position: static;
    padding: 20px 24px 0;
    max-height: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .docs-content { padding: 32px 24px 60px; border-left: none; }
  .docs-nav-footer { flex-direction: column; }
  .docs-nav-btn { max-width: 100%; }
  .docs-nav-btn.next { margin-left: 0; text-align: left; }
}
@media (max-width: 640px) {
  .doc-screenshot img { width: 180px; }
  .step-guide-item { gap: 14px; }
}
@media (min-width: 841px) {
  .page-header h1 { font-size: 48px; }
  .docs-content h1 { font-size: 48px; }
}
