/* Shared responsive corrections for every Razor page. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  width: 100%;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

pre,
code,
address,
p,
li,
label,
a,
button,
summary {
  overflow-wrap: anywhere;
}

/* Home and product page: keep the two-column layouts fluid on tablets. */
@media (max-width: 1100px) {
  .hero,
  .final-cta,
  .surface-grid,
  .ai-panel {
    min-width: 0;
  }

  .nav,
  .header-inner {
    max-width: 100%;
  }

  .hero-copy,
  .hero-visual,
  .hero-copy-viewport,
  .hero-copy-track,
  .hero-copy-track .hero-copy {
    min-width: 0;
  }

  .hero-3p-card,
  .plan,
  .business-plan,
  .checker-card,
  .demo-card,
  .contact-form-card,
  .policy-content {
    min-width: 0;
  }

  .footer-top,
  .footer-grid {
    gap: 28px;
  }

  .navlinks a,
  .header-nav a {
    white-space: normal;
  }
}

/* Tablet layouts. */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    margin-top: 24px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    gap: 12px;
  }

  .social-grid,
  .policy-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones and small tablets. */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 24px;
    padding: 58px 20px 42px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 52px) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere;
  }

  .hero-copy-viewport {
    width: 100%;
  }

  .hero-3p-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hero-3p-card {
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    min-height: clamp(300px, 88vw, 400px);
    overflow: hidden;
  }

  .binary-field {
    max-width: 100%;
  }

  .section,
  .download-section,
  .final-cta,
  .privacy-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-head h2,
  .privacy h2,
  .final-cta h2 {
    font-size: clamp(30px, 8vw, 42px) !important;
    overflow-wrap: anywhere;
  }

  .threat-grid,
  .three-p,
  .plan-grid.active,
  .business-plan.active,
  .checker,
  .final-cta,
  .grid-2,
  .ai-panel,
  .surface-grid,
  .surface-list,
  .steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-actions,
  .final-cta > div > div,
  .cta-inner {
    flex-wrap: wrap;
  }

  .hero-actions > .btn,
  .final-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
  }

  .hero-stats .stat {
    padding: 8px;
  }

  .service-grid,
  .industry-grid,
  .footer-top,
  .footer-grid,
  .social-grid,
  .policy-contact {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .footer-brand {
    grid-column: auto !important;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom span:last-child {
    text-align: left !important;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .form-row,
  .m-row,
  .m-row.two,
  .demo-card form {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .policy-nav {
    position: static;
  }

  .policy-nav a {
    margin-right: 10px;
  }

  .policy-content,
  .contact-form-card,
  .modal-card,
  .demo-card {
    padding: 24px 18px;
  }

  .faq-comparison-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .faq-comparison {
    min-width: 680px;
  }

  .thankBox {
    width: min(100%, 460px);
    max-width: 100%;
  }

  .side-rail {
    max-width: calc(50vw - 12px);
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 72px;
  }

  .container,
  .header-inner,
  .footer-wrap {
    width: calc(100% - 28px);
  }

  .topline {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: .06em;
  }

  .topline a {
    display: none;
  }

  .hero-grid {
    width: calc(100% - 32px);
    padding-top: 48px;
    padding-bottom: 82px;
  }

  .hero-stats {
    padding: 12px 6px;
  }

  .hero-stats .stat {
    border-right: 0;
  }

  .service-grid,
  .industry-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .attack-map {
    height: 360px;
  }

  .r1 {
    width: min(88vw, 340px);
    height: min(88vw, 340px);
  }

  .r2 {
    width: min(66vw, 260px);
    height: min(66vw, 260px);
  }

  .r3 {
    width: min(42vw, 180px);
    height: min(42vw, 180px);
  }

  .node {
    width: min(31vw, 108px);
    padding: 8px;
  }

  .hero-actions .btn,
  .btn-big {
    min-height: 48px;
    padding: 12px 15px;
    white-space: normal;
  }

  .side-rail {
    bottom: 8px;
    gap: 2px;
    padding: 4px;
  }

  .rail-link {
    width: 27px;
    height: 27px;
    padding: 5px;
  }

  .rail-link svg {
    width: 15px;
    height: 15px;
  }

  .thankBox {
    padding: 32px 20px;
  }

  .orderBox {
    font-size: 15px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 350px) {
  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 11px !important;
  }

  .side-rail {
    transform: scale(.92);
    transform-origin: bottom left;
  }

  .download-rail {
    transform-origin: bottom right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* The homepage partner form reuses the Contact page modal design. */
#modal-partner {
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 15, 27, .72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#modal-partner.open {
  display: flex;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#modal-partner .modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 22px 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 400;
}

#modal-partner .modal-card * {
  font-weight: 400;
}

#modal-partner .modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3f6;
  color: #0b1a26;
  font-size: 22px;
}

#modal-partner .modal-head {
  padding: 0 46px 12px;
  text-align: center;
}

#modal-partner .modal-head h2 {
  margin: 5px 0 6px;
  color: #0b1a26;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

#modal-partner .modal-head p {
  margin: 0 auto;
  color: #667a86;
  font-size: 13px;
  line-height: 1.4;
}

#partnerForm.m-form {
  display: grid;
  gap: 10px;
  margin: 0;
}

/* CSS display rules on the form must not override the native hidden state. */
#partnerForm[hidden] {
  display: none !important;
}

#partnerForm .m-row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#partnerForm label {
  display: block;
  color: #0b1a26;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .03em;
  font-family: Manrope, Arial, sans-serif;
}

#partnerForm .required-mark {
  color: #d92d20;
  font-weight: 400;
}

#partnerForm input,
#partnerForm select,
#partnerForm textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px 12px;
  border: 1px solid #d9e3e9;
  border-radius: 14px;
  background: #fff;
  color: #0b1a26;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

#partnerForm textarea {
  min-height: 66px;
  height: 66px;
  resize: none;
}

#partnerForm .m-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #176cff;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  font-family: Manrope, Arial, sans-serif;
}

#partnerForm .m-submit:disabled {
  cursor: wait;
  opacity: .6;
}

#partnerForm .partner-form-note {
  margin: 0;
  color: #667a86;
  font-size: 13px;
}

#partnerForm .partner-form-note.error {
  color: #b42318;
}

#partnerForm .partner-form-note.success {
  color: #138a5b;
}

#partnerSuccess[hidden] {
  display: none !important;
}

#partnerSuccess:not([hidden]) {
  display: block;
}

#partnerSuccess {
  padding: 30px 10px 10px;
  text-align: center;
}

#partnerSuccess .success-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #e9f7f2;
  color: #07976f;
  font-size: 26px;
  font-weight: 400;
}

#partnerSuccess h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
}

#partnerSuccess p {
  margin: 0;
  color: #667a86;
  font-size: 15px;
}

@media (max-width: 600px) {
  #modal-partner .modal-card {
    padding: 18px 16px;
  }

  #partnerForm .m-row.two {
    grid-template-columns: minmax(0, 1fr);
  }

  #modal-partner .modal-head {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-height: 700px) and (min-width: 601px) {
  #modal-partner .modal-card {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  #modal-partner .modal-head {
    padding-bottom: 8px;
  }

  #partnerForm.m-form {
    gap: 7px;
  }

  #partnerForm textarea {
    min-height: 52px;
    height: 52px;
  }
}
