/* Shared styles for the content pages (how-it-works, faq).
   index.html keeps its own inline styles — it is the conversion page and is
   deliberately left alone. Tokens below mirror the ones defined there. */

/* Fonts are the system stack. Four self-hosted faces used to be declared here
   and they never rendered: each file was the 'latin-ext' slice from Google
   Fonts rather than the basic-latin one, so between them they supplied a
   space, a capital A and the rupee sign and nothing else. Every other
   character on every page already came from the fallback. They cost 94 KB,
   two of them preloaded. The font-family stacks below are left in place and
   simply fall through to system-ui. To restore the real faces, download the
   basic-latin woff2 for each weight — not latin-ext — and re-declare them. */

:root {
  --navy: #001334;
  --blue: #0341BC;
  --gold: #DF850B;
  --muted: #5A6478;
  --line: #E3E8F2;
  --mist: #F3F6FC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--navy);
  line-height: 1.65;
  background:
    radial-gradient(900px 400px at 50% -10%, #EAF0FF 0%, transparent 60%),
    #fff;
}

.wrap { width: min(760px, 100%); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-head { padding: 26px 0 8px; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-head img { width: 132px; height: auto; display: block; }
.site-nav { display: flex; gap: 20px; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .88rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a:focus-visible, .site-head a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- type ---------- */
h1 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 2.4rem); line-height: 1.18;
  letter-spacing: -.02em; margin: 26px 0 12px; text-wrap: balance;
}
.lede { font-size: 1.06rem; color: var(--muted); max-width: 56ch; margin: 0 0 34px; text-wrap: pretty; }

h2 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 1.22rem; letter-spacing: -.01em;
  margin: 40px 0 10px; text-wrap: balance;
}
h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; margin: 26px 0 6px; }

p, li { max-width: 64ch; }
p { margin: 0 0 14px; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 2px; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 8px; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 52px; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .72rem; letter-spacing: .1em;
  color: var(--blue); background: var(--mist);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
}
.steps > li::after {
  content: ""; position: absolute; left: 18px; top: 46px; bottom: 6px; width: 2px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h2 { margin: 4px 0 6px; font-size: 1.08rem; }

/* ---------- inline figure ---------- */
.hero { margin: 26px 0; }
.hero img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  display: block; border-radius: 16px; border: 1px solid var(--line);
}

/* ---------- callout ---------- */
.aside {
  background: var(--mist); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin: 24px 0;
}
.aside > :last-child { margin-bottom: 0; }
.aside h3 { margin-top: 0; }

/* ---------- faq ---------- */
.faq { margin: 0 0 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .98rem;
  padding: 16px 34px 16px 0; cursor: pointer; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.faq details > div { padding: 0 0 18px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- cta + footer ---------- */
.cta { margin: 44px 0 8px; padding: 26px 0 0; border-top: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 15px 30px; border-radius: 999px; background: var(--blue); color: #fff;
  box-shadow: 0 16px 34px -18px rgba(3, 65, 188, .8);
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { background: #0335a0; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 19px; height: 19px; flex: none; }

.site-foot { margin-top: 48px; padding: 22px 0 40px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 520px) {
  .steps > li { padding-left: 44px; }
  .steps > li::before { width: 32px; height: 32px; }
  .steps > li::after { left: 15px; top: 40px; }
}

/* Touch devices, keyed on input type rather than width. The header nav links
   were 23px tall and the footer links 18px, both awkward to hit on a phone;
   7px of padding took the nav only to 37px. The padding is now sized from the
   line box each one actually renders — 23px and 22px — so both clear a 48px
   target rather than landing just short of it. Padding rather than a
   min-height keeps the links inline so the middot separators stay on the
   baseline between them. Links that sit inside a sentence are left alone —
   they are exempt, and padding them would space the prose out oddly. */
@media (pointer: coarse) {
  .site-nav { gap: 14px; }
  .site-nav a { display: inline-block; padding: 13px 3px; }
  .site-foot a { display: inline-block; padding: 13px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
