/* ===== HOME CSS - PigmaColor Peintures ===== */
/* Masonry Layout - Bricolage / Déco / Peinture Intérieure */
/* Couleurs: #7c3aed (primary) / #faf0e6 (light) / #c17050 (secondary) */

/* ===== HERO SECTION ===== */
.hero-section {
  background-color: #1a1a2e;
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  background-color: rgba(124, 58, 237, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(193, 112, 80, 0.15);
  color: #c17050;
  border: 1px solid rgba(193, 112, 80, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  color: #c17050;
  display: block;
  font-size: 0.75em;
  font-weight: 700;
  margin-top: 4px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 28px;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat strong {
  font-size: 1.8rem;
  font-weight: 900;
  color: #c17050;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hero-visual {
  flex: 0 0 auto;
  width: 480px;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.hero-image-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.hero-paint-splash {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-paint-splash--1 {
  width: 80px;
  height: 80px;
  background-color: #7c3aed;
  top: -20px;
  right: -20px;
}

.hero-paint-splash--2 {
  width: 50px;
  height: 50px;
  background-color: #c17050;
  bottom: 40px;
  left: -15px;
}

.hero-paint-splash--3 {
  width: 30px;
  height: 30px;
  background-color: #faf0e6;
  top: 60px;
  left: -8px;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  padding: 80px 0;
  background-color: #faf0e6;
}

.categories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.category-card {
  display: block;
  background-color: #fff;
  border: 2px solid #e5d9cc;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #7c3aed;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.category-card:hover::before,
.category-card:focus::before {
  transform: scaleX(1);
}

.category-card:hover,
.category-card:focus {
  border-color: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.12);
  outline: none;
}

.category-card--featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background-color: #7c3aed;
  border-color: #7c3aed;
  padding: 36px;
}

.category-card--featured::before {
  background-color: #c17050;
  transform: scaleX(1);
}

.category-card--featured .category-card__name {
  color: #fff;
  font-size: 1.5rem;
}

.category-card--featured .category-card__desc {
  color: rgba(255, 255, 255, 0.85);
}

.category-card--featured .category-card__count {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 12px;
}

.category-card__icon {
  width: 56px;
  height: 56px;
  background-color: rgba(124, 58, 237, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.category-card--featured .category-card__icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.category-card__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.category-card__desc {
  font-size: 0.875rem;
  color: #6b6b7a;
  line-height: 1.5;
  margin: 0;
}

/* ===== MASONRY ARTICLES ===== */
.articles-section {
  padding: 80px 0;
  background-color: #fff;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
}

/* Card de base */
.masonry-card {
  background-color: #fff;
  border: 1px solid #e5d9cc;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.masonry-card:hover {
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

/* Featured - prend 2 colonnes */
.masonry-card--featured {
  grid-column: span 2;
}

/* Tall = première vedette prend 2 rangées */
.masonry-card--tall {
  grid-row: span 1;
}

.masonry-card--wide {
  grid-column: span 2;
}

.masonry-card__media {
  position: relative;
  overflow: hidden;
}

.masonry-card__media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.masonry-card:hover .masonry-card__media img {
  transform: scale(1.02);
}

.masonry-card__media--sm img {
  height: 200px;
}

.masonry-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: #7c3aed;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.masonry-card__cat--deco {
  background-color: #c17050;
}

.masonry-card__cat--diy {
  background-color: #059669;
}

.masonry-card__cat--test {
  background-color: #1a1a2e;
}

.masonry-card__cat--renov {
  background-color: #b45309;
}

.masonry-card__body {
  padding: 22px;
}

.masonry-card--featured .masonry-card__body {
  padding: 28px;
}

.masonry-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.masonry-card__meta time {
  font-size: 0.8rem;
  color: #6b6b7a;
  font-weight: 500;
}

.masonry-card__read {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #6b6b7a;
}

.masonry-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.3;
}

.masonry-card--featured .masonry-card__title {
  font-size: 1.35rem;
}

.masonry-card__title a {
  color: inherit;
  text-decoration: none;
}

.masonry-card__title a:hover,
.masonry-card__title a:focus {
  color: #7c3aed;
  text-decoration: underline;
  outline: none;
}

.masonry-card__excerpt {
  font-size: 0.9rem;
  color: #6b6b7a;
  line-height: 1.6;
  margin: 0 0 16px;
}

.masonry-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Test card special */
.masonry-card--test {
  border-color: #1a1a2e;
}

.masonry-card__test-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #1a1a2e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 0 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

/* Rating dots */
.masonry-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.rating-label {
  font-size: 0.8rem;
  color: #6b6b7a;
  font-weight: 600;
}

.rating-dots {
  display: flex;
  gap: 4px;
}

.rating-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e5d9cc;
  border: 2px solid #e5d9cc;
  display: block;
}

.rating-dot--filled {
  background-color: #c17050;
  border-color: #c17050;
}

.rating-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c17050;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
  padding: 80px 0;
  background-color: #faf0e6;
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  background-color: #fff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.08);
  border: 1px solid #e5d9cc;
}

.calc-icon {
  margin-bottom: 20px;
}

.calc-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.2;
}

.calc-desc {
  font-size: 0.95rem;
  color: #6b6b7a;
  line-height: 1.7;
  margin: 0;
}

.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
}

.calc-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5d9cc;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  background-color: #faf0e6;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.calc-input:focus {
  border-color: #7c3aed;
  outline: none;
  background-color: #fff;
}

