﻿/* base.css: global design tokens */

/* Tokens */
:root {
  --primary: #0E9AA7;
  --primary-dark: #0B7B80;
  --primary-soft: rgba(14, 154, 167, 0.12);
  --primary-strong: #0A7B83;
  --accent: #FF6B6B;
  --teal: #0E9AA7;
  --coral: #FF6B6B;
  --text: #333333;
  --bg: #f6f7fa;
  --surface: #ffffff;
  --highlight: #FFC947;
  --support: #C6A1FF;
  --muted: #667085;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 20px 60px rgba(31, 42, 71, 0.08);
  --shadow-lg: 0 30px 70px rgba(51, 78, 234, 0.12);
  --sidebar-width: 220px;

    /* Colours */
  --pgn-bg:           #ffffff;
  --pgn-bg-dark:      #1e1e1e;
  --pgn-fg:           #1a1a1a;
  --pgn-fg-dark:      #e5e5e5;
  --pgn-primary:     #0E9AA7;
  --pgn-primary-dark:#4d9aff;
  --pgn-muted:        #777777;
  --pgn-muted-dark:   #b3b3b3;
  --pgn-border:       #dfe7ef;
  --pgn-border-dark:  #333333;

  /* Sizing */
  --pgn-radius:      999px;
  --pgn-px:           .75rem;   /* horizontal padding */
  --pgn-py:           .45rem;   /* vertical padding */
  --pgn-gap:          .35rem;   /* space between items */

  --blue: var(--primary);
  --blue-soft: var(--primary-soft, var(--accent));
  --primary-soft: var(--accent);
  --background: var(--bg);
  --surface-soft: var(--surface);
  --accent-color: var(--accent);
  --highlight-color: var(--highlight);
  --support-color: var(--support);

  --primary-dark-dashboard: #334eea;
  --bg-dashboard: #f8fbff;
  --surface-dashboard: #ffffff;
  --text-dashboard: #1f2a47;

  --background-feed: #f8fbff;
  --surface-feed: #ffffff;
  --text-feed: #102a43;
  --muted-feed: #64748b;
  --primary-feed: var(--primary);
  --primary-soft-feed: #eef2ff;
  --border-feed: rgba(148, 163, 184, 0.24);
  --shadow-feed: var(--shadow);

  --bg-helper: #eef2ff;
  --surface-helper: #ffffff;
  --surface-soft-helper: #f5f8ff;
  --text-helper: #102a43;
  --muted-helper: #64748b;
  --primary-helper: var(--primary);
  --primary-dark-helper: #3730a3;
  --border-helper: rgba(148, 163, 184, 0.22);
  --shadow-helper: 0 24px 64px rgba(31, 42, 71, 0.12);

  --primary-landing: var(--primary);
  --accent-landing: var(--accent);
  --bg-landing: var(--bg);
  --surface-landing: var(--surface);
  --text-landing: #333333;
  --muted-landing: #52667A;
  --shadow-landing: 0 30px 70px rgba(14, 154, 167, 0.12);

  --bg-login: #f6f8ff;
  --card: #ffffff;
  --text-login: #1f2a47;
  --muted-login: #667085;
  --blue-login: var(--primary);
  --blue-soft-login: #eef2ff;
  --shadow-login: var(--shadow);

  --primary-slm: #3755b8;
  --primary-soft-slm: #eef2ff;
  --surface-slm: #ffffff;
  --text-slm: #1b2340;
  --muted-slm: #6b7280;
  --border-slm: #d9e2ef;
  --shadow-slm: 0 18px 40px rgba(24, 38, 69, 0.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --bp-sm: 640px;
  --bp-md: 900px;
  --radius-xl: 24px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --surface-elevated: rgba(255,255,255,0.96);
  --surface-muted: #f8fafc;
  --shadow-soft: 0 16px 36px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 12px 24px rgba(14, 154, 167, 0.10);
  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-height: 4.5rem;
}

html {
  transition: background-color var(--transition), color var(--transition) !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pgn-bg:        var(--pgn-bg-dark);
    --pgn-fg:        var(--pgn-fg-dark);
    --pgn-muted:     var(--pgn-muted-dark);
    --pgn-border:   var(--pgn-border-dark);
    --pgn-primary:  var(--pgn-primary-dark);
  }
}

