:root {
  --Brand: #ff852d;
  --BrandOnLight: #FBA757;
  --BrandOnLightVar1: #ec7606;
  --BrandOnLightVar2: #cb6505;
  --BrandVar1: #fa891e;
  --BrandVar2: #ec7606;
  --BrandVar3: #cb6505;
  --BrandVar4: #b25904;
  --BrandVeryLight: #fef0e1;
  --OnBrand: #ffffff;
  --OnBrandOnLight: #ffffff;
  --OnBrandOnLightVar1: #4a3535;
  --OnBrandVar1: #ffffff;
  --OnBrandVar2: #ffffff;
  --OnBrandVar3: #ffffff;
  --OnBrandVeryLight: #242424;
  --Accent: #56abfa;
  --OnAccent: #ffffff;
  --AccentVar1: #0a85f9;
  --OnAccentVar1: #ffffff;
  --AccentVar2: #0579e7;
  
  --window-background: #ffffff;
  --neutral: #f2f2f2;
  --neutral-var1: #bebec0;
  --neutral-var2: #dadada;
  --neutral-var3: #c2c2c2;
  --neutral-var4: #b5b5b5;

  --logo-default-size: 6.8rem;
  --section-padding-left-right-padding: 5.2rem;
  --sub-section-margin: 2.2rem;
  --section-separator: 1.5px solid var(--neutral-var3);
  --overlay-page-background: rgba(0, 0, 0, 0.75);
  --overlay-heading-background: #494949;
  --overlay-main-content-background: black;
  --overlay-heading-color: white;

  --overlay-page-z-index: 1000;

  --error: #c00f0c;
  
}

.app-version {
  opacity: 0.5;
  font-size: 1rem;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 1rem;
}

/* Pop-in and Pop-out Animations for dialogs/windows */
@keyframes pop-in {
  0% {
  opacity: 0;
  transform: scale(0.85);
  }
  80% {
  opacity: 1;
  transform: scale(1);
  }
  100% {
  opacity: 1;
  transform: scale(1);
  }
  }

  @keyframes pop-out {
  0% {
  opacity: 1;
  transform: scale(1);
  }
  100% {
  opacity: 0;
  transform: scale(0.85);
  }
}

