/* Loaded after main.css and future-gen.css on every page: mobile layout fixes, the contact
   details, and a scroll reveal that cannot leave a page blank. */

/* Long button labels wrapped off the right edge of narrow phones instead of onto a second line. */
.btn{white-space:normal;max-width:100%;text-align:center}
@media (max-width:600px){
  .hero-ctas{flex-direction:column;align-items:stretch}
  .hero-ctas .btn{width:100%;justify-content:center}
  .foot-cta{padding:28px 22px}
  .foot-cta .hero-ctas{justify-content:stretch}
  #btn-start-migration{width:100%;padding:14px 20px !important}
  .mobile-menu-cta .btn{text-align:center}
}

/* The home hero's copy sat against the left edge of wide screens; line it up with the header instead. */
.vx-hero .hero-center{margin-left:max(0px,calc((100% - var(--wrap)) / 2)) !important}

/* Grids with a fixed minimum column pushed the page sideways on phones narrower than the minimum. */
.services-cards{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))}
.steps{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}

/* Content stays visible unless the reveal script is there to bring it in. */
html:not(.js) .ng-reveal{opacity:1 !important;transform:none !important}

/* Jumps to a module or a contact anchor land below the sticky header, not under it. */
[id]{scroll-margin-top:96px}

/* The header logo is the company banner, waves and all: keep its height and let the width follow. */
.brand-logo-img,.site-header .brand img{height:68px !important;width:auto !important;max-width:none !important;border-radius:10px !important;filter:none !important}
@media (max-width:768px){.brand-logo-img,.site-header .brand img{height:56px !important}}
/* The footer logo is the square company logo, as supplied. */
.foot-logo-img{width:170px !important;height:auto !important;max-height:none !important;max-width:170px !important;aspect-ratio:auto !important;border-radius:12px !important}

