/*
|| THE DIGITAL COACH - Design System (Accessible, Performant)
|| ============================================================================
*/

:root {
  /* Color system */
  --color-background: #ffffff;
  --color-surface: #f7f8f9;
  --color-surface-alt: #fafbfc;
  --color-surface-hover: #f0f2f4;
  --color-text-primary: #1a1f24;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;
  --color-accent: #0E8192;
  --color-accent-hover: #0a6473;
  --color-accent-light: rgba(14, 129, 146, 0.08);
  --color-accent-medium: rgba(14, 129, 146, 0.15);
  --color-border: #d1d5da;
  --color-border-light: #e5e7eb;
  --color-border-lighter: #edf2f7;
  --color-accent-contrast: #075965;
  --color-focus-ring: rgba(14, 129, 146, 0.35);

  /* Typography */
  --font-family-primary: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;

  --line-height-tight: 1.25;
  --line-height-base: 1.625;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius & Border */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-full: 9999px;
  --border-width: 1px;
  --border-width-thick: 3px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.08), 0 10px 10px rgba(0,0,0,0.04);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-moderate: 350ms;

  /* Layout */
  --layout-sidebar-width: 280px;
  --layout-max-width: 1200px;
  --layout-header-height-mobile: 64px;

  /* Z-Index */
  --z-sticky: 200;
  --z-toast: 600;
  --z-top: 900;

  color-scheme: light dark;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0f1517;
    --color-surface: #111a1d;
    --color-surface-alt: #0f191c;
    --color-surface-hover: #142126;
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #c0c7cf;
    --color-text-muted: #9aa3ad;
    --color-border: #24333a;
    --color-border-light: #1c2a31;
    --color-border-lighter: #172229;
    --color-accent: #0E8192;
    --color-accent-hover: #0a6473;
    --color-accent-light: rgba(14, 129, 146, 0.18);
    --color-accent-medium: rgba(14, 129, 146, 0.25);
    --color-accent-contrast: #6bd5e3;
    --color-focus-ring: rgba(14, 129, 146, 0.5);
  }
}

/*
|| RESET & BASE STYLES
|| ============================================================================
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative; /* For the ::before element */
  overflow-x: hidden; /* To prevent horizontal scroll from gradients */
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, var(--color-accent-light) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, var(--color-accent-medium) 0%, transparent 50%);
    opacity: 0.5; /* Increased opacity */
    z-index: -1;
    pointer-events: none;
}
::selection { background-color: var(--color-accent-medium); color: var(--color-text-primary); }

/*
|| ACCESSIBILITY & FOCUS
|| ============================================================================
*/

.skip-link {
  position: absolute;
  top: -100px; left: var(--space-md);
  background: var(--color-accent); color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  text-decoration: none; z-index: var(--z-top);
  font-weight: var(--font-weight-semibold);
  transition: top var(--duration-fast) var(--ease-out-expo);
}
.skip-link:focus { top: var(--space-md); }

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-focus-ring);
  border-radius: var(--border-radius-md);
}

/*
|| LAYOUT
|| ============================================================================
*/

#app, .layout-container {
  height: 100vh;
  overflow: hidden;
}

.layout-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