.pop-in {
  animation: pop-in 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.pop-out {
  animation: pop-out 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Text-only button style: no background, padding, icon+text, hover effect */
button.text-only {
  background: none;
  border: none;
  color: inherit;
  padding: 0.5em 1em;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border 0.2s;
}

button.text-only:hover, button.text-only:focus {
  background: rgba(0,0,0,0.04);
  outline: none;
}

button.text-only img, button.text-only svg {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
}
/* Button that looks like a link, inline with text */
a.link,
button.link,
button.text-inline {
  background: none;
  border: none;
  color: #2600ee;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  display: inline;
  }

button.text-inline {
  color: inherit;
  text-decoration: none;
}

a.link:hover,
a.link:focus,
button.link:hover,
button.link:focus {
  color: #1c01a1;
  text-decoration: underline;
}

button.text-inline:hover {
  color: inherit;
  text-decoration: none;
  outline: none;
}

button.text-inline:active {
  background-color: var(--BrandVeryLight);
}

button:focus-visible,
input:focus-visible {
outline: none;
}

/* Accessibility: Show 2px dashed outline for buttons and links only on keyboard navigation */
button.link:focus-visible,
button.text-inline:focus-visible,
a:focus-visible {
  outline: 2px dashed #333;
  outline-offset: 2px;
}

button.copy-session-button {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.04em;
  font-weight: 500;
}

button.copy-session-button copy-icon {
  width: 0.8em;
  height: 0.8em;
  line-height: 0;
  margin-bottom: 0.1em;
}

html {
font-size: 62.5%;
}

html,
body {
  margin: 0;
  padding: 0;
  /* standard system fonts */
  font-family: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;

  background: white;

  color: #333;  /* Darker text for better readability on lighter background */
  font-size: 1.6rem;
  line-height: 1.5em;
}

picture {
  line-height: 0;
}

.wait-screen {
width: 100vw;
height: 100vh;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: linear-gradient(160deg, #f6f7f8 0%, #eaeef2 100%);
}

/* Brand Text Box */
.brand-text-box {
  background: transparent;
  border: 3px solid #c0c0c0;
  border-radius: 0.5rem;
  padding: 1rem 2.5rem;
  color: #222;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  font-weight: 400;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
  transition: border-color 0.2s;
}
 .brand-text-box::placeholder {
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  opacity: 0.6;
 }
.brand-text-box:hover {
  border-color: #000000;
}
.brand-text-box:focus-within {
  border-color: #000000;
}

.window {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow: hidden;
  width: 51rem;
  height: 45rem;
  box-sizing: border-box;
  background-color: var(--window-background);
  border: 1px solid;
  box-shadow: 0 11px 15px -7px var(--neutral-var1),
              0 24px 38px 3px var(--neutral-var2),
              0 9px 46px 8px var(--neutral-var3);
  border: 1px solid var(--neutral-var3);
  border-radius: 0.6rem;
}

.title-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 14rem;
  background-color: var(--BrandVeryLight);
  border-bottom: var(--section-separator);
  overflow: hidden;
}

.title-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;;
  width: 100%;
  height: 100%;
  /* the height should handle 3 rows of text and still have comfortable spacing,
     1rem of padding is precautionary */
  padding: 1rem 2.4rem;
  box-sizing: border-box;
  background-color: var(--BrandVeryLight);
  border-bottom: var(--section-separator);
  overflow: hidden;
}

.title-block .title-content {
  display: flex;
  place-items: center;
  width: fit-content;
  max-width: 100%;
}

.title-content .title-heading {
  text-align: left;
  font-size: 2.4rem;
  line-height: 1.3em;
  font-weight: 600;
  font-family: 'Platypi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* tabindex="-1": focused programmatically for screen reader announcements only */
.title-content .title-heading:focus,
.title-content img.logo:focus {
  outline: none;
}

.title-agent-name {
  font-weight: 800;
}

.window .main-content {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.panel-container {
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.title-content img.logo {
  align-self: center;
  width: var(--logo-default-size);
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-right: 1.5rem;
}

.title-content img.logo.includes-text {
  width: 100%;
  max-width: 28rem;
  flex: 0 0 auto;
  aspect-ratio: auto;
  margin: auto;
  place-self: center;
}

.start-with-session-pin-content {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 
    var(--sub-section-margin) 
    var(--section-padding-left-right-padding);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;;
  gap: 1.6rem;
}

.start-with-session-pin-content label {
  display: inline-block;
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.start-with-session-pin-content .info-text {
  flex: 0 0 auto; 
  display: flex; 
  flex-direction: column; 
  align-items: center;
}

.start-with-session-pin-content.captcha-mode label {
  font-size: 1.4rem;
  line-height: 1em;
  margin-bottom: 0.4rem;
}

.start-with-session-pin-content .pin-label-compact,
.captcha-column {
  display: none;
}

.error-text {
  color: var(--error);
  font-size: 1.2rem;
  font-weight: 300;
}

p.standard {
  margin: 1.5rem 0;
  line-height: 1.5em;
}

.info-content {
  box-sizing: border-box;
  padding: var(--sub-section-margin) var(--section-padding-left-right-padding);
  display: flex;
  flex-direction: row;
}

.info-content.with-icon {
  column-gap: 2rem; 
  flex: 1 1 0; 
  padding-top: 2rem; 
  padding-bottom: 0; 
  align-items: center;
}

.info-text {
  flex: 1 1 auto;
  font-size: 1.8rem;
  font-weight: 400;
  text-wrap: pretty;
  width: 100%;
}

.info-text.smaller {
  flex: 1 1 auto;
  font-size: 1.4rem;
  font-weight: 400;
  text-wrap: pretty;
}

.info-text label {
  text-wrap: balance;
  font-weight: 500;
}

.start-download-button-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.start-download-button-container.mobile {
  padding-bottom: 0;
}

.mobile-start-download-extra-text {
  padding-left: var(--section-padding-left-right-padding);
  padding-right: var(--section-padding-left-right-padding);
  text-align: center;
  font-size: 1.2rem;
  text-wrap: balance;
  line-height: 1.5em;
}

.icon {
  width: 2.4rem;
  height: 2.4rem;
}

.download-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: min(100vw, 31rem);
  padding: 1.5rem 2rem;
  font-size: 1.8rem;
  letter-spacing: 0.033em;
  font-weight: 300;
  background-color: var(--Accent);
  color: var(--OnAccent);
  border: 0;
  border-radius: 9999px; /* fully rounded (pill shape) */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.store-download-btn {
  min-width: auto;
  width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.download-btn:focus-within,
.download-btn:hover {
  background-color: var(--AccentVar1);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
  background-color: var(--AccentVar2);
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.store-download-btn:focus-within,
.store-download-btn:hover,
.store-download-btn:active {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.store-download-btn:focus-visible {
  outline: 2px solid var(--Accent);
  outline-offset: 2px;
}

.download-btn img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.store-download-btn img {
  width: auto;
  height: 6rem;
  object-fit: contain;
}

.footer-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  justify-items: center;
  text-align: center;
  padding: var(--sub-section-margin) 1rem var(--sub-section-margin) 1rem;
  padding-top: 0;
}

.download-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  place-items: center; 
  justify-content: space-between; 
  padding: 0 var(--section-padding-left-right-padding);
}

.download-error  .download-content{
  justify-content: center;
  row-gap: 2.8rem;
}

.download-message {
  flex: 1 1 auto;
  display: flex;
  align-items: center;;
  font-size: 1.8rem;
  font-weight: 500;
  text-wrap: pretty;
}

.download-complete-message {
  font-size: 1.8rem;
  font-weight: 500;
  padding: 4.8rem var(--section-padding-left-right-padding);
  line-height: 1.5;
  text-align: left;
}

.iframe-overlay-container {
  position: fixed;
  z-index: var(--overlay-page-z-index);
  top: 0;
  left: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--overlay-page-background);
  display: flex;
  flex-direction: column;
}

.iframe-overlay-container .heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem var(--section-padding-left-right-padding);
  border-bottom: var(--section-separator);
  background-color: var(--overlay-heading-background);
  color: var(--overlay-heading-color)
}

 .iframe-overlay-container .heading h1 {
    flex: 0 0 auto;
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
 }

 .iframe-overlay-container .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--overlay-main-content-background);
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
 }

 .iframe-overlay-container .heading .exit-button {
  position: absolute;
  right: 0;
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: auto;
 }

.iframe-overlay-container .heading .exit-button.text-only img {
  /* making the icon white */
  filter: brightness(0) invert(1);
    width: 1.5em;
    height: 1.5em;
}

.download-error-message {
  display: flex;
  align-items: center;
  column-gap: 0.7em;
  font-size: 1.8rem;
  font-weight: 500;
}

.download-error-message .icon {
  width: 2.5em;
  height: 2.5em;
}

.download-error-message span[data-error-message] {
  text-align: left;
}
 
.spinner {
  --SpinnerSize: 4rem;
  --SpinnerThickness: 0.4rem;
  --SpinnerColor: var(--Brand, #FBA757);
  --SpinnerTrack: #f2f2f2; /* or any neutral color you like */

  width: var(--SpinnerSize);
  height: var(--SpinnerSize);
  display: inline-block;
  position: relative;
  }

  /* Track (background ring) */
  .spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: var(--SpinnerThickness) solid var(--SpinnerTrack);
  box-sizing: border-box;
  z-index: 0;
}

/* Animated arc */
.spinner::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: var(--SpinnerThickness) solid transparent;
  border-top-color: var(--SpinnerColor);
  border-right-color: var(--SpinnerColor);
  animation: spinner-circular 1.2s cubic-bezier(0.4,0,0.2,1) infinite;
  z-index: 1;
}

license-agreement {
  text-wrap: pretty;
}

/* --- PIN + Captcha two-mode layout --- */

.pin-input-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 2rem;
}

