/* Membership modal shown over the real homepage at "/".
   Every rule is scoped under .thm-overlay and uses thm- prefixed class names and
   --thm- custom properties, so nothing here can leak into the homepage's own
   styles.css. Values mirror membership.css so the approved design is identical. */
.thm-overlay{
  --thm-ink:#05070a;
  --thm-navy:#0d4c78;
  --thm-blue:#1398ff;
  --thm-lilac:#ceb8de;
  --thm-field:#f3f5f6;
  --thm-line:#cbd3d8;
  --thm-display:"Oswald",Arial,sans-serif;
  --thm-body:"Inter",Arial,sans-serif;
  position:fixed;
  inset:0;
  z-index:9998;
  display:flex;
  padding:22px 16px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  color:var(--thm-ink);
  background:rgba(4,7,11,.66);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  font:16px/1.6 var(--thm-body);
  text-align:left;
}
.thm-overlay[hidden]{display:none}

/* Locks homepage scrolling only while the modal is open; removed on dismissal. */
body.thm-open{overflow:hidden}

.thm-card{
  position:relative;
  width:100%;
  max-width:660px;
  margin:auto;
  padding:30px 32px 26px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  text-align:center;
  animation:thm-rise .3s ease-out both;
}
@keyframes thm-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.thm-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  color:#5b6770;
  background:var(--thm-field);
  border:1px solid #d9e0e5;
  border-radius:50%;
  font:400 21px/1 var(--thm-body);
  cursor:pointer;
  transition:.2s;
}
.thm-close:hover,.thm-close:focus-visible{color:#fff;background:var(--thm-ink);border-color:var(--thm-ink)}

.thm-logo{display:block;width:66px;height:66px;margin:2px auto 13px;object-fit:contain}
.thm-overlay .thm-title{
  margin:0;
  color:var(--thm-ink);
  font:600 clamp(25px,5.2vw,34px)/1.06 var(--thm-display);
  text-transform:uppercase;
  letter-spacing:-.02em;
}
.thm-overlay .thm-title em{color:var(--thm-blue);font-style:normal}
.thm-intro{
  max-width:470px;
  margin:9px auto 0;
  color:#59656e;
  font-size:13.5px;
  line-height:1.6;
}
.thm-intro strong{color:var(--thm-ink)}

/* "Membership is free" badge. */
.thm-badge{
  display:inline-block;
  margin:11px 0 0;
  padding:5px 13px;
  color:#0b4a75;
  background:rgba(19,152,255,.12);
  border:1px solid rgba(19,152,255,.38);
  border-radius:999px;
  font-size:9.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.13em;
}

/* Two-column "What members receive" / "How it works" area. */
.thm-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  overflow:hidden;
  margin:17px 0;
  background:#f8fafb;
  border:1px solid #e6ebef;
  border-radius:14px;
  text-align:left;
}
.thm-block{padding:15px 17px 16px}
.thm-block+.thm-block{border-left:1px solid #e6ebef}
.thm-block h3{
  margin:0 0 11px;
  color:var(--thm-navy);
  font:600 10px/1.3 var(--thm-display);
  text-transform:uppercase;
  letter-spacing:.13em;
  text-align:center;
}
.thm-block ol{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.thm-block li{display:grid;grid-template-columns:23px 1fr;gap:9px;align-items:start}
.thm-block b{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  color:var(--thm-ink);
  background:linear-gradient(140deg,var(--thm-blue),var(--thm-lilac));
  border-radius:50%;
  font:600 9px/1 var(--thm-display);
}
.thm-block strong{display:block;color:var(--thm-ink);font-size:12px;font-weight:700;line-height:1.35}
.thm-block span{display:block;margin-top:2px;color:#5c6871;font-size:11.5px;line-height:1.45}

/* Form */
.thm-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left}
.thm-form label{
  display:block;
  color:#59656e;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.thm-form input[type=text],.thm-form input[type=email]{
  width:100%;
  margin-top:6px;
  padding:12px;
  color:var(--thm-ink);
  background:var(--thm-field);
  border:1px solid var(--thm-line);
  border-radius:10px;
  font:14px var(--thm-body);
}
.thm-form input::placeholder{color:#8b969e}
.thm-form input:focus-visible{outline:2px solid var(--thm-blue);outline-offset:1px;border-color:var(--thm-blue)}
.thm-form label.thm-consent{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:11px 13px;
  background:rgba(206,184,222,.18);
  border:1px solid rgba(147,108,183,.38);
  border-radius:12px;
}
.thm-consent input{flex:0 0 18px;width:18px;height:18px;margin:1px 0 0;accent-color:var(--thm-blue)}
.thm-consent span{color:#3d4852;font:400 12px/1.5 var(--thm-body);text-transform:none;letter-spacing:0}
.thm-overlay .thm-btn{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 26px;
  color:var(--thm-ink);
  background:var(--thm-blue);
  border:1px solid var(--thm-blue);
  border-radius:999px;
  font:700 12px var(--thm-body);
  text-transform:uppercase;
  letter-spacing:.07em;
  text-decoration:none;
  cursor:pointer;
  transition:.22s;
}
.thm-overlay .thm-btn:hover,.thm-overlay .thm-btn:focus-visible{color:#fff;background:var(--thm-navy);border-color:var(--thm-navy)}
.thm-form .thm-btn{grid-column:1/-1;width:100%}
.thm-note{grid-column:1/-1;margin:0;color:#77838b;font-size:10.5px;line-height:1.5;text-align:center}
.thm-error{grid-column:1/-1;margin:0;color:#9c1f1c;font-size:12px;font-weight:700;text-align:center}
.thm-hp{display:none}

/* SAVE150 success state, shown inside the same card. */
.thm-card:focus,.thm-panel:focus{outline:none}
.thm-tag{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 0 12px;
  color:var(--thm-navy);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.16em;
}
.thm-tag span{width:26px;height:2px;background:currentColor}
.thm-chip{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin:15px 0 4px;
  padding:11px 20px;
  background:var(--thm-field);
  border:1px dashed #936cb7;
  border-radius:12px;
}
.thm-chip small{color:var(--thm-navy);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.14em}
.thm-chip b{color:var(--thm-ink);font:600 25px/1 var(--thm-display);letter-spacing:.12em}
.thm-actions{margin-top:17px}
.thm-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  margin:15px 0 0;
  padding:0;
  list-style:none;
}
.thm-links a{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:0 14px;
  color:var(--thm-navy);
  background:var(--thm-field);
  border:1px solid var(--thm-line);
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
  text-decoration:none;
  transition:.2s;
}
.thm-links a:hover,.thm-links a:focus-visible{color:#fff;background:var(--thm-navy);border-color:var(--thm-navy)}

@media(max-width:560px){
  .thm-overlay{padding:14px 12px}
  .thm-card{padding:24px 20px 22px;border-radius:16px}
  .thm-logo{width:58px;height:58px}
  .thm-info{grid-template-columns:1fr;margin:15px 0}
  .thm-block+.thm-block{border-left:0;border-top:1px solid #e6ebef}
  .thm-form{grid-template-columns:1fr}
  .thm-chip{width:100%;justify-content:center;gap:8px;padding:10px 12px}
  .thm-chip b{font-size:22px}
  .thm-links a{width:100%;justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .thm-card{animation:none}
  .thm-overlay *{transition:none!important}
}
