/* --- CSS RESET & NORMALIZE (MOBILE-FIRST) --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F5F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  color: #183152;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  padding-left: 20px;
}
a {
  color: #3A7D71;
  text-decoration: none;
  transition: color .2s;
}
a:focus {
  outline: 2px solid #18b4f6;
  outline-offset: 2px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- BRAND COLORS & FONTS --- */
:root {
  --brand-primary: #183152;
  --brand-secondary: #3A7D71;
  --brand-accent: #F5F7FA;
  --brand-electric-1: #18b4f6;
  --brand-electric-2: #ff006e;
  --brand-electric-3: #f1c40f;
  --brand-success: #27ae60;
  --brand-danger: #ff415c;
  --font-display: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #183152;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #18b4f6 20%, #ff00a8 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #3A7D71;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.subheadline {
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin-bottom: 24px;
  color: #384b6e;
  font-weight: 400;
  letter-spacing: 0.01em;
}
p {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
main {
  margin-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(24,49,82,0.09);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  flex-direction: column;
  gap: 20px;
}

/* --- CARD & FLEXBOX LAYOUTS --- */
.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(24,49,82,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 28px 24px;
  transition: transform 0.18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 32px 0 rgba(24,49,82,0.16), 0 2px 4px rgba(24,49,82,0.10);
  z-index: 2;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(24,49,82,0.11);
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(24,49,82,0.19), 0 2px 4px rgba(24,49,82,0.10);
  transform: translateY(-2px);
}
.testimonial-card p {
  color: #232c45;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
}
.testimonial-meta {
  margin-left: auto;
  font-size: 0.98rem;
  color: #3A7D71;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #EFF7F4;
  box-shadow: 0 2px 8px rgba(24,49,82,0.10);
  padding: 24px 22px;
  border-radius: 16px;
  min-width: 200px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  transition: box-shadow .17s, background .17s;
}
.feature-item img {
  width: 48px; height: 48px; display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 5px #18b4f6);
}
.feature-item h3 {
  color: #183152;
  font-size: 1.19rem;
  margin-bottom: 0;
}
.feature-item p {
  font-size: 1rem;
  color: #294269;
}
.feature-item:hover {
  background: #e6f6fd;
  box-shadow: 0 8px 36px 0 rgba(24,49,82,0.20);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,49,82,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 20px;
}
.logo img {
  height: 48px;
  width: auto;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #183152;
  letter-spacing: 0.01em;
  padding: 4px 0;
  position: relative;
  transition: color .17s;
}
.main-nav a:hover, .main-nav a:active {
  color: #18b4f6;
}

.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18b4f6;
  color: #fff;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 2px 12px rgba(24,49,82,0.12);
  transition: background .2s, transform 0.2s, box-shadow 0.18s;
  cursor: pointer;
  margin-left: 12px;
  outline: none;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 12px #18b4f6AA;
}
.cta.primary:hover, .cta.primary:focus {
  background: #ff006e;
  color: #fff;
  transform: translateY(-2px) scale(1.042);
  box-shadow: 0 6px 32px #18b4f666, 0 1px 8px #ff006e44;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: flex;
  background: #18b4f6;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 99;
  box-shadow: 0 2px 10px #18b4f662;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s, transform .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ff00a8;
  color: #fff;
  outline: 2px solid #ff006e;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: #183152;
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  transform: translateX(100vw);
  transition: transform 0.38s cubic-bezier(.83,0,.16,1);
  will-change: transform;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ff006e;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 8px 13px;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 2px 18px #ff006e33;
  transition: background 0.19s, color 0.19s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #18b4f6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.36rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 0;
  width: 100vw;
  text-align: center;
  transition: background .15s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #18b4f6;
  color: #fff;
}

@media (min-width: 900px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .main-nav { display: flex !important; }
}
@media (max-width: 899px) {
  .main-nav {
    display: none;
  }
  .cta.primary {
    margin-left: 0;
  }
}

