/*--------------------------------------------------------------
# Scorpion – not-alone-legal-insurance landing page + Thank-you page
# Breakpoints: mobile < 768px | tablet 768–991px | desktop ≥ 992px
--------------------------------------------------------------*/

:root {
  --red: #D0202D;
  --red-dark: #A8141F;
  --ink: #111111;
  --body: #222222;
  --muted: #6B6B6B;
  --line: #DADADA;
  --grey-hero: #E4E4E4;
  --grey-section: #ECECEC;
  --tag-off: #D4D4D4;
  --white: #FFFFFF;
  --black: #000000;
  --radius: 4px;
  --gutter: 20px;
  --font: "Poppins", "Open Sans", Arial, sans-serif;
  --sticky-h: 0px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--sticky-h);
}

h1, h2, h3, h4, p { margin: 0; }

a { color: var(--red); }
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; display: block; }

.text-red { color: var(--red); }

.lp-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-red,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-red:hover,
.btn-red:focus { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover,
.btn-outline:focus { background: var(--ink); color: var(--white); }

.btn-block { display: flex; width: 100%; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--red);
  padding: 10px 0;
}
.site-header .header-inner { width: 100%; padding: 0 18px; }
.site-header .logo { display: inline-block; }
.site-header .logo img { width: 104px; height: auto; } /* horizontal logo on mobile */

/*--------------------------------------------------------------
# Hero + form
--------------------------------------------------------------*/
.hero { padding: 24px 0 0; }

.hero-inner {
  display: flex;
  flex-direction: column;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-form-col { padding: 0 var(--gutter); scroll-margin-top: 12px; }

.hero-title {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.form-box {
  background: var(--grey-hero);
  padding: 22px 18px 20px;
  border-radius: 2px;
}
.form-box-error { box-shadow: inset 0 0 0 2px var(--red);     padding: 16px !important; }

.form-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.2;
  margin-bottom: 6px;
}

.form-intro { font-size: 14px; margin-bottom: 14px; color: var(--ink); }

.form-label-lp {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin: 10px 0 5px;
}

.lp-input,
.form-box .form-control {
  width: 100%;
  height: 44px;
  border: 1px solid #C9C9C9;
  border-radius: var(--radius);
  background: var(--white);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  color: var(--ink);
  box-shadow: none;
}
.lp-input:focus,
.form-box .form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 32, 45, .18);
}

.form-box .btn-red { margin-top: 20px; font-size: 14px; min-height: 46px; }

.disclaimer-text {
  font-size: 11px;
  line-height: 1.45;
  color: #444;
  text-align: center;
  margin-top: 12px;
}
.disclaimer-text a { color: inherit; text-decoration: underline; }

.error_header span,
.success_header span { display: block; font-weight: 700; color: var(--red); margin: 6px 0; }
.error_message span { display: block; color: var(--red); font-size: 14px; margin-top: 10px; }
.success_message span { display: block; font-size: 14px; }

.hero-img-col { padding: 22px var(--gutter) 0; }
.hero-img { width: 100%; height: auto; }

/*--------------------------------------------------------------
# Generic sections
--------------------------------------------------------------*/
.section { padding: 32px 0; }
.section-white { background: var(--white); }
.section-grey { background: var(--grey-section); }

.section-heading {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-intro { font-size: 14px; color: var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  flex: none;
}

/*--------------------------------------------------------------
# Your rights
--------------------------------------------------------------*/
.rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 24px;
}

.right-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.right-icon { width: 24px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.right-icon img { width: auto; height: auto; max-width: 24px; }
.right-item h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.right-item p { font-size: 14px; color: var(--ink); padding-left: 32px; }

/*--------------------------------------------------------------
# How it works
--------------------------------------------------------------*/
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }

.step {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 16px 16px 16px 18px;
}
.step h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; display: flex; gap: 12px; }
.step-num { color: var(--red); min-width: 10px; }
.step p { font-size: 14px; color: var(--ink); padding-left: 22px; }

/*--------------------------------------------------------------
# Membership plans
--------------------------------------------------------------*/
.swipe-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.swipe-hint i { font-size: 16px; color: var(--red); }

/* Mobile: horizontal swipe carousel */
.plans-scroller {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 18px;
  padding: 4px 0 8px;
}
.plans-scroller::-webkit-scrollbar { display: none; }

.plans-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 300px);
  grid-template-rows: repeat(6, auto);
  column-gap: 14px;
  row-gap: 22px;
  padding: 0 var(--gutter);
  width: max-content;
}

.plan-card {
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
}
/* Selected plan (Policy B on load; moves to whichever card is clicked/tapped).
   Outline drawn with a shadow so the border width stays the same as the other cards. */
