/* =========================
   SCA Portal (clean build)
   ========================= */

.sca-portal{
  --card-bg: #ffffff;
  --navy: #1c2b4a;
  --navy-soft: #22345a;
  --text: #1b2130;
  --muted: #6c7485;
  --radius-lg: 18px;
  --hero-bg: #253551;

  /* Full-width light background behind cards */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 55%), #F5F6FA;

  /* Base readable type */
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.75;
  color: var(--text);
}

.sca-portal *{ box-sizing: border-box; }

/* ---------- Containers ---------- */
.sca-portal .hero-inner,
.sca-portal .page{
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px){
  .sca-portal .hero-inner,
  .sca-portal .page{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- Hero band (full width) ---------- */
.sca-portal .hero-band{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--hero-bg);
  color: #fff;
  padding: 84px 0;
}

.sca-portal .hero{
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 2.2fr);
  gap: 40px;
  align-items: center;
}

.sca-portal .hero-title{
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  font-size: clamp(36px, 5vw, 70px);
}

.sca-portal .hero-subtitle{
  margin: 0 0 24px;
  color: rgba(255,255,255,0.78);
  max-width: 44rem;
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.7;
}

.sca-portal .hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hide hero buttons on mobile (as requested) */
@media (max-width: 820px){
  .sca-portal .hero-actions{ display: none; }
}

/* Mobile hero layout: quick start BELOW text + centered, tighter spacing */
@media (max-width: 820px){
  .sca-portal .hero{
    grid-template-columns: 1fr;
    gap: 12px;              /* spacing between text block and quick start */
  }
}

/* ---------- Buttons (base) ---------- */
.sca-portal .btn{
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.sca-portal .btn .fa-arrow-right{ margin-left: 2px; }

/* Hero buttons */
.sca-portal .hero .btn-primary{
  background: #ffffff;
  color: var(--hero-bg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.sca-portal .hero .btn-primary:hover{
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.sca-portal .hero .btn-secondary{
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}
.sca-portal .hero .btn-secondary:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

/* Card buttons (filled like the original) */
.sca-portal .btn-card-primary{
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.25);
}
.sca-portal .btn-card-primary:hover{
  background: var(--navy-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.28);
}

/* ---------- Cards + headings ---------- */
.sca-portal .page{
  padding-top: 44px;
  padding-bottom: 56px;
}
.sca-portal .page section + section{ margin-top: 56px; }

.sca-portal .section-heading{
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  font-size: 26px;
  position: relative;
  padding-bottom: 10px;
}
.sca-portal .section-heading::after{
  content:"";
  display:block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #d6dde9;
  margin-top: 10px;
}

.sca-portal .card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 900px){
  .sca-portal .card-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .sca-portal .card-grid{ grid-template-columns: 1fr; }
}

.sca-portal .card{
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
@media (max-width: 640px){
  .sca-portal .card{ min-height: 290px; }
}

.sca-portal .card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
  border-color: rgba(37,99,235,0.45);
}

.sca-portal .card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,0.16);
}

.sca-portal .card-title{
  margin: 0;
  color: var(--navy);
  font-weight: 750;
  font-size: 1.15rem;
  line-height: 1.18;
}

.sca-portal .card-icon{
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(30,64,175,0.07);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 22px;
  transform: translateY(1px);
}

.sca-portal .card-body{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.sca-portal .card-footer{ margin-top: 10px; }

/* ---------- Quick Start (hero right card) ---------- */
.sca-portal .hero-ill-wrapper{
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 820px){
  .sca-portal .hero-ill-wrapper{
    width: 100%;
    justify-content: center;
    order: 2;
  }
}

.sca-portal .hero-ill{
  width: 320px;
  max-width: 100%;
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.20);
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px){
  .sca-portal .hero-ill{
    width: 100%;
    max-width: none;
    margin-top: 6px; /* less gap */
  }
}

.sca-portal .hero-ill::before{
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 60%);
  opacity: 0.35;
}

.sca-portal .hero-ill-inner{
  position: relative;
}

