/* ==========================================================================
   Pragmatic Coders 2026 redesign - design system (shared by every redesigned page)
   Brand: red #E00E19, navy #01131D, light grey #ECECEC (from the 2026 logo)
   Shape rule: buttons + inputs 10px, containers 18px, chips/pills full radius
   Loaded by Views/Layout.cshtml for pages that use the new design. The site header and footer
   have their own stylesheet (css/shared/header-footer.css), shared with the old-design pages.
   Page-specific styles live next to this file (home.css, ...).
   ========================================================================== */
:root {
  --red: #E00E19;
  --red-hover: #C40B15;
  --navy: #01131D;

  --bg: #F3F4F5;
  --surface: #FCFCFD;
  --surface-2: #E9EBED;
  --surface-3: #DDE1E4;
  --ink: #01131D;
  --ink-2: #2E3B45;
  --muted: #56636E;
  --faint: #8995A0;
  --line: rgba(1, 19, 29, .10);
  --line-strong: rgba(1, 19, 29, .20);
  --accent: #E00E19;
  --accent-text: #C40B15;
  --accent-soft: #FCE6E7;
  --accent-line: rgba(224, 14, 25, .28);
  --success: #12804A;
  --success-soft: #E2F3EA;
  --shadow: 0 1px 2px rgba(1, 19, 29, .05), 0 12px 32px -12px rgba(1, 19, 29, .16);
  --shadow-lg: 0 30px 60px -24px rgba(1, 19, 29, .28);
  --header-bg: rgba(243, 244, 245, .82);

  --r-btn: 10px;
  --r-card: 18px;
  --r-pill: 999px;

  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --gutter: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #01131D;
    --surface: #071E2A;
    --surface-2: #0D2635;
    --surface-3: #153345;
    --ink: #ECECEC;
    --ink-2: #C9D1D7;
    --muted: #98A6B1;
    --faint: #6F808C;
    --line: rgba(236, 236, 236, .10);
    --line-strong: rgba(236, 236, 236, .22);
    --accent-text: #FF5C64;
    --accent-soft: rgba(224, 14, 25, .14);
    --accent-line: rgba(255, 92, 100, .35);
    --success: #4CC38A;
    --success-soft: rgba(76, 195, 138, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    --header-bg: rgba(1, 19, 29, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #01131D;
  --surface: #071E2A;
  --surface-2: #0D2635;
  --surface-3: #153345;
  --ink: #ECECEC;
  --ink-2: #C9D1D7;
  --muted: #98A6B1;
  --faint: #6F808C;
  --line: rgba(236, 236, 236, .10);
  --line-strong: rgba(236, 236, 236, .22);
  --accent-text: #FF5C64;
  --accent-soft: rgba(224, 14, 25, .14);
  --accent-line: rgba(255, 92, 100, .35);
  --success: #4CC38A;
  --success-soft: rgba(76, 195, 138, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  --header-bg: rgba(1, 19, 29, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Lenis smooth scrolling (no CSS smooth scroll: it fights GSAP pinning and causes jumps) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-btn); }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.lede { font-size: 18px; color: var(--muted); max-width: 54ch; line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
.h-section { font-size: clamp(30px, 3.6vw, 44px); }
.h-page { font-size: clamp(34px, 4.4vw, 54px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-btn);
  border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.crs-card .cover-logo {
    position: relative;
    width: min(34%, 96px);
    max-width: 120px;
    height: auto;
    aspect-ratio: 1;
    border: 0;
    border-radius: 26%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .28);
}

    .crs-card .cover-logo img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

.crs-card .cover-category {
    left: 20px;
    bottom: 13px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font: 600 12px var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.crs-card:nth-child(4n + 3) .course-cover {
    background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .22), transparent 38%), #e00e19;
}

.crs-band .crs-band-mark {
    width: 185px;
    right: 16.2%;
    top: -2px;
}

@media (max-width: 680px) {
    .crs-tools .search {
        flex: none;
        width: 100%;
    }
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-primary:hover i.ph-arrow-right { transform: translateX(3px); }
.btn i.ph-arrow-right { transition: transform .25s var(--ease); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.btn-soft:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: var(--r-btn); border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn i { font-size: 19px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Initials avatar (testimonials, live session faces, account chip) */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--navy); color: #ECECEC; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
:root[data-theme="dark"] .avatar { background: var(--red); color: #fff; }


/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.in { opacity: 1; transform: none; }
  .page-enter { animation: pageIn .55s var(--ease) both; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Shared typography helpers ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero-ctas .btn { flex: 1; }
}