.plan-card { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.plan-card.is-featured { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* Fallback for older browsers: reserve two lines for the tags */
.plan-tags { min-height: 42px; align-content: flex-start; }

@supports (grid-template-rows: subgrid) {
  .plan-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .plan-tags { min-height: 0; }
  .plan-card > .btn-red,
  .plan-card > .btn-outline { align-self: end; }
}

.plan-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.plan-price { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-top: 2px; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-limit { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 8px; }

.plan-tags { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--tag-off);
  color: var(--white);
}
.tag.on { background: var(--red); }

.plan-features { list-style: none; padding: 0; margin: 18px 0 20px; flex: 1 1 auto; align-self: start; }
.plan-features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
  padding: 10px 0;
}
.plan-features li + li { border-top: 1px solid #F0F0F0; }
.plan-features i { font-size: 12px; color: var(--red); flex: none; width: 14px; margin-top: 3px; }

.plan-card .btn-red,
.plan-card .btn-outline { width: 100%; }

/*--------------------------------------------------------------
# Stats
--------------------------------------------------------------*/
.stats { background: var(--red); color: var(--white); padding: 30px 0 24px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.stat-num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.3; margin-top: 6px; max-width: 160px; }
.stats-note { font-size: 12px; font-style: italic; margin-top: 18px; }

/*--------------------------------------------------------------
# Testimonial
--------------------------------------------------------------*/
.testimonial {
  margin: 0;
  padding: 2px 0 2px 22px;
  border-left: 6px solid var(--red);
  border-radius: 3px;
}
.testimonial p { font-size: 15px; font-weight: 600; font-style: italic; color: var(--ink); line-height: 1.35; }
.testimonial footer { margin-top: 12px; font-size: 12px; }
.testimonial footer strong { display: block; font-style: italic; color: var(--ink); }
.testimonial footer span { color: var(--muted); }

/*--------------------------------------------------------------
# Closing CTA
--------------------------------------------------------------*/
.cta p { font-size: 14px; color: var(--ink); }
.cta .btn-cta { display: flex; width: fit-content; min-width: 200px; margin: 20px auto 0; } /* centred at every width */

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer { background: var(--black); color: var(--white); padding: 22px 0 26px; }

.footer-top-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #555;
}
.footer-logo img { width: 104px; height: auto; } /* horizontal logo on mobile */

#footer .footer-top .social-links { display: flex; flex-wrap: wrap; gap: 8px; }

#footer .footer-top .social-links a {
  font-size: 30px;
  display: inline-block;
  background: #fff;
  color: #000000;
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 46px;
  height: 46px;
  transition: 0.3s;
}

#footer .footer-top .social-links a:hover {
  background: #ffffff98;
  color: #000000;
  text-decoration: none;
}

#footer .social-links a.livechat,
#footer .social-links a.livechat:hover {
  background-image: url(../../../../images/scorpibot-icon.png);
  background-repeat: no-repeat;
  background-size: 98%;
  background-position: 1px 1px;
}

#footer .social-links a.livechat .bxl-messenger:before,
#footer .social-links a.livechat .bxs-message-detail:before {
  opacity: 0;
}

.copyright { font-size: 10px; line-height: 1.5; text-align: center; margin-top: 16px; color: #EDEDED; }

/*--------------------------------------------------------------
# Sticky CTA bar (mobile + tablet only)
--------------------------------------------------------------*/
.has-sticky-cta { --sticky-h: 64px; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--black);
  color: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .18);
}
.sticky-cta-text { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-from { font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--white); opacity: .8; }
.sticky-cta-text strong { font-size: 14px; color: var(--white); }
.sticky-cta .btn-red { min-height: 40px; padding: 8px 22px; }

/*--------------------------------------------------------------
# Thank-you page
--------------------------------------------------------------*/
.thanks { padding: 36px 0 40px; }

.thanks-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.thanks-lead,
.thanks-more { font-size: 16px; color: var(--ink); }
.thanks-more { margin-top: 18px; text-align: center; }
.thanks a { font-weight: 700; }
.thanks-more a,
.thanks-links span { text-decoration: underline; text-underline-offset: 2px; }

