/*
File: rj-pb-site.css
Path: /site/rj-pb-site.css
Project: AB Layout (Advocate Benefit Layout) - project website
Developed by PrajnaBytes International Private Limited and RatioJuris
Copyright (C) 2026 PrajnaBytes International Private Limited and RatioJuris
SPDX-License-Identifier: GPL-3.0-or-later
Additional terms under GPLv3 section 7 apply (attribution and names) - see NOTICE.
*/

:root {
  /* AB Layout */
  --navy-900: #061a3f;
  --navy-800: #0b2e6b;
  --navy-600: #1e5bb8;
  --gold: #f5a623;
  --gold-2: #ffc24a;
  /* PrajnaBytes */
  --pb-teal: #2eb4a1;
  --pb-blue: #3a94cd;
  --pb-purple: #9f3f97;
  --pb-red: #e53f41;
  --pb-orange: #ec8f3f;

  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #14213d;
  --muted: #5b6478;
  --line: #e3e7f0;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(6, 26, 63, 0.35);
  --max: 1160px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-hi: "Nirmala UI", "Mangal", "Kokila", "Noto Sans Devanagari", sans-serif;
}

[data-theme="dark"] {
  --bg: #0a1022;
  --surface: #121a33;
  --text: #eef1f8;
  --muted: #a9b2c7;
  --line: #24304f;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

.brand-bar { height: 4px; background: linear-gradient(90deg, var(--pb-teal), var(--pb-blue), var(--pb-purple), var(--pb-red), var(--pb-orange)); }

/* ===== NAV ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--navy-900) 82%, transparent);
  color: #fff;
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav .logo img { width: 34px; height: 34px; }
.nav .logo small { display: block; font-weight: 500; font-size: 11px; opacity: 0.7; letter-spacing: 0.02em; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; opacity: 0.85; }
.nav ul a:hover { opacity: 1; }
.nav .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 16px; }

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241500; box-shadow: 0 10px 30px -10px rgba(245,166,35,.8); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-primary { background: var(--navy-600); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }

/* ===== HERO ===== */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(58,148,205,.35), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(159,63,151,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 70%);
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pb-teal); box-shadow: 0 0 0 4px rgba(46,180,161,.25); }
.hero h1 { text-wrap: balance; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 18px; font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--gold-2), var(--pb-orange) 40%, #ff7a8a 70%, var(--pb-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.chips svg { flex: none; }
.repo-stats { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.6); min-height: 20px; }