.pin-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: flex-end;
}

.pin-label-compact,
.captcha-column {
  display: none;
}

.captcha-column {
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.start-with-session-pin-content label.captcha-label,
.captcha-label {
  display: none;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.captcha-mode.start-with-session-pin-content label.captcha-label {
  display: block;
}

.captcha-image {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral-var2);
  border-radius: 0.4rem;
  background: var(--neutral);
  padding: 0.2rem;
  min-height: 3.2rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.captcha-mode .captcha-image {
  display: flex;
}

.captcha-image svg {
  max-width: 100%;
  height: 4.2rem;
}


.brand-text-box.compact {
  font-size: 1.6rem;
  padding: 0.8rem 1rem;
  letter-spacing: 0.1em;
  width: 100%;
  box-sizing: border-box;
}

.brand-text-box.compact::placeholder {
  font-size: 1.3rem;
}

.captcha-mode .pin-label-full {
  display: none;
}

.captcha-mode .pin-label-compact {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.captcha-mode .captcha-column {
  display: flex;
}

.captcha-mode .pin-column .brand-text-box {
  font-size: 1.6rem;
  padding: 0.8rem 1rem;
}


.captcha-mode .pin-column .brand-text-box::placeholder {
  font-size: 1.4rem;
}

/* --- end PIN + Captcha layout --- */

.start-with-pin-license-agreement-container {
  flex: 1 1 auto; 
  padding: 1rem; 
  box-sizing: border-box; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.2rem;
}

@media (max-width: 520px) {
  :root {
    --logo-default-size: 5.8rem;
  }

  .window {
    box-shadow: none;
    width: 100%;
    border-width: 0;
    height: 100vh;
    height: 100svh;
    align-self: flex-start;
  }

  #mainWindowPane[data-panel-state="start-download"] #downloadClientButton {
    min-width: 30rem;
  }

  #mainWindowPane[data-panel-state="start-download"] .info-text {
    padding-bottom: 2.2rem;
  }

  .start-with-pin-license-agreement-container {
    padding: 2.4rem;
    text-align: center;
    text-wrap: balance;
  }

  .title-content img.logo {
    margin-right: 0;
    margin-bottom: 1.2rem;
  }

  .title-content .title-heading {
    text-align: center;
  }

  .title-block {
    height: 20rem;
  }

  .title-content {
    flex-direction: column;
  }
  
  .main-content {
    max-height: 40rem;
  }

  .main-content:has(.captcha-mode) {
    max-height: 50rem;
  }

  #mainWindowPane[data-panel-state="start-download"].main-content .panel-container {
    row-gap: 2rem;
  }

  #mainWindowPane[data-panel-state="start-download"].main-content .panel-container > * {
    flex: 0 0 auto;
  }

  .pin-input-container {
    flex-direction: column;
  }

  .info-content {
    text-align: center;
  }

  .info-content.with-icon {
    column-gap: 0;
  }
}

