/* ── Variables ── */
:root {
  --color-primary: #2d6a4f;
  --color-primary-dark: #1b4332;
  --color-primary-light: #40916c;
  --color-accent: #d4a373;
  --color-accent-dark: #bc8a5f;
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: #e8e2d9;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 4px 20px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 67, 50, 0.12);

  --header-height: 72px;
  --transition: 0.25s ease;
}

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(45, 106, 79, 0.05);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-primary-dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.logo-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.logo-accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(45, 106, 79, 0.15);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 163, 115, 0.2);
  bottom: 0;
  left: -80px;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(64, 145, 108, 0.12);
  top: 40%;
  left: 40%;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.stat span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 420px;
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.hero-card-main {
  position: absolute;
  top: 20px;
  left: 0;
  right: 40px;
  padding: 0;
  animation: float-main 6s ease-in-out infinite;
}

@keyframes float-main {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card-header {
  display: flex;
  gap: 6px;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.card-dot:first-child { background: #e8a598; }
.card-dot:nth-child(2) { background: #e8d598; }
.card-dot:nth-child(3) { background: #98d4a5; }

.card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

.progress-bar {
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
  border-radius: 100px;
  animation: progress-grow 2s ease-out;
}

@keyframes progress-grow {
  from { width: 0 !important; }
}

.progress-text {
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: 100px;
}

.tag-accent {
  background: rgba(212, 163, 115, 0.2);
  color: var(--color-accent-dark);
}

.hero-card-float {
  position: absolute;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: float-small 5s ease-in-out infinite;
}

.hero-card-quiz {
  bottom: 60px;
  right: 0;
  animation-delay: -2s;
}

.quiz-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(45, 106, 79, 0.12);
  color: var(--color-primary);
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-card-streak {
  top: 0;
  right: 20px;
  flex-direction: column;
  text-align: center;
  gap: 0.25rem;
  padding: 1rem;
  animation-delay: -1s;
}

.streak-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.hero-card-streak p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

@keyframes float-small {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.625rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Levels */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.level-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.level-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.level-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.level-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.level-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Steps */
.steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 4.5rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* CTA */
.cta-section {
  padding-bottom: 6rem;
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-primary-dark);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  overflow: hidden;
  position: relative;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-content > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: border-color var(--transition);
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus {
  border-color: var(--color-accent);
}

.cta-form .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}

.cta-form .btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.signup-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
}

.signup-card {
  width: min(100%, 520px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.signup-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.signup-card p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.form-message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.form-message.success {
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary-dark);
}

.form-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #b42318;
}

.cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-visual-icon,
.cta-visual-img {
  width: 180px;
  height: auto;
  opacity: 0.95;
  display: block;
}

/* ── Footer ── */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 3.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  color: var(--color-accent);
}

.footer-brand > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-toggle-input:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a:not(.btn) {
    display: block;
    padding: 0.75rem 0;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-toggle-input:checked + .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle-input:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-input:checked + .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .features-grid,
  .levels-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }

  .cta-visual {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form .btn {
    width: 100%;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dashboard ── */
.dashboard {
  padding: calc(var(--header-height) + 2.5rem) 0 4rem;
}

.dashboard-flash {
  margin-bottom: 1.5rem;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary-dark);
  margin-top: 0.5rem;
}

.dashboard-subtitle {
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.dashboard-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.dashboard-stat span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.dashboard-section {
  margin-bottom: 3rem;
}

.dashboard-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dashboard-card {
  box-shadow: var(--shadow-md);
}

.dashboard-steps {
  max-width: 720px;
}

.nav-links a.nav-active {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .dashboard-stats,
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-stats,
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Action cards (hub connecté) ── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.action-card-accent {
  background: linear-gradient(145deg, rgba(45, 106, 79, 0.06), rgba(212, 163, 115, 0.08));
}

.action-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 79, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-md);
}

.action-icon svg {
  width: 28px;
  height: 28px;
}

.action-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-primary-dark);
}

.action-card p {
  color: var(--color-text-muted);
  flex: 1;
}

.action-link {
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Form card ── */
.form-card {
  max-width: 760px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

@media (max-width: 768px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}
