/* CSS RESET & BASELINE -------------------------------------- */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit; 
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #253858;
  background: #F5F7FA;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
}
a {
  color: #31A9B8;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #253858;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
}
ul > li, ol > li {
  margin-bottom: 8px;
  font-size: 16px;
}
strong {
  font-weight: 700;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

/* CONTAINER & LAYOUT ------------------------------------ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 10px;
}
/* Section Spacing Patterns - mandatory */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(49,169,184,0.08);
}

/* HEADINGS & TYPOGRAPHY ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #253858;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  line-height: 1.24;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p {
  font-size: 1.07rem;
  color: #354166;
  margin-bottom: 10px;
}
small {
  font-size: 0.9375rem;
  color: #8892b0;
}
label {
  font-size: 1rem;
  color: #253858;
  font-weight: 600;
}

/* NAVIGATION ------------------------------------ */
header {
  background: linear-gradient(90deg, #F7FCF9 0%, #F5F7FA 100%);
  box-shadow: 0 1px 14px rgba(130,170,210,0.09);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 18px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  padding: 8px 10px;
  font-weight: 500;
  border-radius: 8px;
  font-size: 1rem;
  background: none;
  display: inline-block;
  transition: background 0.16s, color 0.17s;
}
header nav a:hover:not(.btn-primary), header nav a:focus:not(.btn-primary) {
  background: #E0F4FD;
  color: #253858;
}
header .btn-primary {
  padding: 10px 24px;
  background: #7de2e3; /* pastel turquoise */
  color: #253858;
  border-radius: 32px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.08rem;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(49,169,184,0.13);
  transition: background 0.18s, color 0.13s, box-shadow 0.22s;
}
header .btn-primary:hover, header .btn-primary:focus {
  background: #B5EAEA;
  color: #1A2237;
  box-shadow: 0 5px 24px rgba(49,169,184,0.19);
}
header img {
  max-height: 38px;
  margin-right: 16px;
}

/* MOBILE NAVIGATION ---------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #31A9B8;
  cursor: pointer;
  outline: none;
  transition: color 0.15s;
  z-index: 101;
}
.mobile-menu-toggle:focus {
  color: #253858;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 247, 250, 0.98);
  box-shadow: 0 8px 36px rgba(49, 169, 184, 0.12);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.62,.16,.36,1.21);
  will-change: transform;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #31A9B8;
  margin: 20px 30px 10px 0;
  cursor: pointer;
  outline: none;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #253858;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 44px 40px 0 36px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #253858;
  border-radius: 12px;
  padding: 10px 0 10px 10px;
  font-family: 'Rubik', Arial, sans-serif;
  transition: background 0.17s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E6F9F7;
  color: #31A9B8;
}

/* DESKTOP hides mobile, MOBILE hides desktop nav on mobile */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* HERO, SECTIONS, & LAYOUT FLEX PATTERNS --------- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px 0 rgba(31, 152, 162, 0.08);
  overflow: hidden;
  min-width: 230px;
  padding: 24px 22px 18px 22px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.card:hover, .card:focus {
  box-shadow: 0 5px 28px 0 rgba(31,169,169,0.17);
  transform: translateY(-3px) scale(1.016);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* FEATURES and FLEX Patterns */
.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F9FC;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 2px 20px 0 rgba(31, 152, 162, 0.06);
  min-width: 160px;
}

/* Blog article list */
.blog-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.blog-list article {
  background: #FEFAF6;
  border-radius: 16px;
  padding: 20px;
  flex: 1 1 250px;
  min-width: 220px;
  box-shadow: 0 2px 12px rgba(238,202,255,0.10);
  transition: box-shadow 0.18s;
}
.blog-list article:hover {
  box-shadow: 0 6px 22px rgba(160,200,255,0.14);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F6F9FC;
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 rgba(31, 152, 162, 0.10);
  margin-bottom: 20px;
  flex: 1 1 320px;
  color: #222f3e;
}
.testimonial-card p {
  font-size: 1.14rem;
  font-style: italic;
  color: #1A2237;
}
.testimonial-card .author {
  font-weight: bold;
  color: #4a758b;
  font-size: 1rem;
}

/* Price Badge */
.price {
  display: inline-block;
  background: #E7FFFB;
  color: #1F6F78;
  font-weight: 600;
  border-radius: 9px;
  padding: 4px 14px;
  margin-top: 6px;
  font-size: 1.04rem;
}

/* Tag Chips */
.tag {
  display: inline-block;
  background: #FDECD9;
  color: #AE7DD8;
  font-size: 0.93rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 3px 10px 3px 10px;
  margin-left: 5px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 32px;
  padding: 12px 30px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  transition: background 0.19s, box-shadow 0.17s, color 0.11s;
  box-shadow: 0 3px 18px 0 rgba(168,200,208,0.12);
  margin-top: 10px;
  margin-bottom: 12px;
}
.btn-primary {
  background: #7de2e3; /* pastel turquoise */
  color: #223043;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B5EAEA;
  color: #1A2237;
  box-shadow: 0 6px 32px rgba(49,169,184,0.15), 0 3px 18px rgba(168,200,208,0.14);
}
.btn-secondary {
  background: #FFF3E3;
  color: #253858;
  border: 1.5px solid #F6C2AE;
  box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F8E7D7;
  color: #198885;
  box-shadow: 0 3px 15px 0 rgba(206,173,187,0.16);
}
button[type="submit"] {
  background: #31A9B8;
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 11px 22px;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.17s, box-shadow 0.16s;
  margin-left: 7px;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: #23B2B8;
  color: #fff;
}

/* Forms & Inputs */
input[type="email"], input[type="search"], select {
  border: 1px solid #dfecfa;
  background: #FEF9F7;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 1rem;
  margin: 6px 0 13px 0;
  transition: border-color 0.13s, box-shadow 0.14s;
  width: 220px;
}
input[type="email"]:focus, input[type="search"]:focus, select:focus {
  border-color: #BDE9EC;
  box-shadow: 0 0 0 2px #E1FEF9;
  outline: none;
}

/* Newsletter signup alignment */
.newsletter-signup {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #F6F9FC;
  border-radius: 14px;
  padding: 16px 24px;
  max-width: 360px;
}
.footer .newsletter-signup {
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: linear-gradient(90deg, #F5F7FA 0, #FCFDFC 100%);
  box-shadow: 0 -2px 22px #EFF5FA33;
  padding: 42px 0 18px 0;
  font-size: 1rem;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
footer p, footer a {
  color: #253858;
  font-size: 1rem;
  text-decoration: none;
}
footer a:hover, footer a:focus {
  color: #31A9B8;
  text-decoration: underline;
}
footer img {
  max-height: 44px;
  margin-bottom: 10px;
}
@media (max-width: 920px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* Address */
address {
  font-style: normal;
  color: #253858;
}

/* DL for Q&A */
dl {
  margin-bottom: 12px;
}
dt {
  font-weight: bold;
  margin-top: 12px;
  color: #31A9B8;
}
dd {
  margin-left: 14px;
  color: #253858;
}

/* Miscellaneous */
hr {
  border: 0;
  border-top: 1px solid #e9e9e9;
  margin: 32px 0;
}

.text-section {
  margin-top: 12px;
  margin-bottom: 15px;
  background: #F6F9FC;
  padding: 18px 18px 11px 18px;
  border-radius: 14px;
}

/* RESPONSIVE: MOBILE-OPTIMIZED (MOBILE-FIRST) --------- */
@media (max-width: 920px) {
  .container {
    max-width: 100%;
    padding: 0 9px;
  }
  .content-wrapper, .section {
    padding: 20px 10px;
  }
  .section {
    margin-bottom: 37px;
  }
  .testimonial-card, .card {
    min-width: 200px;
    gap: 15px;
  }
}
@media (max-width: 678px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  .content-grid, .blog-list, .features, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer nav {
    flex-direction: column;
    gap: 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 9px;
  }
  .card, .feature-item {
    padding: 13px 8px;
  }
  .newsletter-signup {
    padding: 9px 10px;
    width: 100%;
  }
  header .container {
    padding: 3px 7px;
  }
}

/* ANIMATIONS - Microinteractions */
.btn-primary, .btn-secondary, button[type="submit"] {
  transition: background 0.19s, color 0.14s, box-shadow 0.22s, transform 0.12s;
}
.btn-primary:active, .btn-secondary:active, button[type="submit"]:active {
  transform: scale(0.97);
}

/* SCROLLBAR (subtly pastel) */
::-webkit-scrollbar {
  width: 12px;
  background: #F5F7FA;
}
::-webkit-scrollbar-thumb {
  background: #B5EAEA;
  border-radius: 6px;
}

/* COOKIE CONSENT BANNER ----------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #eefcff;
  color: #253858;
  box-shadow: 0 -8px 26px 0 rgba(49,169,184,0.11);
  z-index: 2022;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 24px 14px 24px 14px;
  font-size: 1rem;
  animation: ccbannerin 0.7s cubic-bezier(0.37,0.67,0.56,1.37);
}
@keyframes ccbannerin {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 18px 0 0;
  color: #253858;
  flex: 1 1 250px;
}
.cookie-banner .cc-btn {
  border-radius: 25px;
  padding: 8px 22px;
  border: none;
  font-family: 'Rubik', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 7px;
  transition: background 0.17s, color 0.13s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
}
.cookie-banner .cc-accept {
  background: #7de2e3;
  color: #253858;
}
.cookie-banner .cc-accept:hover, .cookie-banner .cc-accept:focus {
  background: #B5EAEA;
}
.cookie-banner .cc-reject {
  background: #FFF3E3;
  color: #253858;
  border: 1px solid #FFD59E;
}
.cookie-banner .cc-reject:hover, .cookie-banner .cc-reject:focus {
  background: #ffe7c2;
  color: #274968;
}
.cookie-banner .cc-settings {
  background: #e9e7fd;
  color: #5c49a1;
}
.cookie-banner .cc-settings:hover, .cookie-banner .cc-settings:focus {
  background: #dcedfa;
  color: #1A2237;
}

/* COOKIE PREFERENCES MODAL ----------------------------------------------------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(39,51,90, 0.27);
  align-items: center;
  justify-content: center;
  animation: ccmodal-fadein 0.22s;
}
@keyframes ccmodal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 9px 45px 0 rgba(31,153,184,0.20);
  padding: 44px 30px 32px 30px;
  min-width: 320px;
  max-width: 96vw;
  animation: modalin 0.33s cubic-bezier(0.78,0.14,0.34,1);
  position: relative;
}
@keyframes modalin {
  from { transform: scale(0.89) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.29rem;
  margin-bottom: 20px;
  color: #253858;
}
.cookie-modal ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}
.cookie-modal li {
  margin-bottom: 15px;
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .cookie-toggle {
  width: 48px;
  height: 25px;
  background: #F4F9FD;
  border-radius: 14px;
  position: relative;
  border: 1.5px solid #f2eaff;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.14s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #7de2e3;
  border-color: #B5EAEA;
}
.cookie-modal .cookie-toggle::after {
  content: "";
  display: block;
  position: absolute;
  width: 23px; height: 23px;
  left: 1px; top: 1px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.16s;
  box-shadow: 0 1px 4px 0 rgba(49,169,184,0.11);
}
.cookie-modal .cookie-toggle[aria-checked="true"]::after {
  left: 24px;
}
.cookie-modal .toggle-label {
  font-size: 1.04rem;
  margin-right: 8px;
}
.cookie-modal .always-on {
  color: #5b8582;
  font-size: 0.97rem;
  margin-left: 10px;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal .cc-btn {
  padding: 10px 26px;
  font-size: 1.13rem;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 1.8rem;
  color: #31A9B8;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #EEF8F9;
  color: #253858;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 22px 10px 20px 12px;
    min-width: 98vw;
    border-radius: 13px;
  }
  .cookie-modal .modal-close {
    top: 8px;
    right: 8px;
    font-size: 1.2rem;
  }
}

/* DREAMY/SOFT ELEMENTS & EFFECTS (SOFT_PASTEL) ------------------------------------------------- */
body, .section, .card, .feature-item, .testimonial-card, .newsletter-signup, .text-section, .cookie-banner, .cookie-modal {
  /* Subtle dreamy shadow and softened edges */
  /* box shadows already implemented above */
}
.section {
  background: linear-gradient(127deg, #FCFCFF 60%, #EFFDF9 100%);
  border-radius: 32px;
}

h1, h2, h3, h4 {
  letter-spacing: 0.02em;
  font-family: 'Rubik', 'Open Sans', Arial, sans-serif;
}

.card, .feature-item, .testimonial-card, .newsletter-signup, .cookie-modal {
  border-radius: 18px;
}

/* Pastel Highlights - micro accents */
.card::before, .feature-item::before, .testimonial-card::before {
  content: "";
  display: none;
}

/* Dreamy background chip for price/tags are already styled above */

/* Z-INDEX (no overlapping)
-------------------------------------------------------------- */
.header, header { z-index: 100; }
.cookie-banner { z-index: 2022; }
.cookie-modal-overlay { z-index: 3000; }
.mobile-menu { z-index: 1500; }

/* NO GRID/NO ABSOLUTE for content cards - ensured. */

/* Utility classes (if needed) */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }
.gap-20 {
  gap: 20px;
}

/* END OF CSS */
