/* Saont UI — Onboarding (rev10) */
@font-face{
  font-family:'LeagueSpartan';
  src:url('/fonts/LeagueSpartan-Light.ttf') format('truetype');
  font-weight:300;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Lexend';
  src:url('/fonts/Lexend-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Montserrat';
  src:url('/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --ink:#1A1F36;
  --bg:#ffffff;
  --err:#800000;
  --muted:#5b6177;
}

*{
  box-sizing:border-box;
}
html,
body{
  height:100%;
}
body{
  margin:0;
  background:var(--ink);
  color:var(--ink);
  font-family:'LeagueSpartan','Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  word-wrap:break-word;
  overflow-wrap:anywhere;
}

@media (min-width:1001px){
  h1,h2,h3,h4,h5,h6{
    font-family:'Lexend','Montserrat',sans-serif;
    color:var(--ink);
    margin:0 0 8px;
  }
  h1,
  h2{
    font-size:40px;
    line-height:1.15;
  }
  h3{
    font-size:25px;
    line-height:1.2;
  }
  h4{
    font-size:22px;
    line-height:1.25;
  }
  h5{
    font-size:18px;
    line-height:1.3;
  }
  h6{
    font-size:16px;
    line-height:1.35;
  }
  p,
  label,
  input,
  button,
  .p1{
    font-size:18px;
    line-height:1.5;
    font-family:'LeagueSpartan','Montserrat',sans-serif;
  }
  .p2{
    font-size:14px;
    line-height:1.45;
  }
  .p3{
    font-size:11px;
    line-height:1.4;
  }
}

h1,h2,h3,h4,h5,h6{
  font-family:'Lexend','Montserrat',sans-serif;
  color:var(--ink);
  margin:0 0 8px;
}

p,
label,
input,
button,
.p1{
  font-family:'LeagueSpartan','Montserrat',sans-serif;
}

/* Layout */
.page{
  min-height:100%;
  display:grid;
  grid-template-columns: 2.5% 1fr 2.5%;
}
.wrap{
  grid-column:2;
  display:grid;
  place-items:center;
  padding:5vw 4vw;
  position:relative;
}

/* Progress rail — 75vh with rounded top when >0% */
.progress-rail{
  position:fixed;
  left:2.5%;
  top:12.5vh;
  height:75vh;
  width: calc((75vh / 5) * 0.375);
  background:#ffffff;
  border:2px solid #ffffff;
  border-radius:100px;
  box-shadow:0 2px 8px rgba(26,31,54,.2);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  z-index:10;
}
.progress-fill{
  width:100%;
  background:#1A1F36;
  height:0%;
  border-bottom-left-radius:100px;
  border-bottom-right-radius:100px;
  transition:height .5s ease;
}
.progress-fill.rounded-top{
  border-top-left-radius:30px;
  border-top-right-radius:30px;
}

/* Container */
.card{
  width:min(980px, 92vw);
  background:var(--bg);
  border-radius:50px;
  padding:5%;
  /* Slightly stronger shadow */
  box-shadow: 0 32px 100px rgba(7,8,14,0.92);
}

/* Spacing */
.form-stack{
  display:grid;
  gap:1%;
}
.header{
  margin-bottom:20px;
}
.subtle{
  color:var(--muted);
}
.actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:16px;
}

/* Inputs */
label .req{
  margin-left:1px;
}
.form-field{
  display:grid;
  gap:8px;
}
.form-field label{
  color:var(--ink);
}
.input{
  width:100%;
  height:56px;
  border-radius:100px;
  border:1.5px solid var(--ink);
  padding:0 20px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition: transform .5s ease, border-color .5s ease, color .5s ease;
}
.input::placeholder{
  color:#5b6177;
  transition: color .5s ease;
}
.input:hover{
  transform:scale(1.05);
}
.input:hover::placeholder{
  color:#1A1F36;
}
.input:focus{
  border-color:#1A1F36;
}
.ph-p3::placeholder{
  color:#575757 !important;
}

/* Centre Website Domain text and label */
.center-field{
  display:grid;
  text-align:center;
}
.center-field .input{
  text-align:center;
  max-width:700px;
  margin:0 auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1A1F36;
  color:#ffffff;
  border:1.5px solid #1A1F36;
  border-radius:100px;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  transition:transform .5s ease, opacity .5s ease;
}
.btn:hover{
  transform:scale(1.10);
}
.btn:active{
  transform:scale(1.06);
}
.btn[disabled]{
  opacity:.6;
  cursor:not-allowed;
}
@media (max-width:750px){
  .btn{
    width:150px;
    height:50px;
  }
}
@media (min-width:751px) and (max-width:1000px){
  .btn{
    width:175px;
    height:50px;
  }
}
@media (min-width:1001px){
  .btn{
    width:200px;
    height:55px;
  }
}

/* Two-column on wide screens */
@media (min-width:1001px){
  .form-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:16px 24px;
  }
  .span-2{
    grid-column: span 2;
  }
}

