.homepage {
  color: var(--color-text-black);
  background: #fffaf3;
}

.homepage h1,
.homepage h2,
.homepage h3,
.homepage p {
  margin-top: 0;
}

.homepage h1 {
  max-width: 780px;
  margin: 0 0 1.5rem;
  color: #fffaf2;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.homepage h1 span {
  color: rgba(255, 250, 242, 0.94);
}

.homepage h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.homepage h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.homepage-eyebrow {
  margin-bottom: 1rem;
  color: #a95632;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homepage-hero {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: 9.5rem 0 5rem;
  background:
    var(--homepage-poster-image) center center / cover no-repeat,
    var(--night-blue);
}

.homepage-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 17, 34, 0.58) 0%, rgba(8, 19, 37, 0.3) 48%, rgba(6, 15, 29, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 14, 28, 0.48) 0%, rgba(9, 20, 37, 0.08) 48%, rgba(8, 19, 36, 0.32) 100%);
}

.homepage-hero__video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.homepage-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4rem;
  align-items: center;
}

.homepage-hero__copy {
  width: 100%;
}

.homepage-hero .homepage-eyebrow {
  color: var(--color-accent);
}

.homepage-hero__lead {
  max-width: 660px;
  margin: 0 0 2rem;
  color: rgba(255, 247, 235, 0.88);
  font-family: var(--font-body-light);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.homepage-hero__actions,
.homepage-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.homepage-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
}

.homepage-button--primary {
  color: var(--color-text-black);
  background: var(--color-accent);
}

.homepage-button--primary:hover {
  border-color: #f2d24a;
  color: var(--color-text-black);
  background: #d9b50b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.homepage-button--secondary {
  border-color: rgba(255, 238, 215, 0.58);
  color: #fffaf2;
  background: rgba(255, 225, 190, 0.1);
}

.homepage-button--secondary:hover {
  border-color: rgba(255, 238, 215, 0.9);
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.homepage-button--outline {
  border-color: #714b32;
  color: #714b32;
  background: transparent;
}

.homepage-button--outline:hover {
  border-color: #8a6044;
  color: #5c3924;
  background: rgba(113, 75, 50, 0.08);
  box-shadow: none;
}

.homepage-price-card {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 243, 224, 0.46);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.985);
  box-shadow: 0 26px 70px rgba(18, 11, 5, 0.22);
  transform: rotate(1.5deg);
}

.homepage-price-card--sunrise {
  z-index: 3;
  width: min(100%, 390px);
  margin: 0 0 0 auto;
  padding: 1.5rem;
  transform: rotate(1deg);
}

.homepage-price-card--sunrise .homepage-price-card__price {
  margin: 1.25rem 0 1rem;
}

.homepage-price-card--sunrise .homepage-price-card__price strong {
  font-size: 2.7rem;
}

.homepage-price-card--sunrise .homepage-device-row {
  margin-top: 0;
  padding: 0.8rem;
}

.homepage-price-card__header,
.homepage-device-row {
  display: flex;
  align-items: center;
}

.homepage-price-card__header {
  justify-content: space-between;
}

.homepage-price-card__header div,
.homepage-device-row div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.homepage-price-card__header span,
.homepage-device-row span {
  color: var(--color-text-light);
  font-family: var(--font-body-light);
  font-size: 0.8rem;
}

.homepage-price-card__header strong {
  margin-top: 0.2rem;
  color: #34734b;
}

.homepage-status {
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  color: #34734b !important;
  background: #e4f2e8;
}

.homepage-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4d9d66;
}

.homepage-price-card__price {
  display: flex;
  margin: 2rem 0 1.5rem;
  align-items: baseline;
  gap: 0.5rem;
}

.homepage-price-card__price strong {
  color: #173456;
  font-size: 3.5rem;
  letter-spacing: -0.06em;
}

.homepage-price-card__price span {
  color: var(--color-text-light);
}