.thanks-links {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.thanks-links a { display: flex; align-items: center; gap: 30px; color: var(--red); text-decoration: none; font-size: 16px; }
.thanks-links img { width: 70px; height: 55px; object-fit: cover; border-radius: 4px; flex: none; }

.thanks-error { text-align: center; }
.thanks-error .thanks_box_icon { width: 70px; margin: 0 auto 16px; }
.thanks-error .btn-cta { margin-top: 22px; min-width: 200px; }

/*==============================================================
# Tablet ≥ 768px
==============================================================*/
@media (min-width: 768px) {
  :root { --gutter: 40px; }

  body { font-size: 15px; }

  .site-header { padding: 14px 0; }
  .site-header .header-inner { padding: 0 28px; }
  .site-header .logo img { width: 62px; }

  .hero { padding-top: 34px; }
  .hero-title { font-size: 38px; }
  .form-box { padding: 26px 24px 22px; }

  .hero-img-col { padding-top: 30px; }

  .section { padding: 44px 0; }
  .section-heading { font-size: 26px; }

  .rights-grid { grid-template-columns: 1fr 1fr; gap: 26px 40px; }

  /* Tablet: 2 × 2 plan grid – order Platinum, A / B, C */
  .plans-scroller { overflow: visible; padding: 0; margin-top: 26px; }
  .plans-grid {
    width: auto;
    max-width: 1320px;
    margin: 0 auto;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    column-gap: 22px;
  }
  .swipe-hint { display: none; }

  .stats { padding: 40px 0 30px; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 13px; max-width: none; }

  .testimonial { padding-left: 34px; margin-left: 20px; }
  .testimonial p { font-size: 20px; }
  .testimonial footer { font-size: 14px; }

  .cta { text-align: center; }

  .footer-top-row { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-logo img { width: 72px; }
  #footer .footer-top .social-links { gap: 15px; }
  #footer .footer-top .social-links a { font-size: 34px; width: 50px; height: 50px; }
  .copyright { font-size: 12px; }

  .thanks { padding: 50px 0 50px; }
  .thanks-title { font-size: 32px; max-width: 620px; }
  .thanks-links { flex-direction: row; justify-content: space-between; gap: 16px; margin-top: 28px; }
  .thanks-links a { gap: 12px; font-size: 15px; }
  .thanks-links img { width: 58px; height: 46px; }
}

/*==============================================================
# Desktop ≥ 992px
==============================================================*/
@media (min-width: 992px) {
  :root { --gutter: 60px; }

  /* No sticky bar on desktop */
  .has-sticky-cta { --sticky-h: 0px; }
  .sticky-cta { display: none; }

  .site-header { padding: 20px 0; }
  .site-header .header-inner { padding: 0 36px; }
  .site-header .logo img { width: 72px; }

  /* Hero: image left, grey form panel right */
  .hero { padding: 56px 0 0; }
  .hero-inner { flex-direction: row; align-items: stretch; max-width: none; }
  .hero-img-col { order: 1; flex: 0 0 45%; padding: 0; display: flex; align-items: center; background-color: #e4e4e4; }
  .hero-form-col {
    order: 2;
    flex: 1 1 55%;
    background: var(--grey-hero);
    padding: 60px var(--gutter) 40px 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-form-col form { max-width: 680px; }
  .hero-title { font-size: 32px; margin-bottom: 4px; }
  .form-box { padding: 0; background: transparent; }
  .form-title { font-size: 26px; margin-bottom: 18px; }

  .section { padding: 64px 0; }
  .section-heading { font-size: 30px; }
  .section-intro { font-size: 15px; }

  #rights .section-heading { margin-bottom: 10px; }
  .rights-grid { grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 44px; }

  #how-it-works .section-heading { margin-bottom: 26px; }
  .step { padding: 20px 26px; }

  /* Desktop: 4 plans in a row – order Platinum, B, A, C */
  .plans-grid { grid-template-columns: repeat(4, 1fr); padding: 0 var(--gutter); }
  .plan-platinum { order: 1; }
  .plan-b { order: 2; }
  .plan-a { order: 3; }
  .plan-c { order: 4; }
  .plan-card { padding: 22px 20px 20px; }
  .plan-price { font-size: 38px; }

  .stats { padding: 48px 0 32px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 60px; }
  .stat-num { font-size: 40px; }
  .stats-note { padding-left: 64px; }

  #testimonial { padding: 70px 0; }
  .testimonial { margin-left: 110px; max-width: 1060px; }
  .testimonial p { font-size: 26px; }
  .testimonial footer { font-size: 17px; }

  .cta p { font-size: 15px; max-width: 560px; margin: 0 auto; }

  .site-footer { padding: 30px 0 34px; }

  /* Thank-you page */
  .thanks { padding: 110px 0 80px; text-align: center; }
  .thanks-title { font-size: 44px; max-width: 760px; margin: 0 auto 36px; }
  .thanks-lead, .thanks-more { font-size: 18px; }
  .thanks-links { justify-content: center; gap: 120px; margin-top: 56px; }
  .thanks-links a { gap: 30px; font-size: 18px; }
  .thanks-links img { width: 70px; height: 55px; }
  .thanks-page .stats-grid { padding: 0 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