/* Hero visual: before/after page */
.stage { position: relative; height: 520px; }
.page {
  position: absolute; left: 6%; top: 10px; width: 74%; height: 490px;
  background: #fff; border-radius: 10px; color: #1b1b1b;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1);
  padding: 34px 32px; transform: rotate(-2deg);
  font-family: "Times New Roman", Times, serif;
}
.page .ct { text-align: center; font-weight: 700; font-size: 11.5px; letter-spacing: .02em; white-space: nowrap; }
.page .ct2 { text-align: center; font-size: 10.5px; margin-top: 4px; }
.page .party { display: flex; justify-content: space-between; font-size: 10px; margin-top: 14px; }
.page .vs { text-align: center; font-size: 10.5px; font-weight: 700; margin: 6px 0; }
.page .ln {
  height: 7px; border-radius: 4px; background: #2b3a55; margin-top: 9px;
  transition: all .9s cubic-bezier(.2,.8,.2,1);
}
.page .para { margin-top: 14px; display: grid; grid-template-columns: 14px 1fr; gap: 4px; transition: all .9s cubic-bezier(.2,.8,.2,1); }
.page .para .ln:first-child { margin-left: 28px; margin-top: 4px; }
.page .num { font-size: 10px; font-weight: 700; line-height: 1; transition: all .9s; }
/* messy state */
.stage:not(.clean) .p2 .ln { height: 5px; background: #6a7486; margin-top: 6px; }
.stage:not(.clean) .p2 .ln:first-child { margin-left: 0; margin-top: 2px; }
.stage:not(.clean) .p2 { margin-top: 26px; }
.stage:not(.clean) .p3 .ln { height: 9px; margin-top: 14px; background: #1d4ed8; }
.stage:not(.clean) .p3 { margin-left: 18px; }
.stage:not(.clean) .p1 .ln:nth-child(3) { width: 72% !important; }
.stage:not(.clean) .p4 .ln { background: #2b3a55; box-shadow: 0 0 0 2px #fff176; }
.stage:not(.clean) .p4 .ln:first-child { margin-left: 60px; }
.page .sig { text-align: right; font-size: 10px; margin-top: 18px; font-weight: 700; }
.keep-tag {
  position: absolute; font-family: var(--font); font-size: 11px; font-weight: 700; color: #0b2e6b;
  background: #e6fffa; border: 1px solid #8fe3d3; padding: 3px 8px; border-radius: 999px;
  transform: rotate(2deg); white-space: nowrap; opacity: 0; transition: opacity .6s .3s;
}
.stage.clean .keep-tag { opacity: 1; }
.keep-tag.t1 { right: 14px; top: -14px; }
.keep-tag.t2 { right: -70px; top: 100px; }
@media (max-width: 600px) {
  .keep-tag { font-size: 10px; }
  .keep-tag.t1 { right: auto; left: 10px; top: -14px; }
  .keep-tag.t2 { right: 10px; top: -14px; }
}

.pane {
  position: absolute; right: 0; bottom: 18px; width: 54%;
  background: rgba(255,255,255,.96); color: #14213d; border-radius: 16px; padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-size: 13px;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--pb-teal), var(--pb-blue), var(--pb-purple), var(--pb-red), var(--pb-orange)) 1;
}
.pane header { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.pane header img { width: 22px; height: 22px; }
.pane ul { list-style: none; margin: 0; padding: 0; }
.pane li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; transition: opacity .5s, transform .5s; }
.stage:not(.clean) .pane li.after { opacity: .25; transform: translateX(6px); }
.pane .ok { color: #12733a; font-weight: 700; }
.pane .status { margin-top: 8px; font-size: 12px; color: var(--muted); }
.toggle-ba {
  position: absolute; left: 6%; bottom: -22px; z-index: 3; display: inline-flex; border-radius: 999px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
}
.toggle-ba button { background: none; border: 0; color: #fff; padding: 7px 14px; font: 600 13px var(--font); cursor: pointer; }
.toggle-ba button[aria-pressed="true"] { background: var(--gold); color: #241500; }

/* ===== STRIP ===== */

.strip { margin-top: -44px; position: relative; z-index: 2; }
.strip .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.stat:nth-child(1) b { color: var(--pb-teal); }
.stat:nth-child(2) b { color: var(--pb-blue); }
.stat:nth-child(3) b { color: var(--pb-purple); }
.stat:nth-child(4) b { color: var(--pb-orange); }

/* ===== SECTIONS ===== */

section.block { padding: 96px 0 0; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pb-purple); }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; margin: 8px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.c-teal { background: linear-gradient(135deg, #43d1bd, var(--pb-teal)); }
.c-blue { background: linear-gradient(135deg, #5db3ea, var(--pb-blue)); }
.c-purple { background: linear-gradient(135deg, #c35dba, var(--pb-purple)); }
.c-red { background: linear-gradient(135deg, #ff6b6d, var(--pb-red)); }
.c-orange { background: linear-gradient(135deg, #ffb06a, var(--pb-orange)); }
.c-navy { background: linear-gradient(135deg, var(--navy-600), var(--navy-800)); }

/* Screenshot gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 14px 18px; font-size: 15px; color: var(--muted); }
.shot figcaption b { color: var(--text); }
.shot a { display: block; }

/* Respect section */
.respect { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.anatomy {
  background: #fff; color: #1b1b1b; border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
  font-family: "Times New Roman", Times, serif; font-size: 14px; border: 1px solid var(--line);
}
.anatomy .row { position: relative; padding: 6px 10px; border-radius: 8px; margin: 4px 0; }
.anatomy .row::after {
  content: attr(data-tag); position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 700 11px var(--font); padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid currentColor;
}
.anatomy .keep { background: rgba(46,180,161,.10); color: #0f6f62; }
.anatomy .fix { background: rgba(58,148,205,.10); color: #1b5f8c; }
.anatomy .hi { background: rgba(236,143,63,.12); color: #9a4f0b; font-family: var(--font-hi); }
.anatomy .row span { color: #1b1b1b; }
.anatomy .c { text-align: center; font-weight: 700; }
.anatomy .r { text-align: right; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: 15px; }

/* Converter */
.converter {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff;
  border-radius: 28px; padding: 40px; position: relative; overflow: hidden;
}
.converter::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,143,63,.35), transparent 70%);
}
.converter h2 { color: #fff; }
.converter .sub { color: rgba(255,255,255,.75); }
.conv-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; position: relative; z-index: 1; }
.conv-box { display: flex; flex-direction: column; gap: 8px; }
.conv-box label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.conv-box textarea, .conv-box output {
  min-height: 150px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; padding: 14px; font-size: 18px; resize: vertical; font-family: var(--font-hi); line-height: 1.6; white-space: pre-wrap;
}
.conv-box textarea.kruti, .conv-box output.kruti { font-family: "Kruti Dev 010", ui-monospace, Consolas, monospace; font-size: 17px; }
.swap { align-self: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold); color: #241500; font-size: 20px; cursor: pointer; }
.conv-note { position: relative; z-index: 1; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.65); }
.conv-actions { display: flex; gap: 10px; align-items: center; }
.conv-actions .msg { font-size: 13px; color: rgba(255,255,255,.7); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--pb-purple));
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Compatibility */
.compat { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compat th, .compat td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compat tr:last-child td { border-bottom: 0; }
.compat th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, var(--navy-600)); }
.yes { color: #12733a; font-weight: 700; }
.part { color: #9a5b00; font-weight: 700; }

/* Layouts */
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.layout-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.paper { flex: none; width: 34px; border-radius: 3px; background: #fff; border: 1.5px solid #9aa6bd; position: relative; }
.paper i { position: absolute; border: 1.5px dashed var(--pb-blue); border-radius: 2px; }
.layout-card b { display: block; font-size: 14px; }
.layout-card small { color: var(--muted); }

/* Install */
.install { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.install-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.install-card ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.install-card code { background: color-mix(in srgb, var(--surface) 85%, var(--navy-600)); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.req { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius); padding: 30px; }
.req ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: rgba(255,255,255,.85); }

/* Developers */
.devs {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 44px; position: relative; overflow: hidden;
}
.devs::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--pb-teal), var(--pb-blue), var(--pb-purple), var(--pb-red), var(--pb-orange)); }
.devs .emblem { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(6,26,63,.15)); }
.devs .names { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 650; font-size: 14px; }
.badge .sw { width: 10px; height: 10px; border-radius: 50%; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--pb-purple); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }

/* CTA band */
.cta-band {
  margin-top: 96px; text-align: center; color: #fff; padding: 64px 24px; border-radius: 28px;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(46,180,161,.35), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(229,63,65,.30), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-900));
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0 auto 26px; max-width: 620px; font-size: 18px; }

/* Footer */
footer.site { margin-top: 80px; background: var(--navy-900); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; }
.pb-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.pb-logo img { height: 34px; display: block; }
.legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .respect, .install, .devs { grid-template-columns: 1fr; }
  .stage { height: 500px; max-width: 520px; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .steps, .strip .grid { grid-template-columns: 1fr 1fr; }
  .nav ul { display: none; }
  .conv-grid { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); }
  footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features, .steps, .strip .grid { grid-template-columns: 1fr; }
  .converter, .devs { padding: 26px; }
  .page { padding: 24px 20px; }
  .pane { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
