/* CSS Reset & Normalize */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; }
body { background: #F8F8FB; min-height: 100vh; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
a { background-color: transparent; text-decoration: none; color: inherit; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }

/* Font Imports */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* Soft Pastel Color Palette */
:root {
  --primary: #233347;
  --secondary: #447A54;
  --accent: #F6F7F9;
  --pastel-blue: #c7d5eb;
  --pastel-lavender: #e6e6fa;
  --pastel-peach: #ffd6c9;
  --pastel-mint: #d6f5dc;
  --pastel-yellow: #ffeec7;
  --pastel-pink: #ffe0f5;
  --text-dark: #233347;
  --text-medium: #4c5a6d;
  --text-light: #7c8694;
  --white: #fff;
  --shadow-soft: 0 6px 24px rgba(77, 110, 160, 0.11);
  --shadow-button: 0 2px 8px rgba(77, 110, 160, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: all 0.2s cubic-bezier(.47,.13,.4,.93);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--accent);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  line-height: 1.2;
  text-rendering: optimizelegibility;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol, blockquote { margin-bottom: 16px; font-size: 1rem; }
strong { font-weight: 600; color: var(--secondary); }

.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
}

/********** HEADER STYLES ***********/
header {
  width: 100%;
  background: linear-gradient(90deg, #e6e6fa, #ffe0f5, #d6f5dc);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
  padding: 12px 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
}
header img {
  height: 40px;
  width: auto;
  display: block;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-mint));
  color: var(--primary);
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-button);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  margin-left: 16px;
  outline: none;
  position: relative;
  z-index: 2;
  text-align: center;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--pastel-mint), var(--pastel-blue));
  color: var(--secondary);
  box-shadow: 0 4px 20px rgba(118,186,163,0.16);
}

/**** MOBILE BURGER MENU ****/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 12px;
  padding: 0 8px;
  z-index: 4002;
  transition: background var(--transition);
  border-radius: 50%;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-mint);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #f6f7f9 60%, #e6e6fa 100%);
  transform: translateX(-100vw);
  transition: transform 0.3s cubic-bezier(.72,.09,.21,1);
  z-index: 4001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 80px 28px;
  box-sizing: border-box;
  box-shadow: 0 4px 24px rgba(77,110,160,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--pastel-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 44px;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-mint);
  color: var(--secondary);
}
@media (max-width: 990px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu { display: none; }
}

/***** MAIN SECTION LAYOUTS *****/
.section, .hero, .features, .services, .testimonials, .team, .about, .comparison-table, .analysis, .news-feed, .explainer, .cta, .insights, .legal, .contact, .faq, .thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.hero {
  background: linear-gradient(128deg, var(--pastel-blue) 70%, var(--pastel-pink) 100%);
  margin-bottom: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  padding: 48px 0 48px 0;
  box-shadow: var(--shadow-soft);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features ul, .services ul, .about ul, .team ul, .insights ul, .explainer ul, .analysis ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 0;
}
.features ul li, .about ul li, .team ul li, .services ul li, .explainer ul li, .insights ul li, .analysis ul li {
  background: var(--pastel-yellow);
  padding: 18px 18px 18px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 11px rgba(255, 201, 162, 0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
  min-height: 54px;
  color: var(--primary);
  font-weight: 500;
  transition: box-shadow var(--transition), background var(--transition);
}
.features ul li:hover, .services ul li:hover {
  background: var(--pastel-mint);
  box-shadow: 0 4px 16px rgba(118, 186, 163, 0.11);
}
.features ul li img, .about ul li img, .services ul li img, .explainer ul li img, .insights ul li img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/********* CARD CONTAINERS ******/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(68,122,84,0.13);
  transform: translateY(-5px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/******** CUSTOMER TESTIMONIALS ********/
.testimonials {
  margin-bottom: 60px;
  background: linear-gradient(105deg, var(--pastel-lavender) 60%, var(--pastel-peach) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  box-shadow: var(--shadow-soft);
}
.testimonials h2 {
  color: var(--secondary);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-style: italic;
  font-size: 1.14rem;
  font-weight: 400;
  margin-bottom: 0;
  margin-right: 16px;
}
.testimonial-card p {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  margin-bottom: 0;
}
.customer-ratings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.09rem;
}

/****** COMPARISON TABLE STYLES ******/
.comparison-table {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.comparison-table table {
  width: 100%;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  box-shadow: 0 1px 9px rgba(68,122,84,0.04);
}
.comparison-table th, .comparison-table td {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--pastel-blue);
  color: var(--primary);
}
.comparison-table th {
  background: var(--pastel-blue);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}
.comparison-table td {
  font-size: 0.98rem;
  font-weight: 500;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.table-toggler {
  margin: 1rem 0 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.98rem;
  color: var(--secondary);
}
.table-toggler span {
  background: var(--pastel-pink);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}
.analysis-charts {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.analysis-charts img {
  height: 44px;
  width: auto;
}

/**** CTA SECTION ****/
.cta {
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-yellow));
  box-shadow: var(--shadow-soft);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 38px 18px;
}
.cta h2 { color: var(--secondary); }
.cta .btn-primary { margin-top: 18px; }

/**** NEWS FEED ****/
.news-feed {
  background: var(--pastel-lavender);
}
.news-feed h2 {
  color: var(--secondary);
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}
.news-list article {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-list article:hover {
  box-shadow: 0 8px 28px rgba(68,122,84,0.12);
  transform: translateY(-4px) scale(1.01);
}
.news-category {
  display: inline-block;
  background: var(--pastel-mint);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 14px;
  padding: 2px 10px;
  margin-top: 8px;
}
.news-categories {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-medium);
  font-size: 1rem;
}
.news-categories ul {
  display: flex;
  gap: 12px;
}
.news-categories li {
  background: var(--pastel-mint);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
}
.featured-news {
  background: var(--pastel-yellow);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  margin-top: 18px;
  box-shadow: 0 1px 6px rgba(255,205,220,0.08);
}

/**** CONTENT/FAQ/LEGAL/THANK YOU ****/
.contact, .faq, .legal, .thank-you {
  background: var(--accent);
}
dl {
  margin-bottom: 0;
}
dl dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  margin-top: 18px;
}
dl dd {
  margin-bottom: 10px;
  color: var(--text-medium);
  font-size: 0.98rem;
}

/********** FOOTER ************/
footer {
  width: 100%;
  position: relative;
  padding-top: 32px;
  background: linear-gradient(90deg, #f6f7f9 100%, #e6e6fa 110%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -5px 52px rgba(77,110,160,.11);
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer-main > a img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}
.footer-contact, .footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.97rem;
}
.footer-contact p, .footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--primary);
  text-decoration: underline;
}
.footer-social {
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
}
.footer-social img {
  width: 32px; height: 32px;
  transition: transform var(--transition) scale var(--transition);
}
.footer-social a:hover img, .footer-social a:focus img {
  transform: scale(1.10) rotate(-6deg);
}
.footer-copy {
  font-size: 0.99rem;
  color: var(--text-medium);
  text-align: center;
  margin: 36px 0 0 0;
}