/* Main Content */
.main-content {
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
  opacity: 0;
  animation: fadeIn var(--duration-moderate) var(--ease-out-expo) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
#app-root { max-width: var(--layout-max-width); width: 100%; margin: 0 auto; }

/* Sidebar Navigation */
.sidebar-nav {
  display: none;
  background: var(--color-surface-alt);
  border-right: var(--border-width) solid var(--color-border-light);
  padding: var(--space-xl) var(--space-lg);
  overflow-y: auto;
}
.sidebar-header {
  display: flex; align-items: center; gap: var(--space-md);
  padding-bottom: var(--space-lg); margin-bottom: var(--space-lg);
  border-bottom: var(--border-width) solid var(--color-border-light);
}
.sidebar-footer { margin-top: auto; padding-top: var(--space-lg); }
.sidebar-reset { width: 100%; }

/* Mobile Header */
.mobile-header {
  display: flex; height: var(--layout-header-height-mobile);
  background: color-mix(in srgb, var(--color-background), transparent 15%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-width) solid var(--color-border-light);
  padding: 0 var(--space-lg); align-items: center; justify-content: space-between;
  z-index: var(--z-sticky);
}

/*
|| TYPOGRAPHY & SHARED ELEMENTS
|| ============================================================================
*/

h1, h2, h3, h4 { font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); color: var(--color-text-primary); margin: 0 0 var(--space-md); }
h1 { font-size: clamp(2.25rem, 5vw, 3rem); } h2 { font-size: clamp(1.5rem, 4vw, 1.875rem); } h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); } h4 { font-size: var(--font-size-md); }
p { margin: 0 0 var(--space-md); max-width: 70ch; }
.lead { font-size: var(--font-size-lg); color: var(--color-text-secondary); line-height: var(--line-height-relaxed); max-width: 65ch; }
a { color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-accent-hover); }
.btn-link { background: none; border: none; padding: 0; color: var(--color-accent); font-size: inherit; font-weight: var(--font-weight-semibold); text-decoration: underline; cursor: pointer; }
.btn-link:hover { color: var(--color-accent-hover); }

.brand-logo {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  text-decoration: none; color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold); font-size: var(--font-size-md);
  transition: transform var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
}
.brand-logo:hover { color: var(--color-accent); transform: translateY(-1px); }
.brand-logo svg { flex-shrink: 0; color: var(--color-accent); }

/*
|| COMPONENTS
|| ============================================================================
*/

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm); padding: var(--space-md) var(--space-xl);
  font-family: inherit; font-size: var(--font-size-base); font-weight: var(--font-weight-semibold);
  line-height: 1; text-align: center; text-decoration: none; white-space: nowrap;
  border: none; border-radius: var(--border-radius-md); cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo), background-color var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
  user-select: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-text-primary); border: var(--border-width) solid var(--color-border); }
.btn-secondary:hover:not(:disabled) { background: var(--color-surface-hover); border-color: var(--color-text-muted); }
.btn-outline { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.btn-outline:hover:not(:disabled) { background: var(--color-accent); color: white; }
.btn-lg { padding: var(--space-lg) var(--space-2xl); font-size: var(--font-size-lg); }
.btn-full { width: 100%; }

.reset-button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm); background: transparent; border: none;
  border-radius: var(--border-radius-md); color: var(--color-text-secondary); cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast) var(--ease-out-expo);
  padding: var(--space-sm);
}
.reset-button:hover { background: var(--color-surface-hover); color: var(--color-accent); transform: translateY(-1px); }
.reset-button span { display: none; } /* Hide text on mobile by default */

/* Cards */
.card {
  background: var(--color-background); border: var(--border-width) solid var(--color-border-light);
  border-radius: var(--border-radius-lg); padding: var(--space-xl);
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast) var(--ease-out-expo);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover, .card-interactive:focus-within { border-color: var(--color-accent); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-sm); }
.card-description { color: var(--color-text-secondary); margin-bottom: var(--space-md); }

/* Forms */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; margin-bottom: var(--space-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.form-input {
  display: block; width: 100%; padding: var(--space-md); font-family: inherit; font-size: var(--font-size-base);
  color: var(--color-text-primary); background: var(--color-background); border: var(--border-width) solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: border-color var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo);
}
.form-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-focus-ring); }
.form-help { margin-top: var(--space-sm); font-size: var(--font-size-sm); color: var(--color-text-muted); }
.radio-group { display: flex; flex-direction: column; gap: var(--space-md); }
.radio-option {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-lg); background: var(--color-surface);
  border: 2px solid var(--color-border-light); border-radius: var(--border-radius-lg); cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-expo), border-color var(--duration-fast) var(--ease-out-expo);
}
.radio-option:hover { border-color: var(--color-accent-medium); background: var(--color-surface-hover); }
.radio-option input[type="radio"] { margin-top: 0.25rem; cursor: pointer; flex-shrink: 0; }
.radio-option.is-checked {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}
.radio-option-label { flex: 1; font-weight: var(--font-weight-medium); }

