:root {
  --brand: #6d28d9;
  --brand-dark: #4c1d95;
  --brand-soft: #ede7fe;
  --bg: #f7f5fd;
  --surface: #ffffff;
  --text: #1a1330;
  --muted: #5f5675;
  --border: #e5dff5;
  --danger: #d92d3a;
  --danger-soft: #fdecec;
  --success: #1a7f4b;
  --success-soft: #e6f6ec;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a78bfa;
    --brand-dark: #c4b5fd;
    --brand-soft: #2a1f45;
    --bg: #0f0b17;
    --surface: #171225;
    --text: #ece8f5;
    --muted: #a99fc0;
    --border: #2c2342;
    --danger: #ff6b74;
    --danger-soft: #3a1519;
    --success: #4ccb87;
    --success-soft: #11291c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text span { font-weight: 800; font-style: italic; font-size: 21px; }
.brand-text small { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }

main { padding-top: 32px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
h3 { margin: 0 0 4px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Home */
.hero { padding: 32px 0 16px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); }
.accent { color: var(--brand); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.feature, .card, .link-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h2 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 32px; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color .15s; }
.link-card:hover { border-color: var(--brand); color: var(--text); }
.link-card span { color: var(--muted); font-size: 14px; }

/* Legal documents */
.doc { max-width: 760px; }
.doc-head { margin-bottom: 24px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.toc a { font-size: 14px; text-decoration: none; background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
h2[id] { scroll-margin-top: 80px; }

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

/* Forms */
.card h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { resize: vertical; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { width: auto; flex: 0 0 auto; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.check input { width: 18px; min-height: 18px; margin-top: 4px; accent-color: var(--brand); }
.hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  padding: 11px 20px; border-radius: 999px; min-height: 46px;
}
.button:hover { background: var(--brand-dark); color: #fff; }
.button:disabled { opacity: .55; cursor: progress; }
.button.danger { background: var(--danger); }
.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 6px 0; justify-self: start; }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin: 0; }
.form-success { background: var(--success-soft); color: var(--success); padding: 16px; border-radius: 12px; }
.form-success p { margin: 4px 0 0; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  .header-inner { padding: 8px 0; }
  .site-header nav a { padding: 6px 8px; font-size: 14px; }
  main { padding-top: 20px; }
}