/* Footer contact column */
.foot-contact address{font-style:normal;display:grid;gap:10px;line-height:1.5}
.foot-contact a{overflow-wrap:break-word}
@media (max-width:900px){.foot-contact{grid-column:1/-1}}
/* The outline button was royal blue on the navy band, too dark to read. */
.foot-cta .btn-outline{color:#fff !important;border-color:rgba(255,255,255,.65) !important;background:transparent !important}
.foot-cta .btn-outline:hover{background:rgba(255,255,255,.1) !important}
.foot-socials{display:flex;gap:10px}
.foot-social-link.wa:hover{color:#25D366}

/* Contact page */
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.contact-card{display:flex;flex-direction:column;gap:8px;padding:26px 24px;background:#fff;border:1px solid var(--line,#E2E8F0);border-radius:18px;
  box-shadow:0 10px 30px -18px rgba(15,47,95,.35);text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}
.contact-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px -18px rgba(15,47,95,.45)}
.contact-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:rgba(21,84,201,.08);color:var(--scored-royal,#1554C9)}
.contact-label{font-weight:700;color:var(--navy,#0B2545);font-size:1.05rem}
.contact-value{color:var(--muted,#475569);line-height:1.55;overflow-wrap:anywhere}
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:32px}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:600px){.contact-actions{flex-direction:column}.contact-actions .btn{width:100%;justify-content:center}}

/* Hero: warm white type with a soft warm glow, so the words lift off the video and the navy. */
.vx-hero,.page-hero{--warm-white:#FFF7E8}
.vx-hero h1,.page-hero h1{color:var(--warm-white) !important;
  text-shadow:0 0 28px rgba(255,236,204,.5),0 0 3px rgba(255,247,232,.6),0 3px 14px rgba(6,22,52,.55) !important}
.vx-hero .lede,.page-hero .lede,.vx-hero .hero-points li,.page-hero .crumbs span{color:rgba(255,247,232,.94) !important;
  text-shadow:0 0 14px rgba(255,236,204,.28),0 2px 8px rgba(6,22,52,.5) !important}
.vx-hero .hl,.page-hero .hl{text-shadow:0 0 24px rgba(255,214,150,.5),0 3px 14px rgba(6,22,52,.5) !important}

/* Hero: the blue waves and gold line of the company banner, flowing into the section below. */
.hero-wave{position:absolute;left:0;right:0;bottom:-1px;height:clamp(56px,9vw,132px);z-index:0;pointer-events:none;line-height:0}
.hero-wave svg{display:block;width:100%;height:100%}
.vx-hero .hero-center{padding-bottom:calc(clamp(52px,6.5vw,92px) + clamp(40px,7vw,104px)) !important}
.page-hero{padding-bottom:calc(clamp(56px,7vw,88px) + clamp(36px,6vw,90px)) !important}
.vx-hero .wrap,.page-hero .wrap{position:relative;z-index:1}

/* Phones: in the attendance feed mock-up a wrapped name ran into the class beside it. Stack them instead. */
@media (max-width:600px){
  .bio-user-cell > div{font-size:0;line-height:1.25}
  .bio-user-cell > div b{display:block;font-size:.82rem}
  .bio-user-cell > div small{display:block;font-size:.72rem;margin-top:2px}
}

/* Phones: the floating contact button must not sit on the footer's last line. */
@media (max-width:768px){footer{padding-bottom:96px}}

/* Sideways-scrolling tab bars on phones: fade hint at the edge so users know it scrolls */
@media (max-width:768px){
  .feat-tabs-wrap{
    justify-content: flex-start !important;
    padding-right: 28px !important;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 44px), transparent 100%);
  }
  .org-filter-nav{
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 44px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 44px), transparent 100%);
  }
}

/* Header Login */
.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--scored-navy, #0F2E5C);
  background: transparent;
  border: 1.5px solid rgba(15, 46, 92, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-login:hover {
  border-color: var(--scored-royal, #1554C9);
  color: var(--scored-royal, #1554C9);
  background: rgba(21, 84, 201, 0.05);
}
@media (max-width: 540px) {
  .nav-actions .btn-login {
    display: none !important;
  }
}

/* Institutional Login Modal */
dialog.scored-login-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 46, 92, 0.35);
  max-width: 500px;
  width: calc(100% - 32px);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 10000;
}
dialog.scored-login-modal::backdrop {
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.login-modal-box {
  padding: clamp(20px, 4vw, 32px);
}
.login-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-logo {
  height: 38px;
  width: auto;
  border-radius: 6px;
}
.login-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.login-modal-close:hover {
  color: var(--scored-navy, #0F2E5C);
}
.login-modal-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--scored-navy, #0F2E5C);
  margin: 0 0 6px;
}
.login-modal-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 20px;
}
.login-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--scored-navy, #0F2E5C);
  margin-bottom: 6px;
}
.login-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  background: #f8fafc;
  margin-bottom: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input-wrap:focus-within {
  border-color: var(--scored-royal, #1554C9);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(21, 84, 201, 0.15);
}
.login-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 0.95rem;
  outline: none;
  color: var(--scored-navy, #0F2E5C);
}
.domain-suffix {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.login-roles-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-roles-divider::before,
.login-roles-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.login-roles-divider span {
  padding: 0 12px;
}
.login-role-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.login-role-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}
.login-role-card:hover {
  background: #ffffff;
  border-color: var(--scored-royal, #1554C9);
  box-shadow: 0 4px 12px rgba(21, 84, 201, 0.08);
  transform: translateY(-1px);
}
.login-role-card .role-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(21, 84, 201, 0.08);
  color: var(--scored-royal, #1554C9);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.login-role-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--scored-navy, #0F2E5C);
}
.login-role-card span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
}
.login-modal-foot {
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}
.login-modal-foot a {
  color: var(--scored-royal, #1554C9);
  font-weight: 600;
  text-decoration: none;
}

/* Hero Trust Bar */
.hero-trust-bar {
  position: relative;
  z-index: 10;
  margin-top: -36px;
  margin-bottom: 48px;
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(15, 46, 92, 0.08);
  border-radius: 18px;
  padding: 22px 36px;
  box-shadow: 0 16px 40px -12px rgba(15, 46, 92, 0.15);
  gap: 20px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.trust-num {
  font-family: var(--font-brand, 'Outfit', sans-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--scored-navy, #0F2E5C);
  line-height: 1.1;
}
.trust-accent {
  color: var(--scored-amber, #F9A91B);
}
.trust-lbl {
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}
.trust-sep {
  width: 1px;
  height: 42px;
  background: #e2e8f0;
}
@media (max-width: 860px) {
  .hero-trust-bar {
    margin-top: 0;
    margin-bottom: 36px;
  }
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 22px 20px;
    gap: 20px 14px;
  }
  .trust-sep {
    display: none;
  }
}
@media (max-width: 440px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

/* ===== Responsive alignment fixes (Oct 2026 audit) ===== */

/* About: Vision / Mission / Values - one column on phones/tablets, three on desktop (no 2+1 orphan) */
.vmv-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-bottom:48px}
@media (min-width:880px){.vmv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* How it works (home + services): keep all three steps in one row from tablet up */
@media (min-width:700px){.steps{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media (max-width:699px){.steps{grid-template-columns:1fr !important}}

/* Pricing on tablets: featured plan full width on top, the other two side by side */
@media (min-width:700px) and (max-width:1000px){
  .plans{grid-template-columns:repeat(2,minmax(0,1fr)) !important;max-width:860px !important;grid-auto-flow:row dense}
  .plans .plan.featured{grid-column:1 / -1;order:-1}
}

/* Organization: company detail rows stack label above value on small screens */
@media (max-width:520px){
  .org-company-list li{flex-direction:column;gap:2px}
  .org-company-list li > *{min-width:0;overflow-wrap:anywhere}
}

/* Architecture: spec table becomes stacked cards on phones (no hidden third column) */
@media (max-width:640px){
  .arch-table-wrap{overflow-x:visible}
  .arch-table,.arch-table tbody,.arch-table tr,.arch-table td{display:block;width:100% !important}
  .arch-table thead{display:none}
  .arch-table tr{padding:16px 18px;border-bottom:1px solid #EEF3FA}
  .arch-table tr:last-child{border-bottom:none}
  .arch-table td{padding:4px 0;border-bottom:none}
  .arch-table td:first-child{font-size:1rem;margin-bottom:4px}
  .arch-table td:nth-child(2)::before,.arch-table td:nth-child(3)::before{
    display:block;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin:6px 0 2px}
  .arch-table td:nth-child(2)::before{content:"Scored implementation"}
  .arch-table td:nth-child(3)::before{content:"Institutional advantage"}
}

/* Login dialog: keep the .scored.co.in suffix inside the field */
.login-input-wrap input{min-width:0}
.domain-suffix{flex-shrink:0;white-space:nowrap;padding-left:6px}
@media (max-width:400px){.domain-suffix{font-size:.8rem}}
