/* ============================================================
 * Landlord Studio — ROI Calculator (pricing page)
 *
 * Rebuilt to match the marketing-site Figma design
 * (LS marketing website → "ROI calculator" 5376:2845).
 * One rounded card split into inputs (left) / results (right);
 * light-blue value hero; custom slider tracks + value boxes;
 * combined payoff / "Where do you save" info box; blue CTA.
 *
 * Multi-instance + currency-aware; config via data-* on the root.
 * All styles scoped under .ls-roi-us. Do NOT add @import /
 * @font-face — those are global; Webflow loads Lato site-wide.
 * ============================================================ */

.ls-roi-us {
  /* FloUI / marketing tokens */
  --lsroi-navy: #0F2E5A;
  --lsroi-blue: #2272E2;
  --lsroi-blue-dark: #1B5FC0;
  --lsroi-value-blue: #144A95;
  --lsroi-sub: #4A5978;
  --lsroi-secondary: #4B6283;
  --lsroi-muted: #8090A8;
  --lsroi-border: #DDE0E5;
  --lsroi-track: #E9EBEF;
  --lsroi-surface0: #FAFAFC;
  --lsroi-surface1: #F5F6F8;
  --lsroi-hero-blue: #E7F2FF;
  --lsroi-green: #22B38A;
  --lsroi-green-dark: #156554;
  --lsroi-chip-green: #D6F7EE;
  --lsroi-white: #fff;

  font-family: 'Lato', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--lsroi-navy);
  background: transparent; /* blend into the host Webflow section, no grey band */
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.5;
  font-size: 16px;
  box-sizing: border-box;
}
.ls-roi-us *, .ls-roi-us *::before, .ls-roi-us *::after { box-sizing: border-box; }

/* ---- Header ---- */
.ls-roi-us .ls-roi-head { margin-bottom: 32px; max-width: 760px; }
/* Inherit the host page's native h2 styling so the heading blends in with
   the site's own section headings. Standalone dev/preview falls back to the
   browser default h2 (bold, Lato inherited from the root). */
.ls-roi-us .ls-roi-h2 { margin: 0 0 8px; }
.ls-roi-us .ls-roi-sub {
  line-height: 1.35;
  color: var(--lsroi-sub);
  margin: 0;
}

/* ---- The card ---- */
.ls-roi-us .ls-roi-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--lsroi-white);
  border: 1px solid var(--lsroi-border);
  border-radius: 24px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .ls-roi-us .ls-roi-card { grid-template-columns: 1fr; }
}

/* ---- Left: inputs ---- */
.ls-roi-us .ls-left {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--lsroi-border);
}
@media (max-width: 880px) {
  .ls-roi-us .ls-left { border-right: 0; border-bottom: 1px solid var(--lsroi-border); padding: 24px; }
}
.ls-roi-us .ls-left-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ls-roi-us .ls-left-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.3;
  color: var(--lsroi-navy);
  margin: 0;
}
.ls-roi-us .ls-reset {
  background: transparent;
  border: 0;
  color: var(--lsroi-blue);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}
.ls-roi-us .ls-reset:hover { background: var(--lsroi-surface1); }

/* ---- Toggle group (mode) ---- */
.ls-roi-us .ls-tabs {
  display: flex;
  gap: 8px;
  background: var(--lsroi-surface1);
  border-radius: 8px;
  padding: 4px;
}
.ls-roi-us .ls-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--lsroi-navy);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, font-weight .15s;
}
.ls-roi-us .ls-tab svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ls-roi-us .ls-tab.is-active { background: var(--lsroi-white); font-weight: 700; }
@media (max-width: 420px) {
  .ls-roi-us .ls-tab { font-size: 14px; padding: 8px 10px; }
}

/* ---- Sliders ---- */
.ls-roi-us .ls-mode { display: none; flex-direction: column; gap: 24px; }
.ls-roi-us .ls-mode.is-active { display: flex; }
.ls-roi-us .ls-sliders { display: flex; flex-direction: column; gap: 24px; }
.ls-roi-us .ls-slider { display: flex; flex-direction: column; gap: 12px; }
.ls-roi-us .ls-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ls-roi-us .ls-slider-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lsroi-navy);
}
.ls-roi-us .ls-slider-box {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 56px;
  border: 1px solid var(--lsroi-border);
  border-radius: 12px;
  padding: 6px 10px;
  white-space: nowrap;
}
.ls-roi-us .ls-slider-box:focus-within {
  border-color: var(--lsroi-blue);
  box-shadow: 0 0 0 3px rgba(34, 114, 226, .15);
}
.ls-roi-us .ls-slider-cur { color: var(--lsroi-blue); font-weight: 700; font-size: 16px; }
.ls-roi-us .ls-slider-num {
  border: 0;
  outline: 0;
  background: transparent;
  width: 4.5ch;
  text-align: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--lsroi-blue);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ls-roi-us .ls-slider-num::-webkit-outer-spin-button,
