/* Loan Conduit public pages — CSP-safe (no Tailwind CDN). */

:root {
  --plum: #36013f;
  --teal: #106c6d;
  --text: #2d2d2d;
  --text-muted: #555;
  --pop-orange: #ff6b35;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --max-w: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--plum) 0%, var(--teal) 100%) !important;
  color: #f7f7f7 !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .site-header {
    padding: 1.5rem 2rem;
  }
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand a {
  color: #7ee8e8;
  text-decoration: none;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
}

.header-nav a:hover {
  color: #ffd4b8;
}

.header-nav a.nav-active {
  color: #ffb088;
  font-weight: 600;
}

.btn-login {
  background-color: var(--pop-orange);
  color: #fff !important;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-join {
  background: #fff;
  color: var(--plum) !important;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
}

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
}

.content-panel {
  width: 100%;
  max-width: 48rem;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .content-panel {
    padding: 3rem 4rem;
  }
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--pop-orange);
  color: #fff;
}

.content-panel h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--plum);
}

.content-panel p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.content-panel p.lead {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

/* Plum→teal promo panels (index beta box + inner cards on other pages) */
.beta-box,
.gradient-panel {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--plum) 0%, var(--teal) 100%);
  color: #fff;
  text-align: left;
}

.beta-box--center {
  text-align: center;
}

.beta-box--center ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.beta-box h2,
.beta-box h3,
.gradient-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
}

.beta-box h3,
.gradient-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #fff !important;
}

.beta-price {
  font-size: clamp(2.5rem, 8vw, 3rem);
  font-weight: 800;
  margin: 0.75rem 0;
  line-height: 1.1;
  color: #fff !important;
}

.beta-box-desc,
.content-panel .beta-box p,
.content-panel .beta-box li,
.beta-box p,
.beta-box li,
.gradient-panel p,
.gradient-panel li,
main .card .beta-box p,
main .card .beta-box li,
main .card .gradient-panel p,
main .card .gradient-panel li {
  color: #ffffff !important;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 1 !important;
}

.content-panel .beta-box h3 {
  color: #fff;
}

.beta-box ul,
.gradient-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

main .card .beta-box .btn-secondary,
.gradient-panel .btn-secondary {
  margin-top: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: var(--pop-orange);
  color: #fff !important;
}

.btn-secondary {
  background: #fff;
  color: var(--plum) !important;
  border: 2px solid var(--plum);
}

.site-footer,
footer {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-badges,
footer .footer-badges,
footer > .text-center > .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links,
footer .footer-links,
footer .flex.justify-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

footer .flex.justify-center a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.15rem 0.35rem;
}

footer .flex.justify-center a:hover {
  color: #fff;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: rgba(255, 255, 255, 0.55);
}

.copyright p {
  margin: 0.25rem 0;
}

/* Shell pages (terms, privacy, etc.) */
.shell-page {
  max-width: 48rem;
  margin: 0 auto;
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.shell-page h1 {
  color: var(--plum);
  margin-top: 0;
}

.shell-page a {
  color: var(--teal);
}

.legal-content {
  color: var(--text-muted);
  text-align: left;
}

.legal-content h2 {
  color: var(--plum);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--teal);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Legacy markup (Tailwind class names) when CSP blocks cdn.tailwindcss.com */
body.min-h-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.flex-grow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 2rem;
}

header.w-full,
footer.w-full {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.card.bg-white,
main .card {
  background: #fff !important;
  color: var(--text) !important;
  max-width: 48rem;
  width: 100%;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

main .card h1,
main .card h2 {
  color: var(--plum);
}

main .card p {
  color: var(--text-muted);
}

main .card .beta-box p,
main .card .gradient-panel p {
  color: #fff !important;
}

.text-text {
  color: var(--text-muted) !important;
}

.card-footnote {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted) !important;
}

.bg-white {
  background-color: #fff !important;
}

.text-white {
  color: #fff !important;
}

.text-plum {
  color: var(--plum) !important;
}

.text-teal {
  color: #7ee8e8 !important;
}

.text-gray-300 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.card .text-gray-400,
.card .text-gray-500,
main .card .text-gray-400,
main .card .text-gray-500 {
  color: var(--text-muted) !important;
}

.text-gray-700 {
  color: #444 !important;
}

.text-gray-800,
.text-gray-900 {
  color: var(--text) !important;
}

table .text-gray-500,
.bg-white .text-gray-500 {
  color: var(--text-muted) !important;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.header-nav a.text-white {
  color: #fff !important;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
