/* BuildMyCredit.io — shared site styles (Variation 2 theme).
   Custom component classes used alongside Tailwind utilities on every page.
   Colours mirror the Tailwind config: teal #0E6B5C, bg #F2F6F3, text #12201A,
   secondary #4C5B52, border #D8E2D9, teal-light #E1F0EC, gold #96692C. */

::-webkit-scrollbar { display: none; }
body { background-color: #F2F6F3; font-family: 'Inter', sans-serif; color: #12201A; }

/* ---- Surfaces & gradients ---- */
.glass { background: rgba(255,255,255,0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.7); }
.glass-teal { background: rgba(6,40,33,0.34); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-gradient { background: linear-gradient(135deg, #d4ede6 0%, #e8f4f0 40%, #ddeef8 100%); }
.teal-gradient { background: linear-gradient(135deg, #0E6B5C 0%, #1a8a78 100%); }

/* ---- Motion ---- */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }

/* ---- Tabs ---- */
.toggle-tab { transition: all 0.25s ease; }
.toggle-tab.active { background: #0E6B5C; color: #fff; }

/* ---- FAQ accordion ---- */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 400px; }
.faq-chevron { transition: transform 0.3s ease; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: inherit; font-weight: 500; font-size: 0.9rem; line-height: 1.2; border-radius: 9999px; padding: 0.7rem 1.6rem; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s; }
.btn-primary { background: linear-gradient(135deg, #0E6B5C, #1a8a78); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: #fff; border-color: #D8E2D9; color: #12201A; }
.btn-secondary:hover { border-color: #0E6B5C; color: #0E6B5C; }
.btn-white { background: #fff; color: #0E6B5C; }
.btn-white:hover { background: #E1F0EC; }
.btn-ghost { background: transparent; color: #4C5B52; }
.btn-ghost:hover { color: #0E6B5C; }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---- Forms ---- */
.lbl { display: block; font-size: 0.82rem; font-weight: 500; color: #12201A; margin-bottom: 0.35rem; }
.inp { width: 100%; font-size: 0.95rem; padding: 0.7rem 0.9rem; border: 1px solid #D8E2D9; border-radius: 0.75rem; background: #fff; color: #12201A; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.inp::placeholder { color: #9aa8a0; }
.inp:focus { border-color: #0E6B5C; box-shadow: 0 0 0 3px rgba(14,107,92,0.12); }
.field { margin-bottom: 1rem; }
.hint { font-size: 0.75rem; color: #4C5B52; margin-top: 0.3rem; }
.input-wrap { position: relative; }
.input-wrap .eye { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #4C5B52; cursor: pointer; padding: 0.25rem; }
.turnstile { display: flex; align-items: center; gap: 0.6rem; border: 1px solid #D8E2D9; border-radius: 0.75rem; padding: 0.7rem 0.9rem; background: #F2F6F3; font-size: 0.8rem; color: #4C5B52; }
.turnstile .fa-shield-halved { color: #0E6B5C; }

/* Password strength */
.pw-track { height: 6px; border-radius: 9999px; background: #E8F0EA; overflow: hidden; margin-top: 0.5rem; }
.pw-fill { height: 100%; width: 0; border-radius: 9999px; background: #0E6B5C; transition: width 0.2s ease, background 0.2s ease; }

/* ---- OTP / code inputs ---- */
.otp-row { display: flex; gap: 0.6rem; justify-content: center; }
.otp-row .inp { width: 3rem; text-align: center; font-family: 'Inter', monospace; font-size: 1.4rem; font-weight: 600; padding: 0.6rem 0; letter-spacing: 0; }

/* ---- Auth / centered standalone pages ---- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid #D8E2D9; border-radius: 1.5rem; box-shadow: 0 20px 60px rgba(14,107,92,0.10), 0 4px 20px rgba(0,0,0,0.05); padding: 2.25rem; }
.brandmark { font-family: 'Lora', serif; font-weight: 600; font-size: 1.25rem; color: #12201A; text-decoration: none; letter-spacing: -0.01em; }
.brandmark span { color: #0E6B5C; }

/* ---- Logo lockup (mark + wordmark) ---- */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-ico { width: 1.9rem; height: 1.9rem; display: block; flex-shrink: 0; }
.brand-wordmark { font-family: 'Lora', serif; font-weight: 600; font-size: 1.2rem; color: #12201A; letter-spacing: -0.01em; line-height: 1; }
.brand-wordmark .t { color: #0E6B5C; }
.brand-wordmark .io { color: #4C5B52; font-weight: 500; }

/* ---- Chips / badges ---- */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 9999px; white-space: nowrap; }
.chip-good { background: #E4F2EA; color: #2E7D5B; }
.chip-warn { background: #FBF0DD; color: #97620F; }
.chip-critical { background: #FBE9E7; color: #A63A3A; }
.chip-teal { background: #E1F0EC; color: #0E6B5C; }
.chip-neutral { background: #E8F0EA; color: #4C5B52; }

/* ---- App shell (dashboards / admin) ---- */
/* Sidebar stays fixed at full viewport height; only the main column scrolls. */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; overflow: hidden; }
.sidebar { background: #fff; border-right: 1px solid #D8E2D9; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: 1.25rem; height: 100vh; overflow-y: auto; }
.app > div { height: 100vh; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem; border-radius: 0.75rem; color: #4C5B52; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-item:hover { background: #F2F6F3; color: #12201A; }
.nav-item.active { background: #E1F0EC; color: #0E6B5C; font-weight: 600; }
.nav-item .ico { width: 1.15rem; text-align: center; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.75rem; border-bottom: 1px solid #D8E2D9; background: #fff; }
.topbar-ham { display: none; align-items: center; justify-content: center; background: transparent; border: 0; color: #12201A; font-size: 1.25rem; cursor: pointer; padding: 0.25rem 0.4rem; margin-right: 0.25rem; }
.card { background: #fff; border: 1px solid #D8E2D9; border-radius: 1.25rem; }

/* ---- Reporting timeline (signature) ---- */
.timeline { display: flex; gap: 5px; align-items: flex-end; }
.timeline .m { flex: 1; height: 34px; border-radius: 6px; background: #E8F0EA; border: 1px solid #D8E2D9; }
.timeline .m.reported { background: #0E6B5C; border-color: #0E6B5C; }
.timeline .m.missed { background: #FBE9E7; border-color: #A63A3A; }
.timeline .m.current { background: transparent; border: 2px dashed #0E6B5C; opacity: 0.7; }

@media (max-width: 860px) {
  .app { display: block; height: auto; overflow: visible; }
  .app > div { height: auto; overflow-y: visible; }
  /* Sidebar collapses to a togglable panel at the top on mobile */
  .sidebar { display: none; height: auto; overflow: visible; border-right: none; border-bottom: 1px solid #D8E2D9; }
  .sidebar.open { display: flex; }
  .topbar { position: static; justify-content: flex-start; gap: 0.75rem; }
  .topbar-ham { display: inline-flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
