/* 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, caption, tbody, tfoot, thead, tr, th, td, main, section, article, aside, footer, header, nav, figure, figcaption, hr {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFFDF8;
  scroll-behavior: smooth;
}
body {
  background: #FFFDF8;
  color: #27408B;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.62;
  letter-spacing: 0.02em;
  position: relative;
}
img, video {
  max-width: 100%;
  height: auto;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}
input, button, select, textarea {
  border-radius: 8px;
  border: none;
  background: none;
}
ol, ul {
  list-style: none;
}
a {
  color: #2B579A;
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: #FF7C5C;
}

/* PLAYFUL DYNAMIC VARIABLES*/
:root {
  --color-primary: #27408B;
  --color-primary-dark: #1e315b;
  --color-secondary: #92B2E4;
  --color-tertiary: #F1C40F;
  --color-accent: #FFFDF8;
  --color-shadow: rgba(39,64,139,0.08);
  --color-card: #ffffff;
  --color-fun1: #F9C4E1;
  --color-fun2: #5EE5D8;
  --color-fun3: #FF7C5C;
  --color-gray: #e8ecfa;
  --color-dark-text: #1D2457;
  --color-light-text: #FFFFFF;
  --color-focus: #F1C40F;
  --font-display: 'Montserrat', 'Comic Sans MS', system-ui, Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 3px 14px 0 var(--color-shadow);
  --transition: 0.25s cubic-bezier(.54,.1,.53,.98);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.1;
  /* playful-dynamic extra fun */
  word-spacing: 0.08em;
}
h1 {
  font-size: 2.6rem;
  color: var(--color-fun3);
  text-shadow: 1px 3px 0 var(--color-fun1);
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, li, blockquote, address {
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin-bottom: 12px;
}
strong, b {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  background: var(--color-fun2);
  border-left: 5px solid var(--color-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: var(--color-dark-text);
  margin-bottom: 10px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
}

/* HEADERS & SITE LAYOUT */
.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
header {
  background: var(--color-secondary);
  box-shadow: 0 3px 10px 0 var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
header img {
  max-height: 46px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  position: relative;
  transition: background 0.2s, color .2s, box-shadow .2s;
}
.main-nav a:not(.cta-btn):hover,
.main-nav a:not(.cta-btn):focus {
  background: var(--color-fun1);
  color: var(--color-primary-dark);
}
.cta-btn {
  background: var(--color-fun3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 20px var(--color-fun1);
  border: none;
  cursor: pointer;
  margin-left: 8px;
  letter-spacing: .01em;
  position: relative;
  outline: none;
  z-index: 1;
}
.cta-btn::after {
  content: '';
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(.9) rotate(7deg);
  width: 10px;
  height: 10px;
  background: var(--color-tertiary);
  border-radius: 50%;
  opacity: 0.9;
  z-index: -1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-fun1);
  color: var(--color-primary);
  box-shadow: 0 2px 24px var(--color-fun2);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-fun2);
  border-radius: var(--radius-md);
  border: none;
  padding: 10px 16px;
  font-size: 1.75rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  transition: background var(--transition);
  z-index: 1003;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-fun3);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--color-card);
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1200;
  padding: 50px 24px 24px 24px;
  box-shadow: 0 5px 25px 0 var(--color-shadow);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.64,.09,.08,1.01);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-fun3);
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: var(--radius-md);
  padding: 8px 16px 8px 8px;
  position: absolute;
  right: 20px; top: 18px;
  cursor: pointer;
  transition: background .22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-primary);
}
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background .17s, color .15s;
  background: var(--color-fun2);
  margin: 0 0 6px 0;
  box-shadow: 0 1px 8px var(--color-shadow);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-fun3);
  color: #fff;
}

/* =================== MAIN LAYOUTS =================== */
main {
  min-height: 60vh;
  margin-bottom: 60px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  transition: box-shadow .18s, transform .16s;
  border: 3px solid transparent;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 var(--color-fun2);
  transform: translateY(-5px) scale(1.011);
  border: 3px solid var(--color-fun1);
}

.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;
  background: var(--color-fun2);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  color: var(--color-dark-text);
}
.testimonial-card strong {
  color: var(--color-primary-dark);
  font-family: var(--font-display);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  font-size: 1.09rem;
  color: var(--color-dark-text);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-fun1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px;
  min-width: 220px;
  flex: 1 1 210px;
  transition: box-shadow .18s, transform .16s;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 6px 32px 0 var(--color-fun2);
  transform: translateY(-7px) rotate(-1deg) scale(1.03);
}
.feature-item h3 {
  color: var(--color-fun3);
  font-size: 1.15rem;
  margin-bottom: 7px;
}
.feature-item img {
  max-width: 42px;
  filter: drop-shadow(0 2px 2px var(--color-primary));
}

/* BLOG STYLES */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.blog-post {
  background: var(--color-fun1);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  flex: 1 1 285px;
  min-width: 210px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .16s;
}
.blog-post h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.blog-post a {
  align-self: flex-end;
  color: var(--color-fun3);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color .21s;
}
.blog-post a:hover { color: var(--color-primary); }
.blog-post:hover, .blog-post:focus-within {
  box-shadow: 0 6px 24px 0 var(--color-fun2);
  transform: scale(1.02) rotate(1.8deg);
}