/* Navigation */
.main-nav { display: flex; flex-direction: column; gap: var(--space-xs); }
.main-nav a {
  color: var(--color-text-secondary); text-decoration: none;
  padding: var(--space-sm) var(--space-md); border-radius: var(--border-radius-md);
  border-left: var(--border-width-thick) solid transparent; font-weight: var(--font-weight-medium);
  transition: background var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
}
.main-nav a:hover { color: var(--color-text-primary); background: var(--color-surface-hover); transform: translateX(4px); }
.main-nav a.active, .main-nav a[aria-current="page"] {
  color: var(--color-text-primary); background: var(--color-background);
  border-left-color: var(--color-accent); font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
}

/* Recommended Methods Nav */
.recommended-methods-nav {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.nav-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.methods-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.methods-nav-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  border-left: var(--border-width-thick) solid transparent;
  font-weight: var(--font-weight-medium);
  transition: background var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
  display: block;
}

.methods-nav-list a:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
  transform: translateX(4px);
}

.methods-nav-list a.active {
  color: var(--color-text-primary);
  background: var(--color-background);
  border-left-color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
}

.nav-info-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

/* Scroll Progress */
.scroll-indicator-group { display: flex; align-items: center; gap: var(--space-sm); flex: 1; min-width: 0; }
.scroll-progress-container { width: 4px; height: 32px; background: var(--color-border-lighter); border-radius: var(--border-radius-full); overflow: hidden; }
.scroll-progress-bar {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  transform-origin: top; transform: scaleY(0);
  transition: transform 100ms linear;
}
.sidebar-current-section {
  font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary); text-transform: uppercase;
  letter-spacing: 0.05em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Loading Spinner */
.loading-screen { display: grid; place-items: center; min-height: 400px; gap: var(--space-lg); }
.spinner {
  width: 40px; height: 40px; border: 4px solid var(--color-border-light);
  border-top-color: var(--color-accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notifications */
.toast-container { position: fixed; bottom: var(--space-xl); right: var(--space-xl); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-sm); pointer-events: none; }
.toast { background: var(--color-text-primary); color: var(--color-background); padding: var(--space-md) var(--space-lg); border-radius: var(--border-radius-md); box-shadow: var(--shadow-xl); max-width: 420px; pointer-events: auto; animation: slideInUp var(--duration-moderate) var(--ease-out-expo); transition: opacity var(--duration-moderate) ease; }
@keyframes slideInUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: var(--space-xs) var(--space-sm); background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--border-radius-full); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-text-secondary); }
.badge-primary { background: var(--color-accent-light); color: var(--color-accent-contrast); border-color: transparent; }

/*
|| PAGE-SPECIFIC SECTIONS
|| ============================================================================
*/

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    margin-bottom: var(--space-3xl);
    position: relative;
    border-bottom: 1px solid var(--color-border-light);
}

.hero-section::before {
    display: none;
}

.hero-title, .hero-subtitle, .hero-actions {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 65ch;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: var(--space-md); /* Space between buttons */
    justify-content: center; /* Center the buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Process Steps */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-xl); margin: var(--space-3xl) 0; }
.step { text-align: center; padding: var(--space-lg); }
.step-number { width: 3rem; height: 3rem; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); margin: 0 auto var(--space-md); }
.step-title { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }
.step-description { color: var(--color-text-secondary); font-size: var(--font-size-sm); }

/* Quiz */
.quiz-container { max-width: 700px; margin: 0 auto; }
.quiz-header { text-align: center; margin-bottom: var(--space-2xl); }
.quiz-progress { margin-bottom: var(--space-xl); }
.quiz-progress-text { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.progress-bar { height: 8px; background: var(--color-border-light); border-radius: var(--border-radius-full); overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); border-radius: var(--border-radius-full); transition: width var(--duration-moderate) var(--ease-out-expo); }
.question-text { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-xl); text-align: center; }
.quiz-navigation { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); }

