:root {
  --bg: #ffffff;
  --ink: #1f233c;
  --muted: #4a4f67;
  --brand: #84bd01;
  --panel: #f2f2f3; /* Exact grey from original reference */
  --line: #3a3c53;
  --teal: #84bd01;
  --accent: #84bd01;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--ink);
}

.page {
  width: min(1040px, calc(100% - 40px));
  margin: 42px auto 70px;
}

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

.logo-image {
  display: block;
  width: 220px;
  height: auto;
}

.hero {
  margin: 28px 0 36px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.mail-icon {
  width: 90px;
  color: #5d6078;
  flex: 0 0 auto;
}

.mail-icon svg {
  width: 100%;
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4031da 0%, #8f0ca8 100%);
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
}

.title-badge-text {
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1;
}

.title-badge-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.interest h2 {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.2vw, 22px);
  color: #4b4f67;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 26px;
}

.card {
  background: var(--panel) !important; /* FORCED to prevent framework override */
  border-radius: 20px !important;
  padding: 40px !important; /* More generous padding like original */
  box-shadow: 0 12px 32px rgba(27, 36, 67, 0.1), 0 2px 8px rgba(27, 36, 67, 0.05) !important;
  margin: 0 !important;
  height: auto !important; /* Overrides framework's fit-content to allow flex stretch */
  display: flex;
  flex-direction: column;
}

.headline {
  font-size: clamp(20px, 1.6vw, 24px); /* Corrected as requested */
  font-weight: 800;
  line-height: 1.25; /* More breathing room for smaller font */
  color: var(--ink);
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.headline span {
  color: var(--accent);
}

.ia-features {
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 4px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.ia-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ia-item + .ia-item {
  margin-top: 10px;
}

.ia-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #edf3e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
}

.ia-item h4 {
  margin: 1px 0 3px;
  font-size: 18px;
  line-height: 1.2;
}

.ia-item p {
  margin: 0;
  color: #5f6558;
  font-size: 15px;
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}

.btn-ghost {
  margin: 0;
  min-width: 0;
  border: none !important;
  color: #242741;
  font-size: clamp(13px, 0.8vw, 15px);
  padding: 10px 18px;
  background: #edf3e8;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.play {
  font-size: 18px;
}

.product-shot {
  background: transparent;
  border-radius: 16px;
  border: none;
  margin-top: 18px;
  overflow: visible;
  position: relative;
  padding: 0;
}

.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(27, 36, 67, 0.1);
  margin-top: 24px;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-side h3 {
  font-size: clamp(21px, 1.4vw, 24px); /* Synchronized with the other card */
  font-weight: 800;
  margin: 0 0 16px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-side p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 24px;
}

.card-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-side li {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
  padding-left: 32px;
  line-height: 1.4;
}

.card-side .btn {
  margin-top: auto; /* Keeps the button at the bottom of the stretched card */
}

.card-side li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}

/* Radar pulse still looks premium but subtle */
.card-side li::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--brand);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-sonar 3s infinite ease-out;
  z-index: 1;
}


@keyframes pulse-sonar {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}


.price-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: #3d4159;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  min-height: 50px;
  padding: 0 22px;
  font-size: clamp(16px, 1vw, 19px);
  margin-top: 34px;
  width: 100%;
  border: none;
  cursor: pointer;
}

.footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
  align-items: center;
  color: #7b8096;
  font-size: 14px;
}

.enisa-logo {
  height: 52px; /* Slightly larger like the original */
  width: auto;
  flex-basis: 100%;
  object-fit: contain;
  margin-top: 32px; /* More separation from links */
  filter: grayscale(1) opacity(0.8); /* Look more subtle like the original */
  transition: filter 0.3s;
}

.enisa-logo:hover {
  filter: grayscale(0) opacity(1);
}

@media (max-width: 980px) {
  .enisa-logo {
    flex-basis: auto;
    max-width: calc(100% - 20px);
    padding: 0 10px;
  }
}

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

.mobile-only,
.mobile-extra {
  display: none;
}