.homepage-price-card__chart {
  display: flex;
  height: 140px;
  padding: 1rem 0 0;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid #d9e0e5;
  background-image: linear-gradient(#edf0f2 1px, transparent 1px);
  background-size: 100% 33.33%;
}

.homepage-price-card__chart span {
  flex: 1;
  min-height: 10px;
  border-radius: 5px 5px 0 0;
  background: #d5dde3;
}

.homepage-price-card__chart .is-cheap {
  background: var(--color-accent);
}

.homepage-device-row {
  margin-top: 1.5rem;
  padding: 1rem;
  gap: 0.85rem;
  border-radius: 12px;
  background: #f8f1e8;
}

.homepage-device-icon {
  display: grid !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: #173456;
  background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-device-row div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.homepage-device-row strong {
  margin-bottom: 0.2rem;
  color: #173456;
}

.homepage-device-state {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #34734b !important;
  background: #dceee1;
}

.homepage-section {
  padding: 6rem 0;
}

.homepage-section__heading {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.homepage-section__heading > p:last-child,
.homepage-benefit__copy > p,
.homepage-cta p {
  color: var(--color-text-light);
  font-family: var(--font-body-light);
  font-size: 1.08rem;
  line-height: 1.7;
}

.homepage-section--intro {
  background:
    radial-gradient(circle at 12% 15%, rgba(248, 194, 126, 0.15), transparent 26rem),
    #fffdf8;
}

.homepage-steps {
  display: grid;
  gap: 1rem;
}

.homepage-step {
  position: relative;
  padding: 2rem;
  border: 1px solid #eee3d4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(101, 65, 38, 0.06);
}

.homepage-step__number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: #ddcbb8;
  font-size: 2.25rem;
}

.homepage-step__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 12px;
  color: #65432c;
  background: #ffe5ad;
  font-size: 1.3rem;
}

.homepage-step p {
  margin-bottom: 0;
  color: var(--color-text-light);
  font-family: var(--font-body-light);
  line-height: 1.65;
}

.homepage-section--benefit {
  background: #fbf1e5;
}

.homepage-benefit {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.homepage-benefit__visual {
  position: relative;
  overflow: hidden;
  min-height: 381px;
  border: 1px solid rgba(151, 93, 54, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(105, 62, 34, 0.12);
}

.homepage-benefit__visual .night-sky {
  position: absolute;
  inset: 0;
  background: var(--night-blue);
  animation: nightFall 5s ease-in infinite;
  animation-fill-mode: both;
}

.homepage-benefit__visual .sun {
  position: absolute;
  z-index: 1;
  top: 170px;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--red);
  animation: sunRise 5s ease infinite;
  animation-delay: 0.5s;
  animation-fill-mode: both;
  transform: translateX(-200px);
}

.homepage-benefit__visual .town {
  position: absolute;
  z-index: 2;
  bottom: -1px;
  left: 0;
  width: 100%;
}

@keyframes nightFall {
  0% {
    background: var(--night-blue);
  }

  5% {
    background: var(--color-light-gray-background);
  }

  40% {
    background: var(--color-light-gray-background);
  }

  85% {
    background: var(--night-blue);
  }
}

@keyframes sunRise {
  from {
    transform: rotate(0deg) translateX(-300%);
  }

  to {
    transform: rotate(225deg) translateX(-330%);
  }
}

.homepage-checklist {
  display: grid;
  margin: 2rem 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.homepage-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.homepage-checklist svg {
  flex: 0 0 auto;
  padding: 0.3rem;
  border-radius: 50%;
  color: #34734b;
  background: #dceee1;
  font-size: 1.5rem;
}

.homepage-text-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #714b32;
  font-weight: 700;
  text-decoration: none;
}

.homepage-text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.homepage-text-link:hover {
  color: #5c3924;
  text-decoration: none;
}

.homepage-text-link:hover::after {
  transform: translateX(0.2rem);
}

.homepage-text-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(231, 173, 63, 0.55);
  outline-offset: 4px;
}

.homepage-section--cta {
  background: #fffdf8;
}

.homepage-cta {
  display: grid;
  padding: 2.5rem;
  gap: 2rem;
  align-items: center;
  border: 1px solid rgba(255, 228, 194, 0.22);
  border-radius: 20px;
  color: #fffaf2;
  background:
    radial-gradient(circle at 88% 15%, rgba(235, 157, 91, 0.3), transparent 24rem),
    linear-gradient(135deg, #31455e 0%, #4c4149 58%, #6a4936 100%);
  box-shadow: 0 20px 48px rgba(84, 49, 29, 0.12);
}

.homepage-cta h2 {
  margin-bottom: 0.75rem;
}

.homepage-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.homepage-cta .homepage-eyebrow {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.homepage-cta__actions {
  flex-shrink: 0;
}

.homepage-cta .homepage-button--outline {
  border-color: rgba(255, 238, 215, 0.48);
  color: #fff3e5;
}

.homepage-cta .homepage-button--outline:hover {
  border-color: rgba(255, 238, 215, 0.9);
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.14);
}

@media screen and (min-width: 768px) {
  .homepage-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .homepage-cta {
    padding: 3rem;
  }
}

@media screen and (min-width: 992px) {
  .homepage-hero {
    min-height: 860px;
    padding-top: 10.5rem;
  }

  .homepage-hero__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  }

  .homepage-benefit {
    grid-template-columns: 1fr 1fr;
  }

  .homepage-cta {
    grid-template-columns: 1fr auto;
  }
}

@media screen and (max-width: 767px) {
  .homepage-hero {
    min-height: 980px;
    padding-top: 8rem;
  }

  .homepage-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 14, 28, 0.46) 0%, rgba(8, 19, 37, 0.18) 48%, rgba(8, 19, 36, 0.42) 100%);
  }

  .homepage h1 {
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: 1.02;
    text-align: center;
  }

  .homepage-hero__copy {
    text-align: center;
  }

  .homepage-hero__lead {
    margin-right: auto;
    margin-left: auto;
    font-size: 1.05rem;
  }

  .homepage-hero__actions,
  .homepage-cta__actions {
    flex-direction: column;
  }

  .homepage-price-card--sunrise {
    display: none;
  }

  .homepage-button {
    width: 100%;
  }

  .homepage-price-card {
    transform: none;
  }

  .homepage-section {
    padding: 4.5rem 0;
  }

  .homepage-benefit__visual {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-hero__video {
    display: none;
  }

  .homepage-benefit__visual .night-sky,
  .homepage-benefit__visual .sun {
    animation: none;
  }
}

