/* Shared styles for SplitSimple's public, static marketing pages
   (/tools, /compare, /use-cases, /guides, /india). No framework, no
   Firebase: these pages must load fast and read without JavaScript. */
:root {
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --surface-2: #F2F4F6;
  --border: #E0E3E5;
  --text: #191C1E;
  --muted: #3F4750;
  --brand: #006A44;
  --brand-2: #008558;
  --brand-soft: rgba(0, 106, 68, 0.10);
  --on-brand: #FFFFFF;
  --warn-soft: #FFF4E5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --font: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e10;
    --surface: #1a191c;
    --surface-2: #201f22;
    --border: #2c2a30;
    --text: #F2F2F4;
    --muted: #B4B2B9;
    --brand: #7efdbe;
    --brand-2: #4be3a0;
    --brand-soft: rgba(126, 253, 190, 0.12);
    --on-brand: #00311f;
    --warn-soft: #2a2215;
    --shadow: none;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.site-header .inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 10px; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-nav a.btn { color: var(--on-brand); background: var(--brand); margin-left: 4px; }
@media (max-width: 680px) { .site-nav a:not(.btn) { display: none; } }

/* Layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.wrap.wide { max-width: 1080px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 1.45rem; line-height: 1.25; margin: 40px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.updated { font-size: .85rem; color: var(--muted); margin: 0 0 24px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid .card { text-decoration: none; color: var(--text); display: block; }
.grid a.card:hover { border-color: var(--brand); }
.grid .card h3 { margin: 0 0 6px; }
.grid .card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--on-brand); border: none; border-radius: 12px;
  padding: 12px 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn:hover { filter: brightness(1.05); }

/* Call to action band */
.cta { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 40px 0; }
.cta h2 { margin-top: 0; }
.cta p { margin: 0 0 16px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: none; }
.yes { color: var(--brand); font-weight: 700; }
.no { color: var(--muted); }

/* Calculator widgets */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 24px 0; }
.calc label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 4px; }
.calc input, .calc select {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
.calc .row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.calc .row > * { flex: 1 1 120px; }
.calc .result { margin-top: 20px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
.calc .result strong { font-size: 1.3rem; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 8px 0; background: var(--surface); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.note { background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: .9rem; color: var(--muted); }
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h4 { margin: 0 0 8px; color: var(--text); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .copy { max-width: 1080px; margin: 0 auto; padding: 0 16px 24px; }