html.dark {
  --bg: #0b1220;
  --surface: #111827;
  --text: #e5eefb;
  --muted: #97a4ba;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
  --shadow-lg: 0 30px 70px rgba(14, 154, 167, 0.18);
  --background: #0b1220;
  --surface-soft: #121b2c;
  --surface-elevated: rgba(17, 24, 39, 0.96);
  --surface-muted: #111827;
  --pgn-bg:        var(--pgn-bg-dark);
  --pgn-fg:        var(--pgn-fg-dark);
  --pgn-muted:     var(--pgn-muted-dark);
  --pgn-border:    var(--pgn-border-dark);
  --pgn-primary:   var(--pgn-primary-dark);
  background-color: var(--bg);
  color: var(--text);
}

html.dark body {
  background:
    radial-gradient(circle at top left, rgba(14, 154, 167, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.12), transparent 28%),
    linear-gradient(135deg, #07101d 0%, #0b1220 48%, #0f172a 100%);
  color: var(--text);
}

html.dark body::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 154, 167, 0.10), transparent 22%),
    radial-gradient(circle at 90% 15%, rgba(99, 102, 241, 0.08), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 107, 0.08), transparent 24%);
}

html.dark input,
html.dark select,
html.dark textarea {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text);
  transition: all var(--transition);
}

html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(14, 154, 167, 0.24);
  box-shadow: 0 0 0 3px rgba(14, 154, 167, 0.1);
}

html.dark input::placeholder,
html.dark textarea::placeholder,
html.dark select:invalid {
  color: #94a3b8;
}

html.dark .card,
html.dark .auth-card,
html.dark .stat-card,
html.dark .module-content-card,
html.dark .post-item,
html.dark .profile-card,
html.dark .overview-item,
html.dark .forum-empty-state,
html.dark .report-card-body,
html.dark .top-user-item,
html.dark .content-card,
html.dark .activity-item {
  background: linear-gradient(180deg, rgba(17,24,39,0.98), rgba(10,15,28,0.98));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.3);
  transition: all var(--transition);
}

html.dark .card:hover,
html.dark .auth-card:hover,
html.dark .post-item:hover,
html.dark .profile-card:hover,
html.dark .overview-item:hover,
html.dark .report-card-body:hover,
html.dark .top-user-item:hover,
html.dark .content-card:hover,
html.dark .activity-item:hover {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 50px rgba(14, 154, 167, 0.12);
}

html.dark .forum-sidebar,
html.dark .sidebar,
html.dark .dashboard-shell,
html.dark .dashboard-container,
html.dark .sidebar .sidebar-header,
html.dark .sidebar .sidebar-footer {
  background: rgba(10, 15, 28, 0.96);
}

html.dark .sidebar {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(8, 13, 24, 0.98));
}

html.dark .sidebar-trigger,
html.dark .mobile-sidebar-trigger,
html.dark .theme-toggle {
  background: rgba(17, 24, 39, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
}

html.dark .mobile-sidebar-trigger:hover,
html.dark .mobile-sidebar-trigger:focus-visible,
html.dark .sidebar-trigger:hover,
html.dark .sidebar-trigger:focus-visible,
html.dark .theme-toggle:hover,
html.dark .theme-toggle:focus-visible {
  background: rgba(14, 154, 167, 0.16);
  border-color: rgba(14, 154, 167, 0.24);
}

html.dark .main-content {
  background:
    radial-gradient(circle at top left, rgba(14, 154, 167, 0.12), transparent 30%),
    linear-gradient(180deg, #09111d 0%, #0b1324 45%, #0f172a 100%);
}

html.dark .content-header {
  background: rgba(10, 15, 28, 0.92);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.28);
}

html.dark .header-left h1,
html.dark .breadcrumb,
html.dark .breadcrumb a,
html.dark .user-info,
html.dark .details-header h2,
html.dark .details-header p,
html.dark .detail-row span:first-child,
html.dark .detail-value,
html.dark .profile-section-title,
html.dark .section-title,
html.dark .report-card-title,
html.dark .report-card-subject,
html.dark .report-card-author,
html.dark .forum-title,
html.dark .post-title,
html.dark .post-meta,
html.dark .post-excerpt,
html.dark .post-author,
html.dark .forum-header h1,
html.dark .thread-title,
html.dark .reply-author,
html.dark .reply-content,
html.dark .reply-time,
html.dark .forum-search label,
html.dark .sort-label,
html.dark .mobile-action-row,
html.dark .widget-title,
html.dark .user-card h3,
html.dark .user-card p,
html.dark .nav-label,
html.dark .sidebar-logo {
  color: var(--text);
}

html.dark .dashboard-content .card,
html.dark .report-card,
html.dark .report-card-body,
html.dark .forum-search,
html.dark .forum-header,
html.dark .post-item,
html.dark .activity-item,
html.dark .stat-card,
html.dark .overview-item,
html.dark .profile-card,
html.dark .journey-card,
html.dark .welcome-card,
html.dark .onboarding-card,
html.dark .module-content-card,
html.dark .archive-card,
html.dark .empty-state-card,
html.dark .inbox-card,
html.dark .auth-card,
html.dark .action-menu-panel,
html.dark .filter-row,
html.dark .search-box,
html.dark .sort-group,
html.dark .reply-form,
html.dark .post-form,
html.dark .create-post-container {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 28, 0.98));
  border-color: rgba(148, 163, 184, 0.14);
  color: var(--text);
}

