/* INNOVATOR & YOU — design system (Bootstrap 5 overrides + components)
   Palette: navy foundation, white surfaces, violet/blue accents. */
:root {
  --iay-navy-950: #070b16;
  --iay-navy-900: #0b1220;
  --iay-navy-800: #121b2f;
  --iay-navy-700: #1c2742;
  --iay-violet: #7c3aed;
  --iay-violet-600: #6d28d9;
  --iay-blue: #3b82f6;
  --iay-ink: #0f172a;
  --iay-muted: #5b6478;
  --iay-line: #e5e7ef;
  --iay-surface: #f6f7fb;
  --iay-grad: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --iay-radius: 14px;
  --bs-primary: #6d28d9;
  --bs-primary-rgb: 109, 40, 217;
  --bs-link-color: #6d28d9;
  --bs-link-color-rgb: 109, 40, 217;
  --bs-link-hover-color: #5b21b6;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --bs-body-color: #0f172a;
  --bs-border-radius: 10px;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .display-5 { letter-spacing: -0.02em; font-weight: 700; }
.text-muted, .text-secondary { color: var(--iay-muted) !important; }
:focus-visible { outline: 3px solid rgba(124, 58, 237, .55); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--iay-violet-600); --bs-btn-border-color: var(--iay-violet-600); --bs-btn-hover-bg: #5b21b6; --bs-btn-hover-border-color: #5b21b6; --bs-btn-active-bg: #4c1d95; }
.btn-gradient { background: var(--iay-grad); color: #fff; border: 0; }
.btn-gradient:hover, .btn-gradient:focus { color: #fff; filter: brightness(1.08); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Header */
.site-header { background: rgba(11, 18, 32, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .navbar-brand { font-weight: 800; letter-spacing: -.01em; color: #fff; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--iay-grad); color: #fff; font-size: .9rem; font-weight: 800; margin-right: .5rem; }
.brand-amp { color: #a78bfa; }
.site-header .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.site-header .nav-link:hover, .site-header .nav-link:focus, .site-header .nav-link.show { color: #fff; }
.mega-menu { width: min(920px, 96vw); border: 0; border-radius: var(--iay-radius); box-shadow: 0 24px 60px rgba(7, 11, 22, .25); padding: 1.25rem; }
@media (min-width: 992px) { .mega-menu { left: 50% !important; transform: translateX(-30%); } }
.mega-item { display: flex; gap: .75rem; padding: .7rem; border-radius: 10px; color: var(--iay-ink); text-decoration: none; }
.mega-item:hover { background: var(--iay-surface); color: var(--iay-ink); }
.mega-item i { font-size: 1.25rem; color: var(--iay-violet); }
.mega-item small { display: block; color: var(--iay-muted); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(124,58,237,.35), transparent 60%), radial-gradient(900px 400px at -10% 110%, rgba(59,130,246,.25), transparent 60%), var(--iay-navy-900); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero .eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #c4b5fd; font-weight: 600; font-size: .85rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.07; }
.text-gradient { background: var(--iay-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: rgba(255,255,255,.75); max-width: 640px; }
.hero-search { background: #fff; border-radius: 14px; padding: .4rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); max-width: 680px; }
.hero-search .form-control { border: 0; box-shadow: none; font-size: 1.05rem; }
.hero-chips a { color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; text-decoration: none; }
.hero-chips a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* Sections & cards */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--iay-surface); }
.section-head .kicker { color: var(--iay-violet); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.iay-card { background: #fff; border: 1px solid var(--iay-line); border-radius: var(--iay-radius); padding: 1.5rem; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.iay-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15, 23, 42, .08); }
.iay-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(124, 58, 237, .1); color: var(--iay-violet); font-size: 1.3rem; }
.empty-state { border: 1px dashed #cdd2e1; border-radius: var(--iay-radius); padding: 2rem; text-align: center; color: var(--iay-muted); background: #fff; }
.empty-state i { font-size: 1.8rem; color: #a78bfa; }
.badge-soon { background: rgba(124,58,237,.1); color: var(--iay-violet-600); font-weight: 600; }

/* Newsletter / CTA */
.cta-band { background: var(--iay-navy-900); color: #fff; border-radius: 20px; padding: clamp(2rem, 5vw, 3rem); background-image: radial-gradient(600px 240px at 100% 0, rgba(124,58,237,.35), transparent 70%); }
.cta-band .form-control { min-height: 48px; }

/* Footer */
.site-footer { background: var(--iay-navy-950); color: rgba(255,255,255,.65); }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Auth */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 3rem 1rem; background: var(--iay-surface); }
.auth-card { width: 100%; max-width: 440px; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--iay-navy-900); color: #fff; flex-shrink: 0; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.72); border-radius: 8px; padding: .55rem .8rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .nav-link.disabled { color: rgba(255,255,255,.3); }
.admin-main { flex: 1; min-width: 0; background: var(--iay-surface); }
.stat-card .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 991.98px) { .admin-sidebar { display: none; } .admin-sidebar.offcanvas { display: block; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.btn-gradient.disabled, .btn-gradient:disabled { color: #fff; opacity: .55; }
.auth-card-wide { max-width: 560px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--iay-grad); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 2rem; border: 4px solid #fff; }
.avatar-sm { width: 36px; height: 36px; font-size: .9rem; border-width: 2px; }
.profile-cover { height: 220px; background: var(--iay-grad); background-size: cover; background-position: center; border-radius: 0 0 var(--iay-radius) var(--iay-radius); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-head { margin-top: -48px; }
.dash-nav .nav-link { color: var(--iay-ink); border-radius: 8px; }
.dash-nav .nav-link.active { background: rgba(124,58,237,.1); color: var(--iay-violet-600); font-weight: 600; }
.perm-yes { color: #16a34a; }
.auth-wrap .iay-card { height: auto; }
.btn-outline-primary { --bs-btn-color: var(--iay-violet-600); --bs-btn-border-color: rgba(109,40,217,.45); --bs-btn-hover-bg: var(--iay-violet-600); --bs-btn-hover-border-color: var(--iay-violet-600); --bs-btn-active-bg: var(--iay-violet-600); --bs-btn-active-border-color: var(--iay-violet-600); --bs-btn-active-color: #fff; --bs-btn-hover-color: #fff; }
nav[aria-label="Breadcrumb"] { padding-bottom: .75rem; }
.tool-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--iay-line); flex-shrink: 0; }
.tool-logo-lg { width: 88px; height: 88px; border-radius: 18px; }
.tool-logo-fallback { display: grid; place-items: center; background: var(--iay-grad); color: #fff; font-weight: 800; font-size: 1.4rem; border: 0; }
.tool-card { position: relative; }
.min-w-0 { min-width: 0; }
.tool-list { padding-left: 1.1rem; }
.tool-list li { margin-bottom: .35rem; }
.tool-aside { top: 90px; z-index: 1; }
.tool-description { white-space: normal; line-height: 1.7; }
aside .iay-card { height: auto; }
.service-cover { aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.service-cover-fallback { width: 100%; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(59,130,246,.12)); color: var(--iay-violet); font-size: 2rem; }
.pkg-card.featured { border-color: var(--iay-violet); box-shadow: 0 0 0 1px var(--iay-violet); }
.msg { max-width: 80%; border-radius: 14px; padding: .6rem .9rem; }
.msg-me { background: rgba(124,58,237,.1); margin-left: auto; }
.msg-them { background: #fff; border: 1px solid var(--iay-line); }

/* ---------- CMS / blog content ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.prose h4 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.prose img { max-width: 100%; height: auto; border-radius: .5rem; }
.prose blockquote { border-left: 4px solid var(--bs-primary); padding: .25rem 1rem; color: var(--bs-secondary-color); margin: 1rem 0; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: .5rem; overflow-x: auto; font-size: .875rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--bs-border-color); padding: .5rem .75rem; text-align: left; }
.prose figure figcaption { font-size: .875rem; color: var(--bs-secondary-color); }

/* ---------- Community ---------- */
.community-body { white-space: normal; overflow-wrap: anywhere; }

/* Accessibility (Phase 12 axe audit): Bootstrap's grey outline buttons are 4.38:1 on the page
   background — darken them to meet WCAG AA 4.5:1 for normal-size text. */
.btn-outline-secondary { --bs-btn-color: #545b62; --bs-btn-border-color: #8a9096; --bs-btn-hover-bg: #545b62; --bs-btn-hover-border-color: #545b62; --bs-btn-active-bg: #4b5157; }
/* Inline <code> keeps AA contrast on light grey surfaces (alerts, table rows). */
code { color: #a61e64; }

/* Fixed sizes as classes — the CSP forbids inline style attributes (style-src-attr 'self'). */
.w-px-90 { width:90px; }
.w-px-110 { width:110px; }
.w-px-120 { width:120px; }
.w-px-140 { width:140px; }
.w-px-150 { width:150px; }
.w-px-220 { width:220px; }
.mw-px-160 { max-width:160px; }
.mw-px-220 { max-width:220px; }
.mw-px-320 { max-width:320px; }
.mw-px-560 { max-width:560px; }
.mw-px-640 { max-width:640px; }
.mw-px-720 { max-width:720px; }
.mw-px-820 { max-width:820px; }
