/* Landing + content pages for AI Pandit Ji.
   Tokens mirror app/styles.css so the marketing site and the app read as one
   product. The app's own stylesheet is untouched. */

:root {
  color-scheme: light;
  --bg-top: #f5b666;
  --bg-bottom: #0f4c5c;
  --panel: rgba(255, 248, 238, 0.88);
  --panel-strong: #fffaf2;
  --panel-soft: rgba(255, 255, 255, 0.6);
  --line: rgba(15, 76, 92, 0.18);
  --text: #17323c;
  --muted: #536c73;
  --accent: #b45309;
  --accent-deep: #7c2d12;
  --accent-soft: #ffd8a8;
  --success: #0d7a5f;
  --warning: #9d4e00;
  --shadow: 0 18px 45px rgba(23, 50, 60, 0.16);
  --font-ui: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --measure: 68ch;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: linear-gradient(170deg, var(--bg-top) 0%, #e98f4a 22%, var(--bg-bottom) 78%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
}

/* ---------- site header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 248, 238, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-deep);
}

/* `.site-nav a` outranks `.btn-primary` on specificity, so the header CTA needs
   its colour restated or it inherits the muted nav-link colour. */
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus-visible {
  color: #fff8ee;
}

@media (max-width: 720px) {
  .site-nav .nav-hide-sm {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8ee;
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.32);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(124, 45, 18, 0.38);
}

.btn-ghost {
  background: var(--panel-soft);
  color: var(--accent-deep);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.92rem;
}

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
}

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid var(--line);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: #fff8ee;
  text-shadow: 0 2px 18px rgba(23, 50, 60, 0.28);
}

.hero-lede {
  margin: 0 0 28px;
  max-width: 52ch;
  font-size: 1.12rem;
  color: #fff5e6;
  text-shadow: 0 1px 10px rgba(23, 50, 60, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-note {
  margin: 0;
  font-size: 0.92rem;
  color: #fff2df;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.hero-card > p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.score-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.score-dial {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: conic-gradient(var(--accent) 0turn 0.72turn, var(--accent-soft) 0.72turn 1turn);
  position: relative;
}

.score-dial::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--panel-strong);
}

.score-dial span {
  position: relative;
  z-index: 1;
}

.score-copy strong {
  display: block;
  font-size: 1rem;
}

.score-copy span {
  font-size: 0.88rem;
  color: var(--muted);
}

.koota-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.koota-chips li {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.koota-chips li[data-state="pass"] {
  background: rgba(13, 122, 95, 0.12);
  border-color: rgba(13, 122, 95, 0.34);
  color: var(--success);
}

.koota-chips li[data-state="watch"] {
  background: rgba(157, 78, 0, 0.12);
  border-color: rgba(157, 78, 0, 0.32);
  color: var(--warning);
}

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- trust strip ---------- */

.trust {
  background: rgba(255, 248, 238, 0.92);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.trust li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- generic sections ---------- */

.section {
  padding: 62px 0;
}

.section-alt {
  background: rgba(255, 248, 238, 0.92);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section:not(.section-alt) .section-head h2 {
  color: #fff8ee;
  text-shadow: 0 2px 14px rgba(23, 50, 60, 0.28);
}

.section:not(.section-alt) .section-head p {
  color: #fff3e2;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: var(--panel-strong);
  box-shadow: none;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.15rem;
}

/* ---------- steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8ee;
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- two-column systems block ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.system-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.system-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.system-card > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.factor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: var(--measure);
}

.faq details {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent-deep);
  flex: 0 0 auto;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- final CTA ---------- */

.cta {
  text-align: center;
  padding: 66px 0;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: #fff8ee;
  text-shadow: 0 2px 16px rgba(23, 50, 60, 0.3);
}

.cta p {
  margin: 0 auto 26px;
  max-width: 50ch;
  color: #fff3e2;
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: rgba(15, 76, 92, 0.55);
  border-top: 1px solid rgba(255, 248, 238, 0.22);
  padding: 34px 0;
  color: #fdf1de;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  margin-right: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: #fdf1de;
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 248, 238, 0.2);
  font-size: 0.86rem;
  color: rgba(253, 241, 222, 0.85);
  max-width: var(--measure);
}

/* ---------- content pages (privacy) ---------- */

.prose-page {
  padding: 52px 0 66px;
}

.prose {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
  max-width: 82ch;
  margin: 0 auto;
}

.prose h1 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
}

.prose .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.prose p,
.prose li {
  color: #26454f;
  font-size: 1rem;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 520px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  background: var(--panel-soft);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
