@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1a3c5e;
  --primary-light: #2a5c8e;
  --secondary: #c2410c;
  --secondary-hover: #9a3412;
  --dark: #0d1b2a;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --border: #e0e0e0;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
  --nav-height: 64px;

  /* Wave C — Typography tokens */
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;
  --fs-3xl: 48px;
  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.6;
  /* Wave E — spacing & card tokens */
  --space-section: 80px;
  --space-section-sm: 56px;
  --space-card: 24px;
  --space-stack: 16px;
  --radius-card: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); background: var(--primary);
  display: flex; align-items: center; padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; flex-shrink: 0; }
.nav-brand span { color: var(--secondary); }
.nav-brand svg { width: 32px; height: 32px; }
.nav-search { flex: 1; max-width: 480px; margin: 0 24px; position: relative; }
.nav-search input { width: 100%; padding: 10px 16px 10px 42px; border-radius: 24px; border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 14px; outline: none; transition: var(--transition); }
.nav-search input::placeholder { color: rgba(255,255,255,0.6); }
.nav-search input:focus { background: rgba(255,255,255,0.25); }
.nav-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); pointer-events: none; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links a { color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-nav { background: var(--secondary) !important; color: #fff !important; padding: 8px 18px !important; border-radius: 6px !important; font-weight: 600 !important; }
.btn-nav:hover { background: var(--secondary-hover) !important; }
.nav-user { position: relative; }
.nav-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid rgba(255,255,255,0.3); }
.nav-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px 0; display: none; z-index: 100; }
.nav-dropdown.open { display: block; }
.nav-dropdown a, .nav-dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; font-size: 14px; color: var(--text); transition: var(--transition); background: none; text-align: left; }
.nav-dropdown a:hover, .nav-dropdown button:hover { background: var(--bg); }
.nav-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.nav-hamburger { display: none; color: #fff; padding: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 600; transition: var(--transition); cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-primary:hover { background: var(--secondary-hover); border-color: var(--secondary-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Cards */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Course Card */
.course-card { cursor: pointer; }
.course-card-img { position: relative; padding-top: 56.25%; background: #1a3c5e; overflow: hidden; }
.course-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-card-badge { position: absolute; top: 10px; left: 10px; background: var(--secondary); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.course-card-body { padding: 16px; }
.course-card-title { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-desc { font-size: 13px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.course-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.course-card-rating { display: flex; align-items: center; gap: 4px; color: #f59e0b; font-weight: 700; font-size: 13px; }
.course-card-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 18px; font-weight: 800; color: var(--primary); }
.price-original { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-free { font-size: 16px; font-weight: 800; color: var(--success); }
.price-sub { font-size: 13px; color: var(--secondary); font-weight: 600; }

/* Grid */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--text-light); margin-bottom: 40px; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }

/* Stars */
.stars { color: #f59e0b; display: inline-flex; gap: 2px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray { background: #f3f4f6; color: #374151; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; color: var(--text); background: #fff; transition: var(--transition); outline: none; font-family: inherit; }
.form-control:focus { border-color: var(--primary); }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* Alert */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.alert-error { background: #fef2f2; border-left: 4px solid var(--danger); color: #b91c1c; }
.alert-success { background: #f0fdf4; border-left: 4px solid var(--success); color: #15803d; }
.alert-info { background: #eff6ff; border-left: 4px solid var(--info); color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-left: 4px solid var(--warning); color: #92400e; }

/* Loading */
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px; flex-direction: column; gap: 16px; color: var(--text-light); }

/* Progress */
.progress-bar { background: var(--border); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--secondary); border-radius: 100px; transition: width 0.5s ease; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; padding: 32px; max-width: 480px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-title { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 24px; color: var(--text-muted); background: none; border: none; cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--bg); }

/* Rating stars */
.rating-stars { display: flex; gap: 4px; }
.rating-stars span { font-size: 24px; cursor: pointer; color: #d1d5db; transition: var(--transition); }
.rating-stars span.active, .rating-stars span:hover { color: #f59e0b; }

/* Responsive */
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 22px; }
  .courses-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
.pt-nav { padding-top: var(--nav-height); }

/* ============================================ */
/* UI ENHANCEMENT LAYER (Udacity-inspired) v1   */
/* Purely additive - safe to remove if needed   */
/* ============================================ */

:root {
  /* New design tokens (do not override existing) */
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 24px;
  --ui-elev-1: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
  --ui-elev-2: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.08);
  --ui-elev-3: 0 10px 25px rgba(0,0,0,0.10), 0 20px 40px rgba(0,0,0,0.12);
  --ui-ring: 0 0 0 3px rgba(232,130,26,0.35);
  --ui-ease: cubic-bezier(.2,.8,.2,1);
  --ui-fast: 160ms;
  --ui-med: 260ms;
  --ui-grad-promo: linear-gradient(90deg, #1a3c5e 0%, #2a5c8e 50%, #e8821a 100%);
  --ui-grad-hero: radial-gradient(1200px 600px at 70% 20%, rgba(232,130,26,0.15), transparent 60%), radial-gradient(900px 500px at 20% 80%, rgba(42,92,142,0.25), transparent 55%);
}

/* Smoother default focus ring for keyboard users */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ui-ring);
  border-radius: 6px;
}

/* Refined heading scale (only affects raw h1-h3, not classed elements) */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

/* Top promo bar (opt-in: add element with class .ui-promo-bar) */
.ui-promo-bar {
  position: relative; z-index: 1100;
  background: var(--ui-grad-promo);
  color: #fff; text-align: center;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ui-promo-bar a { color: #fff; text-decoration: underline; font-weight: 700; }
.ui-promo-bar .ui-promo-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent; color: #fff; font-size: 18px; line-height: 1;
  padding: 4px 8px; border-radius: 4px; opacity: 0.8;
}
.ui-promo-bar .ui-promo-close:hover { background: rgba(255,255,255,0.15); opacity: 1; }

/* Sticky nav blur enhancement (additive on existing .navbar) */
.navbar { backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); transition: background var(--ui-med) var(--ui-ease), box-shadow var(--ui-med) var(--ui-ease); }
.navbar.ui-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* Button polish (additive utility) */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  transition: transform var(--ui-fast) var(--ui-ease), box-shadow var(--ui-fast) var(--ui-ease), background var(--ui-fast) var(--ui-ease), color var(--ui-fast) var(--ui-ease);
  will-change: transform;
}
.ui-btn-primary { background: var(--secondary); color: #fff; box-shadow: var(--ui-elev-1); }
.ui-btn-primary:hover { background: var(--secondary-hover); transform: translateY(-1px); box-shadow: var(--ui-elev-2); }
.ui-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.ui-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }
.ui-btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }

/* Modern card lift utility */
.ui-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-elev-1); padding: 24px;
  transition: transform var(--ui-med) var(--ui-ease), box-shadow var(--ui-med) var(--ui-ease), border-color var(--ui-med) var(--ui-ease);
}
.ui-card:hover { transform: translateY(-4px); box-shadow: var(--ui-elev-3); border-color: rgba(232,130,26,0.4); }