/* Errors */
.err{
  color: var(--err);
  background:#fff;
  padding:6px 10px;
  border-radius:10px;
  display:none;
}
.err.show{
  display:block;
}
.err-dark{
  color:#fff;
  background:#000;
  padding:6px 10px;
  border-radius:10px;
  display:none;
}

/* Hyperlink pill in checkboxes/body: slightly more vertical space; same font-size */
.card a{
  background:#1A1F36;
  color:#ffffff;
  text-decoration:none;
  padding:3px 8px;
  border-radius:9999px;
  display:inline-block;
  transform-origin:left center;
  transition: transform .2s ease;
  line-height:1.2;
  font-size:inherit;
}
.card a:hover{
  transform: scale(1.02);
}

/* Nudge links inside checkbox labels down a touch */
.checks label a{
  position:relative;
  top:1px;
}

/* Checkboxes */
.checks{
  display:grid;
  gap:10px;
}
.checks.spaced-above{
  margin-top:24px;
}
.checks input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  width:18px;
  height:18px;
  border:1.5px solid #1A1F36;
  border-radius:6px;
  display:inline-grid;
  place-content:center;
  margin-right:8px;
  background:#fff;
  cursor:pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.checks input[type="checkbox"]:checked{
  background:#1A1F36;
  border-color:#1A1F36;
}
.checks input[type="checkbox"]::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:3px;
  transform: scale(0);
  transition: transform .15s ease;
  background:#ffffff;
}
.checks input[type="checkbox"]:checked::before{
  transform: scale(1);
}
.checks label{
  color:#1A1F36;
}

/* Custom single-select */
.select{
  position:relative;
}
.select-toggle{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:56px;
  border-radius:100px;
  border:1.5px solid var(--ink);
  padding:0 20px;
  background:#fff;
  color:#1A1F36;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition: transform .5s ease, border-color .5s ease, color .5s ease;
  cursor:pointer;
}
.select-toggle:hover{
  transform:scale(1.05);
}
.select-toggle:hover .ph{
  color:#1A1F36;
}
.select-list{
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  background:#1A1F36;
  color:#ffffff;
  border-radius:25px;
  padding:6px;
  min-width:100%;
  max-height:50vh;
  overflow:auto;
  box-shadow:0 16px 30px rgba(26,31,54,.25);
  display:none;
  z-index:50;
}
.select.open .select-list{
  display:block;
}
.select-item{
  list-style:none;
  padding:12px 16px;
  border-radius:18px;
  cursor:pointer;
  background:transparent;
  color:#ffffff;
  transition: background-color .2s ease, color .2s ease;
}
.select-item:hover{
  background:#ffffff;
  color:#1A1F36;
}
.chev{
  width:12px;
  height:12px;
  border-right:2px solid var(--ink);
  border-bottom:2px solid var(--ink);
  transform:rotate(45deg);
}
.select.open .chev{
  transform:rotate(-135deg);
  border-color:#ffffff;
}
.select.open .select-toggle{
  background:#ffffff;
  border-color:#1A1F36;
}

/* Multi-select with search */
.multi{
  position:relative;
}
.multi-wrap{
  min-height:56px;
  border:1.5px solid var(--ink);
  border-radius:100px;
  padding:6px 12px;
  background:#fff;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  transition: transform .5s ease, border-color .5s ease;
}
.multi-wrap:hover{
  transform:scale(1.05);
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:18px;
  background:#1A1F36;
  color:#fff;
}
.chip button{
  all:unset;
  cursor:pointer;
  font-size:14px;
  line-height:1;
}
.multi-input{
  flex:1;
  min-width:120px;
  border:none;
  outline:none;
  height:42px;
  font-family:'LeagueSpartan','Montserrat',sans-serif;
  font-size:18px;
}
.multi-list{
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  width:100%;
  background:#1A1F36;
  color:#fff;
  border-radius:25px;
  padding:6px;
  max-height:50vh;
  overflow:auto;
  box-shadow:0 16px 30px rgba(26,31,54,.25);
  display:none;
  z-index:60;
}
.multi.show .multi-list{
  display:block;
}
.multi-item{
  padding:10px 14px;
  border-radius:16px;
  cursor:pointer;
  transition: background .2s ease, color .2s ease;
}
.multi-item:hover{
  background:#ffffff;
  color:#1A1F36;
}