/* IMPORTANT: these are AFTER the base card styles so they DON'T get overridden */
.sca-portal .card-head--hero{
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.sca-portal .card-title--hero{
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}
.sca-portal .card-icon--hero{
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.sca-portal .hero-ill-text--hero{
  max-width: 18rem;
  color: rgba(255,255,255,0.75);
  margin: 14px 0 0;
  line-height: 1.55;
}

.sca-portal .hero-quick-links{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.sca-portal .hero-quick-btn{
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 450;
  gap: 10px;
}
.sca-portal .hero-quick-btn i{
  font-size: 0.95em;
  opacity: 0.95;
}
/* HERO left column spacing (Title -> Subtitle -> Buttons) */
.sca-portal .hero > div:first-child .hero-title{
  margin: 0 0 44px !important;   /* space under title */
}

.sca-portal .hero > div:first-child .hero-subtitle{
  margin: 0 0 28px !important;   /* space under subtitle */
}

.sca-portal .hero > div:first-child .hero-actions{
  margin: 0 !important;          /* remove any theme margin */
  gap: 14px !important;
}
/* Mobile: center the hero text block (H1 + subtitle) */
@media (max-width: 820px){
  .sca-portal .hero > div:first-child{
    text-align: center !important;
    margin: 0 auto !important;
  }

  .sca-portal .hero-subtitle{
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Mobile: center ONLY the H1, keep the paragraph left-aligned in a centered container */
@media (max-width: 820px){

  /* Center the whole hero text block as a block (equal space left/right) */
  .sca-portal .hero > div:first-child{
    max-width: 560px;                 /* controls how "wide" the text column feels */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Center only the H1 */
  .sca-portal .hero-title{
    text-align: center !important;
  }

  /* Keep the subtitle (and anything else) left aligned */
  .sca-portal .hero-subtitle{
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 820px){
  .sca-portal .hero-subtitle{
    padding-left: 15px;
    padding-right: 15px;
  }
}
@media (max-width: 640px){
  .sca-portal .hero-title{
    font-size: clamp(40px, 9vw, 50px) !important;
  }
  .sca-portal .hero-band{
    padding: 56px 0 !important;
  }
}
/* ================================
   HERO LOOK: Vibrant (blue/purple glow)
   ================================ */

.sca-portal{
  --hero-bg: #253551;          /* main hero colour */
  --hero-glow-1: #4f7cff;      /* blue glow */
  --hero-glow-2: #7c4dff;      /* purple glow */
}

/* Base hero colour stays strong */
.sca-portal .hero-band{
  background: var(--hero-bg) !important;
  position: relative;
  overflow: hidden;
}

/* ===== HERO: subtle single centred bloom (no wash) ===== */
.sca-portal .hero-band{
  background: var(--hero-bg) !important; /* keep your solid colour */
  position: relative;
  overflow: hidden;
}

/* ONE bloom only */
.sca-portal .hero-band::before{
  content:"";
  position: absolute;
  inset: -120px;
  background: radial-gradient(
    circle at 80% 45%,              /* right side */
    rgba(79,124,255,0.16) 0%,       /* soft blue glow */
    rgba(79,124,255,0.08) 22%,
    rgba(79,124,255,0.00) 55%
  );
  pointer-events: none;
  opacity: 1;
}
/* Mobile: move the bloom to center and lower (behind Quick Start when it stacks) */
@media (max-width: 820px){
  .sca-portal .hero-band::before{
    background: radial-gradient(
      circle at 50% 80%,            /* centered + bottom half */
      rgba(79,124,255,0.16) 0%,
      rgba(79,124,255,0.08) 22%,
      rgba(79,124,255,0.00) 55%
    ) !important;
  }
}


/* keep content above bloom */
.sca-portal .hero-inner{ position: relative; }

/* quick start card stays crisp */
.sca-portal .hero-ill{
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}
/* Make hero H1 match Squarespace-style spacing */
.sca-portal .hero-title{
  letter-spacing: normal !important;   /* or 0 */
}  
.sca-portal .page{
  padding-bottom: 96px !important; /* was ~56px */
}
/* Extends the light background further down */
.sca-portal .portal-bg-tail{
  height: 140px; /* adjust: 80–220 */
}
/* ================================
   Simple frosted-glass (Quick Start card + buttons)
   ================================ */

/* Frosted glass card */
.sca-portal .hero-ill{
  background: rgba(255,255,255,0.10) !important;          /* translucent */
  border: 1px solid rgba(255,255,255,0.18) !important;    /* soft rim */
  box-shadow: 0 18px 50px rgba(0,0,0,0.22) !important;    /* lift */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Frosted glass buttons inside that card */
.sca-portal .hero-ill a.btn.hero-quick-btn{
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: #ffffff !important;

  box-shadow: 0 10px 26px rgba(0,0,0,0.16) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

/* Hover: slightly brighter + gentle lift */
.sca-portal .hero-ill a.btn.hero-quick-btn:hover{
  background: rgba(255,255,255,0.14) !important;
  border-color: rgba(255,255,255,0.32) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.20) !important;
}

/* Press */
.sca-portal .hero-ill a.btn.hero-quick-btn:active{
  transform: translateY(-1px);
}
/* ================================
   Subtle glass sheen overlay (card + buttons)
   ================================ */

/* Make sure overlays sit correctly */
.sca-portal .hero-ill,
.sca-portal .hero-ill a.btn.hero-quick-btn{
  position: relative;
  overflow: hidden;
}

/* Sheen on the Quick Start card */
.sca-portal .hero-ill::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.16) 0%,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.00) 60%
  );
  opacity: 0.45;          /* keep subtle */
  pointer-events:none;
}

/* Extra subtle vignette depth (barely there) */
.sca-portal .hero-ill::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.10), transparent 55%);
  opacity: 0.30;
  pointer-events:none;
}

/* Sheen on the buttons */
.sca-portal .hero-ill a.btn.hero-quick-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.05) 32%,
    rgba(255,255,255,0.00) 70%
  );
  opacity: 0.35;
  pointer-events:none;
}