html.dark .dashboard-content .card,
html.dark .forum-search,
html.dark .forum-header,
html.dark .post-item,
html.dark .stat-card,
html.dark .overview-item,
html.dark .profile-card,
html.dark .journey-card,
html.dark .welcome-card,
html.dark .onboarding-card,
html.dark .module-content-card,
html.dark .archive-card,
html.dark .empty-state-card,
html.dark .inbox-card,
html.dark .auth-card,
html.dark .action-menu-panel,
html.dark .search-box,
html.dark .filter-row,
html.dark .reply-form,
html.dark .post-form,
html.dark .create-post-container {
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.34);
}

html.dark .button,
html.dark button,
html.dark .reply-btn,
html.dark .social-button,
html.dark .outline-button,
html.dark .secondary-button,
html.dark .small-button,
html.dark .header-actions .button,
html.dark .action-menu-toggle,
html.dark .upvote-btn,
html.dark .reply-upvote-btn {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 30, 0.98));
  border-color: rgba(148, 163, 184, 0.18);
  color: var(--text);
  transition: all var(--transition);
}

html.dark .button:hover,
html.dark button:hover,
html.dark .reply-btn:hover,
html.dark .outline-button:hover,
html.dark .secondary-button:hover,
html.dark .small-button:hover,
html.dark .header-actions .button:hover,
html.dark .action-menu-toggle:hover,
html.dark .upvote-btn:hover,
html.dark .reply-upvote-btn:hover {
  background: linear-gradient(180deg, rgba(20, 29, 48, 0.98), rgba(14, 22, 40, 0.98));
  border-color: rgba(14, 154, 167, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 154, 167, 0.12);
}

html.dark .button:focus-visible,
html.dark button:focus-visible,
html.dark .reply-btn:focus-visible,
html.dark .outline-button:focus-visible,
html.dark .secondary-button:focus-visible,
html.dark .small-button:focus-visible,
html.dark .header-actions .button:focus-visible,
html.dark .action-menu-toggle:focus-visible,
html.dark .upvote-btn:focus-visible,
html.dark .reply-upvote-btn:focus-visible {
  outline: 2px solid rgba(14, 154, 167, 0.24);
  outline-offset: 2px;
}

html.dark .forum-sidebar,
html.dark .sidebar,
html.dark .main-content,
html.dark .dashboard-content .container,
html.dark .dashboard-content {
  background-color: transparent;
}

.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(31,41,55,0.08); transition: .2s; border-radius: 999px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; top: 4px; background-color: #fff; transition: .2s; border-radius: 50%; box-shadow: 0 2px 6px rgba(16,42,67,0.12); }
input:checked + .slider { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
input:checked + .slider:before { transform: translateX(20px); }

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Global body background to provide a muted canvas across the site */
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 154, 167, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 107, 107, 0.10), transparent 28%),
    linear-gradient(135deg, #f7fbfc 0%, var(--bg) 48%, #eef7f9 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02" 1, "cv03" 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(14, 154, 167, 0.08), transparent 22%),
    radial-gradient(circle at 90% 15%, rgba(99, 102, 241, 0.06), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 107, 107, 0.07), transparent 24%);
  z-index: -1;
}

::selection {
  background: rgba(14, 154, 167, 0.24);
  color: #0f172a;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

button,
.button,
.nav-item,
.quick-btn,
.activity-item,
.stat-card,
.subject-card,
.pm-card,
.post-item,
.home-item,
.benefit-item,
.overview-item,
.module-content-card,
.auth-card,
.hero-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition);
}

button,
.button {
  min-height: 44px;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition), transform var(--transition);
}

