/* --- CSS RESET & NORMALIZE --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f5f3fa 0%, #e3e6f1 100%);
  color: #2B2D42;
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: #2B2D42; text-decoration: underline; transition: color 0.25s; }
a:hover, a:focus { color: #6151c7; text-decoration: none; }
ul, ol { padding-left: 24px; margin-bottom: 24px; }
li { margin-bottom: 8px; }

/* --- BRAND FONTS (PRATA & OPEN SANS) --- */
@import url('https://fonts.googleapis.com/css?family=Prata:400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Prata', serif;
  letter-spacing: -0.5px;
  color: #2B2D42;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; font-weight: 400; }
h2 { font-size: 2rem; font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 400; }
h4, h5, h6 { font-size: 1.125rem; font-weight: 400; }
p { margin-bottom: 16px; }
strong, b { font-weight: 700; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* Card Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(35,45,100,0.10);
  padding: 32px 24px;
  flex: 1 1 300px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px 0 rgba(35,45,100,0.15);
  transform: translateY(-2px) scale(1.01);
  z-index: 2;
}

.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;
  background: #F5F3FA;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(35,45,100,0.06);
  min-width: 260px;
  margin: 20px 0;
}
.testimonial-card p {
  color: #2B2D42;
  font-size: 1.1rem;
}
.testimonial-card span {
  color: #8D99AE;
  font-size: 0.95rem;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- NAVIGATION --- */
header {
  width: 100%;
  padding: 18px 0;
  background: linear-gradient(90deg, #f5f3fa 0%, #e1e6f3 100%);
  box-shadow: 0 2px 16px 0 rgba(43,45,66,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
header > a img { height: 44px; width: auto; margin-right: 20px; }
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 18px;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #2B2D42;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  background: #e7e3f9;
  color: #4634a3;
}
.cta.primary {
  background: linear-gradient(90deg, #8864ec 0%, #c6b2fa 100%);
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(120,80,255,0.07);
  padding: 12px 32px;
  font-size: 1.05rem;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #6a50c7 0%, #a290bc 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(100,70,230,0.12);
}

button.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #2B2D42;
  font-size: 2.1rem;
  margin-left: 20px;
  cursor: pointer;
  padding: 4px 10px;
  z-index: 210;
  transition: background 0.15s;
}
button.mobile-menu-toggle:focus {
  background: #e7e3f9;
  border-radius: 8px;
  outline: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #e7e3f9 0%, #b9bed6 100%);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.18,1);
  z-index: 400;
  box-shadow: 0 2px 35px rgba(35,45,100,0.20);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #2B2D42;
  align-self: flex-end;
  margin-bottom: 32px;
  cursor: pointer;
  z-index: 410;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #2B2D42;
  text-decoration: none;
  padding: 12px 0px;
  border-radius: 4px;
  width: 100%;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #d7d2ef;
  color: #784bba;
}

/* --- MAIN GRADIENTS & ELEMENT STYLES --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: linear-gradient(101deg, #fff 70%, #ede9fa 100%);
  box-shadow: 0 2px 24px 0 rgba(185,190,214,0.06);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #fcfbfe;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(35,45,100,0.06);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 300px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 16px 0 rgba(120,100,230,0.10);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.feature-grid p {
  font-size: 1rem;
  color: #444f6e;
}
.feature-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 780px;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: linear-gradient(90deg, #ede9fa 0%, #b9bed6 100%);
  padding: 40px 0 0 0;
  box-shadow: 0 -2px 18px rgba(120,100,230,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-direction: column;
}
footer nav a {
  color: #2B2D42;
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #6a50c7;
}
footer address {
  font-style: normal;
  color: #444f6e;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 12px;
}
footer address a {
  color: #2B2D42;
  text-decoration: underline;
  font-weight: 600;
}
footer img[src*="logo-mark"],
footer img[src*="icon-phone"],
footer img[src*="icon-mail"] {
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  height: 20px;
}

/* --- BUTTONS --- */
button, .cta, .cookie-btn {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 10px 28px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(90deg, #8864ec 0%, #c6b2fa 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 rgba(120,80,255,0.07);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s;
}
button:hover, button:focus,
.cta:hover, .cta:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: linear-gradient(90deg, #6a50c7 0%, #a290bc 100%);
  color: #fff;
  transform: translateY(-1.5px) scale(1.03);
  outline: none;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 24px 0 rgba(43,45,66,0.09);
  z-index: 800;
  padding: 32px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  animation: appearPopUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1;
}
@keyframes appearPopUp {
  0% { opacity:0; transform: translateY(40px);} 100% {opacity:1; transform:translateY(0);} }

.cookie-banner p { color: #2B2D42; text-align: center; font-size: 1rem; max-width: 560px; }
.cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.cookie-btn {
  background: #8864ec;
  color: #fff;
  font-weight: 700;
  border-radius: 22px;
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  margin: 0;
  transition: background 0.18s, color 0.18s, transform 0.16s;
}
.cookie-btn.reject {
  background: #8D99AE;
  color: #fff;
}
.cookie-btn.settings {
  background: #ede9fa;
  color: #2B2D42;
  border: solid 1.5px #8D99AE;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #c6b2fa;
  color: #2B2D42;
  border-color: #6a50c7;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43,45,66,0.20);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: appearPopUp 0.44s cubic-bezier(0.22,1,0.36,1) 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(112,84,210,0.13);
  min-width: 320px;
  max-width: 98vw;
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #2B2D42;
  margin-bottom: 2px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 8px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: #2B2D42;
}
.cookie-category input[type=checkbox] {
  accent-color: #6a50c7;
  width: 18px; height: 18px;
}
.cookie-category .category-desc {
  color: #626176;
  font-size: 0.92rem;
  margin-left: 3px;
}
.cookie-close-modal {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2B2D42;
  cursor: pointer;
  z-index: 910;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 98vw; }
}
@media (max-width: 1000px) {
  .feature-grid { flex-direction: column; gap: 16px; align-items: stretch; }
  .content-wrapper, .text-section { max-width: 100%; }
  footer .content-wrapper { flex-direction: column; align-items: center; }
}
@media (max-width: 900px) {
  section { padding: 32px 10px; }
  .section { padding: 32px 10px; }
  .card { padding: 24px 14px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  header nav, .cta.primary { display: none; }
  button.mobile-menu-toggle { display: block; }
  .container { padding: 0 7px; }
  .testimonial-card { min-width: unset; }
  .feature-grid > div { max-width: 98vw; }
  .content-wrapper, .text-section { padding: 0; width: 100%; }
  .mobile-menu { padding: 28px 14px 18px 14px; }
  footer .content-wrapper { flex-direction: column; gap: 14px; }
  .cookie-modal { min-width: 95vw; padding: 22px 7px 18px 7px; }
  .cookie-modal-actions { flex-direction: column; align-items: stretch; }
  .feature-grid { flex-direction: column; }
  .content-grid, .card-container { flex-direction: column; gap: 18px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 500px) {
  .section, section { padding: 18px 3px; margin-bottom: 40px; }
  .container { padding: 0 2px; }
}

/* --- MICROINTERACTIONS --- */
@media (hover: hover) {
  .feature-grid > div:hover, .card:hover, .cta:hover, .cookie-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 32px 0 rgba(100,70,230,0.14);
  }
}

/* --- VISUAL HIERARCHY, SPACING --- */
main > section + section,
.section + .section {
  margin-top: 0px;
}
.section, section {
  margin-bottom: 60px;
}
.card, .testimonial-card, .feature-grid > div, .text-section, .content-wrapper {
  margin-bottom: 20px;
}

/* --- SPACING UTILITIES --- */
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.gap-20 { gap: 20px; }

/* --- FOCUS ACCESSIBILITY --- */
a:focus, button:focus, .cta:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #8864ec; outline-offset: 2px;
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar { width: 10px; background: #fcfbfe; }
::-webkit-scrollbar-thumb { background: #e1e6f3; border-radius: 12px; }

/* --- ACCESSIBILITY: HIDE from AT (e.g. decorative SVGs) --- */
[aria-hidden="true"] { display: none !important; }

/* --- END --- */