/*************** COOKIE BANNER & MODAL ***************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-yellow), var(--pastel-mint) 100%);
  color: var(--primary);
  box-shadow: 0 -6px 26px rgba(68,122,84,0.14);
  padding: 20px 18px 20px 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  animation: slideUp 0.55s cubic-bezier(.66,.03,.4,1);
}
@keyframes slideUp {
  from { transform: translateY(80px); opacity: 0.12; }
  to   { transform: translateY(0);   opacity: 1;    }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 20px;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-button);
  background: var(--pastel-blue);
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-btn.accept {
  background: linear-gradient(90deg, var(--pastel-mint), var(--pastel-blue));
  color: var(--secondary);
}
.cookie-btn.reject {
  background: var(--pastel-peach);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--pastel-pink);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(0.97);
  box-shadow: 0 4px 16px rgba(118,186,163,0.13);
}
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(60,70,100,0.18);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinModal 0.29s cubic-bezier(.66,.03,.4,1);
}
@keyframes fadeinModal {
  from { opacity: 0.12; }
  to   { opacity: 1;    }
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 410px;
  width: 88vw;
  padding: 32px 26px 20px 26px;
  box-shadow: 0 4px 80px rgba(77,110,160,0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideModal 0.35s cubic-bezier(.66,.03,.4,1);
  position: relative;
}
@keyframes slideModal {
  from { transform: translateY(96px) scale(0.96); opacity: 0.07; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-category-row label {
  font-weight: 500;
  color: var(--secondary);
}
.cookie-category-toggle {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--pastel-blue);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-block;
}
.cookie-category-toggle input[type="checkbox"] {
  display: none;
}
.cookie-category-toggle .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pastel-pink);
  transition: left var(--transition), background var(--transition);
}
.cookie-category-toggle input[type="checkbox"]:checked + .slider {
  left: 20px;
  background: var(--pastel-mint);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
  padding: 2px 7px;
}
.cookie-modal .cookie-modal-close:focus, .cookie-modal .cookie-modal-close:hover {
  background: var(--pastel-blue);
}

/************ MISCELLANEOUS ***********/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
strong {
  color: var(--secondary);
}

/**** SPACING RULES for ALL LAYOUTS (MANDATORY) ****/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/****** RESPONSIVE LAYOUT ******/
@media (max-width: 990px) {
  .footer-main {
    flex-direction: column;
    gap: 24px;
  }
  .features, .testimonials, .services, .comparison-table, .analysis, .about, .explainer, .cta, .news-feed, .section, .legal, .contact, .faq, .thank-you {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .container { padding: 0 8px; }
  .section, .hero, .features, .cta, .about, .team, .analysis, .services, .testimonials, .comparison-table, .insights, .explainer, .news-feed, .legal, .contact, .faq, .thank-you  {
    border-radius: var(--radius-md);
    padding: 20px 2px;
    margin-bottom: 30px;
  }
  .card {
    padding: 18px 8px;
    min-width: 95vw;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary {
    padding: 12px 18px;
    margin-left: 0;
    width: 100%;
  }
  .footer-main {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 7px;
  }
  .analysis-charts {
    gap: 10px;
  }
  .mobile-menu {
    padding: 28px 8px 80px 8px;
  }
}

/**** PRINT & ACCESSIBILITY ******/
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { color: #111; background: #fff; }
}

/* Hide cookie banner/modal when not JS-injected, prevent FOUC */
.cookie-banner[hidden], .cookie-modal-overlay[hidden] { display: none !important; }