/* Working Style Result */
.style-result { background: var(--color-surface); border: 2px solid var(--color-accent); border-radius: var(--border-radius-xl); padding: var(--space-2xl); text-align: center; max-width: 600px; margin: var(--space-2xl) auto; }
.style-icon { font-size: 5rem; margin-bottom: var(--space-md); }
.style-name { font-size: var(--font-size-3xl); color: var(--color-accent); margin-bottom: var(--space-md); }
.style-description { font-size: var(--font-size-lg); color: var(--color-text-secondary); line-height: var(--line-height-relaxed); margin-bottom: var(--space-lg); }
.style-traits { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* Methods */
.recommended-method { position: relative; background: var(--color-accent-light); border: 2px solid var(--color-accent); border-radius: var(--border-radius-xl); padding: var(--space-2xl); margin-bottom: var(--space-2xl); }
.recommended-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover)); color: white; padding: var(--space-sm) var(--space-lg); border-radius: var(--border-radius-full); font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); box-shadow: var(--shadow-md); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.method-name { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
.method-summary { color: var(--color-text-secondary); margin-bottom: var(--space-md); }
.method-badge { display: inline-block; padding: var(--space-xs) var(--space-sm); background: var(--color-accent-medium); color: var(--color-accent-contrast); border-radius: var(--border-radius-sm); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); }

/* All Methods Page (NEW) */
.category-section {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}
.category-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}
.all-methods-page .category-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Method Details */
.method-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}
.method-section { margin-bottom: var(--space-2xl); }

.method-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.sidebar-card {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
}
.sidebar-card h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-md); }
.sidebar-card p, .sidebar-card li { font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.sidebar-card ul { padding-left: var(--space-md); list-style: none; }
.sidebar-card li { margin-bottom: var(--space-sm); }
.steps-list, .bullet-list { padding-left: var(--space-lg); }
.steps-list li, .bullet-list li { margin-bottom: var(--space-md); }
.tips-grid { display: grid; gap: var(--space-md); }
.tip-card { padding: var(--space-lg); background: var(--color-surface); border-left: 3px solid var(--color-accent); border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0; }
.tip-card h4 { font-size: var(--font-size-base); margin-bottom: var(--space-xs); }
.tip-card p { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin: 0; }

/* Method Visualization Placeholder Styles */
.placeholder-vis {
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  text-align: center;
  font-size: var(--font-size-sm);
  background-color: var(--color-accent-light);
}
.placeholder-vis-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-xs);
}
.placeholder-vis-content {
  color: var(--color-text-secondary);
  margin: 0;
  line-height: var(--line-height-tight);
}

/* Shared Sections */
.section-header { text-align: center; max-width: 700px; margin: 0 auto var(--space-2xl); }
.content-section { margin: var(--space-3xl) 0; }

/*
|| UTILITIES
|| ============================================================================
*/
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/*
|| RESPONSIVE & MEDIA QUERIES
|| ============================================================================
*/
@media (min-width: 62em) {
  .layout-container { grid-template-columns: var(--layout-sidebar-width) 1fr; grid-template-rows: 1fr; }
  .sidebar-nav { display: flex; flex-direction: column; }
  .reset-button span { display: inline; }
  .mobile-header { display: none; }
  .main-content { padding: var(--space-3xl) var(--space-4xl); }

  /* Method Details Desktop Grid */
  .method-details-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "main sidebar";
    gap: var(--space-3xl);
  }
  .method-main-content { grid-area: main; }
  .method-sidebar-content {
    grid-area: sidebar;
    position: sticky;
    top: var(--space-xl);
    align-self: start;
  }
}

@media (max-width: 48em) {
  .hero-actions { flex-direction: column; }
  .btn-full-mobile { width: 100%; }
  .toast-container { right: var(--space-md); left: var(--space-md); bottom: var(--space-md); }
  .toast { max-width: none; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
  }
}

