:root{
  --saas-navy: #102d4e;
  --saas-navy-deep: #0e243d;
  --saas-navy-shine: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 32%), linear-gradient(180deg, #1c4471 0%, #102d4e 58%, #0e243d 100%);
  --saas-ink: #142033;
  --saas-muted: #4b5563;
  --saas-paper: #f6f3ee;
  --saas-line: #e4ddd2;
  color-scheme: light;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

#company,
#features,
#pricing,
#contact{
  scroll-margin-top: 84px;
}

body{
  margin: 0;
  background: #fff;
  color: var(--saas-ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

a{
  color: inherit;
}

h1,
h2,
h3,
p{
  margin: 0;
}

h1{
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2{
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3{
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.saas-wrap{
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.saas-bar{
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #102d4e;
  background-image: var(--saas-navy-shine);
  color: #fff;
}

.saas-build{
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 8px;
  background: #e36b00;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.saas-bar__row,
.saas-foot__row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-height: 72px;
}

.saas-brand{
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.saas-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-left: auto;
}

.saas-nav a{
  color: #fff;
  font-size: 0.98rem;
  text-decoration: none;
}

.saas-nav a:hover,
.saas-textlink:hover,
.saas-contact a:hover,
.saas-foot a:hover,
.saas-foot button:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.saas-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--saas-navy);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.saas-btn:hover{
  background: #1c4471;
}

.saas-btn--light{
  background: #fff;
  color: var(--saas-navy);
}

.saas-btn--light:hover{
  background: #e8eef5;
}

.saas-hero{
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(14, 41, 72, 0.06), transparent 60%),
    var(--saas-paper);
  padding: 56px 0 64px;
}

.saas-hero__grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.saas-kicker-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.saas-kicker{
  margin: 0;
  color: var(--saas-navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saas-kicker-row .saas-build{
  display: inline-block;
}

.saas-lede,
.saas-section-lead,
.saas-band p,
.saas-contact p,
.saas-feature-list p{
  color: var(--saas-muted);
}

.saas-lede{
  max-width: 38rem;
  margin-top: 18px;
  font-size: 1.15rem;
}

.saas-hero__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 28px;
}

.saas-textlink{
  color: var(--saas-navy);
  font-weight: 700;
  text-underline-offset: 3px;
}

.saas-specimen{
  padding: 18px;
  border: 1px solid var(--saas-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(14, 41, 72, 0.08);
}

.saas-specimen__url{
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--saas-paper);
  color: var(--saas-muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.saas-specimen__url strong{
  color: var(--saas-navy);
}

/* The default company site, drawn as a desktop window and scaled to the card by saas.js. */
.saas-specimen__screen{
  position: relative;
  aspect-ratio: var(--saas-demo-ratio, 1440 / 900);
  overflow: hidden;
  border: 1px solid var(--saas-line);
  border-radius: 12px;
  background: #faf6ef;
}

/* site-demo.js reports the height of the top of the page (through the four doors); saas.js sets it here. */
.saas-specimen__screen iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: var(--saas-demo-h, 900px);
  border: 0;
  transform: scale(var(--saas-demo-scale, 0.4));
  transform-origin: 0 0;
  pointer-events: none;
}

.saas-band{
  padding: 64px 0;
  background: var(--saas-navy-deep);
  color: #fff;
}

.saas-band__inner{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.saas-band p,
.saas-band li{
  color: rgba(255, 255, 255, 0.86);
}

.saas-band strong,
.saas-feature-list strong{
  color: inherit;
}

.saas-roles{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.saas-roles > li{
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.saas-roles ul{
  margin: 8px 0 0;
  padding-left: 1.15rem;
}

.saas-roles ul li{
  padding: 0;
  border: 0;
}

.saas-roles__note{
  margin-top: 14px;
}

.saas-roles strong{
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.saas-features{
  padding: 64px 0 72px;
}

.saas-section-lead{
  max-width: 38rem;
  margin-top: 12px;
}

.saas-feature-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.saas-feature-list article{
  padding: 20px 20px 22px;
  border: 1px solid var(--saas-line);
  border-radius: 16px;
  background: #fff;
}

.saas-feature-list p{
  margin-top: 8px;
}

.saas-website{
  padding-bottom: 24px;
}


.saas-contact{
  padding: 8px 0 72px;
}

.saas-contact__grid{
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
  padding: 36px;
  border-radius: 20px;
  background: var(--saas-paper);
}

.saas-contact a{
  color: var(--saas-navy);
  font-weight: 700;
}

.saas-contact h2 + p{
  margin-top: 12px;
}

.saas-form{
  display: grid;
  gap: 12px;
}

.saas-form label{
  display: grid;
  gap: 6px;
  color: var(--saas-navy);
  font-weight: 700;
}

.saas-form input,
.saas-form textarea,
.saas-form select{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc6b8;
  border-radius: 10px;
  background: #fff;
  color: var(--saas-ink);
  font: inherit;
}

.saas-form input,
.saas-form select{
  height: 44px;
}

.saas-form textarea{
  resize: vertical;
  min-height: 120px;
}

.saas-form input:focus,
.saas-form textarea:focus,
.saas-form select:focus,
.saas-btn:focus-visible,
.saas-nav a:focus-visible,
.saas-brand:focus-visible,
.saas-textlink:focus-visible{
  outline: 2px solid #102d4e;
  outline-offset: 2px;
}

.saas-form__status{
  margin: 0;
  color: var(--saas-navy);
  font-weight: 700;
}

.saas-form__status--error{
  color: #b91c1c;
}

.saas-foot{
  background: var(--saas-navy);
  color: #fff;
}

.saas-foot p{
  font-weight: 700;
}

.saas-foot__row{
  padding-right: 88px;
}

.saas-foot a,
.saas-foot button{
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.saas-modal{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.saas-modal[hidden]{
  display: none;
}

.saas-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 51, 0.45);
}

.saas-modal__box{
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(660px, 100%);
  max-height: min(720px, calc(100% - 24px));
  overflow: hidden;
  background: var(--saas-paper);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(20, 32, 51, 0.28);
}

.saas-modal__head{
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 22px 0;
}

.saas-modal__head .saas-build{
  margin-top: 12px;
}

.saas-modal .saas-form{
  min-height: 0;
  overflow: auto;
  padding: 16px 22px 18px;
}

.saas-modal__head h2{
  font-size: 1.45rem;
}

.saas-modal__close{
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--saas-ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.saas-billing-note{
  margin: 0;
  padding: 12px 22px;
  background: #fff8eb;
  color: var(--saas-ink);
}

.saas-opening{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(22, 32, 48, 0.45);
}

.saas-opening[hidden]{
  display: none;
}

.saas-opening__card{
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 240px;
  margin: 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: #fff;
  color: var(--saas-navy);
  font-weight: 700;
}

.saas-opening__card p{
  margin: 0;
}

.saas-opening__spin{
  width: 36px;
  height: 36px;
  border: 3px solid #e6dfd4;
  border-top-color: var(--saas-navy);
  border-radius: 50%;
  animation: saas-spin 0.8s linear infinite;
}

.saas-opening--error .saas-opening__spin{
  display: none;
}

.saas-opening--error p{
  color: #b91c1c;
}

@keyframes saas-spin{
  to{ transform: rotate(360deg); }
}

.saas-form__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.saas-form__row label{
  min-width: 0;
  align-content: end;
}

.saas-form__section{
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}

.saas-form__legend{
  margin: 0;
  color: var(--saas-navy);
  font-weight: 650;
  text-align: left;
}

.saas-form__legend span{
  margin-left: 6px;
  color: var(--saas-muted);
  font-weight: 500;
}

.saas-plans-pick{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.saas-form .saas-plan-rect{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid #cfc6b8;
  border-radius: 12px;
  background: #fff;
  color: var(--saas-navy);
  font-size: 1rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.saas-form .saas-plan-rect:has(input:checked){
  border-color: var(--saas-navy);
}

.saas-plan-rect__price{
  font-size: 1.05rem;
  font-weight: 700;
}

/* Three plans, then Monthly / Yearly, in the sign-up form. */
.saas-plans-pick--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.saas-interval-pick{
  margin-top: 12px;
}

.saas-form .saas-interval-pick .saas-plan-rect{
  min-height: 56px;
}

.saas-plan-rect__note{
  color: var(--saas-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.saas-form__fine{
  margin: 10px 0 0;
  color: var(--saas-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 640px){
  .saas-plans-pick--three{
    grid-template-columns: 1fr;
  }
}

/* Pricing: Monthly / Yearly switch above the plan cards. */
.saas-interval{
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 0 auto 24px;
  padding: 4px;
  border: 1px solid #cfc6b8;
  border-radius: 999px;
  background: #fff;
}

.saas-interval label{
  position: relative;
  cursor: pointer;
}

.saas-interval input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.saas-interval span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--saas-navy);
  font-weight: 650;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.saas-interval em{
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3ea;
  color: #1f6b3a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.saas-interval input:checked + span{
  background: var(--saas-navy);
  color: #fff;
}

.saas-interval input:checked + span em{
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.saas-interval input:focus-visible + span{
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.saas-plan__billed{
  margin: 6px 0 0;
  color: #1f6b3a;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce){
  .saas-interval span{
    transition: none;
  }
}

.saas-form .saas-plan-rect input{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saas-modal .saas-build{
  display: inline-block;
  margin-bottom: 16px;
}

.saas-modal fieldset{
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 32px;
  min-inline-size: 0;
}

.saas-modal fieldset:disabled input,
.saas-modal fieldset:disabled .saas-btn{
  background: #ece7df;
  color: #6b7280;
  cursor: not-allowed;
}

.saas-modal .saas-btn:disabled,
.saas-modal fieldset:disabled .saas-btn{
  opacity: 0.55;
  cursor: not-allowed;
}

body.saas-modal-open{
  overflow: hidden;
}

.saas-pricing{
  padding: 8px 0 64px;
}

.saas-plans{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.saas-plan{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--saas-line);
  border-radius: 18px;
  background: #fff;
}

.saas-plan--full{
  border: 2px solid var(--saas-navy);
  background: var(--saas-paper);
}

.saas-plan h3{
  color: var(--saas-navy);
}

.saas-plan__price{
  color: var(--saas-navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
}

.saas-plan ul{
  margin: 0;
  padding-left: 1.15rem;
  color: var(--saas-muted);
}

.saas-plan li + li{
  margin-top: 8px;
}

.saas-plan .saas-btn{
  margin-top: auto;
  align-self: flex-start;
}

.saas-sr{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saas-chat{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
}

.saas-chat__tab{
  width: 64px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #3f8548;
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(50, 90, 40, 0.28);
  cursor: pointer;
}

.saas-chat__tab:hover{
  background: #2e6938;
}

.saas-chat__panel{
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 24px));
  height: min(480px, calc(100dvh - 32px));
  border: 1px solid #bedcbd;
  border-radius: 14px;
  background: var(--saas-paper);
  box-shadow: 0 18px 40px rgba(50, 90, 40, 0.22);
  overflow: hidden;
}

.saas-chat__panel[hidden]{
  display: none;
}

.saas-chat__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 8px 8px 12px;
  background: #32723d;
  color: #fff;
}

.saas-chat__bar h2{
  font-size: 1rem;
}

.saas-chat__bar button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.saas-chat__bar button:hover{
  background: rgba(255, 255, 255, 0.12);
}

.saas-chat__log{
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--saas-paper);
}

.saas-chat__msg{
  max-width: 88%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.saas-chat__msg--us{
  align-self: flex-start;
  background: #fff;
  color: var(--saas-ink);
}

.saas-chat__msg a{
  color: #296935;
  font-weight: 700;
  text-decoration: underline;
}

.saas-chat__msg--you{
  align-self: flex-end;
  background: #4d9755;
  color: #fff;
}

.saas-chat__form{
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--saas-line);
  background: var(--saas-paper);
}

.saas-chat__form textarea{
  width: 100%;
  min-height: 58px;
  max-height: 120px;
  padding: 8px 10px;
  border: 1px solid #cfc6b8;
  border-radius: 10px;
  font: inherit;
  resize: none;
}

.saas-chat__send{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saas-chat__send p{
  margin: 0;
  color: var(--saas-muted);
  font-size: 0.82rem;
}

.saas-chat__send button{
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: #3f8548;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.saas-chat__send button:disabled{
  opacity: 0.6;
  cursor: default;
}

.saas-chat__hint{
  margin: 0;
  color: #296935;
  font-weight: 700;
}

.saas-chat__tab:focus-visible,
.saas-chat__bar button:focus-visible,
.saas-chat__form textarea:focus-visible,
.saas-chat__send button:focus-visible{
  outline: 2px solid #3f8548;
  outline-offset: 2px;
}

@media (max-width: 800px){
  .saas-wrap{
    width: min(1240px, calc(100% - 28px));
  }

  .saas-nav{
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .saas-bar .saas-btn{
    margin-left: auto;
  }

  .saas-hero{
    padding: 36px 0 40px;
  }

  .saas-hero__grid,
  .saas-band__inner,
  .saas-contact__grid,
  .saas-feature-list,
  .saas-roles{
    grid-template-columns: 1fr;
  }

  .saas-band,
  .saas-features{
    padding: 40px 0;
  }

  .saas-contact{
    padding-bottom: 40px;
  }

  .saas-contact__grid{
    padding: 22px 16px;
  }

  .saas-plans{
    grid-template-columns: 1fr;
  }

  .saas-form__row{
    grid-template-columns: 1fr;
  }

  .saas-foot a,
  .saas-foot button{
    margin-left: 0;
  }
}

/* Privacy Policy and Terms of Service: one page each for every company on RentWiseAI. */
.saas-legal{
  padding: 48px 0 64px;
  min-height: 60vh;
}
.saas-legal h1{
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.saas-legal__updated{
  margin: 0 0 28px;
  color: #64748b;
  font-size: 0.95rem;
}
.saas-legal__pending{
  max-width: 680px;
  line-height: 1.6;
}

/* ======================================================================================
   The new design (html.ad-on). <html> always carries ad-on; the rules above are the base
   the new design builds on.
   Same tokens as the portal's approved dashboard and Conversations (agent-home.css).
   ====================================================================================== */

html.ad-on{
  --ad-ink: #0f1b2d;
  --ad-ink-2: #3d4a5c;
  --ad-mute: #6b7686;
  --ad-line: #ebe7df;
  --ad-line-2: #f1eee8;
  --ad-paper: #ffffff;
  --ad-bg: #f9f7f3;
  --ad-side: #fbfaf7;
  --ad-navy: #102d4e;
  --ad-navy-2: #1c4471;
  --ad-gold: #c48a2c;
  --ad-gold-bg: #fbf0dc;
  --ad-track: #efece6;
  --ad-green: #16a34a;
  --ad-green-bg: #e7f7ec;
  --ad-amber-bg: #fdf1dc;
  --ad-rose-bg: #fde8ec;
  --ad-blue: #2563eb;
  --ad-blue-bg: #e5edfd;
  --ad-violet: #7c3aed;
  --ad-violet-bg: #efe9fd;
  --ad-slate-bg: #eef1f5;
  --ad-radius: 18px;
  --ad-shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 8px 24px -14px rgba(15, 27, 45, 0.18);
  --ad-shadow-lg: 0 2px 6px rgba(15, 27, 45, 0.06), 0 40px 80px -30px rgba(15, 27, 45, 0.45);
  --ad-focus: 0 0 0 3px color-mix(in srgb, var(--ad-blue) 22%, transparent);
  --ad-ring: color-mix(in srgb, var(--ad-navy-2) 50%, white);
  --ad-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ad-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ad-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ad-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ad-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
  --ad-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ad-i-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E");
  --ad-i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.5c.4 4.6 2.9 7.1 7.5 7.5-4.6.4-7.1 2.9-7.5 7.5-.4-4.6-2.9-7.1-7.5-7.5 4.6-.4 7.1-2.9 7.5-7.5Z'/%3E%3Cpath d='M19 15.5c.2 2 1.1 2.9 3 3-1.9.2-2.8 1.1-3 3-.2-1.9-1.1-2.8-3-3 1.9-.1 2.8-1 3-3Z'/%3E%3C/svg%3E");
}

html.ad-on body{
  background: var(--ad-bg);
  color: var(--ad-ink);
  font-family: var(--ad-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.ad-on ::selection{
  background: color-mix(in srgb, var(--ad-gold) 30%, white);
  color: var(--ad-ink);
}

html.ad-on :is(button, input, select, textarea){
  font-family: var(--ad-sans);
}

html.ad-on h1,
html.ad-on h2{
  color: var(--ad-ink);
  font-family: var(--ad-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

html.ad-on h1{
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1.02;
}

html.ad-on h2{
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.06;
}

html.ad-on h3{
  color: var(--ad-ink);
  font: 650 1.0625rem/1.3 var(--ad-sans);
  letter-spacing: -0.01em;
}

html.ad-on .saas-wrap{
  width: min(1320px, calc(100% - 48px));
}

/* Visible keyboard focus on every control. */
html.ad-on :is(a, button, summary, [tabindex]):focus-visible{
  outline: 3px solid color-mix(in srgb, var(--ad-blue) 45%, white);
  outline-offset: 2px;
}

/* ---------- Top bar: canvas glass, hairline under it ---------- */

html.ad-on .saas-bar{
  border-bottom: 1px solid var(--ad-line);
  background: color-mix(in srgb, var(--ad-bg) 82%, transparent);
  background-image: none;
  color: var(--ad-ink);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

html.ad-on .saas-bar__row{
  gap: 10px 20px;
  min-height: 68px;
}

html.ad-on .saas-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ad-ink);
  font: 650 1.0625rem/1 var(--ad-sans);
  letter-spacing: -0.015em;
}

/* The mark: a navy tile with a serif R and a gold glow (decoration only, not read aloud). */
html.ad-on .saas-brand::before{
  content: "R" / "";
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding-top: 2px;
  box-sizing: border-box;
  border-radius: 9px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ad-gold) 55%, transparent), transparent 60%),
    linear-gradient(150deg, var(--ad-navy-2), var(--ad-navy));
  box-shadow: 0 6px 14px -8px rgba(16, 45, 78, 0.8);
  color: #fff;
  font: 400 1.25rem/1 var(--ad-serif);
}

html.ad-on .saas-nav{
  gap: 2px;
}

html.ad-on .saas-nav a{
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ad-ink-2);
  font: 550 0.9rem/1.2 var(--ad-sans);
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.ad-on .saas-nav a:hover{
  background: var(--ad-track);
  color: var(--ad-ink);
  text-decoration: none;
}

/* ---------- Buttons: navy pill ---------- */

html.ad-on .saas-btn{
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--ad-navy);
  border-radius: 999px;
  background: var(--ad-navy);
  color: #fff;
  font: 600 0.9375rem/1.2 var(--ad-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(16, 45, 78, 0.75);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ad-ease), box-shadow 0.15s ease;
}

html.ad-on .saas-btn:hover{
  border-color: var(--ad-navy-2);
  background: var(--ad-navy-2);
  transform: translateY(-1px);
}

/* The bar's button sits on the light canvas now, so it is navy too; a little shorter. */
html.ad-on .saas-btn--light{
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

html.ad-on .saas-btn:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--ad-blue) 45%, white);
  outline-offset: 2px;
}

html.ad-on .saas-btn:disabled{
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* "Under construction": an amber status chip. */
html.ad-on .saas-build{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--ad-amber-bg);
  color: #92400e;
  font: 600 0.75rem/1 var(--ad-sans);
  letter-spacing: 0;
  text-transform: none;
}

html.ad-on .saas-build::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

/* ---------- Hero ---------- */

html.ad-on .saas-hero{
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% 8%, color-mix(in srgb, var(--ad-gold) 13%, transparent), transparent 70%),
    radial-gradient(560px 320px at 4% 70%, color-mix(in srgb, var(--ad-blue) 6%, transparent), transparent 70%),
    var(--ad-bg);
}

html.ad-on .saas-hero__grid{
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 56px;
}

html.ad-on .saas-kicker-row{
  gap: 8px;
  margin-bottom: 22px;
}

html.ad-on .saas-kicker{
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--ad-line);
  border-radius: 999px;
  background: var(--ad-paper);
  color: var(--ad-ink-2);
  font: 600 0.75rem/1 var(--ad-sans);
  letter-spacing: 0;
  text-transform: none;
}

html.ad-on .saas-hero h1{
  /* A four-sentence headline: smaller than the other page titles so it stays a headline, not a wall. */
  max-width: 18em;
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  text-wrap: balance;
}

html.ad-on :is(.saas-lede, .saas-section-lead, .saas-contact p, .saas-feature-list p){
  color: var(--ad-ink-2);
}

html.ad-on .saas-lede{
  max-width: 36rem;
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}

html.ad-on .saas-hero__actions{
  gap: 12px 24px;
  margin-top: 34px;
}

html.ad-on .saas-textlink{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ad-ink);
  font: 600 0.9375rem/1.2 var(--ad-sans);
  text-decoration: none;
}

html.ad-on .saas-textlink::after{
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--ad-i-arrow) center / contain no-repeat;
  mask: var(--ad-i-arrow) center / contain no-repeat;
  transition: transform 0.15s var(--ad-ease);
}

html.ad-on .saas-textlink:hover{
  color: var(--ad-navy-2);
  text-decoration: none;
}

html.ad-on .saas-textlink:hover::after{
  transform: translateX(3px);
}

/* The specimen: a browser-like card of a company portal. */
html.ad-on .saas-specimen{
  padding: 14px;
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: var(--ad-paper);
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.05), 0 40px 80px -36px rgba(15, 27, 45, 0.4);
}

html.ad-on .saas-specimen__url{
  position: relative;
  margin: 0 0 14px;
  padding: 9px 14px 9px 58px;
  border-radius: 12px;
  background: var(--ad-side);
  box-shadow: inset 0 0 0 1px var(--ad-line-2);
  color: var(--ad-mute);
  font: 500 0.82rem/1.3 var(--ad-sans);
}

/* Three quiet window dots before the address. */
html.ad-on .saas-specimen__url::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #e2ddd2;
  box-shadow: 13px 0 0 #e2ddd2, 26px 0 0 #e2ddd2;
}

html.ad-on .saas-specimen__url strong{
  color: var(--ad-ink);
  font-weight: 650;
}

html.ad-on .saas-specimen__screen{
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--ad-line-2);
}

/* ---------- Who signs in: one white card with four role tiles ---------- */

html.ad-on .saas-band{
  padding: 24px 0 56px;
  background: transparent;
  color: var(--ad-ink);
}

html.ad-on .saas-band__inner{
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--ad-line);
  border-radius: 24px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
}

html.ad-on .saas-band :is(p, li){
  color: var(--ad-ink-2);
}

html.ad-on .saas-band h2 + p{
  margin-top: 14px;
  font-size: 1.0625rem;
}

html.ad-on .saas-roles{
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

html.ad-on .saas-roles > li{
  --tone: var(--ad-blue);
  --tone-bg: var(--ad-blue-bg);
  padding: 18px 20px 20px;
  border: 1px solid var(--ad-line-2);
  border-radius: 18px;
  background: var(--ad-side);
}

html.ad-on .saas-roles > li:nth-child(2){ --tone: #a26a17; --tone-bg: var(--ad-gold-bg); }
html.ad-on .saas-roles > li:nth-child(3){ --tone: var(--ad-green); --tone-bg: var(--ad-green-bg); }
html.ad-on .saas-roles > li:nth-child(4){ --tone: var(--ad-violet); --tone-bg: var(--ad-violet-bg); }

html.ad-on .saas-roles strong{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ad-ink);
  font: 650 1rem/1.2 var(--ad-sans);
}

html.ad-on .saas-roles strong::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px var(--tone-bg);
}

html.ad-on .saas-roles ul{
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.ad-on .saas-roles ul li{
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.4;
}

html.ad-on .saas-roles ul li::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--tone);
  -webkit-mask: var(--ad-i-check) center / contain no-repeat;
  mask: var(--ad-i-check) center / contain no-repeat;
}

html.ad-on .saas-band .saas-roles__note{
  margin-top: 16px;
  color: var(--ad-mute);
  font-size: 0.875rem;
}

/* ---------- Features: numbered cards ---------- */

html.ad-on .saas-features{
  padding: 56px 0 72px;
}

html.ad-on .saas-section-lead{
  max-width: 36rem;
  margin-top: 14px;
  font-size: 1.0625rem;
}

html.ad-on .saas-feature-list{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  counter-reset: ad-feature;
}

html.ad-on .saas-feature-list article{
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
  counter-increment: ad-feature;
  transition: transform 0.2s var(--ad-ease), box-shadow 0.2s ease;
}

html.ad-on .saas-feature-list article::before{
  content: counter(ad-feature, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--ad-gold-bg);
  color: #8a5a12;
  font: 650 0.8rem/1 var(--ad-sans);
  font-variant-numeric: tabular-nums;
}

html.ad-on .saas-feature-list article:hover{
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 18px 36px -20px rgba(15, 27, 45, 0.28);
}

html.ad-on .saas-feature-list p{
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

html.ad-on .saas-feature-list--split{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.ad-on .saas-feature-list--split article::before{
  content: none;
}

/* ---------- Pricing: three cards, Main Street is the navy one ---------- */

html.ad-on .saas-pricing{
  padding: 24px 0 72px;
}

html.ad-on .saas-plans{
  gap: 16px;
  margin-top: 36px;
}

html.ad-on .saas-plan{
  gap: 18px;
  padding: 30px 30px 28px;
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
}

html.ad-on .saas-plan h3{
  color: var(--ad-ink-2);
  font: 650 0.95rem/1.2 var(--ad-sans);
}

html.ad-on .saas-plan__price{
  color: var(--ad-ink);
  font: 400 clamp(2.75rem, 5vw, 3.75rem)/1 var(--ad-serif);
  letter-spacing: -0.02em;
}

html.ad-on .saas-plan ul{
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 0 0;
  border-top: 1px solid var(--ad-line-2);
  color: var(--ad-ink-2);
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.45;
}

html.ad-on .saas-plan li{
  position: relative;
  padding-left: 28px;
}

html.ad-on .saas-plan li + li{
  margin-top: 0;
}

html.ad-on .saas-plan li::before{
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ad-green-bg);
}

html.ad-on .saas-plan li::after{
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 10px;
  height: 10px;
  background: #166534;
  -webkit-mask: var(--ad-i-check) center / contain no-repeat;
  mask: var(--ad-i-check) center / contain no-repeat;
}

html.ad-on .saas-plan .saas-btn{
  align-self: stretch;
  margin-top: auto;
}

html.ad-on .saas-plan--full{
  border: 1px solid var(--ad-navy);
  background:
    radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--ad-gold) 20%, transparent), transparent 70%),
    linear-gradient(165deg, var(--ad-navy-2), var(--ad-navy) 65%);
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.08), 0 30px 60px -30px rgba(16, 45, 78, 0.65);
  color: #fff;
}

html.ad-on .saas-plan--full :is(h3, ul){
  color: rgba(255, 255, 255, 0.8);
}

html.ad-on .saas-plan--full .saas-plan__price{
  color: #fff;
}

html.ad-on .saas-plan--full ul{
  border-top-color: rgba(255, 255, 255, 0.14);
}

html.ad-on .saas-plan--full li::before{
  background: rgba(242, 199, 123, 0.18);
}

html.ad-on .saas-plan--full li::after{
  background: #f2c77b;
}

html.ad-on .saas-plan--full .saas-btn{
  border-color: #fff;
  background: #fff;
  color: var(--ad-navy);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}

html.ad-on .saas-plan--full .saas-btn:hover{
  border-color: #f4efe6;
  background: #f4efe6;
}

/* ---------- Contact ---------- */

html.ad-on .saas-contact{
  padding: 0 0 88px;
}

html.ad-on .saas-contact__grid{
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--ad-line);
  border-radius: 24px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
}

html.ad-on .saas-contact h2 + p{
  margin-top: 14px;
  font-size: 1.0625rem;
}

html.ad-on .saas-contact a{
  color: var(--ad-navy-2);
}

/* ---------- Form fields ---------- */

html.ad-on .saas-form{
  gap: 14px;
}

html.ad-on .saas-form label{
  gap: 6px;
  color: var(--ad-ink-2);
  font: 550 0.8125rem/1.3 var(--ad-sans);
}

html.ad-on .saas-form :is(input, textarea, select){
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  background: var(--ad-paper);
  color: var(--ad-ink);
  font: 400 0.9375rem/1.35 var(--ad-sans);
  box-shadow: inset 0 1px 1px rgba(15, 27, 45, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html.ad-on .saas-form :is(input, select){
  height: 40px;
}

html.ad-on .saas-form select{
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background: var(--ad-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px 16px no-repeat;
  cursor: pointer;
}

html.ad-on .saas-form textarea{
  min-height: 132px;
  line-height: 1.5;
}

html.ad-on .saas-form :is(input, textarea, select):hover{
  border-color: color-mix(in srgb, var(--ad-line) 50%, var(--ad-mute));
}

html.ad-on .saas-form :is(input, textarea, select):focus{
  border-color: var(--ad-ring);
  outline: 0;
  box-shadow: var(--ad-focus);
}

html.ad-on .saas-form .saas-btn{
  justify-self: start;
  margin-top: 4px;
}

html.ad-on .saas-form__status{
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ad-green-bg);
  color: #166534;
  font: 500 0.875rem/1.4 var(--ad-sans);
}

html.ad-on .saas-form__status--error{
  background: var(--ad-rose-bg);
  color: #9f1239;
}

/* ---------- Footer ---------- */

html.ad-on .saas-foot{
  border-top: 1px solid var(--ad-line);
  background: var(--ad-bg);
  color: var(--ad-mute);
}

html.ad-on .saas-foot__row{
  gap: 10px 24px;
  min-height: 76px;
  padding-right: 150px;
}

html.ad-on .saas-foot p{
  color: var(--ad-mute);
  font: 500 0.875rem/1.4 var(--ad-sans);
}

html.ad-on .saas-foot p:first-child{
  color: var(--ad-ink);
  font-weight: 650;
}

html.ad-on .saas-foot :is(a, button){
  margin-left: 0;
  color: var(--ad-ink-2);
  font: 550 0.875rem/1.4 var(--ad-sans);
}

html.ad-on .saas-foot :is(a, button):hover{
  color: var(--ad-ink);
}

html.ad-on .saas-foot__row > button[data-saas-create]{
  margin-left: auto;
  color: var(--ad-navy-2);
  font-weight: 650;
}

/* ---------- Create your company dialog: opens high, white card, serif title ---------- */

html.ad-on .saas-modal{
  place-items: start center;
  padding: max(24px, 5vh) 24px 24px;
  overflow-y: auto;
}

html.ad-on .saas-modal__backdrop{
  position: fixed;
  background: rgba(15, 27, 45, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

html.ad-on .saas-modal__box{
  width: min(720px, 100%);
  max-height: calc(100dvh - max(48px, 10vh));
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow-lg);
  animation: ad-saas-pop 0.18s var(--ad-ease);
}

html.ad-on .saas-modal__head{
  align-items: flex-start;
  padding: 26px 26px 0;
}

html.ad-on .saas-modal__head h2{
  font: 400 2rem/1.1 var(--ad-serif);
}

html.ad-on .saas-modal__head .saas-build{
  margin: 10px 0 0;
}

html.ad-on .saas-modal__close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 auto;
  border-radius: 50%;
  color: var(--ad-mute);
  font-size: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

html.ad-on .saas-modal__close::before{
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ad-i-x) center / contain no-repeat;
  mask: var(--ad-i-x) center / contain no-repeat;
}

html.ad-on .saas-modal__close:hover{
  background: var(--ad-line-2);
  color: var(--ad-ink);
}

html.ad-on .saas-modal .saas-form{
  padding: 20px 26px 26px;
}

html.ad-on .saas-modal fieldset{
  gap: 0;
}

/* Each part of the form is its own band, split by a hairline. */
html.ad-on .saas-modal .saas-form__section{
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--ad-line-2);
}

html.ad-on .saas-modal .saas-form__section:first-child{
  padding-top: 0;
  border-top: 0;
}

html.ad-on .saas-modal fieldset > .saas-btn{
  justify-self: stretch;
  margin-top: 6px;
}

html.ad-on .saas-modal fieldset > .saas-form__status{
  margin-top: 12px;
}

html.ad-on .saas-form__row{
  gap: 12px 14px;
}

html.ad-on .saas-form__legend{
  color: var(--ad-ink);
  font: 650 0.95rem/1.3 var(--ad-sans);
}

html.ad-on .saas-form__legend span{
  color: var(--ad-mute);
  font-size: 0.85rem;
  font-weight: 500;
}

/* The two plans: radio cards. */
html.ad-on .saas-form .saas-plan-rect{
  gap: 6px;
  min-height: 80px;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  background: var(--ad-paper);
  color: var(--ad-ink-2);
  font: 600 0.9rem/1.2 var(--ad-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

html.ad-on .saas-form .saas-plan-rect::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1.5px solid #cfc8bb;
  border-radius: 50%;
  background: var(--ad-paper);
  transition: border 0.15s ease;
}

html.ad-on .saas-form .saas-plan-rect:hover{
  border-color: color-mix(in srgb, var(--ad-line) 40%, var(--ad-mute));
}

html.ad-on .saas-form .saas-plan-rect:has(input:checked){
  border-color: var(--ad-navy-2);
  background: color-mix(in srgb, var(--ad-blue-bg) 35%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ad-blue) 12%, transparent);
}

html.ad-on .saas-form .saas-plan-rect:has(input:checked)::before{
  border: 5.5px solid var(--ad-navy);
}

html.ad-on .saas-form .saas-plan-rect:has(input:focus-visible){
  outline: 3px solid color-mix(in srgb, var(--ad-blue) 45%, white);
  outline-offset: 2px;
}

html.ad-on .saas-plan-rect__price{
  color: var(--ad-ink);
  font: 400 1.6rem/1 var(--ad-serif);
  white-space: nowrap;
}

html.ad-on .saas-modal fieldset:disabled :is(input, select){
  background: var(--ad-side);
  color: var(--ad-mute);
}

html.ad-on .saas-modal fieldset:disabled .saas-btn{
  background: var(--ad-navy);
  color: #fff;
}

@keyframes ad-saas-pop{
  from{ opacity: 0; transform: translateY(8px) scale(0.985); }
  to{ opacity: 1; transform: none; }
}

/* ---------- Billing note and the "Opening your company" wait ---------- */

html.ad-on .saas-billing-note{
  padding: 12px 24px;
  border-bottom: 1px solid #f3dfb8;
  background: var(--ad-amber-bg);
  color: #92400e;
  font: 500 0.9rem/1.4 var(--ad-sans);
  text-align: center;
}

html.ad-on .saas-opening{
  background: rgba(15, 27, 45, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

html.ad-on .saas-opening__card{
  min-width: 260px;
  padding: 30px 34px;
  border: 1px solid var(--ad-line);
  border-radius: 20px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow-lg);
  color: var(--ad-ink);
  font: 600 0.95rem/1.3 var(--ad-sans);
}

html.ad-on .saas-opening__spin{
  border-color: var(--ad-track);
  border-top-color: var(--ad-navy);
}

html.ad-on .saas-opening--error p{
  color: #9f1239;
}

/* ---------- The AI chat: the portal's Conversations look in a corner card ---------- */

html.ad-on .saas-chat{
  right: 20px;
  bottom: 20px;
}

html.ad-on .saas-chat__tab{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--ad-navy);
  color: #fff;
  font: 650 0.9rem/1 var(--ad-sans);
  box-shadow: 0 2px 6px rgba(15, 27, 45, 0.12), 0 18px 36px -14px rgba(16, 45, 78, 0.7);
  transition: background-color 0.15s ease, transform 0.15s var(--ad-ease);
}

html.ad-on .saas-chat__tab[hidden]{
  display: none;
}

html.ad-on .saas-chat__tab::before{
  content: "";
  width: 18px;
  height: 18px;
  background: #f2c77b;
  -webkit-mask: var(--ad-i-spark) center / contain no-repeat;
  mask: var(--ad-i-spark) center / contain no-repeat;
}

html.ad-on .saas-chat__tab:hover{
  background: var(--ad-navy-2);
  transform: translateY(-1px);
}

html.ad-on .saas-chat__panel{
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 40px));
  border: 1px solid var(--ad-line);
  border-radius: 22px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow-lg);
  animation: ad-saas-pop 0.18s var(--ad-ease);
}

html.ad-on .saas-chat__bar{
  position: relative;
  min-height: 64px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--ad-line-2);
  background: var(--ad-paper);
  color: var(--ad-ink);
}

