/* Car Loan EMI — shared styles for the marketing + legal pages.
   System fonts only, so the site makes no third-party requests. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f6f8fb;
  --surface:     #ffffff;
  --surface2:    #eef3f9;
  --border:      #dfe6ef;
  --text:        #0f1b2d;
  --text-muted:  #4b5a6e;
  --text-faint:  #8593a6;
  --blue:        #1673e6;
  --blue-deep:   #0d55b8;
  --blue-soft:   #e5f0fd;
  --orange:      #f7901e;
  --orange-soft: #fff2e3;
  --green:       #12a150;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(15,27,45,.04), 0 8px 24px rgba(15,27,45,.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0b1220;
    --surface:     #121b2c;
    --surface2:    #18243a;
    --border:      #23324b;
    --text:        #eef3fa;
    --text-muted:  #a9b6c9;
    --text-faint:  #6d7c93;
    --blue:        #4c9bff;
    --blue-deep:   #2d7fec;
    --blue-soft:   #142a4a;
    --orange:      #ffa53d;
    --orange-soft: #3a2712;
    --green:       #35c472;
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2c; --surface2: #18243a; --border: #23324b;
  --text: #eef3fa; --text-muted: #a9b6c9; --text-faint: #6d7c93;
  --blue: #4c9bff; --blue-deep: #2d7fec; --blue-soft: #142a4a;
  --orange: #ffa53d; --orange-soft: #3a2712; --green: #35c472;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface2); padding: 1px 6px; border-radius: 6px; }

/* NAV */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, 5vw); height: 64px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); }
.store-badge { display: inline-flex; flex-direction: column; justify-content: center; padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); text-decoration: none; min-width: 170px; line-height: 1.2; }
.store-badge small { font-size: .7rem; opacity: .75; }
.store-badge strong { font-size: 1.05rem; }
.store-badge.soon { opacity: .55; cursor: default; }

/* HOME */
.hero { padding: 72px max(16px, 5vw) 64px; text-align: center; background: radial-gradient(ellipse 70% 60% at 50% -10%, var(--blue-soft) 0%, transparent 70%); }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.pill { display: inline-block; background: var(--orange-soft); color: var(--orange); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; max-width: 820px; margin: 0 auto 18px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--text-muted); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .85rem; color: var(--text-faint); }

section.block { padding: 72px max(16px, 5vw); }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.block-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.block-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.block-head p { color: var(--text-muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); box-shadow: none; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: .94rem; }

.promise { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.promise div { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); font-size: .94rem; color: var(--text-muted); }
.promise strong { display: block; color: var(--text); margin-bottom: 2px; }

.cta { text-align: center; }
.cta .stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* DOC PAGES */
.page-header { padding: 64px max(16px, 5vw) 44px; border-bottom: 1px solid var(--border); background: radial-gradient(ellipse 70% 60% at 50% -20%, var(--blue-soft) 0%, transparent 70%); }
.page-header-inner { max-width: 780px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); }
.meta { display: inline-block; margin-top: 18px; font-size: .8rem; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: 20px; }

.content { max-width: 780px; margin: 0 auto; padding: 48px max(16px, 5vw) 88px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 44px; }
.toc h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.toc ol { padding-left: 20px; columns: 2 260px; }
.toc li { margin-bottom: 6px; font-size: .93rem; }
.toc a { text-decoration: none; }

.doc-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.doc-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.doc-section h2 { font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.doc-section h2 .num { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.doc-section h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.doc-section p, .doc-section ul, .doc-section ol { color: var(--text-muted); font-size: .96rem; margin-bottom: 12px; }
.doc-section ul, .doc-section ol { padding-left: 22px; }
.doc-section li { margin-bottom: 6px; }
.doc-section strong { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.data-table th { background: var(--surface2); color: var(--text-muted); text-align: left; padding: 11px 14px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.data-table td { padding: 11px 14px; color: var(--text-muted); border-top: 1px solid var(--border); vertical-align: top; background: var(--surface); }
.data-table td:first-child { color: var(--text); font-weight: 600; }

.note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; font-size: .92rem; color: var(--text-muted); }
.note.warn { border-left-color: var(--orange); }
.note strong { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }

details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style-position: outside; }
details.faq[open] summary { margin-bottom: 8px; }
details.faq p { margin-bottom: 8px; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin-top: 16px; box-shadow: var(--shadow); }
.contact-card p { margin-bottom: 8px; }
.contact-card .email { font-size: 1.1rem; font-weight: 700; }

/* FOOTER */
footer.site-footer { border-top: 1px solid var(--border); padding: 36px max(16px, 5vw); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .86rem; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .8rem; color: var(--text-faint); width: 100%; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .toc, .contact-card { padding: 18px; }
  section.block { padding: 56px 16px; }
}