input::placeholder,
textarea::placeholder,
select:invalid {
  color: #94a3b8;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(14, 154, 167, 0.3);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(14, 154, 167, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 154, 167, 0.12);
  background: #ffffff;
  transform: translateY(-1px);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input[type="file"] {
  padding: 0.8rem 0.9rem;
  border: 1px dashed rgba(14, 154, 167, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 154, 167, 0.06), rgba(255, 255, 255, 0.96));
  color: var(--muted);
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.7rem 1rem;
  margin-right: 0.8rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(14, 154, 167, 0.16);
  transition: transform var(--transition), box-shadow var(--transition);
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:focus::file-selector-button,
input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(14, 154, 167, 0.2);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--primary);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.animate-fade-up,
.animate-slide-in,
.animate-pop {
  animation: fadeUp 0.7s var(--transition-slow) both;
}

.animate-pop {
  animation-duration: 0.55s;
}

/* Navbar logo image sizing and alignment */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .nav-logo { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 20px rgba(16,42,67,0.06); }
.logo .logo-text { font-weight: 800; font-size: 1.15rem; color: var(--primary); }

@media (max-width: 540px) {
  .logo .nav-logo { display: none; }
  .logo .logo-text { font-size: 1rem; }
}

@media (max-width: 768px) {
  .container, .header-inner, .landing-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  .container, .header-inner, .landing-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .button,
  button {
    min-height: 44px;
    padding: 0.8rem 1rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container, .header-inner, .landing-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .button,
  button {
    padding: 0.8rem 0.95rem;
  }
}

/* Consistent container used across pages */
.container, .header-inner, .landing-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

img, svg {
  max-width: 100%;
  height: auto;
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 99999;
  pointer-events: none;
}

.toast-container .toast {
  min-width: 220px;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  cursor: pointer;
  animation: toastIn 0.3s ease-out, toastOut 0.4s ease-in forwards var(--toast-life);
}

.toast-container .toast--success { background: #16a34a; }
.toast-container .toast--error { background: #dc2626; }
.toast-container .toast--warning { background: #f59e0b; color: #111827; }
.toast-container .toast--info { background: #0f766e; }

.toast-container .toast__icon {
  flex-shrink: 0;
  font-weight: 700;
}

.card, .widget, .auth-card, .hero-card, .home-item, .benefit-item, .step-card, .testimonial-card, .project-overview, .info-section, .overview-item {
  width: 100%;
  min-width: 0;
}

/* Typography refinement */
html, body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { color: var(--text); margin: 0 0 0.45rem 0; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

/* Utility card */
.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  backdrop-filter: blur(14px);
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; color: var(--muted); }

/* Images */
img { max-width: 100%; height: auto; display: block; border-radius: 10px; }

/* Buttons: slightly larger & consistent */
.button {
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* Global header and nav responsiveness */
.page-header {
  width: 100%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.page-header .header-inner {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.main-nav { display:flex; gap:8px; align-items:center; }
.main-nav a { color:var(--text); text-decoration:none; padding: 4px 7px; border-radius:999px; }

@media (max-width: 900px) {
  .page-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .page-header {
    padding: 12px 14px;
  }
  .page-header .header-inner {
    gap: 8px;
  }
  .main-nav {
    gap: 6px;
  }
  .main-nav a {
    padding: 5px 7px;
    font-size: 0.8rem;
  }
  .card {
    padding: 12px;
    border-radius: 14px;
  }
  h1 {
    font-size: clamp(1.25rem, 6.2vw, 1.7rem);
  }
  h2 {
    font-size: 1.08rem;
  }
}

@media (max-width: var(--bp-sm)) {
  .main-nav { width:100%; display:flex; flex-wrap:wrap; gap:10px; }
  .page-header .header-inner { flex-direction:column; align-items:flex-start; gap:8px; }
  .page-header { padding: 14px 16px; }
}

/* Subtle page texture and soft accents */
body {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(198,161,255,0.03) 0px, transparent 80px),
    radial-gradient(circle at 90% 80%, rgba(14,154,167,0.03) 0px, transparent 120px),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Buttons: gentle gradient for primary calls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 12px 24px rgba(14, 154, 167, 0.14);
  text-decoration: none;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a666b 100%);
}

.button-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(14, 154, 167, 0.2);
  box-shadow: none;
}

.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(14, 154, 167, 0.08);
  color: var(--primary-dark);
  box-shadow: none;
}

/* Card elevation and interactive lift */
.card,
.home-item,
.benefit-item,
.test-card,
.hero-card,
.module-content-card,
.profile-overview-card,
.profile-details-card {
  background: var(--surface-elevated);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.home-item:hover,
.benefit-item:hover,
.test-card:hover,
.hero-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* Simple fade-up animation */
.animate-fade-up { opacity: 0; transform: translateY(14px); animation: fadeUp 700ms cubic-bezier(.2,.9,.3,1) both; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