html.ad-on .saas-chat__bar h2{
  display: flex;
  align-items: center;
  gap: 12px;
  font: 650 1rem/1.2 var(--ad-sans);
  letter-spacing: -0.01em;
}

/* The AI's avatar: a gold-tinted circle with the spark, the colour of the AI's turns. */
html.ad-on .saas-chat__bar h2::before{
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ad-gold-bg);
  box-shadow: inset 0 0 0 1px #f1e2c2;
}

html.ad-on .saas-chat__bar h2::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 26px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: #a26a17;
  -webkit-mask: var(--ad-i-spark) center / contain no-repeat;
  mask: var(--ad-i-spark) center / contain no-repeat;
}

html.ad-on .saas-chat__bar button{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ad-mute);
}

html.ad-on .saas-chat__bar button:hover{
  background: var(--ad-line-2);
  color: var(--ad-ink);
}

html.ad-on .saas-chat__log{
  gap: 12px;
  padding: 18px 16px;
  background: var(--ad-bg);
}

html.ad-on .saas-chat__msg{
  max-width: 86%;
  padding: 10px 14px;
  border: 1px solid #f1e2c2;
  border-radius: 6px 18px 18px 18px;
  font: 400 0.92rem/1.5 var(--ad-sans);
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
}

html.ad-on .saas-chat__msg--us{
  background: #fdf7ea;
  color: var(--ad-ink);
}