/* --- FOOTER --- */
footer {
  background: #183152;
  color: #fff;
  padding: 44px 0 12px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
}
.footer-brand img {
  height: 42px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: #18b4f6;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  transition: color .16s;
}
.footer-nav a:hover {
  color: #ff00a8;
}
.footer-contact {
  font-size: 1rem;
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-social a img {
  height: 30px;
}
.copyright {
  width: 100%;
  text-align: center;
  color: #e6e6ea;
  font-size: 0.96rem;
  margin-top: 36px;
  letter-spacing: 0.01em;
}

/* --- STEPPER/TEXT STYLES FOR GUIDE PAGE --- */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.step {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,49,82,.12);
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.step h3 {
  color: #18b4f6;
  margin-bottom: 10px;
}
.step:before {
  content: '';
  display: block;
  height: 5px;
  width: 48px;
  background: #ff00a8;
  border-radius: 2px;
  position: absolute;
  top: 19px; left: 16px;
}
.step:hover {
  background: #e1fdff;
  box-shadow: 0 6px 32px rgba(24,49,82,0.18);
}
.step h3, .step p { margin-left: 38px; }

/* --- DETAILS/FAQ --- */
details {
  background: #f6faff;
  padding: 18px 22px;
  border-radius: 15px;
  margin-bottom: 18px;
  box-shadow: 0 0 4px #18b4f611;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: background .18s, box-shadow .17s;
}
details[open] {
  background: #fff2fd;
  box-shadow: 0 4px 12px #ff006e22;
}
details summary {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: #ff006e;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  position: relative;
}
details summary:focus {
  outline: 2px solid #18b4f6;
}

/* --- LISTS & LINKS --- */
ul, ol {
  margin-bottom: 22px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #294269;
  font-family: var(--font-body);
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.text-section ul img {
  width: 26px; height: 26px;
  margin-right: 5px;
}
a {
  transition: color .19s;
}
a:hover {
  color: #ff006e;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 850px) {
  .feature-grid, .card-container, .content-grid, .card-grid, footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .stepper {
    gap: 28px;
  }
  .footer-social {
    margin-bottom: 26px;
  }
}
@media (max-width: 700px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
  .card, .testimonial-card, .feature-item {
    padding: 18px 10px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  p, .subheadline { font-size: 1rem; }
}
@media (max-width: 530px) {
  .container { padding: 0 5px; }
  header .container { padding: 8px 6px; }
  .cta.primary { font-size: 1rem; padding: 10px 18px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- BUTTONS & MICROS --- */
button, .cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  outline: none;
  transition: background .17s, color .13s, transform .11s;
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* Secondaries for cookies etc */
.cta.secondary, .cookie-btn.secondary {
  background: #fff;
  color: #3A7D71;
  border: 2px solid #3A7D71;
  border-radius: 30px;
  margin-left: 12px;
  padding: 11px 26px;
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
  transition: background .17s, color .13s, border-color .13s;
}
.cta.secondary:hover, .cta.secondary:focus,
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #3A7D71;
  color: #fff;
  border-color: #3A7D71;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #3A7D71;
  color: #fff;
  padding: 22px 30px 24px 30px;
  box-shadow: 0 -2px 22px #18315233;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: slideInBottom 0.5s ease;
}
@keyframes slideInBottom {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  font-size: 1.02rem;
  font-family: var(--font-body);
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-size: 1rem;
  font-weight: 700;
  border-radius: 28px;
  padding: 10px 26px;
  border: none;
  cursor: pointer;
  transition: background .14s, color .14s, box-shadow .17s;
}
.cookie-btn.accept {
  background: #18b4f6;
  color: #fff;
  box-shadow: 0 1px 6px #18b4f644;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ff00a8;
}
.cookie-btn.reject {
  background: #fff;
  color: #ff006e;
  border: 2px solid #ff006e;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #ff006e;
  color: #fff;
}
.cookie-btn.settings {
  background: #F5F7FA;
  color: #183152;
  border: 2px solid #18b4f6;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #18b4f6;
  color: #fff;
  border: 2px solid #18b4f6;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1500;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,49,82,0.63);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 42px #18315244;
  max-width: 440px;
  width: 96vw;
  padding: 36px 28px 24px 28px;
  position: relative;
}
.cookie-modal h3 {
  color: #18b4f6;
  font-size: 1.24rem;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  gap: 16px;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #18b4f6;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.cookie-desc {
  font-size: 0.99rem;
  color: #384b6e;
  font-family: var(--font-body);
  margin-top: 2px;
}
.cookie-category.disabled label,
.cookie-category.disabled {
  color: #cacfd7;
  pointer-events: none;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: #ff006e;
  color: #fff;
  border: none;
  font-size: 1.52rem;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #18b4f6;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  justify-content: flex-end;
}

/* --- MICRO INTERACTIONS --- */
.cta.primary, .footer-nav a, .main-nav a, .mobile-nav a, .feature-item, .step, .card, .testimonial-card, button, .cookie-btn {
  transition: box-shadow .18s, background .18s, color .17s, transform .14s;
}

/* --- UTILS & ACCESSIBILITY --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* --- SPACING ENFORCEMENT FOR FLEX CONTAINERS --- */
.section + .section,
.content-wrapper + .content-wrapper,
.card-container > * + *,
.feature-grid > * + *,
.card-grid > * + *,
.content-grid > * + *,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item {
  margin-top: 20px;
}

/* --- Z-INDEX LAYER ASSIGNMENTS --- */
.mobile-menu { z-index: 200; }
.mobile-menu-toggle { z-index: 99; }
.cookie-banner { z-index: 1200; }
.cookie-modal-overlay { z-index: 1500; }

/* --- END --- */
