/* Fable Path PLAYFUL_DYNAMIC Reset & Normalize (modern, mobile-first) */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F2EE;
  color: #3E5060;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: #42BE65;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0099b4;
  text-decoration: underline;
}
button, .cta-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #FFCD5D;
  color: #3E5060;
  border: none;
  border-radius: 32px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,205,93,0.15);
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  letter-spacing: 0.01em;
  margin-top: 16px;
  margin-bottom: 8px;
}
button:hover, .cta-btn:hover, button:focus, .cta-btn:focus {
  background: #FFE490;
  color: #164C58;
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
  box-shadow: 0 6px 22px rgba(255,205,93,0.21);
}

/* Playful Dynamic Fonts */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #164C58;
  font-weight: 900;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.6rem; line-height: 1.16; margin: 0 0 20px 0; }
h2 { font-size: 2rem; margin: 0 0 18px 0; }
h3 { font-size: 1.33rem; margin: 0 0 16px 0; }
h4 { font-size: 1.2rem; margin: 0 0 12px 0; font-weight: 700; }
h5, h6 { margin: 0 0 10px 0; font-weight: 600; }
p, ul, ol, li, dl, dd, dt { font-size: 1rem; line-height: 1.65; color: #3E5060; margin: 0 0 12px 0; }
small { font-size: 0.88rem; }
strong { color: #09814A; font-weight: 700; }

body {
  background: #FFFDF8;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 2px 16px rgba(169,201,172,0.12);
  position: relative;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff6e6;
  border-radius: 24px;
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 16px rgba(255,205,93,0.14);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(255,205,93,0.21);
  transform: translateY(-2px) scale(1.025);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 16px 24px;
  background: #FFFDF8;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(74,170,222,0.09);
  margin-bottom: 24px;
  border-left: 8px solid #FFCD5D;
  animation: floatIn 0.9s cubic-bezier(.63,.13,.29,1) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.testimonials-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F2EE;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 1px 4px rgba(39,193,255,0.08);
}

.feature-grid, .inspiration-tiles, .blog-listing {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div, .inspiration-tiles > div, .blog-listing > article {
  flex: 1 1 220px;
  background: #e4ffe7;
  border-radius: 20px;
  padding: 22px 16px;
  box-shadow: 0 2px 8px rgba(71,205,171,0.10);
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.feature-grid > div:hover, .inspiration-tiles > div:hover, .blog-listing > article:hover {
  box-shadow: 0 8px 28px rgba(133,217,190,0.15);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
}
.avg-rating, .average-rating {
  display: flex;
  align-items: center;
  font-size: 1.18rem;
  color: #164C58;
  font-weight: 700;
  margin-bottom: 20px;
  gap: 12px;
}
.star-rating img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin: 0 1px;
}

/* Blog list playful category badges */
.blog-categories ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}
.blog-categories li a {
  background: #FFCD5D;
  color: #3E5060;
  border-radius: 16px;
  font-weight: 700;
  padding: 6px 18px;
  transition: background .2s, color .18s, transform .1s;
  box-shadow: 0px 2px 10px rgba(255,205,93,0.11);
  position: relative;
  display: block;
}
.blog-categories li a:hover, .blog-categories li a:focus {
  background: #fff275;
  color: #0099b4;
  transform: scale(1.07) rotate(-2deg);
}

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.search-bar input[type='text'] {
  flex: 1 1 180px;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 24px;
  border: 1.5px solid #A9C9AC;
  background: #fff;
}
.search-bar input[type='text']:focus {
  border-color: #3E5060;
  outline: 0;
  box-shadow: 0 2px 12px rgba(62,80,96,0.09);
}

footer {
  background: #FFFDF8;
  border-top: 2px solid #A9C9AC;
  margin-top: 40px;
  padding: 0 0 14px 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 38px 0 10px 0;
}
.footer-grid > div {
  flex: 1 1 180px;
  min-width: 165px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.footer-grid nav a {
  color: #3E5060;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 12px;
  transition: background .15s, color .13s;
  padding: 6px 10px;
  margin: 0 -10px;
}
.footer-grid nav a:hover, .footer-grid nav a:focus {
  background: #FFCD5D;
  color: #09814A;
}
.footer-grid img {
  margin-bottom: 10px;
}
.footer-bottom {
  padding-top: 18px;
  border-top: 2px dashed #E6E8EB;
  text-align: center;
  color: #414a60;
  font-size: 0.9rem;
}

/* Header & Navigation */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(62,80,96,0.065);
  position: sticky;
  top: 0;
  z-index: 101;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 24px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #164C58;
  font-size: 1.04rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background .13s, color .12s, transform .14s;
}
header nav a:hover, header nav a.active {
  background: #FFCD5D;
  color: #09814A;
  transform: scale(1.09) rotate(-2deg);
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
header .cta-btn {
  font-size: 1.14rem;
  background: #3feaf7;
  color: #164C58;
  border-radius: 28px;
  padding: 9px 24px;
  box-shadow: 0 3px 18px rgba(39,193,255,0.12);
  margin-left: 12px;
}
header .cta-btn:hover, header .cta-btn:focus {
  background: #ffaa64;
  color: #010e14;
}

.mobile-menu-toggle {
  display: none;
  background: #42BE65;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-left: 14px;
  cursor: pointer;
  transition: background .19s, transform .13s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFCD5D;
  color: #164C58;
  transform: scale(1.08) rotate(4deg);
  outline: 0;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255, 244, 223, 0.98);
  transform: translateX(110vw);
  transition: transform .32s cubic-bezier(.74,.06,.39,.93);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0vw);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  right: 28px; top: 22px;
  font-size: 2.2rem;
  background: #FFCD5D;
  color: #164C58;
  border-radius: 50%;
  width: 48px; height: 48px;
  border: none;
  z-index: 10001;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(255,205,93,0.18);
  transition: background .14s, color .14s, transform .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #ffaa64;
  color: #fff;
  transform: scale(1.13) rotate(-4deg);
  outline: none;
}
.mobile-nav {
  background: #FFFDF8;
  width: 90vw;
  max-width: 360px;
  height: 100vh;
  padding: 70px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: -2px 0 28px rgba(169,201,172,0.17);
  overflow-y: auto;
  z-index: 10000;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #3E5060;
  padding: 16px 10px;
  border-radius: 18px;
  font-weight: 700;
  margin: 0 -10px;
  transition: background .14s, color .14s, transform .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFCD5D;
  color: #09814A;
  transform: scale(1.05);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #FFFDF8;
  box-shadow: 0px -2px 24px rgba(255,205,93,0.19);
  z-index: 12000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  font-size: 1.05rem;
  border-top: 4px solid #FFCD5D;
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.65,.27,.36,1), opacity .18s cubic-bezier(.65,.27,.36,1);
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-text {
  max-width: 560px;
  color: #164C58;
  flex: 2 1 240px;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border: none;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 22px;
  background: #FFCD5D;
  color: #3E5060;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255,205,93,0.13);
  transition: background .14s, color .12s, transform .11s;
  cursor: pointer;
}
.cookie-btn.reject {
  background: #ffaed1;
  color: #164C58;
}
.cookie-btn.settings {
  background: #91f7b5;
  color: #164C58;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #FFF275;
  color: #09814A;
  transform: scale(1.06) rotate(-2deg);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ff98d3;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #42BE65;
  color: #fff;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 94vw;
  max-width: 370px;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  z-index: 13000;
  background: #fff6e6;
  box-shadow: 0 8px 34px rgba(255,205,93,0.23);
  transition: transform .30s cubic-bezier(.65,.22,.33,1), opacity .13s cubic-bezier(.67,.13,.33,1);
  border-radius: 32px;
  padding: 36px 28px 26px 28px;
}
.cookie-modal.visible {
  transform: translate(-50%, -52%);
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: #FFCD5D;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.37rem;
  color: #164C58;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(255,205,93,0.16);
  transition: background .1s, transform .09s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #ffaa64;
  color: #fff;
  transform: scale(1.14) rotate(6deg);
}
.cookie-modal h3 {
  color: #09814A;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #164C58;
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 0 6px 0 0;
  accent-color: #42BE65;
  border-radius: 7px;
}

/* FAQ (inspiracje.html) */
.faq-list {
  width: 100%;
}
.faq-list dt {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #0099b4;
  font-weight: 700;
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  padding: 9px 0 4px 0;
  border-bottom: 1.5px dotted #A9C9AC;
  cursor: pointer;
  transition: color .15s;
}
.faq-list dt:hover {
  color: #09814A;
}
.faq-list dd {
  margin: 0 0 12px 0;
  color: #3E5060;
  font-size: 1rem;
  border-left: 4px solid #FFCD5D;
  padding-left: 10px;
}

/* Case studies and quick tips */
.mini-case-studies {
  background: #FFCD5D;
  border-radius: 20px;
  padding: 18px 16px 16px 20px;
  margin-top: 18px;
  font-size: 1rem;
  color: #164C58;
  font-style: italic;
  box-shadow: 0 2px 14px rgba(255,205,93,0.08);
}
.quick-tips {
  background: #E4FEF7;
  border-radius: 16px;
  padding: 14px 14px 14px 18px;
  margin-top: 14px;
  font-size: 1rem;
  color: #164C58;
  box-shadow: 0 2px 10px rgba(39,193,255,0.07);
}

.quick-tips ul {
  margin: 7px 0 0 8px;
  list-style: disc inside;
}

/* Blog newsletter form */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}
form label {
  font-size: 1rem;
  color: #164C58;
  font-weight: 500;
}
form input[type="email"], form input[type="text"] {
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 22px;
  border: 1.5px solid #A9C9AC;
  background: #fff;
  transition: border-color .12s, box-shadow .11s;
}
form input[type="email"]:focus, form input[type="text"]:focus {
  border-color: #42BE65;
  outline: none;
  box-shadow: 0 2px 8px rgba(39,193,255,0.11);
}
form button[type="submit"], form button {
  background: #3feaf7;
  color: #164C58;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border: none;
  border-radius: 22px;
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 25px;
  box-shadow: 0 2px 14px rgba(39,193,255,0.11);
  cursor: pointer;
  transition: background .13s, color .13s, transform .11s;
}
form button:hover, form button:focus {
  background: #ffaa64;
  color: #fff;
  transform: scale(1.05) rotate(-2deg);
}

