/* css/login.css */
/* Landing, sign-in, docs and legal pages: SF Prep light theme, navy header like the app and notes pages. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.10);
  --nav-bg: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  --success: #22C55E;
  --error: #EF4444;
  --wa: #25D366;
  --radius-md: 12px;
  --radius-lg: 16px;
}

html, body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.topnav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.topnav {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topnav-astra {
  width: min(1100px, calc(100% - 32px));
  flex-wrap: nowrap;
}

.topnav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.legal-nav > a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.legal-nav > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.legal-nav > a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.legal-nav .nav-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 11px;
  background: #16a34a;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  white-space: nowrap;
}

.legal-nav .nav-cta:hover,
.legal-nav > a.nav-cta.is-active {
  color: #fff !important;
  background: #15803d;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.topnav-wrap.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .topnav.topnav-astra {
    flex-wrap: wrap;
    align-items: stretch;
    width: min(1100px, calc(100% - 24px));
    padding: 10px 0;
    gap: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topnav-wrap .legal-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f2744;
  }

  .topnav-wrap.nav-open .legal-nav {
    display: flex;
  }

  .topnav-wrap .legal-nav > a {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.3;
    width: 100%;
    box-sizing: border-box;
  }

  .topnav-wrap .legal-nav > a:not(.nav-cta):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .topnav-wrap .legal-nav .nav-cta {
    margin: 6px 0 0;
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none !important;
  }

  .topnav-bar {
    width: auto;
    flex: 0 0 auto;
  }

  .topnav.topnav-astra {
    flex-wrap: nowrap;
  }

  .topnav-wrap .legal-nav {
    display: flex !important;
    width: auto;
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
  }
}

.page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.brand-inline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.steps .n {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.qr-zone {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: transparent;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-pad {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  line-height: 0;
}

.qr-pad img,
.qr-pad canvas {
  display: block;
  width: 200px;
  height: 200px;
}

.code-box {
  margin-top: 10px;
  width: 100%;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  user-select: all;
}

.meta {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-wa {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  color: #062814 !important;
  background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-wa:hover {
  filter: brightness(1.05);
  color: #062814 !important;
}

.btn-wa.disabled,
.btn-wa[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.wa-choice {
  margin-top: 10px;
  padding: 10px 12px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}
.wa-choice[hidden] { display: none !important; }
.wa-choice-note {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.wa-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-wa-app {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: #075E54;
  border: 1.5px solid #25D366;
}
.btn-wa-app.is-last {
  background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%);
  color: #062814;
}
.wa-last {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(6, 40, 20, 0.12);
}
.wa-last[hidden] { display: none; }

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
  min-height: 44px;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-tertiary);
}

.status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 0;
  text-align: center;
}
.status[hidden] { display: none !important; }
.status.success { color: var(--success); }
.status.error { color: var(--error); }

.login-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-footer .product {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 0;
}

.login-footer .product strong {
  color: var(--text-primary);
  font-weight: 600;
}

.login-footer-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.login-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
}

.login-footer-links a:hover {
  color: var(--accent);
}

.success-block {
  text-align: center;
  padding: 28px 8px;
}

.success-block .icon {
  color: var(--success);
  font-size: 42px;
  margin-bottom: 8px;
}

.success-block h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.demo-login {
  margin-top: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.demo-login summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-login form { display: grid; gap: 10px; margin-top: 12px; }

.demo-field { display: grid; gap: 4px; font-size: 12px; color: var(--text-secondary); }

.demo-field input {
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
}

.demo-submit { margin-top: 2px; }

.link-app h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.link-app .steps { margin-top: 12px; }

/* Login: animated "how it works" (three 3-second scenes on a 9-second loop, steps highlighted in sync). */
.lg-title { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.lg-how {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 6px 0 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.lg-phone {
  position: relative;
  flex: 0 0 112px;
  height: 196px;
  border: 5px solid #0f172a;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.lg-phone::before {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  width: 28px; height: 4px;
  margin-left: -14px;
  border-radius: 4px;
  background: #0f172a;
  z-index: 3;
}
.lg-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: lg-scene 9s infinite;
}
.lg-s2 { animation-delay: 3s; background: #efeae2; }
.lg-s3 { animation-delay: 6s; }
.lg-bar {
  padding: 13px 8px 6px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8, #16a34a);
}
.lg-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
}
.lg-line { width: 100%; height: 6px; border-radius: 3px; background: #e2e8f0; }
.lg-line.is-short { width: 60%; }
.lg-fake-btn {
  margin-top: 18px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  color: #062814;
  background: #25D366;
  animation: lg-press 9s infinite;
}
.lg-tap {
  position: absolute;
  top: 70px; left: 50%;
  width: 24px; height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  opacity: 0;
  animation: lg-tap 9s infinite;
}
.lg-wa-bar { display: flex; align-items: center; gap: 5px; background: #075E54; }
.lg-wa-av {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px; border-radius: 50%;
  font-size: 6px; background: #fff; color: #075E54;
}
.lg-wa-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 6px; }
.lg-bubble {
  align-self: flex-end;
  padding: 4px 6px;
  border-radius: 6px 6px 0 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #0f172a;
  background: #d9fdd3;
  opacity: 0;
  transform: translateY(10px);
  animation: lg-bubble 9s infinite 3s;
}
.lg-bubble i { color: #53bdeb; }
.lg-wa-input { display: flex; align-items: center; gap: 4px; padding: 0 5px 7px; }
.lg-wa-text {
  flex: 1;
  padding: 4px 6px;
  border-radius: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #0f172a;
  background: #fff;
  animation: lg-text 9s infinite 3s;
}
.lg-wa-send {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 8px; color: #fff; background: #25D366;
  animation: lg-send 9s infinite 3s;
}
.lg-done { justify-content: center; gap: 6px; }
.lg-done i { font-size: 34px; color: #16a34a; animation: lg-pop 9s infinite 6s; }
.lg-done b { font-size: 11px; color: #0f172a; }

.lg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lg-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 7px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  animation: lg-step 9s infinite;
}
.lg-steps li:nth-child(2) { animation-delay: 3s; }
.lg-steps li:nth-child(3) { animation-delay: 6s; }
.lg-steps strong { color: var(--text-primary); font-weight: 600; }
.lg-steps li > span:last-child { text-wrap: pretty; }
.lg-steps .n {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
}
.lg-steps .bi-send-fill { color: #16a34a; font-size: 11px; }

@keyframes lg-scene { 0% { opacity: 0; } 3%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes lg-step {
  0%, 33% { background: var(--bg-secondary); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08); }
  34%, 100% { background: transparent; box-shadow: none; }
}
@keyframes lg-tap { 0%, 12% { opacity: 0; transform: scale(0.4); } 15% { opacity: 1; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes lg-press { 0%, 13% { transform: scale(1); } 15% { transform: scale(0.9); } 18%, 100% { transform: scale(1); } }
@keyframes lg-text { 0%, 16% { opacity: 1; } 18%, 100% { opacity: 0.35; } }
@keyframes lg-send { 0%, 11% { transform: scale(1); } 13% { transform: scale(1.3); } 15% { transform: scale(0.9); } 17%, 100% { transform: scale(1); } }
@keyframes lg-bubble { 0%, 16% { opacity: 0; transform: translateY(10px); } 19%, 31% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } }
@keyframes lg-pop { 0%, 2% { transform: scale(0.3); } 7% { transform: scale(1.15); } 10%, 100% { transform: scale(1); } }

.lg-active { display: flex; flex-direction: column; }
.lg-active .btn-wa { margin-top: 0; min-height: 48px; font-size: 15px; }
.lg-qr-group { margin-top: 14px; }
.lg-qr-label { margin: 0 0 8px; text-align: center; font-size: 12.5px; color: var(--text-muted); }

@media (hover: hover) and (pointer: fine) {
  .lg-qr-group { order: -1; margin: 0 0 12px; }
}

@media (max-width: 400px) {
  .lg-how { gap: 12px; padding: 12px 10px; }
  .lg-phone { flex-basis: 96px; height: 172px; }
  .lg-steps li { font-size: 12px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-scene, .lg-steps li, .lg-fake-btn, .lg-tap, .lg-bubble, .lg-wa-text, .lg-wa-send, .lg-done i { animation: none; }
  .lg-s2 { opacity: 1; }
  .lg-bubble { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .page {
    min-height: auto;
    align-items: flex-start;
    padding: 14px 10px;
  }

  .card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .qr-zone { padding: 10px; }
  .qr-pad img,
  .qr-pad canvas { width: 180px; height: 180px; }
}

.tip-box {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tip-box p { margin: 0 0 8px; }
.tip-box p:last-child { margin-bottom: 0; }
.tip-box strong { color: var(--text-primary); font-weight: 600; }
.tip-link { margin-top: 10px !important; }
.tip-link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.tip-link a:hover { text-decoration: underline; }

.howto-card { max-width: 560px; }
.howto-callout {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--accent-glow);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
}
.howto-h {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.howto-ol, .howto-ul {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.howto-ol li, .howto-ul li { margin-bottom: 6px; }
.howto-p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.howto-card code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}

.profile-complete-form .field { margin-bottom: 14px; }
.profile-complete-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.dob-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr;
  gap: 8px;
}
.dob-row .field-input { font-size: 16px; padding-right: 6px; }

/* Searchable dropdown (searchable-select.js) */
.ss { position: relative; min-width: 0; }
.ss-native { display: none; }
.ss-input {
  padding-right: 26px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  text-overflow: ellipsis;
}
.ss-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  min-width: 96px;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.ss-list[hidden] { display: none; }
.ss-opt { padding: 10px; border-radius: 8px; font-size: 15px; cursor: pointer; color: var(--text-primary); }
.ss-opt.is-active, .ss-opt:hover { background: var(--bg-tertiary); }
.ss-opt[aria-selected="true"] { font-weight: 600; }
.ss-empty { padding: 10px; font-size: 13px; color: var(--text-muted); }
.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
}
.terms-accept-row {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.45;
  margin: 0;
}

.terms-check input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.terms-check-text { flex: 1; min-width: 0; }

.terms-check a,
.terms-accept-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.terms-check a:hover,
.terms-accept-row a:hover { text-decoration: underline; }

.howto-card a {
  color: var(--accent);
  text-decoration: none;
}
.howto-card a:hover { text-decoration: underline; }

main.page a:not([class]) {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
main.page a:not([class]):hover { text-decoration: underline; }

.docs-card code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* Docs (Astra-style) */
.page-docs {
  align-items: flex-start;
  max-width: none;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.docs-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  width: 100%;
}

.docs-side {
  position: sticky;
  top: 72px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-side a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}

.docs-side a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.docs-hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.docs-hero p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.docs-ver {
  display: inline-block;
  margin-left: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.docs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.docs-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.docs-card-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.docs-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.docs-subh {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.release-block + .release-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
}

.release-meta strong {
  color: var(--text-primary);
  font-size: 14px;
}

.release-meta span {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }
}

/* Legal pages: policy sidebar + readable document */
.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  width: 100%;
}
.legal-side {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-side-label {
  margin: 14px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal-side-label:first-child { margin-top: 0; }
main.page .legal-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
main.page .legal-side a i { font-size: 15px; color: var(--text-muted); }
main.page .legal-side a:hover { background: var(--bg-hover); color: var(--text-primary); }
main.page .legal-side a.is-active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
main.page .legal-side a.is-active i { color: var(--accent); }

.legal-doc {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 44px 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  min-width: 0;
}
.legal-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.legal-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.legal-meta { margin: 0; font-size: 13px; color: var(--text-muted); }
.legal-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

.legal-toc {
  margin: 20px 0 8px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}
.legal-toc p { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 28px; font-size: 13.5px; line-height: 1.9; }
main.page .legal-toc a { color: var(--text-secondary); text-decoration: none; }
main.page .legal-toc a:hover { color: var(--accent); text-decoration: underline; }

.legal-doc section { scroll-margin-top: 84px; }
.legal-doc h2 { margin: 30px 0 10px; font-size: 19px; font-weight: 650; color: var(--text-primary); }
.legal-doc h3 { margin: 18px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--text-primary); }
.legal-doc p, .legal-doc li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc section ul, .legal-doc section ol { margin: 0 0 14px; padding-left: 1.3rem; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc strong { color: var(--text-primary); font-weight: 600; }
.legal-doc a { color: var(--accent); text-decoration: none; font-weight: 500; }
.legal-doc a:hover { text-decoration: underline; }
.legal-doc code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--bg-tertiary); color: var(--accent); }

.legal-note {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  background: var(--accent-glow);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
}
.legal-note.is-warn { border-left-color: #d97706; background: #fffbeb; }

.legal-table { width: 100%; margin: 6px 0 16px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--border-color); text-align: left; vertical-align: top; line-height: 1.55; color: var(--text-secondary); }
.legal-table th { background: var(--bg-tertiary); color: var(--text-primary); font-weight: 600; }

.legal-contact {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}
.legal-contact h2 { margin-top: 0; }
.legal-contact p:last-child { margin-bottom: 0; }

.legal-doc a.lp-btn { font-weight: 700; text-decoration: none; }
.legal-doc a.lp-btn-primary { color: #fff; }
.legal-doc a.lp-btn-ghost { color: var(--text-primary); }
.legal-doc h2 i { color: var(--accent); margin-right: 4px; }

.ft-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ft-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 6px; }
.ft-overview > div {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: 12px;
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
}
.ft-overview i { font-size: 20px; color: var(--accent); margin-bottom: 4px; }
.ft-overview strong { font-size: 14.5px; }
.ft-overview span { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

.ft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 14px; }
.ft-grid.ft-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ft-card { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-secondary); }
.legal-doc .ft-card h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ft-card h3 i { color: var(--accent); }
.legal-doc .ft-card p { margin: 0; font-size: 14px; line-height: 1.6; }

.legal-doc ol.ft-steps { list-style: none; counter-reset: ft; padding-left: 0; }
.legal-doc ol.ft-steps > li { counter-increment: ft; position: relative; padding-left: 40px; margin-bottom: 12px; }
.legal-doc ol.ft-steps > li::before {
  content: counter(ft);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-glow); color: var(--accent);
  font-size: 13px; font-weight: 700;
}
.legal-doc p.ft-tip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 10px;
  background: var(--accent-glow); color: var(--text-primary); font-size: 14px;
}
.ft-tip i { color: var(--accent); margin-top: 2px; }

.about-net { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 10px 0 16px; }
.about-net .ft-card .about-url { display: inline-block; margin-top: 8px; font-size: 13px; }
.about-status {
  display: inline-block; margin-bottom: 8px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border-color); background: var(--accent-glow); color: var(--text-primary);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

@media (max-width: 860px) {
  .ft-overview { grid-template-columns: repeat(2, 1fr); }
  .ft-grid, .ft-grid.ft-grid-3, .about-net { grid-template-columns: 1fr; }
  .legal-shell { grid-template-columns: 1fr; gap: 16px; }
  .legal-side {
    position: sticky;
    top: 64px;
    z-index: 5;
    flex-direction: row;
    gap: 6px;
    margin: -4px -16px 0;
    padding: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent);
  }
  .legal-side::-webkit-scrollbar { display: none; }
  .legal-side-label { display: none; }
  .legal-doc section { scroll-margin-top: 124px; }
  main.page .legal-side a { flex-shrink: 0; white-space: nowrap; border: 1px solid var(--border-color); background: var(--bg-secondary); padding: 6px 10px; font-size: 12.5px; }
  .legal-doc { padding: 24px 20px 28px; }
  .legal-head h1 { font-size: 24px; }
  .legal-toc ol { columns: 1; }
  .legal-doc p, .legal-doc li { font-size: 14.5px; }
  .legal-table { display: block; overflow-x: auto; }
}

/* Public landing page */
html { scroll-behavior: smooth; }

.page-landing {
  display: block;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 24px;
  min-height: 0;
}

.page-landing section[id] { scroll-margin-top: 80px; }

.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 40px;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.lp-hero h1 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.lp-grad {
  background: linear-gradient(135deg, #2563eb 0%, #22C55E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.lp-hero-lead {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 540px;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.lp-byline {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.lp-made-in {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(255, 153, 51, 0.1), rgba(255, 255, 255, 0.6), rgba(19, 136, 8, 0.1));
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
}

/* About: Made in India */
.legal-doc .mi-section {
  margin-top: 30px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: linear-gradient(160deg, rgba(255, 153, 51, 0.08) 0%, #fff 45%, rgba(19, 136, 8, 0.08) 100%);
}
.legal-doc .mi-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
}
.legal-doc .mi-section h2 { margin-top: 0; }
.mi-section .about-net > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.legal-doc .mi-close { margin: 14px 0 0; font-weight: 600; color: #15803d; }
@media (max-width: 600px) {
  .legal-doc .mi-section { padding: 16px; }
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.lp-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.22);
}

.lp-btn-primary:hover { filter: brightness(1.07); }

.lp-btn-ghost {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.lp-btn-ghost:hover { border-color: rgba(37, 99, 235, 0.5); }

.lp-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lp-link:hover { text-decoration: underline; }

/* Hero mock test window */
.lp-mock {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12), 0 0 60px rgba(37, 99, 235, 0.08);
}

.lp-mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.lp-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.lp-mock-title { margin-left: 8px; color: var(--text-secondary); font-weight: 600; }
.lp-mock-timer { margin-left: auto; color: var(--accent); font-family: "JetBrains Mono", monospace; font-weight: 500; }

.lp-mock-body {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 14px;
  padding: 16px;
}

.lp-mock-qno { color: var(--accent); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.lp-mock-qtext { font-size: 13.5px; line-height: 1.55; margin-bottom: 12px; }

.lp-mock-opt {
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  margin-bottom: 7px;
  color: var(--text-secondary);
}

.lp-mock-opt.is-picked {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.1);
  color: var(--text-primary);
}

.lp-mock-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.lp-mock-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-content: start;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
}

.lp-pal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.lp-pal.is-answered { background: #15803d; border-color: #15803d; color: #fff; }
.lp-pal.is-skipped { background: #dc2626; border-color: #dc2626; color: #fff; }
.lp-pal.is-review { background: #7c3aed; border-color: #7c3aed; color: #fff; border-radius: 50%; }
.lp-pal.is-current { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

.lp-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.lp-chip.is-on { border-color: rgba(37, 99, 235, 0.5); color: var(--accent); background: var(--accent-glow); }
.lp-chip-green { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.45); color: #15803d; }
.lp-chip-violet { background: rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.5); color: #6d28d9; }

/* Stats strip */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.lp-stat {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  text-align: center;
}

.lp-stat strong { display: block; font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.lp-stat > span { display: block; color: var(--text-secondary); font-size: 13px; text-wrap: balance; }

/* Sections */
.lp-section {
  padding: 56px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.lp-kicker,
.lp-section .lp-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lp-section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.lp-section-sub,
.lp-split p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.lp-section h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }

.lp-center { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.lp-center-row { justify-content: center; }

.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lp-step {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.lp-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--accent);
  font-weight: 700;
}

.lp-step p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; }
.lp-step code,
.lp-section code {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--accent);
}

.lp-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.lp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lp-tab:hover { color: var(--text-primary); }
.lp-tab.is-active { background: var(--bg-tertiary); color: var(--text-primary); box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.4); }

.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.lp-split[hidden] { display: none; }

.lp-checks { list-style: none; margin: 0 0 24px; display: grid; gap: 10px; }

.lp-checks li {
  position: relative;
  padding-left: 28px;
  color: var(--text-primary);
  font-size: 14.5px;
  line-height: 1.5;
}

.lp-checks li::before {
  content: "\F26E";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-size: 17px;
}

.lp-panel-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

.lp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.lp-pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-glow);
}

.lp-pill-green { color: #15803d; background: rgba(34, 197, 94, 0.14); }

.lp-field-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-primary);
  margin-bottom: 8px;
  font-size: 13.5px;
}

.lp-field-row span { color: var(--text-secondary); }
.lp-field-row strong { text-align: right; font-weight: 600; }

.lp-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.lp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-legend > span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.lp-legend .lp-pal { flex-shrink: 0; }

.lp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }

.lp-cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-primary);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.lp-cal-day.is-done { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.45); color: #15803d; }
.lp-cal-day.is-today { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

.lp-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.lp-score > div { padding: 12px 8px; border-radius: 12px; background: var(--bg-primary); text-align: center; }
.lp-score strong { display: block; font-size: 20px; }
.lp-score span { color: var(--text-secondary); font-size: 11.5px; }

.lp-bar { display: grid; grid-template-columns: 80px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.lp-bar span { color: var(--text-secondary); }
.lp-bar > div { height: 8px; border-radius: 999px; background: var(--bg-primary); overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #22C55E); }
.lp-bar i.is-warn { background: linear-gradient(90deg, #f59e0b, #f97316); }
.lp-bar b { text-align: right; font-weight: 600; }

.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.lp-card {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lp-card:hover { border-color: rgba(37, 99, 235, 0.45); transform: translateY(-2px); }
.lp-card > i { font-size: 22px; color: var(--accent); display: inline-block; margin-bottom: 12px; }
.lp-card h3 { font-size: 15.5px; }
.lp-card p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; }
.lp-note-card { display: block; color: inherit; text-decoration: none; }
.lp-note-card h3 { color: var(--text-primary); }
.lp-study-card { position: relative; display: flex; flex-direction: column; }
.lp-study-card > i { align-self: flex-start; }
.lp-card-tag {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.lp-card > i.lp-ic-red { color: #dc2626; }
.lp-card > i.lp-ic-green { color: #16a34a; }

.lp-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 8px 0 0;
  padding: 32px 36px;
  border-radius: 22px;
  background: var(--nav-bg);
  color: #fff;
}
.lp-app .lp-kicker { color: #93c5fd; }
.lp-app h2 { color: #fff; margin-bottom: 8px; }
.lp-app p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.lp-app ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lp-app li { color: rgba(255, 255, 255, 0.9); font-size: 14px; }
.lp-app li i { color: #4ade80; margin-right: 6px; }
.lp-app .sff-store { padding: 10px 18px; border-color: rgba(255, 255, 255, 0.35); }
.lp-app .sff-store span { font-size: 17px; }
@media (max-width: 760px) {
  .lp-app { grid-template-columns: 1fr; padding: 26px 22px; }
}

.lp-note-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.lp-contact { text-align: center; }
.lp-contact > i { font-size: 30px; color: var(--accent); display: inline-block; margin-bottom: 10px; }
.lp-contact p { margin-bottom: 14px; }

.lp-faq { display: grid; gap: 10px; }

.lp-faq details {
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0 18px;
}

.lp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq details p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; padding: 0 0 16px; }
.lp-faq a { color: var(--accent); }

.lp-final {
  margin: 24px 0 16px;
  padding: 48px 24px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
    var(--bg-secondary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.lp-final h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 10px; }
.lp-final p { color: var(--text-secondary); margin-bottom: 22px; }

@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; }
  .lp-split { grid-template-columns: 1fr; gap: 28px; }
  .lp-split-rev > :first-child { order: 2; }
  .lp-steps, .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .page-landing { width: calc(100% - 24px); }
  .lp-hero { padding-top: 28px; }
  .lp-hero-cta .lp-btn { width: 100%; }
  .lp-mock-body { grid-template-columns: 1fr; }
  .lp-mock-palette { grid-template-columns: repeat(10, 1fr); }
  .lp-mock-palette .lp-pal { width: 100%; height: 26px; }
  .lp-steps, .lp-grid { grid-template-columns: 1fr; }
  .lp-section { padding: 40px 0; }
  .lp-legend { grid-template-columns: 1fr; }
  .lp-tabs { display: flex; }
  .lp-tab { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13px; }
}


/* css/brand.css */
/* SF Prep logo + wordmark. Loaded by every layout so the brand looks the same in each header. */
.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none !important;
  line-height: 1;
}
.sf-brand:hover { color: #fff; }

.sf-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}
.sf-brand-logo img {
  width: 125%;
  height: 125%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The image is 125% of the 34px box, so the ring and shine are sized to the image (inset -4.25px). */
.sf-brand-logo::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #60a5fa, #4ade80, #22d3ee, #a78bfa, #60a5fa);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: sf-ring-spin 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.75));
  z-index: 0;
}
.sf-brand-logo::after {
  content: "";
  position: absolute;
  inset: -4.25px;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: sf-logo-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.sf-brand:hover .sf-brand-logo img { transform: rotate(360deg) scale(1.06); }
.sf-brand:hover .sf-brand-logo::before { animation-duration: 1.2s; }

@keyframes sf-ring-spin { to { transform: rotate(360deg); } }
@keyframes sf-logo-shine {
  0%, 60% { background-position: 150% 0; }
  85%, 100% { background-position: -50% 0; }
}

.sf-brand-word {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.sf-brand-word b {
  font-weight: 800;
  background: linear-gradient(90deg, #60a5fa 0%, #4ade80 50%, #60a5fa 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sf-word-flow 6s linear infinite;
}
@keyframes sf-word-flow { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .sf-brand-logo::before, .sf-brand-logo::after, .sf-brand-word b { animation: none; }
  .sf-brand-logo::after { display: none; }
  .sf-brand-logo img { transition: none; }
  .sf-brand:hover .sf-brand-logo img { transform: none; }
}

@media (max-width: 480px) {
  .sf-brand { gap: 14px; }
  .sf-brand-word { font-size: 20px; }
}

/* Line breaking shared by every layout: even out heading lines, avoid one-word last lines in text. */
.nowrap { white-space: nowrap; }
h1, h2, h3, h4, summary, th, label, .btn, .lp-btn, .lp-kicker, .ft-overview span, .lg-qr-label { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Small Indian tricolour mark for "Made in India" lines (CSS only, renders the same on every OS). */
.mi-flag {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  vertical-align: -1px;
  border-radius: 2px;
  background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}
.mi-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  border: 0.75px solid #000080;
  transform: translate(-50%, -50%);
}

/* css/feature-demos.css */
/* Small CSS-only feature demos (no images) for /Features, /Docs and the landing page.
   Each demo loops on its own timer; base styles are the finished state so reduced motion still reads well. */
@property --fd-p { syntax: "<percentage>"; inherits: false; initial-value: 72%; }

.ft-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin: 4px 0 16px;
}
.ft-split > div > :last-child { margin-bottom: 0; }
@media (max-width: 1040px) {
  .ft-split { grid-template-columns: 1fr; gap: 14px; }
}

.fd {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0;
  justify-self: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: linear-gradient(160deg, #eff6ff 0%, #f0fdf4 100%);
  font-size: 11px;
  line-height: 1.35;
  color: #0f172a;
  overflow: hidden;
}
.fd-card { position: relative; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08); }
.fd-cap { display: block; margin-top: 10px; font-size: 11.5px; line-height: 1.45; color: var(--text-muted); text-align: center; text-wrap: balance; }
.fd-row { display: flex; align-items: center; gap: 6px; }
.fd-between { justify-content: space-between; }
.fd-wrap { flex-wrap: wrap; }
.fd p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.fd .fd-label { margin: 9px 0 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.fd .fd-label:first-child { margin-top: 0; }
.fd-sk { display: block; height: 6px; margin: 5px 0; border-radius: 3px; background: #e2e8f0; }
.fd-sk.w80 { width: 80%; } .fd-sk.w60 { width: 60%; } .fd-sk.w40 { width: 40%; }
.fd-chip {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.fd-chip.is-sel { background: #dbeafe; border-color: #60a5fa; color: #1d4ed8; }
.fd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding: 7px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
}
.fd-btn.is-ghost { color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; }
.fd-swap { display: inline-grid; }
.fd-swap > * { grid-area: 1 / 1; }
.fd-muted { color: #64748b; }

/* Sign-in demo inside a figure */
.fd-login { display: flex; justify-content: center; padding: 18px 14px; }

/* DPP streak */
.fd-streak { color: #ea580c; font-weight: 700; }
.fd-days { display: flex; gap: 5px; margin-top: 9px; }
.fd-day {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #dcfce7;
  color: #16a34a;
}
.fd-day small { font-size: 8px; font-weight: 600; color: #64748b; }
.fd-day i { font-size: 12px; }
.fd-day.is-today { animation: fd-today 6s infinite; }
.fd-day.is-today i { animation: fd-today-i 6s infinite; }
.fd-dpp .fd-s-a { opacity: 0; animation: fd-a6 6s infinite; }
.fd-dpp .fd-s-b { animation: fd-b6 6s infinite; }
.fd-dpp .fd-btn { animation: fd-press-40 6s infinite; }
@keyframes fd-today {
  0%, 48% { background: #fff; color: #94a3b8; box-shadow: inset 0 0 0 2px #60a5fa; transform: none; }
  54% { transform: scale(1.18); }
  60%, 94% { background: #dcfce7; color: #16a34a; box-shadow: none; transform: none; }
  100% { background: #fff; color: #94a3b8; box-shadow: inset 0 0 0 2px #60a5fa; }
}
@keyframes fd-today-i { 0%, 50% { opacity: 0; } 56%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fd-a6 { 0%, 52% { opacity: 1; } 56%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-b6 { 0%, 52% { opacity: 0; } 56%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fd-press-40 { 0%, 38% { transform: none; } 42% { transform: scale(0.93); } 46%, 100% { transform: none; } }

/* Mock test setup */
.fd-mock .fd-chip.is-a { animation: fd-chip 8s infinite; }
.fd-mock .fd-chip.is-b { animation: fd-chip 8s infinite 0.6s; }
.fd-mock .fd-chip.is-c { animation: fd-chip 8s infinite 1.6s; }
.fd-track { position: relative; flex: 1; height: 6px; border-radius: 3px; background: #e2e8f0; }
.fd-fill {
  position: absolute;
  inset: 0 50% 0 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #60a5fa, #4ade80);
  animation: fd-fill 8s infinite;
}
.fd-fill::after {
  content: "";
  position: absolute;
  right: -6px; top: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #4ade80;
}
.fd-mock .fd-btn { animation: fd-press-65 8s infinite; }
.fd-tag { margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; color: #15803d; background: #dcfce7; }
@keyframes fd-chip {
  0%, 8% { background: #fff; border-color: #cbd5e1; color: #475569; }
  12%, 92% { background: #dbeafe; border-color: #60a5fa; color: #1d4ed8; }
  96%, 100% { background: #fff; border-color: #cbd5e1; color: #475569; }
}
@keyframes fd-fill { 0%, 22% { right: 100%; } 42%, 92% { right: 50%; } 100% { right: 100%; } }
@keyframes fd-press-65 { 0%, 62% { transform: none; } 66% { transform: scale(0.93); } 70%, 100% { transform: none; } }

/* Exam-style test screen */
.fd-test { display: grid; grid-template-columns: 1fr 78px; gap: 8px; }
.fd-timer { padding: 2px 6px; border-radius: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 9px; font-weight: 600; color: #1d4ed8; background: #eff6ff; }
.fd-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 9.5px;
}
.fd-radio { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #94a3b8; flex-shrink: 0; }
.fd-opt.is-pick { animation: fd-opt 8s infinite; }
.fd-opt.is-pick .fd-radio { animation: fd-radio 8s infinite; }
.fd-test-btns { display: flex; gap: 4px; margin-top: 7px; }
.fd-test-btns span { flex: 1; padding: 4px 2px; border-radius: 5px; font-size: 8px; font-weight: 700; text-align: center; }
.fd-test-btns .is-save { color: #fff; background: #16a34a; animation: fd-press-40 8s infinite; }
.fd-test-btns .is-rev { color: #6d28d9; border: 1px solid #c4b5fd; }
.fd-pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; align-content: start; }
.fd-pal span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 3px;
  font-size: 7.5px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
}
.fd-pal .p-a { color: #fff; background: #16a34a; }
.fd-pal .p-n { color: #fff; background: #dc2626; }
.fd-pal .p-r { color: #fff; background: #7c3aed; border-radius: 50%; }
.fd-pal .p-ar { position: relative; color: #fff; background: #7c3aed; border-radius: 50%; }
.fd-pal .p-ar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.fd-pal .p-cur { color: #fff; background: #16a34a; animation: fd-cell-cur 8s infinite; }
.fd-pal .p-next { animation: fd-cell-next 8s infinite; }
@keyframes fd-opt {
  0%, 18% { background: #fff; border-color: #e2e8f0; }
  22%, 60% { background: #f0fdf4; border-color: #4ade80; }
  64%, 100% { background: #fff; border-color: #e2e8f0; }
}
@keyframes fd-radio {
  0%, 18% { background: transparent; border-color: #94a3b8; }
  22%, 60% { background: #16a34a; border-color: #16a34a; }
  64%, 100% { background: transparent; border-color: #94a3b8; }
}
@keyframes fd-cell-cur {
  0%, 42% { color: #475569; background: #fff; box-shadow: inset 0 0 0 1.5px #2563eb; }
  46%, 94% { color: #fff; background: #16a34a; box-shadow: none; }
  100% { color: #475569; background: #fff; box-shadow: inset 0 0 0 1.5px #2563eb; }
}
@keyframes fd-cell-next { 0%, 44% { box-shadow: none; } 48%, 94% { box-shadow: inset 0 0 0 1.5px #2563eb; } 100% { box-shadow: none; } }

/* Results */
.fd-res { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.fd-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(#16a34a var(--fd-p), #e2e8f0 0);
  animation: fd-ring 7s infinite;
}
.fd-ring b {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  background: #fff;
}
.fd-meter { display: grid; grid-template-columns: 44px 1fr 16px; align-items: center; gap: 6px; margin: 4px 0; font-size: 9.5px; }
.fd-meter b { text-align: right; }
.fd-bar { height: 6px; border-radius: 3px; background: #f1f5f9; overflow: hidden; }
.fd-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--c, #16a34a); transform-origin: left; animation: fd-grow 7s infinite; }
.fd-meter:nth-child(2) .fd-bar i { animation-delay: 0.2s; }
.fd-meter:nth-child(3) .fd-bar i { animation-delay: 0.4s; }
@keyframes fd-ring { 0% { --fd-p: 0%; } 35%, 92% { --fd-p: 72%; } 100% { --fd-p: 0%; } }
@keyframes fd-grow { 0%, 10% { transform: scaleX(0); } 40%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* Bookmarks */
.fd-bm-icon { position: absolute; top: 9px; right: 10px; display: grid; font-size: 15px; color: #f59e0b; }
.fd-bm-icon > i { grid-area: 1 / 1; }
.fd-bm-icon .is-off { opacity: 0; animation: fd-bm-off 6s infinite; }
.fd-bm-icon .is-on { animation: fd-bm-on 6s infinite; }
.fd-bm .fd-s-a { opacity: 0; animation: fd-a45 6s infinite; }
.fd-bm .fd-s-b { animation: fd-b45 6s infinite; }
.fd-bm-list { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 9px; border-radius: 10px; background: #fff; font-weight: 700; }
.fd-bm-list i { color: #f59e0b; }
.fd-count { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 9.5px; color: #92400e; background: #fef3c7; }
@keyframes fd-bm-off { 0%, 28% { opacity: 1; } 32%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-bm-on {
  0%, 28% { opacity: 0; transform: scale(0.4); }
  34% { opacity: 1; transform: scale(1.4); }
  40%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes fd-a45 { 0%, 45% { opacity: 1; } 49%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-b45 { 0%, 45% { opacity: 0; } 49%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* My Sets */
.fd-sets .fd-btn { animation: fd-press-12 9s infinite; }
.fd-sets-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.fd-tile { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 10px; background: #fff; font-size: 9.5px; font-weight: 700; }
.fd-tile i { font-size: 14px; color: #2563eb; }
.fd-tile .fd-count { color: #1d4ed8; background: #dbeafe; }
.fd-sets .fd-s-a { opacity: 0; animation: fd-a34 9s infinite; }
.fd-sets .fd-s-b { animation: fd-b34 9s infinite; }
.fd-share { color: #075E54; animation: fd-share 9s infinite; }
.fd-share i { color: #25D366; }
.fd-fly {
  position: absolute;
  left: 50%; top: 92px;
  width: 26px; height: 18px;
  margin-left: -13px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35), inset 0 0 0 1.5px #60a5fa;
  opacity: 0;
  animation: fd-fly 9s infinite;
}
@keyframes fd-press-12 { 0%, 10% { transform: none; } 13% { transform: scale(0.93); } 16%, 100% { transform: none; } }
@keyframes fd-fly {
  0%, 15% { opacity: 0; transform: none; }
  17% { opacity: 1; transform: none; }
  31% { opacity: 1; transform: translate(-62px, 44px) scale(0.5); }
  33%, 100% { opacity: 0; transform: translate(-62px, 44px) scale(0.5); }
}
@keyframes fd-a34 { 0%, 32% { opacity: 1; } 36%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-b34 { 0%, 32% { opacity: 0; } 36%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fd-share {
  0%, 50% { box-shadow: none; transform: none; }
  54% { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.35); }
  60%, 92% { box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.5); transform: none; }
  100% { box-shadow: none; }
}

/* Segmented switch shared by Notes and Current Affairs */
.fd-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 2px; border-radius: 999px; background: #f1f5f9; }
.fd-seg span { position: relative; z-index: 1; padding: 4px 0; font-size: 9.5px; font-weight: 700; text-align: center; color: #475569; }
.fd-seg::before {
  content: "";
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  animation: fd-seg var(--fd-t, 7.5s) infinite;
}
.fd-stack { display: grid; margin-top: 10px; }
.fd-stack > * { grid-area: 1 / 1; }
.fd-stack > :nth-child(1) { animation: fd-ph1 var(--fd-t, 7.5s) infinite; }
.fd-stack > :nth-child(2) { opacity: 0; animation: fd-ph2 var(--fd-t, 7.5s) infinite; }
.fd-stack > :nth-child(3) { opacity: 0; animation: fd-ph3 var(--fd-t, 7.5s) infinite; }
@keyframes fd-seg {
  0%, 30% { transform: translateX(0); }
  33%, 63% { transform: translateX(100%); }
  66%, 97% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}
@keyframes fd-ph1 { 0%, 30% { opacity: 1; } 33%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-ph2 { 0%, 30% { opacity: 0; } 33%, 63% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes fd-ph3 { 0%, 63% { opacity: 0; } 66%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* Notes */
.fd .fd-note-fact { padding: 8px 9px; border-left: 3px solid #16a34a; border-radius: 6px; background: #f0fdf4; font-size: 11px; font-weight: 600; }
.fd-note-fact small { display: block; margin-bottom: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #15803d; }

/* Current Affairs */
.fd-ca { --fd-t: 9s; }
.fd-ca-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 8.5px; font-weight: 700; color: #b91c1c; background: #fee2e2; }
.fd-ca-li { display: flex; align-items: center; gap: 6px; }
.fd-ca-li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #2563eb; flex-shrink: 0; }
.fd-ca-li .fd-sk { flex: 1; }
.fd-ca .fd-opt.is-right { animation: fd-quiz 9s infinite; }
@keyframes fd-quiz {
  0%, 82% { background: #fff; border-color: #e2e8f0; }
  86%, 97% { background: #f0fdf4; border-color: #4ade80; }
  100% { background: #fff; border-color: #e2e8f0; }
}

/* Static GK */
.fd-gk-no { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; font-size: 8.5px; font-weight: 700; color: #1d4ed8; background: #dbeafe; }
.fd-gk-text { flex: 1; }
.fd-gk-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fd-tag { padding: 1px 6px; border-radius: 4px; font-size: 8.5px; font-weight: 700; color: #475569; background: #f1f5f9; white-space: nowrap; }
.fd-tag.is-imp { color: #b45309; background: #fef3c7; }
.fd-tag.is-src { color: #1d4ed8; background: #eff6ff; }
.fd-gk-prac { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 4px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 700; color: #1d4ed8; background: #eff6ff; animation: fd-press-12 8s infinite; }
.fd-gk-prac i { transform: rotate(180deg); animation: fd-chev 8s infinite; }
.fd-gk-q { max-height: 120px; overflow: hidden; animation: fd-gk-open 8s infinite; }
.fd-gk .fd-opt i { margin-left: auto; color: #16a34a; animation: fd-gk-ok 8s infinite; }
.fd-gk .fd-opt.is-right { background: #f0fdf4; border-color: #4ade80; animation: fd-gk-right 8s infinite; }
.fd-gk .fd-opt.is-right .fd-radio { background: #16a34a; border-color: #16a34a; animation: fd-gk-radio 8s infinite; }
@keyframes fd-chev { 0%, 13% { transform: none; } 18%, 94% { transform: rotate(180deg); } 100% { transform: none; } }
@keyframes fd-gk-open { 0%, 13% { max-height: 0; opacity: 0; } 24%, 94% { max-height: 120px; opacity: 1; } 100% { max-height: 0; opacity: 0; } }
@keyframes fd-gk-right {
  0%, 44% { background: #fff; border-color: #e2e8f0; }
  50%, 94% { background: #f0fdf4; border-color: #4ade80; }
  100% { background: #fff; border-color: #e2e8f0; }
}
@keyframes fd-gk-radio {
  0%, 44% { background: transparent; border-color: #94a3b8; }
  50%, 94% { background: #16a34a; border-color: #16a34a; }
  100% { background: transparent; border-color: #94a3b8; }
}
@keyframes fd-gk-ok { 0%, 50% { opacity: 0; transform: scale(0.5); } 56% { opacity: 1; transform: scale(1.2); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Library */
.fd-books { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fd-book { padding: 7px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }
.fd-cover { display: grid; place-items: center; height: 40px; border-radius: 6px; color: #fff; font-size: 16px; background: linear-gradient(135deg, #2563eb, #22d3ee); }
.fd-cover.is-green { background: linear-gradient(135deg, #16a34a, #84cc16); }
.fd-cover.is-violet { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.fd-add { display: block; margin-top: 6px; padding: 3px; border-radius: 6px; font-size: 9px; font-weight: 700; text-align: center; color: #1d4ed8; background: #eff6ff; }
.fd-add.is-tap { display: grid; animation: fd-press-18 8s infinite; }
.fd-add.is-tap > * { grid-area: 1 / 1; }
.fd-add .is-before { opacity: 0; animation: fd-a24 8s infinite; }
.fd-add .is-after { color: #15803d; animation: fd-b24 8s infinite; }
.fd-shelf { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px; border-radius: 10px; background: #fff; }
.fd-shelf b { margin-right: auto; font-size: 9.5px; }
.fd-shelf .fd-cover { width: 26px; height: 34px; font-size: 11px; }
.fd-shelf .is-new { animation: fd-shelf-in 8s infinite; }
@keyframes fd-press-18 { 0%, 16% { transform: none; } 19% { transform: scale(0.9); } 22%, 100% { transform: none; } }
@keyframes fd-a24 { 0%, 23% { opacity: 1; } 26%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fd-b24 { 0%, 23% { opacity: 0; } 26%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fd-shelf-in {
  0%, 28% { opacity: 0; transform: translateY(-14px) scale(0.6); }
  36% { opacity: 1; transform: scale(1.12); }
  42%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* Report a mistake */
.fd-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 9.5px; font-weight: 700; color: #b91c1c; animation: fd-press-12 8s infinite; }
.fd-menu {
  margin-top: 8px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  animation: fd-menu 8s infinite;
}
.fd-menu span { display: block; padding: 3px 6px; border-radius: 5px; font-size: 9.5px; }
.fd-menu .is-pick { animation: fd-menu-pick 8s infinite; }
.fd-verified { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; color: #15803d; background: #dcfce7; animation: fd-verified 8s infinite; }
@keyframes fd-menu { 0%, 14% { opacity: 0; transform: translateY(-6px); } 18%, 48% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes fd-menu-pick { 0%, 30% { background: transparent; } 34%, 48% { background: #fee2e2; color: #b91c1c; font-weight: 700; } 52%, 100% { background: transparent; } }
@keyframes fd-verified { 0%, 58% { opacity: 0; transform: scale(0.6); } 64% { opacity: 1; transform: scale(1.1); } 68%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Landing page: bring the existing mock-ups to life */
.lp-mock-opt.is-picked { animation: lp-pick 8s infinite; }
.lp-mock-actions .lp-chip-green { animation: fd-press-40 8s infinite; }
.lp-pal.is-current { animation: lp-cur 8s infinite; }
.lp-cal-day.is-today { animation: lp-today 2.4s ease-in-out infinite; }
.lp-bar i { transform-origin: left; animation: fd-grow 7s infinite; }
.lp-bar:nth-of-type(4) i { animation-delay: 0.2s; }
.lp-bar:nth-of-type(5) i { animation-delay: 0.4s; }
@keyframes lp-pick {
  0%, 16% { border-color: var(--border-color); background: transparent; color: var(--text-secondary); }
  20%, 60% { border-color: rgba(34, 197, 94, 0.6); background: rgba(34, 197, 94, 0.1); color: var(--text-primary); }
  64%, 100% { border-color: var(--border-color); background: transparent; color: var(--text-secondary); }
}
@keyframes lp-cur {
  0%, 42% { background: transparent; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
  46%, 94% { background: #15803d; border-color: #15803d; color: #fff; box-shadow: none; }
  100% { background: transparent; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
}
@keyframes lp-today { 0%, 100% { box-shadow: 0 0 0 2px var(--accent-glow); } 50% { box-shadow: 0 0 0 6px var(--accent-glow); } }

@media (prefers-reduced-motion: reduce) {
  .lp-mock-opt.is-picked, .lp-mock-actions .lp-chip-green, .lp-pal.is-current, .lp-cal-day.is-today, .lp-bar i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fd *, .fd *::before, .fd *::after { animation: none !important; }
  .fd-stack > :nth-child(2), .fd-stack > :nth-child(3) { display: none; }
}

/* css/site-footer.css */
/* Shared site footer (_SiteFooter.cshtml): landing, public Notes / Current Affairs / GK and the signed-in app. */
.sff {
  margin-top: 40px;
  background: #0f2744;
  color: #cbd5e1;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Devanagari', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}
.sff a { color: #e2e8f0; text-decoration: none; }
.sff a:hover { color: #fff; text-decoration: underline; }
.sff-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.sff .sf-brand { color: #fff !important; }
.sff-brand p { margin: 12px 0 14px; max-width: 340px; color: #94a3b8; }
.sff-brand p.sff-by { margin-top: -6px; font-size: 12.5px; color: #cbd5e1; }
.sff-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 10px;
  background: #000; border: 1px solid #334155;
  color: #fff !important; text-decoration: none !important; line-height: 1.15;
}
.sff-store:hover { border-color: #64748b; }
.sff-store small { display: block; font-size: 10px; color: #cbd5e1; letter-spacing: .02em; }
.sff-store span { font-size: 15px; font-weight: 600; }
.sff-col { display: flex; flex-direction: column; gap: 7px; }
.sff-col h2 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sff-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(148, 163, 184, .2);
  font-size: 12px;
  color: #94a3b8;
}
.sff-bottom p { margin: 0 0 4px; }
.sff-bottom .sff-india { margin-bottom: 8px; color: #e2e8f0; }
.sff-india strong { color: #fff; font-weight: 600; }
.sff-bottom a { color: #cbd5e1; text-decoration: underline; }

@media (max-width: 800px) {
  .sff-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; padding-top: 28px; }
  .sff-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .sff-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sff-col:last-child { grid-column: 1 / -1; }
}

.sff-social {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.sff-social-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-right: 4px; }
.sff-social a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid #334155; color: #e2e8f0; font-size: 13px; text-decoration: none !important;
}
.sff-social a:hover { border-color: #94a3b8; color: #fff; }
.sff-social a[hidden] { display: none; }
.sff-social a.sff-social-all { border-style: dashed; }