.calc-select {
  cursor: pointer;
}

.calc-hint {
  font-size: 0.75rem;
  color: #6b6b7a;
}

.calc-result {
  background-color: #1a1a2e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.calc-result-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-result-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 900;
  color: #c17050;
  line-height: 1;
}

.calc-result-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.calc-result-item span {
  color: rgba(255, 255, 255, 0.6);
}

.calc-result-item strong {
  color: #fff;
  font-weight: 700;
}

.calc-result-item--highlight {
  background-color: rgba(124, 58, 237, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.calc-result-item--highlight strong {
  color: #a78bfa;
}

.calc-result-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #7c3aed;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.calc-btn:hover,
.calc-btn:focus {
  background-color: #6d28d9;
  transform: translateY(-1px);
  outline: none;
}

/* ===== DASHBOARD SECTION ===== */
.dashboard-section {
  padding: 80px 0;
  background-color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kpi-card {
  background-color: #faf0e6;
  border: 2px solid #e5d9cc;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  border-color: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

.kpi-card--warm {
  background-color: #fff5f0;
  border-color: #e8c4a8;
}

.kpi-card--warm:hover {
  border-color: #c17050;
  box-shadow: 0 8px 24px rgba(193, 112, 80, 0.12);
}

.kpi-card__icon {
  width: 56px;
  height: 56px;
  background-color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kpi-card--warm .kpi-card__icon {
  background-color: #fdf0ea;
}

.kpi-card__value {
  font-size: 2.4rem;
  font-weight: 900;
  color: #7c3aed;
  line-height: 1;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kpi-card--warm .kpi-card__value {
  color: #c17050;
}

.kpi-card__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 10px;
}

.kpi-card__context {
  font-size: 0.78rem;
  color: #6b6b7a;
  line-height: 1.5;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.timeline-section .section-title {
  color: #fff;
}

.timeline-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background-color: rgba(124, 58, 237, 0.3);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 40px;
  height: 40px;
  background-color: #7c3aed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #1a1a2e;
  box-shadow: 0 0 0 2px #7c3aed;
  flex-shrink: 0;
}

.timeline-marker--alt {
  background-color: #c17050;
  box-shadow: 0 0 0 2px #c17050;
}

.timeline-marker--active {
  background-color: #059669;
  box-shadow: 0 0 0 2px #059669;
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
}

.timeline-item--active .timeline-content {
  background-color: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.3);
}

.timeline-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-item--active .timeline-date {
  color: #6ee7b7;
}

.timeline-event {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0 0 12px;
}

.timeline-tag {
  display: inline-block;
  background-color: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-tag--active {
  background-color: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}

/* ===== TIPS SLIDER ===== */
.tips-section {
  padding: 80px 0;
  background-color: #7c3aed;
}

.tips-header {
  text-align: center;
  margin-bottom: 48px;
}

.tips-slider-wrapper {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
}

.tips-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.tip-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.tip-card__num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tip-card__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tip-card__title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tip-card__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.tips-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.tips-btn {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.tips-btn:hover,
.tips-btn:focus {
  background-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

.tips-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tips-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.tips-dot--active {
  background-color: #fff;
  transform: scale(1.3);
}

/* ===== COMPARE TABLE SECTION ===== */
.compare-section {
  padding: 80px 0;
  background-color: #faf0e6;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.compare-table thead {
  background-color: #1a1a2e;
}

.compare-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare-table tbody tr {
  border-bottom: 1px solid #e5d9cc;
  transition: background-color 0.2s;
}

.compare-table tbody tr:last-child {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background-color: rgba(124, 58, 237, 0.03);
}

.compare-table tbody td {
  padding: 16px 20px;
  font-size: 0.875rem;
  color: #2d2d2d;
  vertical-align: middle;
}

.compare-table tbody td strong {
  color: #1a1a2e;
  font-weight: 700;
}

/* Badges peinture */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.badge--mat {
  background-color: #f0e6ff;
  color: #6d28d9;
}

.badge--satin {
  background-color: #e6f4f0;
  color: #059669;
}

.badge--gloss {
  background-color: #fff5e0;
  color: #b45309;
}

.badge--beton {
  background-color: #e5e5ea;
  color: #3d3d4e;
}

.badge--easy {
  background-color: #d1fae5;
  color: #065f46;
}

.badge--medium {
  background-color: #fef3c7;
  color: #92400e;
}

.badge--hard {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Stars rating */
.stars {
  color: #c17050;
  font-size: 1rem;
  letter-spacing: 1px;
}

.compare-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #6b6b7a;
  line-height: 1.5;
}

.compare-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
  padding: 80px 0;
  background-color: #1a1a2e;
}

.newsletter-wrapper {
  display: grid;
  grid-template-columns: auto 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background-color: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px;
  padding: 48px;
}

.newsletter-icon {
  flex-shrink: 0;
}

.newsletter-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.newsletter-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.newsletter-input-group:focus-within {
  border-color: #7c3aed;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  background: transparent;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-input::placeholder {
  color: #a09ab8;
}

.newsletter-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #7c3aed;
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.newsletter-submit:hover,
.newsletter-submit:focus {
  background-color: #6d28d9;
  outline: none;
}

.newsletter-legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.5;
}

.newsletter-message {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 20px;
}

.newsletter-message--success {
  color: #6ee7b7;
}

.newsletter-message--error {
  color: #fca5a5;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
  .hero-container {
    gap: 36px;
  }

  .hero-visual {
    width: 380px;
  }

  .hero-image-frame img {
    height: 300px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stat strong {
    font-size: 1.5rem;
  }

  .hero-stat {
    padding: 0 18px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-card--featured {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry-card--featured {
    grid-column: span 2;
  }

  .masonry-card--wide {
    grid-column: span 2;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px;
  }

  .calc-fields {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tips-slider-wrapper {
    max-width: 100%;
  }

  .tip-card {
    flex: 0 0 calc(50% - 12px);
  }

  .newsletter-wrapper {
    grid-template-columns: auto 1fr;
    gap: 28px;
    padding: 36px;
  }

  .newsletter-form {
    grid-column: 1 / 3;
  }

  .compare-table thead th {
    padding: 12px 14px;
    font-size: 0.75rem;
  }

  .compare-table tbody td {
    padding: 12px 14px;
    font-size: 0.825rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 48px 0;
  }

  .hero-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 16px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-image-frame img {
    height: 240px;
  }

  .hero-bg-shape {
    width: 300px;
    height: 300px;
    top: -40px;
    right: -60px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stat {
    padding: 0 14px;
  }

  .hero-stat strong {
    font-size: 1.3rem;
  }

  .hero-stat span {
    font-size: 0.72rem;
  }

  .hero-stat-divider {
    height: 32px;
  }

  .categories-section {
    padding: 48px 0;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card--featured {
    grid-column: auto;
    grid-row: auto;
  }

  .category-card {
    padding: 20px;
  }

  .category-card--featured {
    padding: 24px;
  }

  .articles-section {
    padding: 48px 0;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .masonry-card--featured {
    grid-column: span 1;
  }

  .masonry-card--wide {
    grid-column: span 1;
  }

  .masonry-card__media img {
    height: 220px;
  }

  .masonry-card__media--sm img {
    height: 180px;
  }

  .masonry-card--featured .masonry-card__title {
    font-size: 1.15rem;
  }

  .masonry-card__body {
    padding: 18px;
  }

  .masonry-card--featured .masonry-card__body {
    padding: 20px;
  }

  .calculator-section {
    padding: 48px 0;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
    border-radius: 16px;
  }

  .calc-title {
    font-size: 1.5rem;
  }

  .calc-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calc-result-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .calc-result-value {
    font-size: 1.6rem;
  }

  .dashboard-section {
    padding: 48px 0;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .kpi-card {
    padding: 20px 16px;
  }

  .kpi-card__value {
    font-size: 1.9rem;
  }

  .timeline-section {
    padding: 48px 0;
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    padding-left: 60px;
    margin-bottom: 28px;
  }

  .timeline-marker {
    left: 0;
    width: 36px;
    height: 36px;
  }

  .timeline-content {
    padding: 16px 18px;
  }

  .timeline-event {
    font-size: 0.95rem;
  }

  .tips-section {
    padding: 48px 0;
  }

  .tips-header {
    margin-bottom: 32px;
  }

  .tip-card {
    flex: 0 0 calc(100% - 0px);
  }

  .tips-controls {
    margin-top: 24px;
  }

  .compare-section {
    padding: 48px 0;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    min-width: 560px;
  }

  .newsletter-section {
    padding: 48px 0;
  }

  .newsletter-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
  }

  .newsletter-icon {
    display: none;
  }

  .newsletter-form {
    grid-column: auto;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: 10px;
    overflow: visible;
    background-color: transparent;
    gap: 10px;
    border: none;
  }

  .newsletter-input {
    border: 2px solid #e5d9cc;
    border-radius: 10px;
    background-color: #fff;
    padding: 13px 18px;
  }

  .newsletter-input:focus {
    border-color: #7c3aed;
    outline: none;
  }

  .newsletter-submit {
    border-radius: 10px;
    justify-content: center;
    padding: 13px 20px;
  }

  .newsletter-title {
    font-size: 1.35rem;
  }

  .newsletter-desc {
    font-size: 0.875rem;
  }

  .compare-note {
    flex-direction: row;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 36px 0;
  }

  .hero-container {
    padding: 0 12px;
    gap: 24px;
  }

  .hero-title {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
  }

  .hero-title-accent {
    font-size: 0.78em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-image-frame img {
    height: 200px;
  }

  .hero-stat {
    padding: 0 10px;
  }

  .hero-stat strong {
    font-size: 1.1rem;
  }

  .hero-stat span {
    font-size: 0.65rem;
  }

  .hero-stat-divider {
    height: 28px;
  }

  .categories-section {
    padding: 36px 0;
  }

  .category-card {
    padding: 16px;
    border-radius: 12px;
  }

  .category-card--featured {
    padding: 20px;
  }

  .category-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .category-card--featured .category-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .category-card__name {
    font-size: 0.95rem;
  }

  .category-card__desc {
    font-size: 0.8rem;
  }

  .articles-section {
    padding: 36px 0;
  }

  .masonry-grid {
    gap: 16px;
  }

  .masonry-card {
    border-radius: 12px;
  }

  .masonry-card__media img {
    height: 190px;
  }

  .masonry-card__media--sm img {
    height: 160px;
  }

  .masonry-card__body {
    padding: 14px;
  }

  .masonry-card--featured .masonry-card__body {
    padding: 16px;
  }

  .masonry-card__title {
    font-size: 1rem;
  }

  .masonry-card--featured .masonry-card__title {
    font-size: 1.05rem;
  }

  .masonry-card__excerpt {
    font-size: 0.85rem;
  }

  .masonry-card__meta {
    gap: 10px;
  }

  .calculator-section {
    padding: 36px 0;
  }

  .calc-wrapper {
    padding: 16px;
    border-radius: 12px;
    gap: 20px;
  }

  .calc-title {
    font-size: 1.3rem;
  }

  .calc-desc {
    font-size: 0.875rem;
  }

  .calc-result {
    padding: 16px;
    border-radius: 10px;
  }

  .calc-result-value {
    font-size: 1.4rem;
  }

  .calc-btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .dashboard-section {
    padding: 36px 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpi-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .kpi-card__value {
    font-size: 1.7rem;
  }

  .kpi-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .kpi-card__label {
    font-size: 0.825rem;
  }

  .kpi-card__context {
    font-size: 0.72rem;
  }

  .timeline-section {
    padding: 36px 0;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 48px;
    margin-bottom: 20px;
  }

  .timeline-marker {
    left: -4px;
    width: 32px;
    height: 32px;
  }

  .timeline-content {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .timeline-event {
    font-size: 0.9rem;
  }

  .timeline-desc {
    font-size: 0.82rem;
  }

  .timeline-date {
    font-size: 0.72rem;
  }

  .tips-section {
    padding: 36px 0;
  }

  .tips-header {
    margin-bottom: 24px;
  }

  .tip-card {
    padding: 20px;
    border-radius: 12px;
  }

  .tip-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .tip-card__title {
    font-size: 0.9rem;
  }

  .tip-card__text {
    font-size: 0.825rem;
  }

  .tip-card__num {
    font-size: 2.2rem;
  }

  .tips-btn {
    width: 38px;
    height: 38px;
  }

  .compare-section {
    padding: 36px 0;
  }

  .compare-table thead th {
    padding: 10px 10px;
    font-size: 0.7rem;
  }

  .compare-table tbody td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .newsletter-section {
    padding: 36px 0;
  }

  .newsletter-wrapper {
    padding: 20px 16px;
    border-radius: 12px;
    gap: 18px;
  }

  .newsletter-title {
    font-size: 1.15rem;
  }

  .newsletter-desc {
    font-size: 0.825rem;
  }

  .newsletter-input {
    font-size: 0.9rem;
    padding: 11px 14px;
  }

  .newsletter-submit {
    font-size: 0.875rem;
    padding: 11px 16px;
  }

  .newsletter-legal {
    font-size: 0.7rem;
  }

  .compare-note {
    font-size: 0.75rem;
    margin-top: 14px;
  }
}