@media (max-width: 425px) {
  :root {
    --section-padding-left-right-padding: 2.2rem;
  }

  #mainWindowPane[data-panel-state="start-download"] play-icon  {
    display: none;
  }

  .title-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 520px) and (max-height: 625px) {
  .start-with-session-pin-content {
    padding-top: 3.2rem;
  }
}

@media (max-height: 520px) {
  .window {
    height: auto;
  }
}

@media (max-height: 450px) {
  .info-content.with-icon {
    padding-bottom: 2.4rem;
  }
}

@media (max-width: 390px) {
  .download-error-message span[data-error-message] {
    text-align: center;
  }

  .download-error-message cancel-icon {
    display: none;
  }
}


/* ...existing keyframes... */
@keyframes spinner-circular {
  0% {
    transform: rotate(0deg);
    border-top-color: var(--SpinnerColor);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    stroke-dasharray: 60 80;
  }
  25% {
    border-right-color: var(--SpinnerColor);
    border-bottom-color: transparent;
    border-left-color: transparent;
    stroke-dasharray: 60 100;
  }
  50% {
    border-bottom-color: var(--SpinnerColor);
    border-left-color: transparent;
    stroke-dasharray: 60 180;
  }
  75% {
    border-left-color: var(--SpinnerColor);
    stroke-dasharray: 60 300;
  }
  100% {
    transform: rotate(360deg);
    border-top-color: var(--SpinnerColor);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    stroke-dasharray: 90 80;
  }
}

.slide-animation-entrance-start {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
}