/* Vaanam website – one shared stylesheet. Colours follow the app icon (morning sky). */
:root {
  --sky-deep: #153e8c;
  --sky: #2f78d6;
  --sky-light: #7fc0f7;
  --sun: #ffc247;
  --ink: #16202f;
  --ink-soft: #4a5668;
  --line: #dde5f0;
  --bg: #f5f8fc;
  --card: #ffffff;
  --accent: #1e5fc0;
  --good: #1f7a52;
  --warn-bg: #fff6e0;
  --warn-line: #f2c568;
  --radius: 18px;
  --max: 880px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8;
    --ink-soft: #a9b6c9;
    --line: #2a3850;
    --bg: #0d1524;
    --card: #152036;
    --accent: #8cc2ff;
    --good: #7fd6ac;
    --warn-bg: #2b2412;
    --warn-line: #7a6022;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Tamil", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(120deg, var(--sky-deep), var(--sky) 60%, var(--sky-light));
  color: #fff;
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.18); }

/* ---------- hero (home) ---------- */
.hero { color: #fff; padding: 36px 0 64px; text-align: center; }
.hero-icon { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); margin: 18px 0 4px; line-height: 1.2; }
.hero .en { font-size: 1.15rem; opacity: .92; margin: 0 0 6px; }
.hero p.lead { font-size: 1.15rem; max-width: 620px; margin: 12px auto 26px; opacity: .95; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; min-height: 52px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.btn small { display: block; font-weight: 400; font-size: .75rem; opacity: .8; line-height: 1.1; }
.btn span { line-height: 1.2; text-align: left; }
.btn:hover { background: #000; }
.btn svg { width: 26px; height: 26px; flex: none; }
.hero .note { font-size: .9rem; opacity: .85; margin-top: 14px; }

/* ---------- content ---------- */
main { padding: 32px 0 56px; }
.page-title { margin: 0 0 4px; font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.25; }
.updated { color: var(--ink-soft); margin: 0 0 24px; font-size: .95rem; }
h2 { font-size: 1.35rem; margin: 36px 0 10px; line-height: 1.35; scroll-margin-top: 16px; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; }
p, li { color: var(--ink); }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card + .card { margin-top: 16px; }

.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--sun);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.summary h2 { margin-top: 0; font-size: 1.15rem; }
.summary ul { margin: 0; }

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}

.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; margin-bottom: 8px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* data table that becomes cards on phones */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table th { background: rgba(47,120,214,.08); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 16px; }
  .table td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--ink-soft); font-size: .85rem; }
}

/* feature grid (home) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: -40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 20px rgba(21,62,140,.06); }
.feature .ico { font-size: 1.8rem; line-height: 1; }
.feature h3 { margin: 10px 0 2px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.feature .en { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.promise li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; }
.promise b { color: var(--good); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
details[open] { padding-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 48px; display: flex; align-items: center; }
summary::marker { color: var(--accent); }

.contact-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mail { font-size: 1.15rem; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-soft); font-size: .93rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer .links a { color: var(--ink-soft); }
.site-footer p { margin: 4px 0; color: var(--ink-soft); }

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