/* Slightly stronger sheen on hover (still subtle) */
.sca-portal .hero-ill a.btn.hero-quick-btn:hover::after{
  opacity: 0.62;
}

/* =========================================
   Desktop-only bloom locked behind Quick Start
   (mobile bloom unchanged)
   ========================================= */

/* DESKTOP: disable the old percentage-based bloom */
@media (min-width: 821px){
  .sca-portal .hero-band::before{
    content: none !important;
  }

  /* Anchor bloom to the Quick Start column */
  .sca-portal .hero-ill-wrapper{
    position: relative;
  }

  /* The bloom itself (moves with the card because it's attached to it) */
  .sca-portal .hero-ill-wrapper::before{
    content:"";
    position: absolute;

    /* Fixed pixel placement behind the card */
    width: 1100px;
    height: 1100px;

    right: -420px;  /* tweak */
    top: -420px;    /* tweak */

    background: radial-gradient(
      circle,
      rgba(79,124,255,0.16) 0%,
      rgba(79,124,255,0.08) 22%,
      rgba(79,124,255,0.00) 55%
    );

    pointer-events: none;
    z-index: 0;
  }

  /* Ensure the card is above the bloom */
  .sca-portal .hero-ill{
    position: relative;
    z-index: 1;
  }
}

/* =========================================
   Liquid-ish glass layers for .hero-ill
   (no hue shift, minimal tint)
   ========================================= */

.sca-portal .hero-ill{
  position: relative;
  overflow: hidden;
}

/* hidden svg */
.sca-portal .hero-ill .lg-svg{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* layer 1: distortion */
.sca-portal .hero-ill .lg-filter{
  position: absolute;
  inset: 0;
  z-index: 0;

  /* IMPORTANT:
     This distorts the layer itself (approximation).
     Keep it subtle, otherwise it looks like "wobble" not "refraction". */
  filter: url(#sca-lg-dist);
  opacity: 0.9;

  /* helps blend nicely */
  isolation: isolate;
  pointer-events: none;
}

/* layer 2: neutral glass tint (keep your hero color stable) */
.sca-portal .hero-ill .lg-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,0.0); /* tweak 0.06–0.12 */
  pointer-events: none;
}

/* layer 3: specular rim (this is the “bubble edge” cue) */
.sca-portal .hero-ill .lg-specular{
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  
  opacity: 0.6; /* try 0.25–0.85 */


  /* rim + inner sparkle */
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.55),
    inset 0 0 10px rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.16);
}

/* keep your actual content above */
.sca-portal .hero-ill .hero-ill-inner{
  position: relative;
  z-index: 3;
}


/* ======================================================
   PORTAL BADGE — Single colour (bright blue) + frosted
   ====================================================== */

.sca-portal .card{ position: relative; overflow: visible; }

.sca-portal .portal-badge{
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(18px, -18px);
  z-index: 60;

  padding: 9px 13px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #fff;
  border: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;

  /* transparency + frost */
  --alpha: 0.75;   /* tweak: 0.75–0.92 */
  --frost: 1px;   /* tweak: 8–16px */

  /* bright blue */
  background: rgba(29,78,216,var(--alpha));

  backdrop-filter: blur(var(--frost)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--frost)) saturate(135%);

  box-shadow:
    0 12px 26px rgba(15,23,42,0.18),
    0 10px 22px rgba(29,78,216,0.22),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.22);

  outline: 1px solid rgba(255,255,255,0.10);
  outline-offset: -1px;
}

/* soft highlight */
.sca-portal .portal-badge::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.00) 70%
  );
  opacity: 0.75;
}
