/**
 * Copyright 2026 Cubesob Demo Template.
 * Theme Name: Kvist
 * Theme Type: Landing Page
 * Developed by Mohammad Rehaan Nizami and Designed by Arsala Jeelani
 * All rights reserved.
 */

:root {
  --paper: #f7f7f5;
  --card: #fdfdfb;
  --ph: #e4e5e0;
  --line: #e2e2de;
  --ink: #141414;
  --dim: #5f5f5b;
  --dark: #141414;
  --on-dark: #f4f4f1;
  --on-dark-dim: #b9b9b4;
  --lime: #d6f37c;
  --lime-soft: #e9f8cc;
  --grey-soft: #ececea;
  --word: #3b3b39;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  --fs-md: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-h3: clamp(1.55rem, 1rem + 1.5vw, 2.6rem);
  --fs-h2: clamp(2.3rem, 1.3rem + 3.2vw, 4.6rem);
  --fs-h1: clamp(2.9rem, min(1.3rem + 4.8vw, 9.5vh), 6.4rem);
  --fs-lead: clamp(1.55rem, 0.95rem + 2.1vw, 3.1rem);
  --frame: clamp(8px, 0.4rem + 0.5vw, 14px);
  --gutter: clamp(20px, 5vw, 96px);
  --max: 1440px;
  --sec: clamp(96px, 5rem + 6vw, 200px);
  --r-lg: clamp(20px, 1rem + 1vw, 32px);
  --r-md: clamp(16px, 0.8rem + 0.6vw, 24px);
  --shadow: 0 1px 2px #0000000f, 0 12px 32px -8px #0000002e;
}
*,
:before,
:after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-md)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
video {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
}
ul {
  padding: 0;
  list-style: none;
}
figure {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.how :focus-visible,
.map :focus-visible {
  outline-color: var(--lime);
}
.skip {
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 10px 16px;
  position: fixed;
  top: -60px;
  left: 12px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 1;
}
img.is-missing,
video.is-missing {
  visibility: hidden;
}
html.js:not(.ready) [data-in],
html.js:not(.ready) [data-hcard],
html.js:not(.ready) .ptag span,
html.js:not(.ready) .hero__title .line > span {
  opacity: 0;
}
.btn {
  height: 50px;
  font-size: var(--fs-sm);
  white-space: nowrap;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  font-weight: 500;
  transition:
    background-color 0.25s,
    color 0.25s;
  display: inline-flex;
}
.btn--sm {
  border-radius: 10px;
  height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn--dark {
  background: var(--ink);
  color: var(--paper);
}
.btn--dark:hover {
  background: #333331;
}
.btn--light {
  color: var(--ink);
  background: #fdfdfbf0;
}
.btn--light:hover {
  background: var(--lime);
}
.chip {
  white-space: nowrap;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
}
.chip:has(.chip__ic:last-child) {
  padding-right: 5px;
}
.chip--lime {
  background: var(--lime);
  color: var(--ink);
}
.chip--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.chip--glass {
  color: var(--on-dark);
  -webkit-backdrop-filter: blur(10px);
  background: #1414149e;
}
.chip__ic {
  background: var(--card);
  border-radius: 50%;
  place-items: center;
  width: 25px;
  height: 25px;
  display: grid;
}
.hero {
  padding: var(--frame) var(--frame) 0;
}
.hero__card {
  isolation: isolate;
  height: calc(100svh - 2 * var(--frame));
  border-radius: var(--r-lg);
  background: var(--ph);
  min-height: 620px;
  max-height: 1120px;
  position: relative;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__layer {
  position: absolute;
  inset: 0;
}
.hero__img,
.hero__video {
  --ox: 30%;
  object-fit: cover;
  object-position: var(--ox) 50%;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.hero__video {
  opacity: 0;
  transition: opacity 0.8s;
}
.hero__video.is-playing {
  opacity: 1;
}
.hero__media:after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(170deg, #f7f6f19e 0%, #f7f6f140 34%, #0000 52%),
    radial-gradient(52% 46% at 18% 40%, #f7f6f18c, #0000 100%);
  position: absolute;
  inset: 0;
}
.hero__tags {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.ptag {
  position: absolute;
  top: 0;
  left: 0;
}
.ptag span {
  background: var(--card);
  box-shadow: var(--shadow);
  white-space: nowrap;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: clamp(0.8125rem, 0.7rem + 0.3vw, 1.0625rem);
  font-weight: 500;
  display: block;
  position: relative;
}
.ptag span:after {
  content: "";
  background: inherit;
  border-radius: 0 0 3px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  position: absolute;
  bottom: -5px;
  left: 50%;
  rotate: 45deg;
}
.nav {
  z-index: 5;
  justify-content: space-between;
  align-items: center;
  padding: clamp(18px, 1rem + 0.6vw, 30px) clamp(20px, 4.5vw, 72px);
  display: flex;
  position: absolute;
  inset: 0 0 auto;
}
.logo {
  letter-spacing: -0.03em;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.6rem);
  font-weight: 500;
  display: inline-flex;
}
.nav__actions {
  gap: 8px;
  display: flex;
}
.menu {
  position: relative;
}
.menu__panel {
  background: var(--card);
  min-width: 210px;
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 8px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
}
.menu__panel[hidden] {
  display: none;
}
.menu__panel a {
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9375rem;
}
.menu__panel a:hover {
  background: var(--grey-soft);
}
.hero__copy {
  z-index: 3;
  max-width: 640px;
  position: absolute;
  top: clamp(96px, 15%, 190px);
  left: clamp(20px, 6.5vw, 120px);
}
.hero__title {
  font-size: var(--fs-h1);
  letter-spacing: -0.045em;
  font-weight: 500;
  line-height: 0.98;
}
.line {
  margin-bottom: -0.07em;
  padding-bottom: 0.07em;
  display: block;
  overflow: hidden;
}
.line > span {
  display: block;
}
.hero__lede {
  color: #2b2b29;
  max-width: 36ch;
  margin: clamp(18px, 2vw, 30px) 0 clamp(24px, 2.6vw, 38px);
}
.hstack {
  z-index: 3;
  aspect-ratio: 1/1.05;
  width: clamp(190px, 15vw, 290px);
  position: absolute;
  top: clamp(170px, 27%, 330px);
  right: clamp(24px, 11vw, 220px);
}
.hcard {
  background: var(--card);
  width: 100%;
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 7px;
  position: absolute;
}
.hcard img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--ph);
  border-radius: 14px;
  width: 100%;
}
.hcard--back {
  top: 0;
  left: -12%;
}
.hcard--back .hcard__price {
  padding: 8px 6px 4px;
  font-size: clamp(1rem, 0.8rem + 0.5vw, 1.3rem);
  font-weight: 500;
}
.hcard--front {
  width: 92%;
  top: 44%;
  left: 26%;
}
.hcard__body {
  padding: 9px 6px 4px;
}
.hcard--front .hcard__price {
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
}
.hcard__specs {
  color: var(--dim);
  margin-top: 2px;
  font-size: 0.75rem;
}
.intro {
  padding-block: var(--sec) calc(var(--sec) * 0.85);
}
.intro__lead {
  max-width: 23em;
  font-size: var(--fs-lead);
  letter-spacing: -0.025em;
  line-height: 1.16;
}
.intro__row {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  gap: 40px;
  margin-top: clamp(48px, 6vw, 96px);
  display: grid;
}
.pills {
  gap: clamp(8px, 1vw, 16px);
  padding-top: 18px;
  display: flex;
}
.pill {
  aspect-ratio: 1.5;
  width: clamp(150px, 17vw, 300px);
  position: relative;
}
.pill__ph {
  background: var(--ph);
  border-radius: 46%/50%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.pill__ph img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.pill__badge {
  z-index: 2;
  position: absolute;
}
.pill__badge--tl {
  top: -18px;
  left: 0;
}
.pill__badge--b {
  box-shadow: var(--shadow);
  bottom: -20px;
  left: 22%;
}
.pill__round {
  z-index: 2;
  background: var(--card);
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: 8%;
  right: 4%;
}
.intro__aside {
  max-width: 30ch;
  font-size: var(--fs-sm);
  justify-self: end;
}
.how {
  padding: 0 var(--frame);
}
.how__card {
  padding-top: var(--sec);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.how__head {
  text-align: center;
  padding-inline: var(--gutter);
}
.how__head p {
  color: var(--on-dark-dim);
  font-size: var(--fs-sm);
  margin-top: 14px;
}
.how__stage {
  width: min(60%, 820px);
  margin: clamp(40px, 5vw, 72px) auto 0;
  position: relative;
}
.how__frame {
  position: relative;
}
.how__tower {
  background: 0 0;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, #0000 0, #000 4% 96%, #0000 100%);
  mask-image: linear-gradient(90deg, #0000 0, #000 4% 96%, #0000 100%);
}
[data-float] {
  z-index: 2;
  left: var(--x);
  top: var(--y);
  position: absolute;
}
.fcard {
  width: clamp(230px, 20vw, 330px);
  color: var(--ink);
  background: #f4f4f1f5;
  border-radius: 18px;
  padding: clamp(18px, 1.4vw, 24px);
  box-shadow: 0 24px 48px -16px #0000008c;
}
.fcard h3 {
  letter-spacing: -0.02em;
  font-size: clamp(1.1rem, 0.9rem + 0.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.15;
}
.fcard p {
  color: var(--dim);
  margin: 10px 0 16px;
  font-size: 0.9375rem;
}
.fcard--lime {
  background: var(--lime);
}
.fcard--lime p {
  color: #3d4a1c;
}
.more {
  border-top: 1px solid #0000001f;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
}
.more svg {
  transition: translate 0.25s;
}
.more:hover svg {
  translate: 4px;
}
.thumb {
  background: var(--lime);
  border-radius: 16px;
  width: clamp(110px, 10vw, 160px);
  padding: 5px;
}
.thumb--sm {
  width: clamp(96px, 8.5vw, 140px);
}
.thumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--ph);
  border-radius: 11px;
  width: 100%;
}
.avatar {
  aspect-ratio: 1;
  background: var(--lime);
  border-radius: 50%;
  width: clamp(64px, 6.2vw, 100px);
  padding: 4px;
}
.avatar img {
  object-fit: cover;
  background: var(--ph);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}
.pin {
  position: absolute;
}
.pin__dot {
  background: var(--lime);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  position: absolute;
  top: 50%;
  left: -26px;
}
.pin__dot:before,
.pulse:before,
.pulse:after {
  content: "";
  background: var(--lime);
  border-radius: 50%;
  animation: 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite ring;
  position: absolute;
  inset: 0;
}
@keyframes ring {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.4);
  }
}
.save {
  padding-block: var(--sec) calc(var(--sec) * 0.7);
}
.save__head {
  text-align: center;
}
.save__head p {
  max-width: 30ch;
  font-size: var(--fs-sm);
  margin: 16px auto 0;
}
.deck {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: clamp(380px, 100svh - 320px, 600px);
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  position: relative;
}
.deck__col {
  border-radius: var(--r-md);
  background: var(--ph);
  position: relative;
  overflow: hidden;
}
.deck__media {
  z-index: 2;
}
.tpanel,
.mpanel {
  isolation: isolate;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tpanel {
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.6vw, 44px);
  display: flex;
}
.tpanel h3 {
  max-width: 15ch;
  font-size: var(--fs-h3);
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1.12;
}
.tpanel--lime {
  background: var(--lime-soft);
}
.tpanel--grey {
  background: var(--grey-soft);
}
.tpanel__foot {
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 24px;
  display: grid;
}
.tpanel__foot > p:last-child {
  max-width: 32ch;
  font-size: var(--fs-sm);
  justify-self: end;
}
.count {
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
}
.count span {
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}
.count span + span {
  color: var(--dim);
  border-color: #0003;
}
.mpanel {
  background: var(--ph);
}
.mpanel > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.mpanel__chip {
  z-index: 2;
  position: absolute;
  bottom: 18px;
  right: 18px;
}
.mpanel__loc {
  z-index: 2;
  position: absolute;
  top: 16%;
  right: 12%;
}
.mini {
  z-index: 2;
  background: var(--card);
  width: clamp(150px, 32%, 220px);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 6px 6px 9px;
  position: absolute;
  top: 30%;
  left: 9%;
}
.mini img {
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--ph);
  border-radius: 11px;
  width: 100%;
}
.mini__price {
  justify-content: space-between;
  align-items: center;
  margin: 8px 4px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
}
.mini__specs {
  color: var(--dim);
  margin: 1px 4px 0;
  font-size: 0.6875rem;
}
.mini__chat {
  background: var(--lime);
  border-radius: 50%;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
  position: absolute;
  top: -18px;
  left: -16px;
}
.mpanel__inset {
  z-index: 2;
  aspect-ratio: 3/4;
  border: 3px solid var(--card);
  background: var(--ph);
  border-radius: 12px;
  width: 27%;
  position: absolute;
  top: 9%;
  right: 10%;
  overflow: hidden;
}
.mpanel__inset img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.explore {
  padding: 0 var(--frame);
}
.map {
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--dark);
  height: clamp(560px, 90svh, 920px);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.map__ph {
  position: absolute;
  inset: 0;
}
.map__img {
  object-fit: cover;
  object-position: 50% 22%;
  width: 100%;
  height: 100%;
}
.map__ph:after {
  content: "";
  background: radial-gradient(46% 40%, #141414c7, #0000 100%);
  position: absolute;
  inset: 0;
}
.map__pins {
  z-index: 1;
  position: absolute;
  inset: 0;
}
.mchip,
.mthumb {
  left: var(--x);
  top: var(--y);
  position: absolute;
}
.mchip {
  color: #fff;
  white-space: nowrap;
  background: #5a5a57;
  border-radius: 9px;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
}
.mchip:after {
  content: "";
  background: inherit;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  position: absolute;
  bottom: -4px;
  left: 50%;
  rotate: 45deg;
}
.mchip--lime {
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
  padding-inline: 4px 11px;
}
.mchip--lime span:last-child {
  padding-right: 0;
}
.mchip--lime:has(span:first-child) {
  padding-inline: 11px 4px;
}
.mchip--lime:after {
  display: none;
}
.mchip i {
  background: var(--card);
  border-radius: 50%;
  place-items: center;
  width: 22px;
  height: 22px;
  display: grid;
}
.mthumb {
  background: #ffffff38;
  border-radius: 12px;
  width: clamp(84px, 7.5vw, 124px);
  padding: 4px;
}
.mthumb img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #2a2a28;
  border-radius: 9px;
  width: 100%;
}
.map__copy {
  z-index: 2;
  text-align: center;
  padding: var(--gutter);
  pointer-events: none;
  place-content: center;
  justify-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}
.map__copy > * {
  pointer-events: auto;
}
.map__copy p {
  max-width: 34ch;
  color: var(--on-dark-dim);
  font-size: var(--fs-sm);
  margin: 18px 0 30px;
}
.map__cta {
  position: relative;
}
.pulse {
  background: var(--lime);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: -14px;
  left: -30px;
}
.pulse:after {
  animation-delay: 1.2s;
}
.closing {
  padding-block: var(--sec) clamp(40px, 5vw, 80px);
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
  gap: 40px;
  display: grid;
}
.closing__title {
  max-width: 12ch;
}
.closing__side {
  justify-items: start;
  gap: 22px;
  padding-top: 8px;
  display: grid;
}
.closing__side p {
  max-width: 32ch;
  font-size: var(--fs-sm);
}
.band {
  padding-bottom: clamp(16px, 2vw, 28px);
  position: relative;
}
.band__marq {
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0 0 clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.band__track {
  flex: none;
  display: flex;
}
.band__track span {
  letter-spacing: -0.03em;
  padding: 0 0.9em;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem);
  line-height: 1;
}
.band__window {
  z-index: 1;
  height: clamp(320px, 42vw, 740px);
  position: relative;
}
.band__clip {
  border-radius: var(--r-lg);
  background: var(--ph);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.band__img,
.band__video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.band__video {
  opacity: 0;
  transition: opacity 0.8s;
}
.band__video.is-playing {
  opacity: 1;
}
.foot {
  padding-bottom: 28px;
}
.foot__mark {
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  display: flex;
}
.wordmark {
  letter-spacing: -0.055em;
  color: var(--word);
  flex: none;
  padding-bottom: 0.04em;
  font-size: clamp(4.6rem, 1rem + 15vw, 17rem);
  font-weight: 500;
  line-height: 0.95;
  overflow: hidden;
}
.wordmark .ch {
  display: inline-block;
}
.foot__pill {
  background: var(--ph);
  border-radius: 999px;
  flex: 1;
  min-width: 60px;
  height: clamp(60px, 9vw, 170px);
  overflow: hidden;
}
.foot__pill img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.foot__row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: clamp(20px, 2.4vw, 36px);
  display: flex;
}
.social {
  gap: 6px;
  display: flex;
}
.social a {
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  transition: background-color 0.25s;
  display: grid;
}
.social a:hover {
  background: var(--lime);
}
.foot__links {
  flex-wrap: wrap;
  gap: 0 26px;
  font-size: 0.9375rem;
  display: flex;
}
.foot__links a,
.foot__base a {
  align-items: center;
  min-height: 44px;
  display: inline-flex;
}
.foot__links a:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}
.foot__base {
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--dim);
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
  display: flex;
}
.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(72px, 8vw, 128px);
  display: grid;
}
.stat {
  padding-top: 22px;
  position: relative;
}
.stat__rule {
  background: var(--ink);
  transform-origin: 0;
  height: 1px;
  position: absolute;
  inset: 0 0 auto;
}
.stat__n {
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
}
.stat__l {
  max-width: 22ch;
  font-size: var(--fs-sm);
  color: var(--dim);
  margin-top: 12px;
}
.calc {
  padding-bottom: var(--sec);
}
.calc__head {
  text-align: center;
}
.calc__head p {
  max-width: 34ch;
  font-size: var(--fs-sm);
  margin: 16px auto 0;
}
.calc__grid {
  grid-template-columns: 1.1fr 1fr;
  gap: 12px;
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
}
.calc__form {
  border-radius: var(--r-md);
  background: var(--grey-soft);
  align-content: start;
  gap: clamp(28px, 3vw, 44px);
  padding: clamp(24px, 3vw, 48px);
  display: grid;
}
.field {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.field__top {
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.field__top label,
.field legend {
  font-size: var(--fs-sm);
  padding: 0;
  font-weight: 500;
}
.field legend {
  margin-bottom: 14px;
}
.field output {
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem);
  font-weight: 500;
}
.field__scale {
  font-size: var(--fs-xs);
  color: var(--dim);
  justify-content: space-between;
  margin-top: 2px;
  display: flex;
}
.range {
  --p: 27%;
  appearance: none;
  cursor: pointer;
  background: 0 0;
  width: 100%;
  height: 44px;
  margin: 0;
  display: block;
}
.range:focus-visible {
  outline: none;
}
.range::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--ink) var(--p),
    #00000021 var(--p)
  );
  border-radius: 99px;
  height: 6px;
}
.range::-webkit-slider-thumb {
  appearance: none;
  border: 7px solid var(--ink);
  background: var(--lime);
  width: 28px;
  height: 28px;
  transition: scale 0.2s var(--ease);
  border-radius: 50%;
  margin-top: -11px;
  box-shadow: 0 2px 10px #00000038;
}
.range:active::-webkit-slider-thumb {
  scale: 1.15;
}
.range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.range::-moz-range-track {
  background: #00000021;
  border-radius: 99px;
  height: 6px;
}
.range::-moz-range-progress {
  background: var(--ink);
  border-radius: 99px;
  height: 6px;
}
.range::-moz-range-thumb {
  border: 7px solid var(--ink);
  background: var(--lime);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 2px 10px #00000038;
}
.range:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.seg {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}
.seg__opt {
  cursor: pointer;
  position: relative;
}
.seg__opt input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.seg__opt > span {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s;
  display: grid;
}
.seg__opt:hover > span {
  border-color: var(--ink);
}
.seg__opt input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}
.seg__opt input:checked + span small {
  color: var(--on-dark-dim);
}
.seg__opt:has(input:focus-visible) > span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.seg__opt strong,
.switch strong {
  font-weight: 500;
}
.seg__opt small,
.switch small {
  color: var(--dim);
  font-size: 0.8125rem;
}
.switch {
  cursor: pointer;
  align-items: center;
  gap: 14px;
  display: flex;
  position: relative;
}
.switch input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}
.switch__track {
  background: #00000029;
  border-radius: 99px;
  flex: none;
  width: 54px;
  height: 32px;
  padding: 4px;
  transition: background-color 0.25s;
}
.switch__dot {
  background: var(--card);
  width: 24px;
  height: 24px;
  transition:
    translate 0.35s var(--ease),
    background-color 0.25s;
  border-radius: 50%;
  display: block;
  box-shadow: 0 1px 4px #0003;
}
.switch input:checked + .switch__track {
  background: var(--ink);
}
.switch input:checked + .switch__track .switch__dot {
  background: var(--lime);
  translate: 22px;
}
.switch:has(input:focus-visible) .switch__track {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.switch > span:last-child {
  gap: 2px;
  display: grid;
}
.calc__result {
  border-radius: var(--r-md);
  background: var(--dark);
  color: var(--on-dark);
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 3vw, 48px);
  display: flex;
}
.calc__label {
  font-size: var(--fs-sm);
  color: var(--on-dark-dim);
}
.calc__total {
  letter-spacing: -0.055em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin-top: -10px;
  font-size: clamp(3rem, 1.6rem + 4.2vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
}
.split__track {
  background: #ffffff24;
  border-radius: 99px;
  height: 10px;
  overflow: hidden;
}
.split__you {
  border-radius: inherit;
  background: var(--lime);
  transform-origin: 0;
  height: 100%;
  display: block;
}
.split__keys {
  color: var(--on-dark-dim);
  gap: 22px;
  margin-top: 12px;
  font-size: 0.8125rem;
  display: flex;
}
.split__keys b {
  color: var(--on-dark);
  font-weight: 500;
}
.dot {
  background: #ffffff52;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  display: inline-block;
}
.dot--lime {
  background: var(--lime);
}
.calc__lines {
  border-top: 1px solid #ffffff1f;
  margin: 0;
}
.calc__lines > div {
  font-size: var(--fs-sm);
  border-bottom: 1px solid #ffffff1f;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  display: flex;
}
.calc__lines dt {
  color: var(--on-dark-dim);
}
.calc__lines dd {
  font-variant-numeric: tabular-nums;
  margin: 0;
  transition: color 0.25s;
}
.calc__lines .is-off dd {
  color: var(--on-dark-dim);
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  align-self: flex-start;
}
.btn--lime:hover {
  background: #e4fb9c;
}
.btn svg {
  transition: translate 0.25s var(--ease);
}
.btn:hover svg {
  translate: 3px;
}
.calc__note {
  color: var(--on-dark-dim);
  margin-top: auto;
  font-size: 0.75rem;
}
.homes {
  padding-bottom: var(--sec);
}
.homes__head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  display: flex;
}
.homes__head p {
  font-size: var(--fs-sm);
  color: var(--dim);
  margin-top: 14px;
}
.homes__nav {
  gap: 8px;
  display: flex;
}
.round {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 50%;
  place-items: center;
  width: 54px;
  height: 54px;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    opacity 0.25s;
  display: grid;
}
.round:hover:not(:disabled) {
  border-color: var(--lime);
  background: var(--lime);
}
.round:disabled {
  opacity: 0.35;
  cursor: default;
}
.homes__track {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding: clamp(36px, 4vw, 56px) var(--edge) 8px;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  gap: clamp(12px, 1.2vw, 20px);
  display: flex;
  overflow-x: auto;
}
.homes__track::-webkit-scrollbar {
  display: none;
}
.homes__track:focus-visible {
  outline-offset: -4px;
}
.homes__track.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
  -webkit-user-select: none;
  user-select: none;
}
.home {
  scroll-snap-align: start;
  flex: none;
  width: clamp(270px, 27vw, 400px);
}
.home article {
  position: relative;
}
.home__ph {
  aspect-ratio: 4/3.2;
  border-radius: var(--r-md);
  background: var(--ph);
  position: relative;
  overflow: hidden;
}
.home__ph img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: scale 0.9s var(--ease);
}
.home:hover .home__ph img {
  scale: 1.05;
}
.home__tag {
  position: absolute;
  top: 14px;
  left: 14px;
}
.home__save {
  z-index: 2;
  background: #fdfdfbeb;
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  transition:
    background-color 0.2s,
    color 0.2s;
  display: grid;
  position: absolute;
  top: 12px;
  right: 12px;
}
.home__save:hover {
  background: var(--card);
}
.home__save[aria-pressed="true"] {
  --fill: currentColor;
  background: var(--ink);
  color: var(--lime);
}
.home__body {
  padding: 16px 4px 0;
}
.home__price {
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 500;
}
.home__name {
  font-size: var(--fs-md);
  margin-top: 2px;
  font-weight: 500;
}
.home__name a:after {
  content: "";
  position: absolute;
  inset: 0;
}
.home__place {
  color: var(--dim);
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.9375rem;
  display: flex;
}
.home__specs {
  border-top: 1px solid var(--line);
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 0.875rem;
  display: flex;
}
.home__specs li {
  align-items: center;
  gap: 6px;
  display: flex;
}
.homes__bar {
  background: var(--line);
  border-radius: 2px;
  height: 2px;
  margin-top: clamp(28px, 3vw, 44px);
  overflow: hidden;
}
.homes__bar span {
  background: var(--ink);
  transform-origin: 0;
  height: 100%;
  display: block;
}
.stories {
  padding-block: var(--sec) calc(var(--sec) * 0.5);
}
.stories__head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  display: flex;
}
.stories__head p {
  font-size: var(--fs-sm);
  align-items: center;
  gap: 8px;
  display: flex;
}
.stories__grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
}
.stories__col {
  gap: 12px;
  display: grid;
}
.stories__col[data-col="1"] {
  margin-top: clamp(40px, 6vw, 110px);
}
.quote {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  gap: 20px;
  margin: 0;
  padding: clamp(22px, 2.2vw, 32px);
  display: grid;
}
.stories__col[data-col="0"] .quote:last-child {
  background: var(--lime-soft);
  border-color: #0000;
}
.stories__col[data-col="1"] .quote:first-child {
  background: var(--dark);
  color: var(--on-dark);
  border-color: #0000;
}
.stories__col[data-col="1"] .quote:first-child small {
  color: var(--on-dark-dim);
}
.stories__col[data-col="1"] .quote:first-child .stars {
  color: var(--lime);
}
.stars {
  gap: 2px;
  display: flex;
}
.quote blockquote {
  letter-spacing: -0.01em;
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.45;
}
.quote figcaption {
  align-items: center;
  gap: 12px;
  display: flex;
}
.initials {
  background: var(--lime);
  width: 44px;
  height: 44px;
  color: var(--ink);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  display: grid;
}
.quote__who {
  line-height: 1.3;
  display: grid;
}
.quote__who strong {
  font-weight: 500;
}
.quote__who small {
  color: var(--dim);
  font-size: 0.8125rem;
}
.quote__back {
  margin-left: auto;
}
.faq {
  padding-block: calc(var(--sec) * 0.5) var(--sec);
  grid-template-columns: 1fr 1.45fr;
  align-items: start;
  gap: clamp(32px, 5vw, 96px);
  display: grid;
}
.faq__intro {
  justify-items: start;
  gap: 18px;
  display: grid;
  position: sticky;
  top: 40px;
}
.faq__intro p {
  max-width: 30ch;
  color: var(--dim);
}
.faq__list {
  border-top: 1px solid var(--line);
}
.qa {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  cursor: pointer;
  letter-spacing: -0.02em;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
  font-weight: 500;
  list-style: none;
  display: flex;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary:focus-visible {
  outline-offset: 4px;
}
.qa__icon {
  background: var(--grey-soft);
  width: 40px;
  height: 40px;
  transition:
    rotate 0.4s var(--ease),
    background-color 0.25s;
  border-radius: 50%;
  flex: none;
  place-items: center;
  display: grid;
}
.qa summary:hover .qa__icon,
.qa[open] .qa__icon {
  background: var(--lime);
}
.qa[open] .qa__icon {
  rotate: 45deg;
}
.qa__a {
  max-width: 62ch;
  color: var(--dim);
  padding: 0 64px 26px 0;
}
@media (width>=821px) and (height<=760px) {
  .hero__copy {
    top: 12%;
  }
}
@media (width<=820px), (height<=560px) and (orientation: landscape) {
  .hero__card {
    height: auto;
    min-height: max(640px, calc(100svh - 2 * var(--frame)));
  }
  .hero__img,
  .hero__video {
    --ox: 64%;
  }
  .hero__media:after {
    background: linear-gradient(
      #f7f6f1f0 0%,
      #f7f6f1e0 34%,
      #f7f6f173 50%,
      #0000 64%
    );
  }
  .hero__copy {
    top: 96px;
    right: 20px;
  }
  .hstack {
    width: 150px;
    top: auto;
    bottom: 64px;
    right: 30px;
  }
  .hcard {
    border-radius: 14px;
    padding: 5px;
  }
  .hcard img {
    border-radius: 10px;
  }
  .hcard__specs,
  .nav .btn--dark {
    display: none;
  }
  .intro__row {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .pill {
    width: calc(50% - 6px);
  }
  .pills {
    width: 100%;
  }
  .intro__aside {
    justify-self: start;
  }
  .how__card {
    padding-bottom: 28px;
  }
  .how__stage {
    width: min(88%, 520px);
  }
  [data-float] {
    left: var(--mx, var(--x));
    top: var(--my, var(--y));
  }
  .how__stage > .fcard {
    width: 100%;
    margin-top: 12px;
    position: relative;
    top: auto;
    left: auto;
  }
  .how__stage > .fcard:first-of-type {
    margin-top: -16%;
  }
  .map {
    height: max(600px, 88svh);
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .calc__grid,
  .seg {
    grid-template-columns: 1fr;
  }
  .homes__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .homes__nav {
    display: none;
  }
  .stories__grid {
    grid-template-columns: 1fr;
  }
  .stories__col[data-col="1"] {
    margin-top: 0;
  }
  .home {
    width: min(80vw, 420px);
  }
  .pill__badge--b {
    left: auto;
    right: 0;
  }
  .faq {
    grid-template-columns: 1fr;
  }
  .faq__intro {
    position: static;
  }
  .qa__a {
    padding-right: 0;
  }
  .mchip,
  .mthumb {
    left: min(var(--x), calc(100% - 132px));
  }
  .map__pins > :nth-child(7),
  .map__pins > :nth-child(n + 10) {
    display: none;
  }
  .closing {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .band__window {
    height: clamp(300px, 62vw, 520px);
  }
  .foot__base {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (width<=820px),
  (height<=560px) and (orientation: landscape),
  (prefers-reduced-motion: reduce) {
  .deck {
    flex-direction: column;
    gap: 12px;
    height: auto;
    display: flex;
  }
  .deck__col {
    display: contents;
  }
  .tpanel,
  .mpanel {
    border-radius: var(--r-md);
    position: relative;
  }
  .tpanel {
    gap: 40px;
    min-height: 300px;
  }
  .mpanel {
    aspect-ratio: 1;
  }
  .deck__text .tpanel:first-child {
    order: 1;
  }
  .deck__media .mpanel:first-child {
    order: 2;
  }
  .deck__text .tpanel:nth-child(2) {
    order: 3;
  }
  .deck__media .mpanel:nth-child(2) {
    order: 4;
  }
  .deck__text .tpanel:nth-child(3) {
    order: 5;
  }
  .deck__media .mpanel:nth-child(3) {
    order: 6;
  }
  .tpanel__foot {
    grid-template-columns: 1fr;
  }
  .tpanel__foot > p:last-child {
    justify-self: start;
  }
}
@media (width>=600px) and (width<=820px),
  (width>=600px) and (height<=560px) and (orientation: landscape) {
  .deck {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .tpanel,
  .mpanel {
    aspect-ratio: auto;
    min-height: 340px;
  }
}
@media (width>=821px) and (prefers-reduced-motion: reduce) {
  .deck {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  .tpanel,
  .mpanel {
    aspect-ratio: auto;
    min-height: 440px;
  }
}
@media (width>=600px) and (width<=820px) {
  .stories__grid {
    grid-template-columns: 1fr 1fr;
  }
  .stories__col {
    display: contents;
  }
}
@media (width<=480px) {
  .hstack {
    width: 132px;
    bottom: 54px;
    right: 26px;
  }
  .ptag,
  .map__pins > :nth-child(5),
  .map__pins > :nth-child(6) {
    display: none;
  }
  .quote figcaption {
    flex-wrap: wrap;
  }
  .quote__back {
    margin-left: 56px;
  }
  .foot__mark {
    flex-wrap: wrap;
  }
  .foot__pill {
    flex-basis: 100%;
    height: 72px;
  }
}

/* ==========================================================================
   Cubesob Dual Theme Engine & Unified Floating Control Bar
   ========================================================================== */

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* Floating Control Bar (Positioned bottom-left to avoid collisions) */
.cubesob-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.cubesob-floating-bar > * {
  pointer-events: auto;
}

.cubesob-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #090d16;
  font-family: var(--font, inherit);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
  cursor: default;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cubesob-demo-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.cubesob-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime, #d6f37c);
  box-shadow: 0 0 8px var(--lime, #d6f37c);
  display: inline-block;
  animation: cubesobPulse 2.4s infinite ease-in-out;
}

@keyframes cubesobPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cubesob-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #090d16;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cubesob-theme-toggle:hover {
  transform: scale(1.08);
}

.cubesob-theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon--sun {
  display: none;
}

.theme-icon--moon {
  display: block;
}

html.dark .theme-icon--sun,
html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

html.dark .theme-icon--moon,
html[data-theme="dark"] .theme-icon--moon {
  display: none;
}

/* ==========================================================================
   Flawless Dark Mode Palette & Overrides (Alternate Theme)
   Engineered for maximum contrast, zero ghost bleed-through, and AAA legibility
   ========================================================================== */

html.dark,
html[data-theme="dark"] {
  --paper: #090d16;
  --card: #0f172a;
  --ph: #1e293b;
  --line: #1e293b;
  --ink: #f8fafc;
  --dim: #94a3b8;
  --dark: #070a13;
  --on-dark: #f8fafc;
  --on-dark-dim: #94a3b8;
  --lime: #d6f37c;
  --lime-soft: #18281b;
  --grey-soft: #141d2f;
  --word: #1e293b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.5);
}

html.dark body,
html[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Cubesob Floating Control Bar & Demo Pill
   -------------------------------------------------------------------------- */
html.dark .cubesob-demo-pill,
html[data-theme="dark"] .cubesob-demo-pill {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html.dark .cubesob-theme-toggle,
html[data-theme="dark"] .cubesob-theme-toggle {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
html.dark .hero__media:after,
html[data-theme="dark"] .hero__media:after {
  background: linear-gradient(
    #090d16f0 0%,
    #090d16e0 34%,
    #090d1673 50%,
    #0000 64%
  );
}

html.dark .hero__copy:before,
html[data-theme="dark"] .hero__copy:before {
  background:
    linear-gradient(170deg, #090d16b3 0%, #090d1666 34%, #0000 52%),
    radial-gradient(52% 46% at 18% 40%, #090d16b3, #0000 100%);
}

html.dark .hero__lede,
html[data-theme="dark"] .hero__lede {
  color: #cbd5e1 !important;
}

html.dark .hcard,
html[data-theme="dark"] .hcard {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Navigation & Menu Dropdown
   -------------------------------------------------------------------------- */
html.dark .nav,
html[data-theme="dark"] .nav {
  background: transparent !important;
  border-bottom: none !important;
}

html.dark .menu__panel,
html[data-theme="dark"] .menu__panel {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7) !important;
}

html.dark .menu__panel a,
html[data-theme="dark"] .menu__panel a {
  color: #f8fafc !important;
}

html.dark .menu__panel a:hover,
html[data-theme="dark"] .menu__panel a:hover {
  background: #1e293b !important;
  color: var(--lime) !important;
}

/* --------------------------------------------------------------------------
   Buttons (Dark, Light, Lime) — High Contrast & Visibility
   -------------------------------------------------------------------------- */
/* Dark Button: White pill with dark text */
html.dark .btn--dark,
html[data-theme="dark"] .btn--dark,
html.dark a.btn--dark,
html[data-theme="dark"] a.btn--dark {
  background: #f8fafc !important;
  color: #090d16 !important;
  border: 1px solid #f8fafc !important;
}

html.dark .btn--dark:hover,
html[data-theme="dark"] .btn--dark:hover,
html.dark a.btn--dark:hover,
html[data-theme="dark"] a.btn--dark:hover {
  background: var(--lime) !important;
  color: #090d16 !important;
  border-color: var(--lime) !important;
}

/* Light Button: Dark slate with crisp light text */
html.dark .btn--light,
html[data-theme="dark"] .btn--light,
html.dark a.btn--light,
html[data-theme="dark"] a.btn--light,
html.dark button.btn--light,
html[data-theme="dark"] button.btn--light {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark .btn--light:hover,
html[data-theme="dark"] .btn--light:hover,
html.dark a.btn--light:hover,
html[data-theme="dark"] a.btn--light:hover,
html.dark button.btn--light:hover,
html[data-theme="dark"] button.btn--light:hover {
  background: var(--lime) !important;
  color: #090d16 !important;
  border-color: var(--lime) !important;
}

/* Lime Button: Punchy dark ink text on neon lime */
.btn--lime,
html.dark .btn--lime,
html[data-theme="dark"] .btn--lime,
html.dark a.btn--lime,
html[data-theme="dark"] a.btn--lime {
  background: var(--lime) !important;
  color: #090d16 !important;
  border: 1px solid var(--lime) !important;
}

.btn--lime svg,
html.dark .btn--lime svg,
html[data-theme="dark"] .btn--lime svg {
  stroke: #090d16 !important;
}

.btn--lime:hover,
html.dark .btn--lime:hover,
html[data-theme="dark"] .btn--lime:hover,
html.dark a.btn--lime:hover,
html[data-theme="dark"] a.btn--lime:hover {
  background: #e4fb9c !important;
  color: #090d16 !important;
  border-color: #e4fb9c !important;
}

/* --------------------------------------------------------------------------
   Lime Badges, Chips & Initials
   -------------------------------------------------------------------------- */
.chip--lime,
html.dark .chip--lime,
html[data-theme="dark"] .chip--lime,
.mchip--lime,
html.dark .mchip--lime,
html[data-theme="dark"] .mchip--lime {
  background: var(--lime) !important;
  color: #090d16 !important;
  font-weight: 600 !important;
}

.initials,
html.dark .initials,
html[data-theme="dark"] .initials {
  background: var(--lime) !important;
  color: #090d16 !important;
  font-weight: 700 !important;
}

/* Dark Chip (1.2M homes listed badge) */
html.dark .chip--dark,
html[data-theme="dark"] .chip--dark {
  background: #f8fafc !important;
  color: #090d16 !important;
  font-weight: 600 !important;
  border: 1px solid #f8fafc !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html.dark .chip--dark svg,
html[data-theme="dark"] .chip--dark svg {
  stroke: #090d16 !important;
  color: #090d16 !important;
}

/* --------------------------------------------------------------------------
   Calculator Section
   -------------------------------------------------------------------------- */
html.dark .calc__form,
html[data-theme="dark"] .calc__form {
  background: #141d2f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark .calc__result,
html[data-theme="dark"] .calc__result {
  background: #070a13 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Range Slider */
html.dark .range,
html[data-theme="dark"] .range {
  background: transparent !important;
}

html.dark .range::-webkit-slider-runnable-track,
html[data-theme="dark"] .range::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--lime) var(--p),
    rgba(255, 255, 255, 0.15) var(--p)
  ) !important;
  border-radius: 99px;
  height: 6px;
}

html.dark .range::-moz-range-track,
html[data-theme="dark"] .range::-moz-range-track {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 99px;
  height: 6px;
}

html.dark .range::-moz-range-progress,
html[data-theme="dark"] .range::-moz-range-progress {
  background: var(--lime) !important;
  border-radius: 99px;
  height: 6px;
}

html.dark .range::-webkit-slider-thumb,
html[data-theme="dark"] .range::-webkit-slider-thumb {
  border: 5px solid #090d16 !important;
  background: var(--lime) !important;
  box-shadow: 0 0 12px rgba(214, 243, 124, 0.6) !important;
}

html.dark .range::-moz-range-thumb,
html[data-theme="dark"] .range::-moz-range-thumb {
  border: 5px solid #090d16 !important;
  background: var(--lime) !important;
  box-shadow: 0 0 12px rgba(214, 243, 124, 0.6) !important;
}

/* Calculator Segment Options (How you'll buy) */
html.dark .seg__opt > span,
html[data-theme="dark"] .seg__opt > span {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

html.dark .seg__opt > span strong,
html[data-theme="dark"] .seg__opt > span strong {
  color: #f8fafc !important;
}

html.dark .seg__opt > span small,
html[data-theme="dark"] .seg__opt > span small {
  color: #94a3b8 !important;
}

html.dark .seg__opt:hover > span,
html[data-theme="dark"] .seg__opt:hover > span {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

html.dark .seg__opt input:checked + span,
html[data-theme="dark"] .seg__opt input:checked + span {
  background: #f8fafc !important;
  border-color: #f8fafc !important;
  color: #090d16 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html.dark .seg__opt input:checked + span strong,
html[data-theme="dark"] .seg__opt input:checked + span strong {
  color: #090d16 !important;
  font-weight: 600 !important;
}

html.dark .seg__opt input:checked + span small,
html[data-theme="dark"] .seg__opt input:checked + span small {
  color: #334155 !important;
}

/* Switch */
html.dark .switch__track,
html[data-theme="dark"] .switch__track {
  background: rgba(255, 255, 255, 0.15) !important;
}

html.dark .switch input:checked + .switch__track,
html[data-theme="dark"] .switch input:checked + .switch__track {
  background: var(--lime) !important;
}

html.dark .switch input:checked + .switch__track .switch__dot,
html[data-theme="dark"] .switch input:checked + .switch__track .switch__dot {
  background: #090d16 !important;
}

/* --------------------------------------------------------------------------
   "Keep more" Deck Section (.tpanel) — Solid Opaque, Zero Ghosting
   -------------------------------------------------------------------------- */
html.dark .deck__col,
html[data-theme="dark"] .deck__col {
  background: #0f172a !important;
}

html.dark .tpanel,
html[data-theme="dark"] .tpanel {
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.dark .tpanel h3,
html[data-theme="dark"] .tpanel h3 {
  color: #f8fafc !important;
}

html.dark .tpanel .tpanel__foot p,
html[data-theme="dark"] .tpanel .tpanel__foot p {
  color: #94a3b8 !important;
}

html.dark .tpanel .count,
html[data-theme="dark"] .tpanel .count {
  color: #f8fafc !important;
}

html.dark .tpanel--grey,
html[data-theme="dark"] .tpanel--grey {
  background: #141d2f !important;
  color: #f8fafc !important;
}

html.dark .tpanel--lime,
html[data-theme="dark"] .tpanel--lime {
  background: #162419 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(214, 243, 124, 0.25) !important;
}

html.dark .tpanel--lime h3,
html[data-theme="dark"] .tpanel--lime h3 {
  color: var(--lime) !important;
}

html.dark .tpanel--lime .tpanel__foot p,
html[data-theme="dark"] .tpanel--lime .tpanel__foot p {
  color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   Reviews & Testimonial Cards (.quote)
   -------------------------------------------------------------------------- */
html.dark .quote,
html[data-theme="dark"] .quote {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}

html.dark .quote blockquote,
html[data-theme="dark"] .quote blockquote {
  color: #f1f5f9 !important;
}

html.dark .quote__who strong,
html[data-theme="dark"] .quote__who strong {
  color: #f8fafc !important;
}

html.dark .quote__who small,
html[data-theme="dark"] .quote__who small {
  color: #94a3b8 !important;
}

html.dark .stars,
html[data-theme="dark"] .stars {
  color: var(--lime) !important;
}

html.dark .stories__col[data-col="1"] .quote:first-child,
html[data-theme="dark"] .stories__col[data-col="1"] .quote:first-child {
  background: #141d2f !important;
  border-color: #1e293b !important;
}

html.dark .stories__col[data-col="0"] .quote:last-child,
html[data-theme="dark"] .stories__col[data-col="0"] .quote:last-child {
  background: #17261a !important;
  border-color: rgba(214, 243, 124, 0.25) !important;
}

/* --------------------------------------------------------------------------
   FAQ Section (.faq, .qa)
   -------------------------------------------------------------------------- */
html.dark .faq__list,
html[data-theme="dark"] .faq__list {
  border-color: #1e293b !important;
}

html.dark .qa,
html[data-theme="dark"] .qa {
  border-color: #1e293b !important;
}

html.dark .qa summary,
html[data-theme="dark"] .qa summary {
  color: #f8fafc !important;
}

html.dark .qa__a,
html[data-theme="dark"] .qa__a {
  color: #cbd5e1 !important;
}

html.dark .qa__icon,
html[data-theme="dark"] .qa__icon {
  background: #1e293b !important;
  color: #f8fafc !important;
}

html.dark .qa summary:hover .qa__icon,
html[data-theme="dark"] .qa summary:hover .qa__icon,
html.dark .qa[open] .qa__icon,
html[data-theme="dark"] .qa[open] .qa__icon {
  background: var(--lime) !important;
  color: #090d16 !important;
}

html.dark .qa summary:hover .qa__icon svg,
html[data-theme="dark"] .qa summary:hover .qa__icon svg,
html.dark .qa[open] .qa__icon svg,
html[data-theme="dark"] .qa[open] .qa__icon svg {
  stroke: #090d16 !important;
}

/* --------------------------------------------------------------------------
   Featured Cards & Homes Track
   -------------------------------------------------------------------------- */
html.dark .fcard,
html[data-theme="dark"] .fcard {
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

html.dark .fcard--lime,
html[data-theme="dark"] .fcard--lime {
  background: var(--lime);
  color: #090d16;
  border-color: transparent;
}

html.dark .fcard--lime p,
html[data-theme="dark"] .fcard--lime p {
  color: #2e3a16;
}

html.dark .home__name a,
html[data-theme="dark"] .home__name a {
  color: #f8fafc !important;
}

html.dark .home__price,
html[data-theme="dark"] .home__price {
  color: #f8fafc !important;
}

html.dark .home__specs,
html[data-theme="dark"] .home__specs {
  color: #94a3b8 !important;
}

html.dark .home__save,
html[data-theme="dark"] .home__save {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html.dark .home__save:hover,
html[data-theme="dark"] .home__save:hover {
  background: #2d3b55 !important;
}

html.dark .home__save[aria-pressed="true"],
html[data-theme="dark"] .home__save[aria-pressed="true"] {
  background: #090d16 !important;
  color: var(--lime) !important;
  border-color: var(--lime) !important;
}

/* --------------------------------------------------------------------------
   Footer & Wordmark
   -------------------------------------------------------------------------- */
html.dark .foot__base,
html[data-theme="dark"] .foot__base {
  border-color: #1e293b !important;
  color: #94a3b8 !important;
}

html.dark .foot__links a,
html[data-theme="dark"] .foot__links a {
  color: #cbd5e1 !important;
}

html.dark .foot__links a:hover,
html[data-theme="dark"] .foot__links a:hover {
  color: var(--lime) !important;
}

html.dark .wordmark,
html[data-theme="dark"] .wordmark {
  color: #1e293b !important;
}

html.dark .social a,
html[data-theme="dark"] .social a {
  color: #f8fafc !important;
}

html.dark .social a:hover,
html[data-theme="dark"] .social a:hover {
  background: var(--lime) !important;
  color: #090d16 !important;
}

@media (max-width: 640px) {
  .cubesob-floating-bar {
    bottom: 16px;
    left: 16px;
    gap: 8px;
  }
  .cubesob-demo-pill {
    height: 40px;
    padding: 0 13px;
    font-size: 11.5px;
  }
  .cubesob-theme-toggle {
    width: 40px;
    height: 40px;
  }
}