@media (max-width: 980px) {
  .page {
    width: 100%;
    margin: 32px 0 48px;
  }

  .logo-wrap {
    margin: 0 28px;
  }

  .logo-image {
    width: 195px;
  }

  .hero {
    margin: 16px 28px 20px;
    text-align: center;
    flex-direction: column;
    gap: 16px;
  }

  .mail-icon {
    width: 96px;
  }

  h1 {
    font-size: 31px;
  }

  .title-badge {
    margin-left: 6px;
    padding: 4px 8px;
    gap: 5px;
  }

  .title-badge-icon {
    width: 12px;
    height: 12px;
  }

  .hero p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.4;
  }

  .interest h2 {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card-main {
    display: flex;
    flex-direction: column;
  }
  
  .card-main .product-shot {
    order: -1;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .card-main .headline {
    order: 0;
  }

  .card-side {
    display: block;
    border-radius: 0;
    padding: 24px 20px 16px;
    box-shadow: none;
    border-top: none;
  }

  .headline {
    font-size: 28px;
  }

  .ia-item h4 {
    font-size: 17px;
  }

  .ia-item p {
    font-size: 14px;
  }

  .mobile-extra {
    display: none;
  }

  .mobile-gap {
    margin-top: 28px;
  }

  .mobile-only {
    display: flex;
    margin: 20px 28px;
    width: calc(100% - 56px);
  }

  .btn-ghost {
    margin: 0;
    width: auto;
    min-width: 0;
    min-height: 46px;
    font-size: 14px;
  }

  .play {
    font-size: 21px;
  }

  .product-shot {
    margin-top: 14px;
  }

  .footer {
    display: flex;
    padding-bottom: 20px;
  }
}

.card-side h3,
h1 {
  color: #21263d;
}

@media (max-width: 640px) {
  .logo-wrap {
    margin: 0 auto;
    display: flex;
    width: fit-content;
  }

  .logo-image {
    width: 185px;
  }

  .hero {
    margin: 14px 28px 18px;
  }

  h1 {
    font-size: 27px;
  }

  .title-badge {
    display: inline-flex;
    margin-left: 6px;
    vertical-align: middle;
    align-items: center;
  }

  .hero p { font-size: 16px; }
  .mobile-extra { font-size: 16px; }

  .headline {
    font-size: 24px;
  }

  .ia-features {
    padding: 12px;
  }

  .ia-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .ia-item h4 {
    font-size: 15px;
  }

  .ia-item p {
    font-size: 13px;
  }

  .btn-ghost,
  .mobile-only {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo-wrap {
    margin-top: 4px;
  }

  .logo-image {
    width: 175px;
  }

  .hero {
    margin: 12px 20px 16px;
  }

  .mail-icon {
    width: 76px;
  }

  h1 {
    font-size: 24px;
  }

  .title-badge {
    padding: 3px 7px;
    gap: 4px;
  }

  .title-badge-icon {
    width: 11px;
    height: 11px;
  }

  .hero p { font-size: 16px; }
  .mobile-extra { font-size: 15px; }

  .card {
    padding: 22px 16px 14px;
  }

  .headline {
    font-size: 19px;
  }

  .ia-item h4 {
    font-size: 14px;
  }

  .ia-item p {
    font-size: 12px;
  }

  .mobile-only,
  .btn-ghost {
    min-height: 42px;
    font-size: 13px;
  }

  .product-shot {
    margin-top: 12px;
  }
}

/* Modal and iframe styles */
.signup-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.signup-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.signup-modal-content {
  background: var(--bg);
  border-radius: 24px;
  width: min(520px, 95vw);
  height: auto;
  max-height: 95vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s ease;
}

/* Added padding to the form container inside the modal */
.modal-form-wrapper {
  padding: 32px 24px; /* 32px top/bottom, 24px on sides */
}



/* Ensures intl-tel-input takes full width correctly */
.iti {
  display: block; /* Allows it to take up the line */
  width: 100%;
  position: relative;
}

/* Ensure the country list is NOT transparent and looks professional */
.iti__country-list {
  z-index: 100;
  background-color: #ffffff !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  width: auto;
  min-width: 300px;
  max-width: 90vw;
  position: absolute;
  padding: 8px 0 !important;
}

.iti__country {
  padding: 8px 12px !important;
  color: #333 !important;
}

.iti__country:hover {
  background-color: #f7f7f7 !important;
}

.iti__highlight {
  background-color: #f2f2f3 !important;
}


/* Ensure only text-like inputs take 100% width */
.text-input-new__input:not([type="checkbox"]):not([type="radio"]),
.iti input {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Restore normal checkbox behavior */
.text-input-new__input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px;
  cursor: pointer;
}

.signup-form__iframe-two-columns {
  display: flex;
  gap: 16px;
}

.signup-form__iframe-two-columns > div {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .signup-form__iframe-two-columns {
    flex-direction: column;
    gap: 8px;
  }
}



.signup-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  z-index: 10;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.signup-modal-close:hover {
  background: rgba(0,0,0,0.1);
  color: var(--ink);
}

.signup-iframe {
  width: 100%;
  height: 620px; /* Fallback: tall enough for the full form */
  border: none;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}


/* Fix for square checkboxes in modal */
.text-input-new__check-container input[type="checkbox"] {
    border-radius: 4px !important;
}

.text-input-new__check-container input[type="checkbox"]:before {
    border-radius: 2px !important;
}
