/* KitabPilot marketing site. No build step, no external fonts, CDNs or trackers.
   Brand tokens from the owner (2026-11-04), see README.md "Brand". Fonts are system stacks only:
   nothing is downloaded; a visitor who has Plus Jakarta Sans / Inter / Mukta installed gets them. */
:root {
  /* brand */
  --navy: #1B2A4A;          /* primary: buttons, headings accent, dark bands, footer */
  --navy-dark: #121D35;     /* derived: hover on navy buttons */
  --navy-tint: #EDF0F5;     /* derived: soft section background (navy at ~8 %) */
  --saffron: #F5A524;       /* accent: highlights only. Navy text on saffron; never saffron text on white */
  --saffron-dark: #E3940F;  /* derived: hover on saffron buttons (navy text stays AA) */
  --link: #2F5BBF;          /* links, eyebrows, focus ring on light backgrounds */
  --line: #D5D9DE;          /* borders */
  --success: #1F9D6B;       /* check icons (graphics) */
  --warning: #E8930C;       /* warning borders / graphics */
  --warning-text: #B4610A;  /* warning text: only on white (4.5:1) */
  --warning-bg: #FEF5E7;    /* derived: warning background */
  --danger: #D93B30;
  --muted-line: #8A929C;    /* muted graphics */
  --muted: #6B7280;         /* muted text (AA on white and on --page only) */
  --muted-strong: #4B5563;  /* derived: secondary text on --navy-tint (lead paragraphs) */
  --ink: #1F2937;           /* body text (derived dark neutral, ~14:1 on white) */
  --surface: #FFFFFF;       /* cards */
  --page: #F6F7F9;          /* page background */
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9D1E0; /* secondary text on navy (AA) */

  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 8px 24px rgba(27, 42, 74, .07);
  --max: 1120px;
  --font-head: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-body: Inter, Mukta, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
.h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: .92em; background: var(--navy-tint); padding: .1em .35em; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--on-navy); padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--on-navy); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 4px 0; }
.brand img { display: block; width: auto; height: 36px; }
.nav-toggle {
  display: none;
  font: inherit; font-weight: 600; font-size: .95rem;
  background: var(--surface); color: var(--navy);
  border: 1px solid var(--line); border-radius: 10px;
  padding: .45em .8em; min-height: 44px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a { display: block; padding: .5em .7em; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:hover { background: var(--page); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--navy-tint); font-weight: 700; }
.site-nav a.btn { margin-left: 6px; color: var(--on-navy); }
.site-nav a.btn:hover { color: var(--on-navy); background: var(--navy-dark); }

/* Mobile nav: with JS the list collapses behind the Menu button; without JS it stays visible. */
@media (max-width: 879px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .header-row { flex-wrap: wrap; }
  .site-nav { width: 100%; padding: 4px 0 14px; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .75em .6em; }
  .site-nav a.btn { margin: 6px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.25em;
  background: var(--navy); color: var(--on-navy);
  border: 2px solid var(--navy); border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--on-navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-tint); color: var(--navy); border-color: var(--navy); }
/* Saffron = the highlight CTA, always with navy text. */
a.btn-accent { background: var(--saffron); border-color: var(--saffron); color: var(--navy); }
a.btn-accent:hover { background: var(--saffron-dark); border-color: var(--saffron-dark); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.section-white { background: var(--surface); }
.section-tint { background: var(--navy-tint); }
.section-dark { background: var(--navy); color: var(--on-navy); }
.section-dark h2, .section-dark h3 { color: var(--on-navy); }
.section-dark a:not(.btn) { color: var(--on-navy); }
.section-dark a.btn-ghost { color: var(--on-navy); border-color: rgba(255, 255, 255, .6); }
.section-dark a.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--on-navy); }
.section-dark :focus-visible { outline-color: var(--saffron); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: .8em;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--link);
}
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--saffron); vertical-align: middle; margin-right: 8px; }
.pill {
  display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: 0;
  padding: .2em .65em; border-radius: 999px;
  background: var(--saffron); color: var(--navy);
  vertical-align: middle;
}
h1 .pill { font-size: .9rem; vertical-align: .5em; }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--navy-tint), var(--page)); }
@media (min-width: 720px) { .hero { padding: 72px 0 88px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.tagline { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: .6em; }
.tagline mark { background: linear-gradient(transparent 62%, var(--saffron) 62%); color: inherit; padding: 0 .1em; }
.lead { font-size: 1.15rem; color: var(--muted-strong); max-width: 38em; }
.lead-center { margin-left: auto; margin-right: auto; }
.trust-list { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 8px; color: var(--ink); font-size: .98rem; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.check { flex: none; width: 22px; height: 22px; margin-top: 2px; }

/* Phone mock-up (pure HTML/CSS illustration with sample data) */
.hero-mock { margin: 0; }
.phone { max-width: 340px; margin: 0 auto; padding: 14px; background: var(--navy); border-radius: 34px; box-shadow: var(--shadow); }
.phone-screen { background: #E3E8EF; border-radius: 24px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 32px; height: 32px; }
.chat-head strong { display: block; font-size: .95rem; color: var(--navy); }
.chat-head span { font-size: .78rem; color: var(--muted); }
.chat { padding: 14px 12px 16px; display: grid; gap: 10px; font-size: .9rem; line-height: 1.45; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 14px; background: var(--surface); box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.me { justify-self: end; background: #DDF3E8; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: stretch; max-width: 100%; border-bottom-left-radius: 4px; }
.bubble pre { margin: 6px 0 0; font-family: var(--font-mono); font-size: .8rem; white-space: pre; overflow-x: auto; }
.chat-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-btns span { background: rgba(255,255,255,.8); border-radius: 8px; padding: 4px 8px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.mock-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: .2em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-tint); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card ul { padding-left: 1.2em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.note-after { margin-top: 20px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 24px 24px 24px 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron); color: var(--navy); font-family: var(--font-head); font-weight: 800;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }
.cta-band p { color: var(--on-navy-muted); max-width: 40em; margin-left: auto; margin-right: auto; }

/* Pricing */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--navy); }
.plan .price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy); margin: .2em 0 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.2em 0 1.5em; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan .btn { margin-top: auto; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--saffron); border-radius: 999px; padding: .2em .7em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .97rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.table-caption { caption-side: bottom; text-align: left; padding: 12px 14px; color: var(--muted); font-size: .92rem; }

/* Data-flow diagram (security page) */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.flow strong { display: block; margin-bottom: .3em; color: var(--navy); font-family: var(--font-head); }
.flow p { margin: 0; color: var(--muted); font-size: .95rem; }
.flow li:not(:last-child)::after {
  content: "↓"; position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%);
  color: var(--link); font-weight: 800; font-size: 1.1rem; line-height: 1;
}
@media (min-width: 900px) {
  .flow li:not(:last-child)::after { content: "→"; left: auto; right: -22px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* Prose pages (legal, security text) */
.page-head { padding: 40px 0 8px; background: var(--navy-tint); }
@media (min-width: 720px) { .page-head { padding: 64px 0 16px; } }
.page-head .lead { margin-bottom: 1.5em; }
.prose > * { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.draft-banner {
  background: var(--warning-bg); border: 1px solid var(--warning); border-left-width: 6px; border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 28px; color: var(--ink);
}
.draft-banner strong { color: var(--ink); }
.placeholder { background: var(--surface); border: 1px dashed var(--warning); border-radius: 4px; padding: 0 .3em; font-weight: 700; color: var(--warning-text); white-space: nowrap; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }

/* Footer (navy, white lockup) */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 44px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--on-navy); margin-bottom: .7em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-navy); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--on-navy); text-decoration: underline; text-decoration-color: var(--saffron); }
.site-footer :focus-visible { outline-color: var(--saffron); }
.site-footer .placeholder { background: var(--saffron); color: var(--navy); border-color: var(--saffron); }
.footer-blurb { margin-top: .8em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
.footer-legal p { margin: 0 0 .5em; }

.not-found { text-align: center; padding: 96px 0; }
.not-found .btn-row { justify-content: center; }
.site-footer { border-top: 3px solid var(--saffron); }
.prose > h2:first-child { margin-top: 0; }
.site-nav a.btn { display: flex; } /* keep the button centring (the plain nav-link rule sets display: block) */
/* CA plan: "Coming soon - talk to us" row (no price, no limits) */
.plan-ca { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.plan-ca h2 { margin-bottom: .3em; }
.plan-ca p { margin: 0; }

/* website-2: pre-launch banner (every page), pricing without prices, the enquiry form. */
.prelaunch { background: var(--saffron); color: var(--navy); }
.prelaunch p { margin: 0; padding: 10px 0; font-size: .95rem; line-height: 1.5; }
.prelaunch a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.prelaunch a:hover { color: var(--navy-dark); }
.prelaunch :focus-visible { outline-color: var(--navy); }
/* review E3 (2026-11-07): on a phone the banner is one line ("Launching soon." + the enquiry link); the long bilingual text from 720 px up */
@media (max-width: 719px) { .prelaunch .pl-long { display: none; } .prelaunch p { padding: 8px 0; font-size: .9rem; } }
.plan .price.price-tba { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.price-note { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 0; color: var(--navy); }
.contact-grid { align-items: start; }
.contact-side { display: grid; gap: 24px; }
.enquiry-form { display: grid; gap: 16px; margin-top: 8px; }
.enquiry-form .field { display: grid; gap: 6px; }
.enquiry-form label, .enquiry-form legend { font-weight: 600; color: var(--ink); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--muted-line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.enquiry-form textarea { resize: vertical; min-height: 96px; }
.enquiry-form input:focus-visible, .enquiry-form select:focus-visible, .enquiry-form textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.enquiry-form [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.enquiry-form .field-pair { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.enquiry-form .field-pair legend { padding: 0; margin-bottom: 4px; }
.enquiry-form .field-pair p { margin: 0; }
@media (min-width: 560px) { .enquiry-form .field-pair { grid-template-columns: 1fr 1fr; } .enquiry-form .field-pair p { grid-column: 1 / -1; } }
.enquiry-form .btn { justify-self: start; }
.enquiry-form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--navy); }
.form-status:empty { display: none; }
.form-errors { padding-left: 1.2em; }
.form-errors li { margin: .3em 0; }

/* guide-website-3: language switch, user guide pages (website/guide/, built from docs/guide/*.md) */
.site-nav a.lang-switch { font-weight: 600; color: var(--link); }
.guide-nav ul { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-nav a { display: inline-block; padding: .35em .8em; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .95rem; }
.guide-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); font-weight: 700; }
.guide blockquote { margin: 0 0 1em; padding: .6em 1em; border-left: 4px solid var(--saffron); background: var(--surface); }
.guide blockquote p { margin: 0; }
.guide h2 { scroll-margin-top: 80px; }
.guide code { word-break: break-word; }