/* Hero section animation and flavor */
.hero {
  background: linear-gradient(120deg, #E4FEF7 60%, #FFCD5D 101%);
  margin-bottom: 60px;
  border-radius: 0 0 50px 50px;
  padding: 36px 0;
}
.hero h1 {
  font-size: 2.85rem;
  color: #09814A;
  margin-bottom: 10px;
  text-shadow: 1px 3px 5px #fffdf899;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.25rem;
  color: #164C58;
  margin-bottom: 19px;
  font-weight: 500;
}
.hero .cta-btn {
  font-size: 1.18rem;
  background: #FFCD5D;
  box-shadow: 0 4px 20px rgba(255,205,93,0.14);
  color: #09814A;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #3feaf7;
  color: #164C58;
}

/* Utility classes */
.mt-3 { margin-top: 24px!important; }
.mb-3 { margin-bottom: 24px!important; }
.mt-2 { margin-top: 16px!important; }
.mb-2 { margin-bottom: 16px!important; }
.rounded { border-radius: 20px!important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.shadow {
  box-shadow: 0 2px 16px rgba(39,193,255,0.13);
}

/* Decorative - playful confetti dots */
.section::before, .section::after {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.section::before {
  width: 18px; height: 18px;
  background: #3feaf7;
  top: 18px; left: 14px;
  opacity: 0.22;
  animation: bounceDot 2.5s ease-in-out infinite alternate;
}
.section::after {
  width: 12px;
  height: 12px;
  background: #FFCD5D;
  bottom: 18px; right: 24px;
  opacity: 0.31;
  animation: bounceDotAlt 2s ease-in-out infinite alternate;
}
@keyframes bounceDot {
  0%   { transform: translateY(0); }
  100% { transform: translateY(8px) scale(1.06); }
}
@keyframes bounceDotAlt {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-7px) scale(1.08); }
}

/* Spacing for all flex section wrappers as instructed */
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .container {
    max-width: 94vw;
  }
  .footer-grid {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
  .footer-grid > div {
    min-width: 0;
  }
}
@media (max-width: 920px) {
  header nav { gap: 10px; }
}
@media (max-width: 830px) {
  .feature-grid > div, .inspiration-tiles > div, .blog-listing > article {
    flex-basis: 90%;
    min-width: 170px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 7px; }
  .section, main > section {
    margin-bottom: 40px; padding: 24px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .feature-grid, .inspiration-tiles, .blog-listing {
    gap: 12px;
  }
  .feature-grid > div, .inspiration-tiles > div, .blog-listing > article {
    min-width: 130px;
    padding: 14px 8px;
  }
  .testimonials-overview {
    flex-direction: column;
    gap: 17px;
  }
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .blog-categories ul {
    gap: 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: .97rem;
    z-index: 12000;
  }
}
@media (max-width: 620px) {
  header {
    flex-direction: row;
    padding: 10px 6px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }
}
@media (max-width: 500px) {
  .cookie-banner {
    font-size: .9rem;
    padding: 17px 6px;
  }
}

/* Hide outline where appropriate for playful, but keep visible for accessibility */
*:focus {
  outline: 2px dashed #42BE65;
  outline-offset: 1px;
}

/* Fix alignment and min spacing for all flex containers as instructed */
.feature-grid, .card-container, .content-grid, .testimonials-overview, .inspiration-tiles, .blog-listing, .quick-tips ul {
  gap: 20px;
}
.card, .feature-grid > div, .inspiration-tiles > div, .blog-listing > article, .testimonial-card {
  margin-bottom: 20px;
}

/* Prevent overlapping and enable white space */
.card, .section, .testimonial-card, .feature-item {
  margin-bottom: 24px;
}

/* Accessibility: ensure contrast for testimonials */
.testimonial-card p, .testimonial-card strong, .testimonial-card div {
  color: #234a51;
  font-size: 1.05rem;
  line-height: 1.65;
}
.testimonial-card strong {
  color: #09814A;
  font-size: 1.13rem;
}

/* List stylings for feature/benefit icons */
ul, ol {
  margin: 0 0 12px 24px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 9px;
  width: 1.4em; height: 1.4em;
}

/* Polished brand colorful scrollbars */
::-webkit-scrollbar {
  width: 10px; background: #F6F2EE;
}
::-webkit-scrollbar-thumb {
  background: #FFCD5D;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: #42BE65;
}

/* Misc - average rating standout */
.avg-rating strong, .average-rating span {
  color: #164C58;
  font-size: 1.17rem;
}

/* Make sure forms fit container on mobile */
form {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* END CSS */