.ls-roi-us .ls-slider-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* info (i) */
.ls-roi-us .ls-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--lsroi-muted);
  cursor: help;
}
.ls-roi-us .ls-info svg { width: 18px; height: 18px; }
.ls-roi-us .ls-info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: var(--lsroi-navy);
  color: var(--lsroi-white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 46, 90, .22);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s;
  z-index: 5;
  pointer-events: none;
}
.ls-roi-us .ls-info:hover::after, .ls-roi-us .ls-info:focus::after { opacity: 1; visibility: visible; }
/* Hero (value) tooltip sits at the top of the overflow-hidden card; open it
   downward and right-aligned so it isn't clipped by the card's top edge. */
.ls-roi-us .ls-info--right::after {
  left: auto;
  right: 0;
  transform: none;
  top: calc(100% + 8px);
  bottom: auto;
}

/* range track + thumb (matches Figma slider) */
.ls-roi-us input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--lsroi-track);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.ls-roi-us input[type="range"]:focus-visible { box-shadow: 0 0 0 3px rgba(34, 114, 226, .2); }
.ls-roi-us input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lsroi-white);
  border: 1.5px solid var(--lsroi-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .1);
  cursor: pointer;
}
.ls-roi-us input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lsroi-white);
  border: 1.5px solid var(--lsroi-border);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .1);
  cursor: pointer;
}

/* ---- MTD checkbox (UK) ---- */
.ls-roi-us .ls-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--lsroi-surface1);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--lsroi-navy);
}
.ls-roi-us .ls-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto;
  accent-color: var(--lsroi-blue); cursor: pointer;
}
.ls-roi-us .ls-check-label { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---- Right: results ---- */
.ls-roi-us .ls-right {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero value box */
.ls-roi-us .ls-hero {
  background: var(--lsroi-hero-blue);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.ls-roi-us .ls-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--lsroi-navy);
}
.ls-roi-us .ls-hero-value {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  color: var(--lsroi-value-blue);
}
.ls-roi-us .ls-hero-num {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -.02em;
}
.ls-roi-us .ls-hero-unit {
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
  padding-bottom: 4px;
}

/* Breakdown rows */
.ls-roi-us .ls-breakdown { display: flex; flex-direction: column; gap: 12px; }
.ls-roi-us .ls-brow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  color: var(--lsroi-navy);
}
.ls-roi-us .ls-brow-label { min-width: 0; }
.ls-roi-us .ls-brow-val { font-weight: 700; white-space: nowrap; }
.ls-roi-us .ls-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--lsroi-green);
  background: var(--lsroi-chip-green);
  padding: 4px 6px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Info box (payoff + where you save) */
.ls-roi-us .ls-infobox {
  background: var(--lsroi-surface1);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ls-roi-us .ls-infobox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.ls-roi-us .ls-payoff {
  font-size: 16px;
  font-weight: 700;
  color: var(--lsroi-green-dark);
  margin: 0 0 2px;
}
.ls-roi-us .ls-where {
  font-size: 14px;
  color: var(--lsroi-navy);
  margin: 0;
}
.ls-roi-us .ls-where strong { font-weight: 700; }
.ls-roi-us .ls-infobox-chevron {
  flex: 0 0 auto;
  color: var(--lsroi-navy);
  transition: transform .15s;
}
.ls-roi-us .ls-infobox-chevron svg { width: 24px; height: 24px; display: block; }
.ls-roi-us .ls-infobox-head[aria-expanded="false"] .ls-infobox-chevron { transform: rotate(180deg); }
.ls-roi-us .ls-infobox-list { display: flex; flex-direction: column; gap: 8px; }
.ls-roi-us .ls-infobox-list[hidden] { display: none; }
.ls-roi-us .ls-infobox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--lsroi-navy);
}
.ls-roi-us .ls-infobox-item svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--lsroi-green); }

/* CTA */
.ls-roi-us .ls-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  background: var(--lsroi-blue);
  color: var(--lsroi-white);
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.ls-roi-us .ls-cta svg { width: 24px; height: 24px; }
.ls-roi-us .ls-cta:hover { background: var(--lsroi-blue-dark); }
.ls-roi-us .ls-cta-note {
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  color: var(--lsroi-navy);
  margin-top: 12px;
}

/* Disclaimer */
.ls-roi-us .ls-disclaimer {
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: var(--lsroi-muted);
  margin: 16px auto 0;
  max-width: 640px;
}