html.ad-on .saas-chat__msg a{
  color: var(--ad-navy-2);
  font-weight: 650;
}

html.ad-on .saas-chat__msg--you{
  border-color: var(--ad-navy);
  border-radius: 18px 6px 18px 18px;
  background: var(--ad-navy);
  color: #fff;
  box-shadow: 0 8px 22px -14px rgba(16, 45, 78, 0.8);
}

html.ad-on .saas-chat__msg--you a{
  color: #fff;
}

html.ad-on .saas-chat__form{
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--ad-line-2);
  background: var(--ad-paper);
}

html.ad-on .saas-chat__form textarea{
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--ad-line);
  border-radius: 14px;
  background: var(--ad-bg);
  color: var(--ad-ink);
  font: 400 0.92rem/1.45 var(--ad-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

html.ad-on .saas-chat__form textarea::placeholder{
  color: var(--ad-mute);
}

html.ad-on .saas-chat__form textarea:focus{
  border-color: color-mix(in srgb, var(--ad-navy-2) 45%, white);
  outline: 0;
  background: var(--ad-paper);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ad-blue) 12%, transparent);
}

html.ad-on .saas-chat__send p{
  color: var(--ad-mute);
  font: 500 0.75rem/1 var(--ad-sans);
  font-variant-numeric: tabular-nums;
}