/* NEWSLETTER CTA (BLOG) */
.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  background: var(--color-fun2);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.newsletter-signup label {
  font-weight: bold;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.newsletter-signup input[type="email"] {
  padding: 8px 13px;
  background: #FFF;
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-right: 3px;
  min-width: 160px;
  transition: border-color .19s;
}
.newsletter-signup input[type="email"]:focus {
  border-color: var(--color-fun3);
}
.newsletter-signup button {
  background: var(--color-fun3);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  transition: background .19s;
}
.newsletter-signup button:hover,
.newsletter-signup button:focus {
  background: var(--color-tertiary);
  color: var(--color-primary);
}

/* FOOTER */
footer {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding-top: 26px;
  position: relative;
  z-index: 1;
}
footer section {
  padding: 0 16px 36px 16px;
  margin-bottom: 0;
}
footer .container {
  max-width: 1200px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: var(--color-fun1);
  color: var(--color-fun3);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-dark-text);
  max-width: 270px;
}
.footer-info img {
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-info a {
  color: var(--color-fun3);
  font-weight: 500;
  font-size: 1rem;
}
.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
  background: #FFF;
  padding: 4px;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: background .21s, box-shadow .2s;
}
.footer-social a:hover img {
  background: var(--color-fun1);
  box-shadow: 0 2px 18px var(--color-fun2);
}
footer small {
  color: var(--color-primary-dark);
  display: block;
  margin: 14px 0 6px 0;
  text-align: center;
  font-size: .97rem;
}

/* ACCESSIBILITY/FOCUS */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* UL/LIST DEFAULTS */
ul, ol {
  margin-left: 22px;
  margin-bottom: 15px;
  font-size: 1.08rem;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 17px;
}
ul li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0.57em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-fun3);
}

/* HERO CTA (PROMINENT) */
section:first-of-type .cta-btn {
  font-size: 1.2rem;
  padding: 13px 32px;
  box-shadow: 0 7px 28px var(--color-fun2);
}

/* PRODUCT/FEATURE GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* =========== COOKIE CONSENT BANNER + MODAL =========== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-card);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px var(--color-shadow);
  padding: 20px 6vw 14px 6vw;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: slideup-banner .55s cubic-bezier(.81,0,.13,1);
}
@keyframes slideup-banner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  margin: 0 2px;
  box-shadow: 0 1px 5px var(--color-shadow);
  transition: background .16s, color .16s;
}
.cookie-banner .accept-cookies {
  background: var(--color-fun2);
  color: var(--color-primary);
  font-weight: bold;
}
.cookie-banner .accept-cookies:hover { background: var(--color-fun3); color: #fff; }
.cookie-banner .reject-cookies {
  background: var(--color-gray);
  color: var(--color-primary-dark);
}
.cookie-banner .reject-cookies:hover { background: var(--color-fun3); color: #fff; }
.cookie-banner .cookie-settings {
  background: var(--color-tertiary);
  color: var(--color-primary);
}
.cookie-banner .cookie-settings:hover { background: var(--color-fun1); }

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,64,139,0.31);
  z-index: 1400;
  justify-content: center;
  align-items: center;
  animation: fadein-modal .41s cubic-bezier(.44,.07,.41,.95);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadein-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  max-width: 420px;
  width: 96vw;
  padding: 40px 24px 30px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 40px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: pop-modal .51s cubic-bezier(.44,.07,.41,.95);
}
@keyframes pop-modal {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-weight: bold;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-fun3);
  width: 20px; height: 20px;
}
.cookie-category .always-on {
  font-size: .95rem;
  font-style: italic;
  color: var(--color-primary-dark);
  opacity: .8;
  margin-left: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 17px;
  background: none;
  border: none;
  color: var(--color-fun3);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: background .19s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--color-fun1);
}

/* ================== RESPONSIVE BREAKPOINTS ===================== */
@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .blog-list, .content-grid {
    gap: 14px;
  }
  .feature-item, .card, .blog-post {
    min-width: 170px;
    padding: 15px 12px;
  }
}
@media (max-width: 820px) {
  .content-wrapper,
  .footer-info,
  .footer-menu,
  .footer-social {
    gap: 14px;
  }
  .container {
    padding-inline: 8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    height: 62px;
    gap: 8px;
  }
  section {
    margin-bottom: 44px;
    padding: 24px 4vw;
  }
  .content-wrapper, .card-container, .blog-list, .footer-menu {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .card, .blog-post {
    min-width: 0;
    width: 100%;
  }
  .testimonial-card, .blog-post, .newsletter-signup {
    flex-direction: column;
    gap: 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.19rem; }
  .cta-btn, .newsletter-signup button, .cookie-banner button {
    font-size: .96rem;
    padding: 10px 15px;
  }
  .footer-social a img {
    width: 23px; height: 23px;
  }
  .card, .blog-post {
    padding: 14px 7px;
  }
}

/* ============= MICRO-INTERACTION & PLAYFUL ELEMENTS ============= */
.cta-btn, .main-nav a, .feature-item, .card, .blog-post, .mobile-menu-toggle, .cookie-banner button {
  transition: box-shadow .19s, background .18s, color .16s, transform .14s;
  will-change: box-shadow, transform;
}
.cta-btn:active { transform: scale(0.94) rotate(-3deg); }
.card:active, .feature-item:active, .blog-post:active {
  transform: scale(.99) rotate(1deg);
}

/* Decorative confetti (optional for extra playful-dynamic, can be removed) */
.card::before, .feature-item::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: var(--color-tertiary);
  position: absolute;
  left: 18px; top: 18px;
  border-radius: 60% 50% 30% 50%;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}
.card:hover::before, .feature-item:hover::before {
  left: 10px; top: 10px;
  opacity: 0.26;
  transition: all .18s;
}

/* Hide cookie banner with .hidden class */
.cookie-banner.hidden { display: none !important; }

/* ARIA LIVE REGION support for consent banner/modal, visually hidden */
.visually-hidden {
  border: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; white-space: nowrap;
}