.inner-container {
  padding: 15px 20px;
  border-style: solid;
  border-color: var(--color-accent);
  border-width: 1px;
  border-radius: 5px;
  margin: 4px 10px 10px 10px;
  background-color: var(--color-body-background);
  box-shadow: 0 0px 1px var(--box-shadow-color-2);
}
.inner-container h2 {
  margin-top: 0px;
}
.inner-container p {
  font-family: 'Gotham-Medium';
}
.inner-container {
  max-height: 400px;
}

.price-save-banner {
  background-color: var(--light-green);
}

.price-banner-style {
  width: 100vw;
  position: fixed;
  transition: all ease 1.5s;
  pointer-events: none;
  z-index: 150;
  opacity: 1;
  height: 50px;
  top: 0;
}
.price-banner-style p {
  padding-top: 1rem;
}

.flash-active {
  transform: translateY(70px);
  opacity: 1;
}

#price-tesla-banner {
  background-color: var(--red);
}

#price-alert-text {
  text-align: center;
  color: white;
  margin: 15px;
}

.relative {
  position: relative;
}

.line-range-holder {
  z-index: 1;
  height: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.linecount {
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-holder {
  display: flex;
  align-items: flex-end;
}

.graphSetup {
  opacity: 0;
  height: 0;
}

#line {
  border-top: solid var(--green) 4px;
  transition: all ease 1s;
  z-index: 1;
}

#price-slider {
  position: relative;
  width: 20px;
  z-index: 15;
  writing-mode: vertical-lr; /* Vertical layout */
  direction: rtl; /* Right-to-left direction */
}

input[type='range'][orient='vertical'] {
  width: 2px;
  height: 381px;
  z-index: 15;
  writing-mode: vertical-lr; /* Vertical layout */
  direction: rtl; /* Right-to-left direction */
}

#price_bid {
  color: var(--color-accent);
  font-weight: 900;
  font-size: 18px;
}

.card-title {
  font-weight: bold;
}

.show-card {
  border-style: solid;
  border-color: var(--color-accent);
  border-width: 1px;
  border-radius: 5px;
}