html.ad-on .saas-chat__send button{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--ad-navy);
  color: #fff;
  font: 600 0.85rem/1 var(--ad-sans);
  transition: background-color 0.15s ease;
}

html.ad-on .saas-chat__send button::before{
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--ad-i-send) center / contain no-repeat;
  mask: var(--ad-i-send) center / contain no-repeat;
}

html.ad-on .saas-chat__send button:hover:not(:disabled){
  background: var(--ad-navy-2);
}

html.ad-on .saas-chat__send button:disabled{
  opacity: 0.4;
}

html.ad-on .saas-chat__hint{
  color: #9f1239;
  font: 500 0.8rem/1.3 var(--ad-sans);
}

html.ad-on :is(.saas-chat__tab, .saas-chat__bar button, .saas-chat__send button):focus-visible{
  outline: 3px solid color-mix(in srgb, var(--ad-blue) 45%, white);
  outline-offset: 2px;
}

html.ad-on .saas-chat__form textarea:focus-visible{
  outline: 0;
}

/* ---------- Privacy Policy and Terms of Service ---------- */

html.ad-on .saas-legal{
  min-height: calc(100vh - 146px);
  padding: 72px 0 96px;
}

html.ad-on .saas-legal .saas-wrap{
  max-width: 760px;
}

html.ad-on .saas-legal h1{
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

html.ad-on .saas-legal__updated{
  margin: 0 0 32px;
  color: var(--ad-mute);
  font: 500 0.9rem/1.4 var(--ad-sans);
}

html.ad-on .saas-legal__pending{
  max-width: none;
  padding: 22px 24px;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius);
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
  color: var(--ad-ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

html.ad-on .saas-legal ~ .saas-foot .saas-foot__row{
  padding-right: 0;
}

html.ad-on .saas-legal ~ .saas-foot .saas-foot__row > :last-child{
  margin-left: auto;
}

/* ---------- Narrow windows ---------- */

@media (max-width: 1080px){
  html.ad-on .saas-feature-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px){
  html.ad-on .saas-wrap{
    width: calc(100% - 32px);
  }

  html.ad-on .saas-bar__row{
    gap: 4px 12px;
    min-height: 60px;
    padding: 10px 0 6px;
  }

  /* The section links: one row that scrolls sideways under the brand. */
  html.ad-on .saas-nav{
    flex-wrap: nowrap;
    order: 3;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 10px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html.ad-on .saas-nav::-webkit-scrollbar{
    display: none;
  }

  html.ad-on .saas-nav a{
    flex: none;
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  html.ad-on .saas-bar .saas-btn{
    min-height: 38px;
    margin-left: auto;
    padding: 0 16px;
  }

  html.ad-on .saas-hero{
    padding: 44px 0 52px;
  }

  html.ad-on :is(.saas-hero__grid, .saas-band__inner, .saas-contact__grid, .saas-roles, .saas-plans){
    grid-template-columns: 1fr;
  }

  html.ad-on .saas-hero__grid{
    gap: 40px;
  }

  html.ad-on .saas-band{
    padding: 8px 0 40px;
  }

  html.ad-on :is(.saas-band__inner, .saas-contact__grid){
    gap: 28px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  html.ad-on .saas-features{
    padding: 32px 0 48px;
  }

  html.ad-on .saas-feature-list{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  html.ad-on .saas-feature-list article{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px;
  }

  html.ad-on .saas-feature-list article::before{
    grid-row: 1 / 3;
    margin: 0;
  }

  html.ad-on .saas-feature-list article p{
    margin-top: 4px;
  }

  html.ad-on .saas-pricing{
    padding: 16px 0 48px;
  }

  html.ad-on .saas-plan{
    padding: 24px 22px;
  }

  html.ad-on .saas-contact{
    padding-bottom: 48px;
  }

  html.ad-on .saas-form .saas-btn{
    justify-self: stretch;
  }

  html.ad-on .saas-form__row{
    grid-template-columns: 1fr;
  }

  html.ad-on :is(.saas-form, .saas-chat__form) :is(input, select, textarea){
    font-size: 16px;
  }

  html.ad-on .saas-foot__row{
    gap: 6px 18px;
    padding: 18px 0 84px;
  }

  html.ad-on .saas-foot__row > button[data-saas-create]{
    margin-left: 0;
  }

  html.ad-on .saas-legal ~ .saas-foot .saas-foot__row{
    padding-bottom: 18px;
  }

  html.ad-on .saas-modal{
    padding: 12px;
  }

  html.ad-on .saas-modal__box{
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }

  html.ad-on .saas-modal__head{
    padding: 20px 18px 0;
  }

  html.ad-on .saas-modal .saas-form{
    padding: 16px 18px 20px;
  }

  html.ad-on .saas-form .saas-plan-rect{
    padding: 12px 12px 12px 40px;
  }

  html.ad-on .saas-form .saas-plan-rect::before{
    left: 12px;
  }

  html.ad-on .saas-plan-rect__price{
    font-size: 1.3rem;
  }

  html.ad-on .saas-chat{
    right: 12px;
    bottom: 12px;
  }

  html.ad-on .saas-legal{
    padding: 44px 0 64px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce){
  html.ad-on{
    scroll-behavior: auto;
  }

  html.ad-on *,
  html.ad-on *::before,
  html.ad-on *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.ad-on :is(.saas-btn, .saas-chat__tab, .saas-feature-list article):hover{
    transform: none;
  }
}

/* Sign-up: "move money only through RentWiseAI" box, a checkbox beside its text (both designs). */
.saas-form label.saas-form__check,
html.ad-on .saas-form label.saas-form__check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.saas-form label.saas-form__check input,
html.ad-on .saas-form label.saas-form__check input{
  flex: none;
  width: 16px;
  min-height: 0;
  height: 16px;
  margin-top: 2px;
  padding: 0;
}

/* ---------- Pricing: three plans under a doors bar that re-prices them (saas.js) ---------- */

.saas-plans--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px){
  .saas-plans--three{
    grid-template-columns: minmax(0, 1fr);
  }
}

.saas-doors{
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--saas-line);
  border-radius: 16px;
  background: #fff;
}

.saas-doors label{
  color: var(--saas-navy);
  font-weight: 650;
}

.saas-doors__row{
  display: flex;
  align-items: center;
  gap: 14px;
}

.saas-doors input[type="range"]{
  flex: 1;
  min-width: 0;
  accent-color: var(--saas-navy);
}

.saas-doors input[type="number"]{
  width: 96px;
  padding: 7px 10px;
  border: 1px solid var(--saas-line);
  border-radius: 10px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.saas-doors__note{
  margin: 0;
  color: var(--saas-muted);
  font-size: 0.85rem;
}

.saas-plan__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin: 0;
}

.saas-plan__tag{
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--saas-paper);
  color: var(--saas-navy);
  font-size: 0.75rem;
  font-weight: 650;
}

.saas-plan__tag--best{
  background: #e7f7ec;
  color: #166534;
}

.saas-plan__for{
  margin: -8px 0 0;
  color: var(--saas-muted);
  font-size: 0.9rem;
}

.saas-plan__price small{
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.75;
}

.saas-plan__unit{
  margin: 0;
  color: var(--saas-muted);
  font-size: 0.9rem;
}

.saas-plan__est{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--saas-paper);
  font-size: 0.9rem;
}

.saas-plan__est b{
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.saas-plan.is-best{
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.saas-plans__foot{
  margin: 14px 0 0;
  color: var(--saas-muted);
  font-size: 0.85rem;
}

html.ad-on .saas-doors{
  margin-top: 32px;
  border-color: var(--ad-line);
  border-radius: 20px;
  background: var(--ad-paper);
  box-shadow: var(--ad-shadow);
}

html.ad-on .saas-doors label{
  color: var(--ad-ink);
  font-family: var(--ad-sans);
}

html.ad-on .saas-plan__price small{
  font-family: var(--ad-sans);
}

html.ad-on .saas-plan__est{
  background: color-mix(in srgb, var(--ad-ink) 5%, transparent);
}

html.ad-on .saas-plan--full :is(.saas-plan__for, .saas-plan__unit, .saas-plan__est){
  color: rgba(255, 255, 255, 0.82);
}

html.ad-on .saas-plan--full .saas-plan__est{
  background: rgba(255, 255, 255, 0.1);
}

html.ad-on .saas-plan--full .saas-plan__tag:not(.saas-plan__tag--best){
  background: rgba(242, 199, 123, 0.2);
  color: #f2c77b;
}

/* ---------- Plan details ("More details…" on each plan): wide, starts at the top of the window ---------- */

.saas-plan .saas-btn--more,
.saas-plan-sheet__foot .saas-btn--more{
  border: 1px solid var(--saas-line);
  background: #fff;
  color: var(--saas-navy);
}

.saas-plan .saas-btn--more:hover,
.saas-plan-sheet__foot .saas-btn--more:hover{
  background: var(--saas-paper);
}

.saas-plan .saas-btn--more{
  margin-top: auto;
  align-self: stretch;
}

.saas-plan .saas-btn--more + .saas-btn{
  margin-top: 0;
  align-self: stretch;
}

.saas-modal--wide{
  place-items: start center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
}

.saas-modal--wide .saas-modal__box{
  width: min(1040px, 100%);
  max-height: calc(100dvh - 32px);
}

.saas-plan-sheet__sub{
  margin: 4px 0 0;
  color: var(--saas-muted);
}

.saas-plan-sheet{
  min-height: 0;
  overflow: auto;
  padding: 16px 22px 8px;
}

.saas-plan-sheet__sum{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.saas-plan-sheet__sum > div{
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--saas-line);
  border-radius: 12px;
  background: #fff;
}

.saas-plan-sheet__sum span{
  color: var(--saas-muted);
  font-size: 0.85rem;
}

.saas-plan-sheet__sum b{
  color: var(--saas-navy);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.saas-plan-sheet__sum .is-total{
  border-color: var(--saas-navy);
  background: var(--saas-navy);
}

.saas-plan-sheet__sum .is-total :is(span, b){
  color: #fff;
}

.saas-plan-sheet__groups{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.saas-plan-sheet__groups section{
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--saas-line);
  border-radius: 14px;
  background: #fff;
}

.saas-plan-sheet__groups h3{
  margin: 0 0 6px;
  color: var(--saas-navy);
  font-size: 1rem;
}

.saas-plan-sheet__groups dl{
  margin: 0;
}

.saas-plan-sheet__groups dl > div{
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--saas-line);
  font-size: 0.9rem;
}

.saas-plan-sheet__groups dl > div:first-child{
  border-top: 0;
}

.saas-plan-sheet__groups dt{
  color: var(--saas-ink, #142033);
  font-weight: 600;
}

.saas-plan-sheet__groups dt small{
  display: block;
  margin-top: 2px;
  color: var(--saas-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.saas-plan-sheet__groups dd{
  margin: 0;
  color: var(--saas-muted);
}

.saas-plan-sheet__free{
  color: #166534;
  font-weight: 700;
}

.saas-plan-sheet__soon{
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fbf1dc;
  color: #8a5a12;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.saas-plan-sheet__foot{
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--saas-line);
}

@media (max-width: 760px){
  .saas-plan-sheet__sum,
  .saas-plan-sheet__groups{
    grid-template-columns: minmax(0, 1fr);
  }
}

html.ad-on .saas-plan .saas-btn--more{
  border-color: var(--ad-line);
  background: var(--ad-paper);
  color: var(--ad-ink);
}

html.ad-on .saas-plan--full .saas-btn--more{
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html.ad-on .saas-modal--wide .saas-modal__box{
  width: min(1040px, 100%);
}