/* === MySaont onboarding lock toast + tour (v1) === */
a.mysaont-section-button { text-decoration: none; }

#saontLockToast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: #1A1F36;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: min(680px, calc(100vw - 24px));
  width: fit-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 10080;
}

#saontLockToast.saont-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#saontLockToast .saont-lock-text {
  font-family: Lexend, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: .1px;
  margin: 0;
}

#saontLockToast .saont-lock-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 2px;
}

#saontLockToast .saont-lock-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: Lexend, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}

#saontLockToast .saont-lock-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
#saontLockToast .saont-lock-btn:active { transform: translateY(1px); }

.mysaont-sidebar.saont-locked .mysaont-section-button {
  opacity: .72;
  cursor: not-allowed;
}

.saont-tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.80);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 10040;
}

.saont-tour-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.saont-tour-highlight {
  position: fixed;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
  pointer-events: none;
  z-index: 10070;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}

.saont-tour-line {
  position: fixed;
  height: 1px;
  background: rgba(255,255,255,.95);
  pointer-events: none;
  z-index: 10070;
  transform-origin: left center;
  opacity: .95;
  transition: left .25s ease, top .25s ease, width .25s ease, transform .25s ease;
}

.saont-tour-pop {
  position: fixed;
  width: min(360px, calc(100vw - 28px));
  background: #1A1F36;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 20px 54px rgba(0,0,0,.58);
  padding: 14px 14px 12px;
  z-index: 10075;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, left .25s ease, top .25s ease;
}

.saont-tour-pop.is-active {
  opacity: 1;
  transform: translateY(0);
}

.saont-tour-pop h4 {
  margin: 0 0 8px;
  font-family: Lexend, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
}

.saont-tour-pop p {
  margin: 0 0 12px;
  font-family: Lexend, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  opacity: .95;
}

.saont-tour-pop .saont-tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.saont-tour-pop .saont-tour-next {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: Lexend, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.saont-tour-pop .saont-tour-next:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
.saont-tour-pop .saont-tour-next:active { transform: translateY(1px); }

.saont-tour-focus {
  position: relative !important;
  z-index: 10072 !important;
}



/* =========================
   Saont™ MySaont™ setup gate
   ========================= */

#saontSetupBar.saont-setupbar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10030;
  background: #1A1F36;
  color: #ffffff;
  border: 1px solid rgba(0,191,255,.85);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

#saontSetupBar.saont-setupbar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#saontSetupBar.saont-setupbar.is-closing {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

#saontSetupBar .saont-setupbar-text {
  font-family: Lexend, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

#saontSetupBar .saont-setupbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#saontSetupBar .saont-setupbar-btn {
  background: #1A1F36;
  color: #ffffff;
  border: 1px solid #00BFFF;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

#saontSetupBar .saont-setupbar-btn:hover {
  filter: brightness(1.08);
}

#saontSetupBar .saont-setupbar-close {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

/* Sidebar lock states */
.is-locked { cursor: not-allowed !important; }
.is-locked-hover {
  background: rgba(140,140,140,.55) !important;
  color: #ffffff !important;
}
.is-locked-hover * {
  color: #ffffff !important;
}

/* Ensure Smart Refresh™ footer link isn't underlined */
.mysaont-sidebar-footer a { text-decoration: none; }

/* Guided tour tip + visibility classes */
.saont-tour-overlay.is-visible,
.saont-tour-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.saont-tour-tip {
  position: fixed;
  max-width: 360px;
  background: #ffffff;
  color: #0b0f1a;
  border-radius: 16px;
  padding: 14px 14px 12px 14px;
  z-index: 10080;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.saont-tour-tip.is-visible,
.saont-tour-tip.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.saont-tour-title {
  font-family: Lexend, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.saont-tour-text {
  font-family: Lexend, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  opacity: .9;
}

.saont-tour-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.saont-btn.saont-btn-primary {
  background: #1A1F36;
  color: #ffffff;
  border: 1px solid #00BFFF;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.saont-tour-line.is-visible,
.saont-tour-line.is-active {
  opacity: 1;
}

.saont-tour-line {
  opacity: 0;
}