/* Smooth section rhythm */
.ui-section { padding: clamp(64px, 9vw, 128px) 0; }
.ui-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ui-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* Compliance review banner — added 2026-04-26 */
.compliance-banner { max-width: 1100px; margin: 76px auto 8px; padding: 10px 16px; border-radius: 8px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.45); color: #fbbf24; font-size: 0.85rem; line-height: 1.45; position: relative; z-index: 1; }
.compliance-banner strong { color: #fde68a; margin-right: 4px; }
@media (max-width: 720px) { .compliance-banner { margin: 8px 12px 0; font-size: 0.8rem; } }


/* Cross-method navigation strip (training pages) */
.method-strip { background:#f7f9fc; border-bottom:1px solid #e5e9f0; padding:8px 0; font-size:14px; margin-top:64px; position:relative; z-index:5; }
.method-strip-inner { max-width:1200px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.method-strip-label { color:#6b7280; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; font-size:12px; }
.method-strip-list { list-style:none; margin:0; padding:0; display:flex; gap:4px; flex-wrap:wrap; }
.method-strip-link { display:inline-flex; align-items:baseline; gap:6px; padding:6px 12px; border-radius:6px; text-decoration:none; color:#374151; transition:background 0.15s, color 0.15s; }
.method-strip-link:hover { background:#e5e9f0; color:#111827; }
.method-strip-link.active { background:#1a3c5e; color:#fff; }
.method-strip-link.active .method-strip-name { color:#dbeafe; }
.method-strip-link strong { font-weight:700; letter-spacing:0.02em; }
.method-strip-name { color:#6b7280; font-size:13px; }
@media (max-width: 600px) { .method-strip-name { display:none; } .method-strip-link { padding:6px 10px; } }

/* === Layout fix additions === */
.btn-secondary{background:transparent;color:var(--primary);border-color:var(--primary)}
.btn-secondary:hover{background:var(--primary);color:#fff}
.plans-grid-4 .plan-price{font-size:1.4rem;line-height:1.25;font-weight:700;color:#0f172a}
.plans-grid-4 .plan-price strong{font-size:1.4rem;line-height:1.25;font-weight:700}
.plans-grid-4 .plan-card{padding:24px}
.plans-grid-4 .plan-name{font-size:1rem;font-weight:600;color:#0f172a;margin-bottom:8px}
.plans-grid-4 .plan-card ul{margin:14px 0;padding-left:18px;font-size:.9rem;color:#475569;line-height:1.5}
.plans-grid-4 .plan-card .btn{margin-top:auto;align-self:flex-start}
.plans-grid-4 .plan-card{display:flex;flex-direction:column}
.footer-bottom{text-align:center}
.footer-bottom .footer-disclaimer{max-width:880px;margin:0 auto 8px !important;padding:0 16px;font-size:.78rem;color:#94a3b8;line-height:1.55}
.course-card-desc{-webkit-line-clamp:3 !important;line-clamp:3 !important}

/* Wave C — heading typography */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 600; }
h4 { font-size: var(--fs-lg); font-weight: 600; }
@media (max-width: 720px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }
}

/* Wave D — Hero & trust band template */
.page-hero { position:relative; padding: 88px 24px 64px; text-align:center; background: linear-gradient(180deg, #0d1b2a 0%, #1a3c5e 100%); color:#fff; margin: 0 calc(50% - 50vw) 0; width: 100vw; box-sizing: border-box; }
.page-hero > * { max-width: 820px; margin-left:auto; margin-right:auto; }
.page-hero h1, .pricing-hero.page-hero h1 { color:#fff !important; margin: 12px auto 16px; font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.page-hero p.lead, .page-hero .lead, .pricing-hero.page-hero .lead { color: rgba(255,255,255,0.82) !important; font-size: var(--fs-lg); line-height: 1.55; margin: 0 auto 28px; max-width: 720px; }
.page-hero .hero-eyebrow { display:inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f6921e; padding: 6px 12px; border: 1px solid rgba(246,146,30,0.35); border-radius: 999px; background: rgba(246,146,30,0.08); }
.page-hero .hero-ctas { display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; margin-top: 8px; }
.page-hero .hero-ctas .btn-primary { background:#f6921e; border-color:#f6921e; color:#fff; }
.page-hero .hero-ctas .btn-primary:hover { background:#d57a0e; border-color:#d57a0e; }
.page-hero .hero-ctas .btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.4); color:#fff; }
.page-hero .hero-ctas .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.trust-strip { background: #fff; border-bottom: 1px solid #ececec; padding: 18px 24px; margin: 0 calc(50% - 50vw); width: 100vw; box-sizing: border-box; }
.trust-strip-inner { max-width: 1100px; margin: 0 auto; display:flex; gap: 28px; justify-content:center; align-items:center; flex-wrap:wrap; }
.trust-item { display:flex; align-items:center; gap: 10px; color: #555; font-size: var(--fs-sm); font-weight: 500; }
.trust-item::before { content:""; display:inline-block; width:14px; height:8px; border-left:2px solid #f6921e; border-bottom:2px solid #f6921e; transform:rotate(-45deg); margin-top:-4px; }
@media (max-width: 720px) {
  .page-hero { padding: 56px 20px 40px; }
  .trust-strip-inner { gap: 14px; }
  .trust-item { font-size: var(--fs-xs); }
}

/* Wave E — section rhythm + card primitives */
/* Hero pages: pull dark hero up flush with the navbar (removes ~94px white gap) */
.page-hero:first-child,
main > .page-hero:first-of-type,
.container > .page-hero:first-child {
  margin-top: -88px !important;
}
/* Add padding compensation only when hero is the first thing */
.page-hero:first-child { padding-top: calc(88px + 40px) !important; }
/* Wave E retrofit: courses + homepage hero flush against navbar */
main.courses-page { padding-top: 0 !important; }
main.courses-page > .courses-hero:first-child {
  margin-top: -88px !important;
  padding-top: calc(88px + 56px) !important;
}
main.pt-nav { padding-top: 0 !important; }
main.pt-nav > .hero:first-child {
  margin-top: 0 !important;
  padding-top: calc(64px + 40px) !important;
}

/* Trust strip pulled tight against hero */
.page-hero + .trust-strip { margin-top: 0; }
/* Section rhythm primitive (opt-in) */
.section { padding: var(--space-section) 0; }
.section--sm { padding: var(--space-section-sm) 0; }
@media (max-width: 720px) {
  :root { --space-section: 56px; --space-section-sm: 40px; }
}
/* Card primitive (opt-in via .ui-card) */
.ui-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-card); padding: var(--space-card); transition: transform .15s ease, box-shadow .15s ease; }
.ui-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.ui-card--featured { border-color: #f6921e; box-shadow: 0 4px 16px rgba(246,146,30,0.15); }
/* Enterprise-dashboard stats polish: bigger numbers, calmer cards */
.ed-quick-actions { gap: var(--space-stack) !important; }

/* ===== Wave F — Admin shell polish ===== */
/* Apply globally to tables on admin pages without invasive HTML changes */
main#main table { background: #fff; border-radius: 8px; overflow: hidden; }
main#main table tbody tr:nth-child(even) { background: #f7f9fc; }
main#main table tbody tr:hover { background: #fef4ec; }
main#main table thead { background: #f0f4f9; }
main#main table thead th { background: #f0f4f9; border-bottom: 2px solid #c8d1de; }
main#main table tbody td { vertical-align: middle; }

/* Status pills (admin-seats: voided / active / printed) */
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.status-active, .status-pill.status--active { background: #e6f4ea; color: #1e7d3a; border: 1px solid #b9dec6; }
.status-voided, .status-pill.status--voided { background: #fdecec; color: #b1283c; border: 1px solid #f3c5cd; }
.status-printed, .status-pill.status--printed { background: #fff5e6; color: #a5611a; border: 1px solid #f6d6a3; }
.status-pending, .status-pill.status--pending { background: #eef2f9; color: #3b4d6b; border: 1px solid #c7d3e6; }

/* Auto-pill: bare text in cells matching known statuses gets pill styling via [data-status] */
td[data-status="active"] { color: #1e7d3a; font-weight: 600; }
td[data-status="voided"] { color: #b1283c; font-weight: 600; }
td[data-status="printed"] { color: #a5611a; font-weight: 600; }

/* Grant-a-seat form: align labels + inputs cleanly */
#grantForm { gap: 12px !important; align-items: flex-end !important; }
#grantForm label { font-size: 12px !important; color: #314158 !important; gap: 4px; }
#grantForm input, #grantForm select { padding: 7px 10px !important; border: 1px solid #c8d1de !important; border-radius: 6px !important; height: 36px; box-sizing: border-box; }
#grantForm button[type="submit"] { padding: 8px 18px !important; height: 36px; font-weight: 600; border-radius: 6px; }

/* ===== Wave G — A11y polish ===== */
/* WCAG AA contrast: bump muted text from #999 (2.85:1) to #5b6573 (~6:1) */
:root { --text-muted: #5b6573; }

/* Stronger focus-visible ring for keyboard users */
:root { --ui-ring: 0 0 0 3px rgba(232,130,26,0.6); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #c2410c;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Non-color link affordance: in-prose links get underline on hover/focus */
p a, li a, .lede a, .courses-hero-sub a, .pricing-strip-note a {
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
p a:hover, p a:focus-visible, li a:hover, li a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Prefers-reduced-motion: kill animations / transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip-link visibility (already in markup as .skip-link on admin pages; ensure visible on focus) */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus, .skip-link:focus-visible {
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto; overflow: visible;
  padding: 10px 18px; background: #c2410c; color: #fff;
  font-weight: 600; border-radius: 6px; z-index: 10000;
  text-decoration: none;
}

/* Mobile body scroll-lock when nav drawer is open */
body.nav-drawer-open { overflow: hidden; }

/* Mobile nav drawer dim overlay */
@media (max-width: 900px) {
  body.nav-drawer-open::before {
    content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 998;
    animation: navOverlayFadeIn 0.2s ease;
  }
}
@keyframes navOverlayFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === Wave I-a: software hero flush (matches .page-hero pattern) === */
.software-hero {
  margin: 0 calc(50% - 50vw) 0 calc(50% - 50vw) !important;
  width: 100vw !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  padding: 88px 24px 48px !important;
}
main.container > .software-hero:first-child,
main > .software-hero:first-of-type {
  margin-top: -24px !important;
  padding-top: 112px !important;
}
.software-hero > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.software-hero h1 { letter-spacing: -0.02em; }

/* === Wave I-b: tighten internal-app top gap (no .page-hero needed) === */
main.dashboard-page { padding-top: 32px !important; }
main.profile-page { padding-top: 28px !important; }
main.dashboard-page > .container > h1:first-child,
main.profile-page > .container > h1:first-child { margin-top: 0; }
/* enterprise-dashboard.html and admin-seats.html use bare <main> — scope by H1 sibling */
body[data-page='enterprise-dashboard'] main,
body[data-page='admin-seats'] main { padding-top: 20px !important; }

/* === Wave I-d: dropdown contrast fix =====================================
   Issue 1: .nav-links a { color: rgba(255,255,255,.85) } was beating
            .nav-dropdown-item { color: var(--text,#333) } via specificity,
            making account menu items white-on-white.
   Issue 2: legacy .nav-dropdown a, .nav-dropdown button rules from an older
            dropdown system targeted the new .nav-dropdown-toggle button,
            giving it a light-gray background with white text.
   Fix: scope-and-override at .navbar level so new dropdown components win.
=========================================================================== */

/* Toggle buttons: stay transparent + white inside the dark navbar */
.navbar .nav-dropdown-toggle,
.navbar .nav-account-toggle {
  background: transparent !important;
  color: #ffffff !important;
  width: auto !important;
  padding: 8px 12px !important;
}
.navbar .nav-account-toggle {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  padding: 6px 12px 6px 6px !important;
  border-radius: 999px !important;
}
.navbar .nav-dropdown-toggle:hover,
.navbar .nav-dropdown-toggle:focus-visible {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
}
.navbar .nav-account-toggle:hover,
.navbar .nav-account-toggle:focus-visible {
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
}

/* Dropdown menu items: dark text on the white panel, regardless of being
   inside .nav-links (which sets default white nav text) */
.navbar .nav-dropdown-menu .nav-dropdown-item,
.navbar .nav-account-menu .nav-dropdown-item,
.nav-links .nav-dropdown-item {
  color: #1a1f2e !important;
  background: transparent !important;
  width: 100% !important;
  padding: 10px 14px !important;
  display: block !important;
}
.navbar .nav-dropdown-menu .nav-dropdown-item:hover,
.navbar .nav-dropdown-menu .nav-dropdown-item:focus-visible,
.navbar .nav-account-menu .nav-dropdown-item:hover,
.navbar .nav-account-menu .nav-dropdown-item:focus-visible,
.nav-links .nav-dropdown-item:hover,
.nav-links .nav-dropdown-item:focus-visible {
  background: rgba(232,130,26,0.10) !important;
  color: #1a3c5e !important;
}

/* Account menu sign-out button keeps the same look */
.navbar .nav-dropdown-signout {
  color: #b91c1c !important;
}
.navbar .nav-dropdown-signout:hover,
.navbar .nav-dropdown-signout:focus-visible {
  background: rgba(185,28,28,0.08) !important;
  color: #b91c1c !important;
}