/* Reset some default styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, p, ul, li {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #F4ECE3;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background-color: #F4ECE3;
  min-height: 48px;
  padding: 5px 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.ip-display {
  display: none;
  opacity: 0;
  align-self: center;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #666;
  white-space: nowrap;
  transition: opacity 0.5s ease-in-out;
}

.navbar-fixed {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(244, 236, 227, 0.97);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background-color: #E7DDD4;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-logo {
  display: none;
  color: #333;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  list-style-type: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding-left: 0;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav-links a[href="#promotions"] {
  background-color: #F9B7B2;
  color: #fff;
  font-weight: 600;
}

.nav-links a.active {
  background-color: #F56A79;
  color: #fff;
}

/* Sections */
.section {
  scroll-margin-top: calc(var(--navbar-offset, 54px) + 1px);
  padding: 60px 0;
  text-align: center;
}

.home-section {
  background-color: #FAD9C5;
}

.benefits-section {
  background-color: #FCE5B2;
}

.plans-section {
  background-color: #FAD9C5;
}

.plans-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 3px 10px rgba(245, 106, 121, 0.24);
}

.plan-badge::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(18deg);
  animation: badge-shine 5s ease-in-out infinite;
}

.plan-badge-test {
  min-width: 126px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 9px;
  text-align: center;
  background: linear-gradient(135deg, #FFB347, #FF7A59);
  box-shadow: 0 3px 10px rgba(255, 122, 89, 0.26);
}

.plan-badge-hit {
  background: linear-gradient(135deg, #F56A79, #D04C5B);
}

.plan-card h3 {
  margin-bottom: 6px;
}

.plan-card p {
  margin-top: 12px;
}

.plan-price {
  margin: 0 0 10px;
  color: #333;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.plan-card ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 10px;
}

.plan-card li {
  margin-bottom: 5px;
}

.plans-footnotes {
  width: 100%;
  margin: 32px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(249, 183, 178, 0.45);
  border-radius: 8px;
  background-color: rgba(255, 248, 225, 0.52);
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.plans-footnotes p + p {
  margin-top: 8px;
}

.plans-footnotes strong {
  color: #333;
  font-weight: 700;
}

.documentation-section {
  background-color: #FAD9C5;
}

.faq-section {
  background-color: #FCE5B2;
}

.promotions-section {
  background-color: #F3C0B1;
  padding: 60px 0;
}

.promotion-card {
  background-color: #FFF8E1;
  border: 1px solid #F9B7B2;
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.promotion-card.plan-card {
  margin: 0;
  max-width: none;
}

.promotion-card.plan-card.has-badge {
  padding-right: 20px;
  padding-top: 44px;
}

.promotion-card.plan-card:hover {
  animation: none;
  transform: none;
  border-color: #F56A79;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.12);
}

.promotion-card:hover {
  animation: wobble 0.6s ease-in-out;
}


@keyframes badge-shine {
  0%, 70% { left: -70%; }
  86%, 100% { left: 125%; }
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

.promotion-card h3 {
  color: #F56A79;
}

.promotion-card ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 10px;
}

.promotion-card li {
  margin-bottom: 5px;
}

.contact-section {
  background-color: #FCE5B2;
}

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid rgba(245, 106, 121, 0.18);
  border-radius: 18px;
  background-color: #FFF8E1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  text-align: left;
}

.contact-copy h2 {
  margin: 0 0 8px;
}

.contact-intro {
  margin: 0;
  line-height: 1.5;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 12px 20px;
  border-radius: 999px;
  background-color: #333;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(51, 51, 51, 0.10);
  color: #555;
  line-height: 1.45;
  text-align: center;
}

.contact-note a {
  color: #D04C5B;
  font-weight: 700;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* Content styling */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.plans-section .content {
  max-width: 1000px;
}

h1, h2, h3 {
  color: #333;
}

ul {
  text-align: left;
  padding-left: 20px;
}

/* Call to action button */
.cta-button {
  display: inline-block;
  background-color: #F9B7B2;
  color: #fff;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  text-decoration: none;
}

/* Footer */
footer {
  background-color: #F4ECE3;
  text-align: center;
  padding: 10px 16px;
  color: #333;
  line-height: 1.45;
}

.footer-text {
  color: #333;
}

.footer-links,
.footer-consent {
  margin-bottom: 6px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-consent {
  font-size: 0.80em;
  opacity: 0.82;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FCE5B2;
}

.legal-navbar {
  justify-content: flex-start;
}

.legal-nav-links {
  justify-content: flex-start;
}

.legal-main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.legal-meta {
  margin: 8px 0 20px;
  color: #555;
  line-height: 1.5;
}

.legal-document {
  padding: 24px;
  border: 1px solid #F9B7B2;
  border-radius: 12px;
  background-color: #FFF8E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  color: #333;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

.legal-document h2 {
  margin: 30px 0 14px;
  font-size: 1.45rem;
  line-height: 1.3;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin: 22px 0 10px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.legal-document p {
  margin: 0 0 12px;
  font-weight: 400;
}

.legal-document ul {
  margin: 0 0 16px 22px;
  padding: 0;
  font-weight: 400;
}

.legal-document li {
  margin: 7px 0;
  padding-left: 2px;
  font-weight: 400;
}

.flip-cat {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.5s ease-in-out;
  outline: none;
  user-select: none;
}

/* Dark Mode */
.dark-mode {
  background-color: #333;
}

.dark-mode .navbar,
.dark-mode footer {
  background-color: #333;
  color: #fff;
}

.dark-mode .ip-display {
  color: #ccc;
}

.dark-mode .mobile-logo {
  color: #fff;
}

.dark-mode .nav-toggle {
  background-color: #555;
}

.dark-mode .nav-toggle span {
  background-color: #fff;
}

.dark-mode .nav-links a {
  color: #fff;
  font-weight: 500;
}

.dark-mode .nav-links a[href="#promotions"] {
  background-color: #555;
  color: #fff;
  font-weight: 600;
}

.dark-mode .nav-links a.active {
  background-color: #D04C5B !important;
  color: #fff !important;
}

.dark-mode .cta-button {
  background-color: #F9B7B2;
  color: #fff;
}

.dark-mode .footer-consent {
  color: #ccc;
}

.dark-mode .footer-text {
  color: #fff;
}

.legal-page.dark-mode {
  background-color: #FCE5B2;
}

.dark-mode .legal-document { background-color: #FFF8E1; color: #333; }

/* Responsive styles */
@media (hover: hover) {
  .nav-toggle:hover {
    background-color: #DCD1C8;
  }

  .nav-links a:hover {
    background-color: #F9B7B2;
    color: #fff;
  }

  .contact-primary-button:hover {
    background-color: #444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.20);
  }

  .dark-mode .nav-toggle:hover {
    background-color: #666 !important;
  }

  .dark-mode .nav-links a:hover {
    background-color: #555 !important;
    color: #fff !important;
  }
}

@media screen and (max-width: 640px) {
  body { font-size: 13px; }

  .navbar {
    min-height: 48px;
    justify-content: space-between;
    padding: 5px 12px;
  }

  .ip-display {
    width: 100%;
    margin: 0 0 2px;
    padding: 8px 12px 10px;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
    color: #666;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
  }

  .mobile-logo { display: inline-block; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(51, 51, 51, 0.10);
    border-radius: 12px;
    background-color: rgba(244, 236, 227, 0.98);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
  }

  .navbar.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
  }

  .dark-mode .nav-links {
    border-color: #555;
    background-color: rgba(51, 51, 51, 0.98);
  }

  .dark-mode .ip-display {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    color: #ccc;
  }

  .legal-nav-links {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: flex;
    flex-direction: row;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .legal-nav-links a {
    width: auto;
    text-align: left;
  }

  .dark-mode .legal-nav-links {
    border-color: transparent;
    background-color: transparent;
  }

  .section { padding: 48px 0; }
  .content { padding: 0 14px; }
  .promotion-card { margin: 16px 0; padding: 18px; }
  .plans-grid { gap: 16px; margin-top: 16px; }
  .plans-footnotes { margin-top: 24px; padding: 11px 12px; font-size: 12px; }
  .plan-card { margin: 0; }
  .promotion-card.plan-card.has-badge { padding-right: 18px; padding-top: 44px; }
  .plan-badge { top: 12px; right: 12px; }
  .contact-panel {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .contact-actions {
    justify-content: center;
  }

  .contact-primary-button {
    width: 100%;
    max-width: 260px;
  }

  .contact-note {
    text-align: center;
  }
  footer { padding: 10px 14px; }
  .footer-links { line-height: 1.6; }
  .legal-main { padding: 28px 14px 44px; }
  .legal-document { padding: 18px; line-height: 1.65; }
  .legal-document h2 { margin-top: 24px; font-size: 1.25rem; }
  .legal-document h3 { margin-top: 18px; font-size: 1.05rem; }
  .legal-document ul { margin-left: 18px; }
}

@media screen and (min-width: 641px) {
  body { font-size: 13px; }
  .navbar { padding: 5px 14px; }
  .nav-links { gap: 8px; }
  .nav-links a { padding: 6px 8px; }
}

@media screen and (min-width: 720px) {
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

@media screen and (min-width: 960px) {
  .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media screen and (min-width: 768px) {
  body { font-size: 14px; }
  .navbar { padding: 5px 16px; }
  .nav-links { gap: 20px; }
  .nav-links a { padding: 5px 10px; }
  .section { padding: 80px 0; }
  .promotion-card { margin: 20px auto; }
  .plan-card { margin: 0; }
}

@media screen and (min-width: 1024px) {
  body { font-size: 16px; }
  .section { padding: 100px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