.show__bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.show__bottom-chart {
  grid-column: span 2;
  position: relative;
}
.show__bottom-bid-levels {
  border: 2px solid var(--color-accent);
  border-radius: 5px;
  background-color: var(--color-body-background);
  margin: 1rem;
}
.show__bottom-bid-levels h3,
.show__bottom-bid-levels h4 {
  margin: 1rem 1rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 1rem;
  justify-content: flex-end;
}
.show__bottom-bid-levels h4#text,
.show__bottom-bid-levels h4 span {
  border-bottom: 2px solid var(--color-text-dark);
}
.show__bottom-bid-levels h3.current__price {
  transform: scale(1.2);
  color: var(--green);
}

.show__bottom__wrapper {
  background: var(--white);
  border: 1px solid var(--color-text-light);
  margin-bottom: 1rem;
  border-radius: 5px;
}

.device-description__active {
  border-radius: 3px;
  box-shadow: 0 0 0 0px var(--color-text-light);
  opacity: 0.7;
}

.device-description__disabled {
  border-radius: 3px;
  box-shadow: 0 0 0 0px var(--color-text-light);
  opacity: 0.7;
}

.mobile-settings-menu .dropdown-menu {
  background-color: var(--color-menu-background);
  color: var(--color-text-black) !important;
}
.mobile-settings-menu .dropdown-item.active {
  background-color: var(--color-menu-background);
  color: var(--color-text-black);
  font-weight: 600;
}

.profile__content-wrapper {
  min-height: 80vh;
  box-shadow: 0px 1px 2px var(--box-shadow-color-1);
  background: white;
  border-radius: 5px;
  padding: 1.5rem;
  overflow-y: auto;
  margin-top: 1rem;
}
.profile .account-form input:not([type='submit']),
.profile .account-form select {
  width: 100%;
  box-shadow: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-text-black);
}
.profile .account-form input:not([type='submit']):focus,
.profile .account-form select:focus {
  outline: var(--color-accent) auto 4px;
}
.profile .account-form .user_agreed_to_marketing_mail .form-check {
  display: flex;
  align-items: flex-start;
}
.profile .account-form .form-check-input.is-valid:checked {
  background-color: var(--bs-primary) !important;
}
.profile .account-form input[type='checkbox'] {
  position: relative;
  margin-right: 1rem;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-accent);
}
.profile__plan h4 {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--color-accent);
}
.profile__plan-form {
  margin: 2rem 0 0 0;
}
.profile__plan-form h4 {
  width: 40%;
}
.profile__plan form {
  margin-top: 2rem;
}
.profile__plan input[type='submit'] {
  padding: 0.5rem 0;
  font-weight: 600;
}
.profile .profile__item a {
  cursor: pointer;
  transition: all 0.4s ease;
}
.profile .profile__item a:hover {
  color: var(--color-accent);
}
.profile .profile__item--disabled a {
  cursor: not-allowed;
  color: var(--color-text-light);
}
.profile .profile__item--disabled a:hover {
  color: var(--color-text-light);
}
.profile__tabs {
  width: 100%;
  box-shadow: 0px 1px 2px var(--box-shadow-color-1);
  background: white;
  border-radius: 5px;
  padding: 2rem;
  margin-top: 1rem;
}
.profile__tabs a {
  text-decoration: none;
  color: black;
  line-height: 2rem;
}
.profile__tabs-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.profile__tabs-wrapper > .profile__item:not(:last-child) {
  margin-bottom: 16px;
}
.profile .tab-active {
  border-bottom: 3px solid var(--color-accent);
}
.profile .active__content {
  display: block !important;
}
.profile input[type='submit'],
.profile select {
  width: 100%;
}

@media screen and (min-width: 992px) {
  .profile__content-wrapper {
    padding: 3rem;
  }
  .profile input:not([type='submit']) {
    width: 65%;
  }
  .profile input[type='submit'] {
    width: unset;
  }
}
.about-container {
  box-shadow: 0px 1px 8px var(--box-shadow-color-1);
  background: var(--color-body-background);
  border-radius: 5px;
  margin: 1rem auto;
  padding: 2rem;
}
.about-container h1 {
  margin-top: 0px;
  letter-spacing: -0.02em;
  font-size: 28px;
}
.about-container p {
  font-size: 15px;
  line-height: 1.5;
}
.about-container .bold-font {
  font-family: 'Gotham-Medium';
}

.wavy-background {
  background-image: url("/assets/wave2-16afc78b.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}
