@font-face {
  font-family: "Universal Sans Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/universal-sans-display-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Universal Sans Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/universal-sans-text-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Universal Sans Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/universal-sans-text-medium.woff2") format("woff2");
}

.tesla-home {
  --tesla-ink: #171a20;
  --tesla-red: #e82127;
  color: var(--tesla-ink);
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
}

.tesla-home h1,
.tesla-home h2,
.tesla-home h3,
.tesla-home h4,
.tesla-home h5,
.tesla-home h6,
.tesla-home .h1,
.tesla-home .h2,
.tesla-home .h3,
.tesla-home .h4,
.tesla-home .h5,
.tesla-home .h6 {
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.tesla-home p,
.tesla-home a,
.tesla-home button,
.tesla-home input,
.tesla-home label {
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
}

.tesla-home p {
  font-size: 14px !important;
  font-weight: 400;
  line-height: 21px !important;
}

.tesla-home #topnav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 26, 32, 0.08);
  height: 64px;
}

.tesla-home #topnav .container {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: space-between;
  max-width: 1440px;
  padding-left: 32px;
  padding-right: 32px;
}

.tesla-home .tesla-wordmark {
  color: var(--tesla-ink);
  display: inline-block;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  padding-left: 0.28em;
}

.tesla-home #topnav .logo img {
  display: block;
  height: auto !important;
  max-height: 22px;
  max-width: 100%;
  object-fit: contain;
  width: 150px;
}

.tesla-home #topnav .navigation-menu > li > a {
  color: var(--tesla-ink);
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0 12px;
  text-transform: uppercase;
}

.tesla-home #topnav .navigation-menu > li > a:hover,
.tesla-home #topnav .navigation-menu > li.active > a {
  color: var(--tesla-red);
}

.tesla-home #topnav .buy-button .btn {
  background: var(--tesla-ink) !important;
  border: 0 !important;
  border-radius: 4px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  padding: 9px 15px;
  text-transform: uppercase;
}

.tesla-home .tesla-mobile-nav-auth {
  display: none !important;
}

@media (min-width: 992px) {
  .tesla-home #topnav .container > div:first-child {
    order: 1;
  }

  .tesla-home #topnav #navigation {
    margin-left: auto;
    order: 2;
  }

  .tesla-home #topnav .buy-button {
    float: none;
    line-height: normal;
    margin-left: 12px;
    order: 3;
  }

  .tesla-home #topnav .menu-extras {
    display: none;
  }

  .tesla-home #topnav .navigation-menu > li > a {
    align-items: center;
    display: flex;
    min-height: 64px;
    padding-bottom: 0;
    padding-top: 0;
  }
}

.tesla-hero {
  align-items: center;
  background: #f0f0f0;
  color: var(--tesla-ink);
  display: flex;
  height: min(600px, calc(100svh - 64px));
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.tesla-hero::before {
  background:
    radial-gradient(
      ellipse 60% 45% at 50% 50%,
      rgba(232, 33, 39, 0.1) 0%,
      rgba(240, 240, 240, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(240, 240, 240, 1) 0%,
      rgba(240, 240, 240, 0.9) 50%,
      rgba(240, 240, 240, 1) 100%
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

/* Hero with the "Home Image" from Frontend Settings */
.tesla-hero--photo {
  background-color: #171a20;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.tesla-hero--photo::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.tesla-hero.tesla-hero--photo h1,
.tesla-hero--photo .tesla-hero__content > p:not(.tesla-eyebrow) {
  color: #fff;
}

.tesla-hero__content {
  margin: 0 auto;
  max-width: 780px;
  padding: 64px 32px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.tesla-eyebrow {
  color: #5c5e62;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tesla-hero h1 {
  color: var(--tesla-ink);
  font-size: 40px !important;
  font-weight: 500;
  line-height: 48px;
  margin: 0 auto 12px;
}

.tesla-hero__content > p:not(.tesla-eyebrow) {
  color: #393c41;
  font-size: 14px;
  line-height: 20px;
  margin: 0 auto;
  max-width: 600px;
}

.tesla-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.tesla-button {
  align-items: center;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  justify-content: center;
  min-height: 40px;
  min-width: 210px;
  padding: 10px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.tesla-button--red {
  background: var(--tesla-red);
  color: #fff;
}

.tesla-button--dark {
  background: var(--tesla-ink);
  color: #fff;
}

.tesla-button--light {
  background: #fff;
  color: var(--tesla-ink);
}

.tesla-button:hover,
.tesla-button:focus {
  background: #d01820;
  color: #fff;
  text-decoration: none;
}

.tesla-hero__scroll {
  bottom: 22px;
  color: #5c5e62;
  font-size: 11px;
  font-weight: 600;
  left: 50%;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  z-index: 1;
}

.tesla-hero__scroll:hover,
.tesla-hero__scroll:focus {
  color: var(--tesla-ink);
  text-decoration: underline;
}

.tesla-investment-options {
  background: #f5f5f5;
  padding: 64px 24px;
}

.tesla-investment-options__intro {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.tesla-investment-options__intro h2 {
  color: var(--tesla-ink);
  font-size: 32px !important;
  line-height: 38px;
  margin: 0 0 12px;
}

.tesla-investment-options__intro > p:last-child {
  color: #5c5e62;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.tesla-investment-options__links {
  border-bottom: 1px solid #d8d8d8;
  border-top: 1px solid #d8d8d8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 36px auto 0;
  max-width: 920px;
}

.tesla-investment-link {
  align-items: center;
  border-right: 1px solid #d8d8d8;
  color: var(--tesla-ink);
  display: flex;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 20px;
  padding: 20px 24px;
  text-decoration: none;
}

.tesla-investment-link:last-child {
  border-right: 0;
}

.tesla-investment-link span:last-child {
  color: var(--tesla-red);
  font-size: 20px;
  padding-left: 16px;
}

.tesla-investment-link:hover,
.tesla-investment-link:focus-visible {
  color: var(--tesla-red);
  text-decoration: none;
}

.tesla-home .bg-soft-primary {
  background-color: #f5f5f5 !important;
  border-color: #f5f5f5 !important;
  color: var(--tesla-ink) !important;
}

.tesla-home .text-primary {
  color: var(--tesla-red) !important;
}

.tesla-home .btn-primary {
  background-color: var(--tesla-red) !important;
  border-color: var(--tesla-red) !important;
  border-radius: 4px;
}

.tesla-home .section-title h4,
.tesla-home .media-body h4 {
  color: var(--tesla-ink);
  font-family:
    "Universal Sans Display", "Helvetica Neue", sans-serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 32px;
}

.tesla-home .section-title p,
.tesla-home .media-body p {
  color: #5c5e62;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 21px !important;
}

.tesla-home .section-title h4 .text-primary {
  color: var(--tesla-ink) !important;
}

.tesla-home .bg-primary {
  background-color: var(--tesla-ink) !important;
  border-radius: 4px !important;
}

.tesla-home .bg-primary .btn-light {
  background: #fff !important;
  border: 0 !important;
  border-radius: 4px;
  color: var(--tesla-ink) !important;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.tesla-home .bg-primary .btn-light:hover,
.tesla-home .bg-primary .btn-light:focus {
  background: var(--tesla-red) !important;
  color: #fff !important;
}

.tesla-home .bg-primary .title-dark,
.tesla-home .bg-primary p {
  color: #fff !important;
}

.tesla-home .market-box {
  background-color: var(--tesla-ink) !important;
  border-radius: 4px !important;
  height: 100%;
  margin-top: 0;
  min-height: 396px;
}

.tesla-home .row:has(> [class*="col-"] > .market-box) {
  align-items: stretch !important;
  row-gap: 24px;
}

.tesla-home .pricing-rates {
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .tesla-home #topnav .buy-button {
    display: none !important;
  }

  .tesla-home #topnav .navigation-menu > li.tesla-mobile-nav-auth {
    display: block !important;
  }

  .tesla-home #topnav .navigation-menu > li.tesla-mobile-nav-auth > a {
    color: var(--tesla-ink);
    font-weight: 700;
  }

  .tesla-home #topnav .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tesla-home .tesla-wordmark {
    font-size: 15px;
  }

  .tesla-hero {
    height: min(620px, calc(100svh - 64px));
    min-height: 540px;
  }

  .tesla-hero__content {
    padding: 64px 22px;
  }

  .tesla-hero h1 {
    font-size: 32px !important;
    line-height: 38px;
  }

  .tesla-hero__content > p:not(.tesla-eyebrow) {
    font-size: 14px;
    line-height: 20px;
  }

  .tesla-hero__actions {
    gap: 9px;
    justify-content: center;
  }

  .tesla-button {
    min-width: 0;
    width: min(100%, 310px);
  }

  .tesla-investment-options {
    padding: 48px 18px;
  }

  .tesla-investment-options__intro h2 {
    font-size: 26px !important;
    line-height: 32px;
  }

  .tesla-investment-options__links {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .tesla-investment-link {
    border-bottom: 1px solid #d8d8d8;
    border-right: 0;
    padding: 18px 8px;
  }

  .tesla-investment-link:last-child {
    border-bottom: 0;
  }
}

.tesla-footer {
  background: #fff !important;
  border-top: 1px solid #e5e5e5;
  color: #5c5e62;
  margin: 0;
  padding: 24px 20px 28px;
}

.tesla-footer nav {
  margin: 0 auto;
  max-width: 1120px;
}

.tesla-footer__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tesla-footer__links li {
  line-height: 18px;
}

.tesla-footer__links a,
.tesla-footer__copyright {
  color: #5c5e62;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
}

.tesla-footer__links a:hover,
.tesla-footer__links a:focus-visible {
  color: #171a20;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tesla-footer__copyright {
  font-weight: 500;
}

.tesla-admin-auth {
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
}

.tesla-brand-mark {
  color: #171a20;
  display: inline-block;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  margin-bottom: 16px;
  padding-left: 0.28em;
}

.tesla-admin-auth .card-title {
  color: #171a20;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.tesla-admin-auth .form-control,
.tesla-admin-auth label {
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
}

.tesla-admin-auth .btn-primary {
  background-color: #e82127 !important;
  border-color: #e82127 !important;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-weight: 500;
}

.tesla-admin-auth .btn-primary:hover,
.tesla-admin-auth .btn-primary:focus {
  background-color: #d01820 !important;
  border-color: #d01820 !important;
}

@media (max-width: 767px) {
  .tesla-footer {
    padding: 20px 16px 24px;
  }

  .tesla-footer__links {
    column-gap: 16px;
  }
}

/* Tesla Security Section Styles */
.tesla-home .tesla-security-section {
  background: #fff !important;
  padding: 80px 24px !important;
}

.tesla-home .tesla-section-title {
  color: var(--tesla-ink) !important;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 38px !important;
  margin: 0 !important;
  text-align: center !important;
}

.tesla-home .tesla-security-card {
  align-items: flex-start !important;
  display: flex !important;
  gap: 24px !important;
  padding: 32px !important;
  border-radius: 4px !important;
  background: #f5f5f5 !important;
  transition: all 160ms ease !important;
}

.tesla-home .tesla-security-card:hover {
  box-shadow: 0 4px 16px rgba(23, 26, 32, 0.08) !important;
  transform: translateY(-2px) !important;
}

.tesla-home .tesla-security-icon {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  background: #e82127 !important;
  border-radius: 4px !important;
  min-width: 56px !important;
}

.tesla-home .tesla-security-icon img {
  width: 28px !important;
  height: 28px !important;
  filter: brightness(0) invert(1) !important;
}

.tesla-home .tesla-security-content {
  flex: 1 !important;
  padding-top: 4px !important;
}

.tesla-home .tesla-security-title {
  color: var(--tesla-ink) !important;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  margin: 0 0 8px !important;
  letter-spacing: 0 !important;
}

.tesla-home .tesla-security-description {
  color: #5c5e62 !important;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 21px !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .tesla-security-section {
    padding: 60px 18px;
  }

  .tesla-section-title {
    font-size: 26px;
    line-height: 32px;
  }

  .tesla-security-card {
    gap: 16px;
    padding: 24px;
  }

  .tesla-security-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .tesla-security-icon img {
    width: 24px;
    height: 24px;
  }

  .tesla-security-title {
    font-size: 16px;
    line-height: 22px;
  }

  .tesla-security-description {
    font-size: 13px;
    line-height: 19px;
  }
}

/* Tesla auth screens (login / register) */
body.tesla-auth {
  background: #f0f0f0 !important;
  color: var(--tesla-ink) !important;
}

.tesla-auth .card {
  background: #fff;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.tesla-auth h1,
.tesla-auth h2,
.tesla-auth h3,
.tesla-auth h4,
.tesla-auth h5,
.tesla-auth h6 {
  color: var(--tesla-ink) !important;
}

.tesla-auth p,
.tesla-auth small,
.tesla-auth .text-dark {
  color: #5c5e62 !important;
}

.tesla-auth .form-group label,
.tesla-auth .custom-control-label {
  color: var(--tesla-ink) !important;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tesla-auth .icons,
.tesla-auth .fea {
  color: #5c5e62 !important;
}

.tesla-auth .form-group .form-control,
.tesla-auth .form-control {
  background: #fff;
  border: 1px solid #d0d1d2;
  border-radius: 4px;
  color: var(--tesla-ink);
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 14px;
  height: 44px;
}

.tesla-auth .form-group .form-control:focus,
.tesla-auth .form-control:focus {
  border-color: var(--tesla-ink) !important;
  box-shadow: none;
}

.tesla-auth .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--tesla-ink);
  border-color: var(--tesla-ink);
}

.tesla-auth .custom-control-input:focus ~ .custom-control-label::before {
  border-color: var(--tesla-ink);
  box-shadow: none;
}

.tesla-auth a {
  color: var(--tesla-ink);
}

.tesla-auth a:hover,
.tesla-auth a:focus {
  color: var(--tesla-red) !important;
}

.tesla-auth .btn-primary {
  border-radius: 4px;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  min-height: 44px;
  text-transform: uppercase;
}

.tesla-auth .btn-primary:hover,
.tesla-auth .btn-primary:focus {
  background-color: #d01820 !important;
  border-color: #d01820 !important;
  color: #fff !important;
}

.tesla-auth .text-danger {
  color: var(--tesla-red) !important;
}

.tesla-auth__visual {
  background: linear-gradient(180deg, #171a20 0%, #2a2f3a 100%);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 32px;
}

.tesla-auth__visual-text h2,
.tesla-auth .tesla-auth__visual-text h2 {
  color: #fff !important;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 8px;
}

.tesla-auth .tesla-auth__visual-text p {
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0;
}

.tesla-auth .row > [class*="col-"]:has(> .tesla-auth__visual) {
  display: flex;
}

.tesla-auth .row > [class*="col-"] > .tesla-auth__visual {
  width: 100%;
}

/* Legal pages (terms / privacy) */
.tesla-home .tesla-legal a {
  color: var(--tesla-ink);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.tesla-home .tesla-legal a:hover,
.tesla-home .tesla-legal a:focus {
  color: var(--tesla-red);
}

/* About page: how-to-get-started steps */
.tesla-home .features.feature-clean .icons {
  background: #f5f5f5 !important;
  border-radius: 4px;
  color: var(--tesla-red) !important;
}

.tesla-home .features.feature-clean .icons i {
  background-color: #f5f5f5 !important;
  border-radius: 4px;
  color: var(--tesla-red) !important;
}

.tesla-home section.bg-light .features.feature-clean .icons,
.tesla-home section.bg-light .features.feature-clean .icons i {
  background-color: #fff !important;
}

.tesla-home .work-process .card-body h5 {
  color: var(--tesla-ink) !important;
}

.tesla-home section.bg-light,
.tesla-home .bg-light {
  background-color: #f5f5f5 !important;
}

@media (max-width: 991px) {
  .tesla-home section .col-lg-7 > .section-title {
    margin-top: 24px;
  }
}

.tesla-footer__links a[aria-current="page"] {
  color: var(--tesla-ink);
  font-weight: 500;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* About page sections */
.tesla-home .tesla-about-section {
  background: #fff;
  padding: 80px 24px;
}

.tesla-home .tesla-about-section--gray {
  background: #f5f5f5;
}

.tesla-home .tesla-about-section.pt-0 {
  padding-top: 0 !important;
}

.tesla-home .tesla-about-heading {
  margin: 0 auto 40px;
  max-width: 640px;
  text-align: center;
}

.tesla-home .tesla-about-heading h2 {
  color: var(--tesla-ink);
  font-size: 32px !important;
  line-height: 38px !important;
  margin: 0 0 12px;
}

.tesla-home .tesla-about-heading p {
  color: #5c5e62;
  margin: 0;
}

.tesla-home .tesla-security-icon svg {
  height: 28px;
  stroke: #fff;
  width: 28px;
}

.tesla-home .tesla-security-description a,
.tesla-home .tesla-notice a {
  color: var(--tesla-ink);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.tesla-home .tesla-security-description a:hover,
.tesla-home .tesla-notice a:hover {
  color: var(--tesla-red);
}

.tesla-home .tesla-about-principle {
  border-top: 2px solid var(--tesla-ink);
  padding-top: 20px;
}

.tesla-home .tesla-about-principle h4 {
  color: var(--tesla-ink);
  font-size: 20px;
  line-height: 26px;
  margin: 0 0 8px;
}

.tesla-home .tesla-about-principle p {
  color: #5c5e62;
  margin: 0;
}

.tesla-home .tesla-plan-card {
  background: #f5f5f5;
  border-radius: 4px;
  height: 100%;
  padding: 28px;
}

.tesla-home .tesla-plan-card h4 {
  color: var(--tesla-ink);
  font-size: 20px;
  line-height: 26px;
  margin: 0 0 8px;
}

.tesla-home .tesla-plan-card__range {
  color: var(--tesla-ink);
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 24px !important;
  line-height: 30px !important;
  margin: 0 0 16px;
}

.tesla-home .tesla-plan-card ul {
  border-top: 1px solid #d8d8d8;
  color: #5c5e62;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
}

.tesla-home .tesla-plan-card li {
  line-height: 24px;
}

.tesla-home .tesla-notice {
  background: #f5f5f5;
  border-left: 3px solid var(--tesla-red);
  border-radius: 4px;
  padding: 28px 32px;
}

.tesla-home .tesla-notice h4 {
  color: var(--tesla-ink);
  font-size: 20px;
  line-height: 26px;
  margin: 0 0 8px;
}

.tesla-home .tesla-notice p {
  color: #5c5e62;
  margin: 0;
}

@media (max-width: 767px) {
  .tesla-home .tesla-about-section {
    padding: 56px 18px;
  }

  .tesla-home .tesla-about-heading h2 {
    font-size: 26px !important;
    line-height: 32px !important;
  }
}

/* Flat buttons: no shadows (theme and Bootstrap add them on rest, hover and focus) */
.tesla-home .btn,
.tesla-home .btn:hover,
.tesla-home .btn:focus,
.tesla-home .btn:active,
.tesla-home .btn.active,
.tesla-home .btn.focus,
.tesla-home .btn:not(:disabled):not(.disabled):active,
.tesla-home .btn:not(:disabled):not(.disabled).active,
.tesla-home .btn-primary:focus,
.tesla-home .btn-light:focus,
.tesla-home .btn-soft-primary:focus,
.tesla-home .tesla-button,
.tesla-home .tesla-button:hover,
.tesla-home .tesla-button:focus,
.tesla-home button,
.tesla-home input[type="submit"],
.tesla-home input[type="button"],
.tesla-home .login-btn-success {
  box-shadow: none !important;
  text-shadow: none !important;
}

.tesla-home .btn:focus-visible,
.tesla-home .tesla-button:focus-visible,
.tesla-home button:focus-visible,
.tesla-home input[type="submit"]:focus-visible {
  outline: 2px solid var(--tesla-ink);
  outline-offset: 2px;
}

/* Breadcrumbs */
.tesla-home .breadcrumb {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.tesla-home .breadcrumb-item,
.tesla-home .breadcrumb-item a {
  color: var(--tesla-ink);
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tesla-home .breadcrumb-item a:hover,
.tesla-home .breadcrumb-item a:focus {
  color: var(--tesla-red);
}

.tesla-home .breadcrumb-item.active {
  color: #5c5e62 !important;
}

.tesla-home .breadcrumb-item + .breadcrumb-item::before {
  color: #8e8e8e;
}

/* No text shadows or glows anywhere (typography stays flat) */
.tesla-home,
.tesla-home *,
.tesla-home *::before,
.tesla-home *::after {
  text-shadow: none !important;
}

/* FAQ feature icons */
.tesla-home .explore-feature .icon {
  align-items: center;
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  font-size: 28px !important;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.tesla-home .explore-feature .icon i {
  color: var(--tesla-red) !important;
  line-height: 1;
}

.tesla-home .explore-feature .content .title {
  color: var(--tesla-ink) !important;
}

.tesla-home .explore-feature .content a.title:hover,
.tesla-home .explore-feature .content a.title:focus {
  color: var(--tesla-red) !important;
}

/* Soft buttons become Tesla red buttons */
.tesla-home .btn-soft-primary {
  background-color: var(--tesla-red) !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  text-transform: uppercase;
  transition: background-color 160ms ease;
}

.tesla-home .btn-soft-primary:hover,
.tesla-home .btn-soft-primary:focus,
.tesla-home .btn-soft-primary:active {
  background-color: #d01820 !important;
  color: #fff !important;
}

/* Header at tablet width: logo left, buttons and menu icon right */
@media (min-width: 768px) and (max-width: 991px) {
  .tesla-home #topnav .container {
    justify-content: flex-start;
  }

  .tesla-home #topnav .buy-button {
    float: none;
    line-height: normal;
    margin-left: auto;
  }

  .tesla-home #topnav .menu-extras {
    float: none;
    margin-left: 12px;
  }
}

/* Opened mobile/tablet menu */
@media (max-width: 991px) {
  .tesla-home #topnav #navigation {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
  }

  .tesla-home #topnav .navigation-menu {
    padding: 4px 32px 12px;
  }

  .tesla-home #topnav .navigation-menu > li {
    border-top: 1px solid #f0f0f0;
    float: none;
    margin: 0;
  }

  .tesla-home #topnav .navigation-menu > li:first-child {
    border-top: 0;
  }

  .tesla-home #topnav .navigation-menu > li > a {
    display: block;
    font-size: 13px;
    line-height: 20px;
    padding: 14px 0;
  }
}

@media (max-width: 767px) {
  .tesla-home #topnav .navigation-menu {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Home: equal-height security cards, centered orphan crypto card, one-line CTA button */
.tesla-home .tesla-security-section .row:not(.justify-content-center) > [class*="col-"] {
  display: flex;
}

.tesla-home .tesla-security-section .tesla-security-card {
  width: 100%;
}

.tesla-home .row:has(> [class*="col-"] > .market-box) {
  justify-content: center;
}

.tesla-home .bg-primary .btn-light {
  white-space: nowrap;
}

/* FAQ accordion */
.tesla-home .faq-content .card {
  background: #fff;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.tesla-home .faq-content .card .card-header {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 18px 48px 18px 20px !important;
}

.tesla-home .faq-content .card a.faq[data-toggle="collapse"],
.tesla-home .faq-content .card a.faq[data-toggle="collapse"].collapsed {
  color: var(--tesla-ink) !important;
}

.tesla-home .faq-content .card a.faq .title {
  color: var(--tesla-ink);
  font-size: 16px;
  line-height: 24px;
}

.tesla-home .faq-content .card a.faq[data-toggle="collapse"]:before,
.tesla-home .faq-content .card a.faq[data-toggle="collapse"].collapsed:before {
  color: var(--tesla-red) !important;
}

.tesla-home .faq-content .card a.faq[data-toggle="collapse"].collapsed:before {
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.tesla-home .faq-content .card-body {
  padding: 0 48px 20px 20px;
}

.tesla-home .faq-content .faq-ans {
  color: #5c5e62 !important;
  font-size: 14px;
  line-height: 22px;
}

/* FAQ page: compact layout on phones */
@media (max-width: 767px) {
  .tesla-home section.bg-half {
    padding: 112px 0 44px;
  }

  .tesla-faq section.section {
    padding: 40px 0 56px;
  }

  .tesla-faq .mt-100,
  .tesla-faq .mt-60 {
    margin-top: 40px !important;
  }

  .tesla-faq .section-title h4 {
    margin-bottom: 8px !important;
  }

  .tesla-faq .explore-feature {
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  .tesla-faq .explore-feature .card-body {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    padding: 20px;
  }

  .tesla-faq .explore-feature .icon {
    flex: 0 0 48px;
    font-size: 22px !important;
    height: 48px;
    margin: 0 !important;
    width: 48px;
  }

  .tesla-faq .explore-feature .content {
    margin-top: 0 !important;
  }

  .tesla-faq .explore-feature .content p {
    font-size: 13px !important;
    line-height: 20px !important;
    margin-top: 4px !important;
  }

  .tesla-faq .explore-feature .content .title {
    display: block;
    font-size: 16px;
    line-height: 22px;
  }

  .tesla-faq .faq-content .card-body {
    padding: 0 20px 20px;
  }

  .tesla-faq .faq-content .card .card-header {
    padding: 16px 44px 16px 16px !important;
  }
}

/* Contact page */
.tesla-contact .features .content p.text-muted {
  color: #5c5e62 !important;
}

/* Phones: 16px form text avoids iOS zoom-on-focus; larger tap targets for contact links */
@media (max-width: 767px) {
  .tesla-home .form-control,
  .tesla-home .form-group .form-control,
  .tesla-home select,
  .tesla-home textarea,
  .tesla-home input[type="text"],
  .tesla-home input[type="email"],
  .tesla-home input[type="password"],
  .tesla-home input[type="tel"] {
    font-size: 16px !important;
  }

  .tesla-contact .features .content a {
    display: inline-block;
    padding: 8px 4px;
  }
}

/* Contact page layout */
.tesla-home .tesla-about-heading p a,
.tesla-home .tesla-contact-note a {
  color: var(--tesla-ink);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.tesla-home .tesla-about-heading p a:hover,
.tesla-home .tesla-contact-note a:hover {
  color: var(--tesla-red);
}

.tesla-home .tesla-contact-form,
.tesla-home .tesla-contact-details {
  border-radius: 4px;
  height: 100%;
  padding: 32px;
}

.tesla-home .tesla-contact-form {
  background: #fff;
  border: 1px solid #e5e5e5;
}

.tesla-home .tesla-contact-details {
  background: #f5f5f5;
}

.tesla-home .tesla-contact-form h4,
.tesla-home .tesla-contact-details h4 {
  color: var(--tesla-ink);
  font-size: 22px;
  line-height: 28px;
  margin: 0 0 20px;
}

.tesla-home .tesla-contact-form .form-group label {
  color: var(--tesla-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tesla-home .tesla-contact-form .form-control {
  background: #fff;
  border: 1px solid #d0d1d2;
  border-radius: 4px;
  color: var(--tesla-ink);
  font-size: 14px;
  height: 44px;
}

.tesla-home .tesla-contact-form textarea.form-control {
  height: auto !important;
  min-height: 140px;
  padding-top: 12px;
}

.tesla-home .tesla-contact-form .form-control:focus {
  border-color: var(--tesla-ink) !important;
  box-shadow: none;
}

.tesla-home .tesla-contact-form .btn-primary {
  letter-spacing: 0.04em;
  min-height: 44px;
  text-transform: uppercase;
}

.tesla-home .tesla-contact-note {
  color: #5c5e62;
  font-size: 12px !important;
  line-height: 18px !important;
  margin: 16px 0 0;
}

.tesla-home .tesla-contact-item {
  align-items: flex-start;
  border-top: 1px solid #d8d8d8;
  display: flex;
  gap: 16px;
  padding: 18px 0;
}

.tesla-home .tesla-contact-item:first-of-type {
  border-top: 0;
}

.tesla-home .tesla-contact-item__icon {
  align-items: center;
  background: #fff;
  border-radius: 4px;
  display: flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
}

.tesla-home .tesla-contact-item__icon svg {
  height: 20px;
  stroke: var(--tesla-red);
  width: 20px;
}

.tesla-home .tesla-contact-item__label {
  color: #5c5e62;
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 18px;
  text-transform: uppercase;
}

.tesla-home .tesla-contact-item a,
.tesla-home .tesla-contact-item__value {
  color: var(--tesla-ink);
  display: block;
  font-size: 15px;
  line-height: 22px;
  overflow-wrap: anywhere;
  padding: 2px 0;
}

.tesla-home .tesla-contact-item a:hover {
  color: var(--tesla-red);
}

.tesla-home .tesla-help-card {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--tesla-ink);
  display: block;
  height: 100%;
  padding: 28px;
  text-decoration: none !important;
  transition: border-color 160ms ease;
}

.tesla-home .tesla-help-card:hover,
.tesla-home .tesla-help-card:focus-visible {
  border-color: var(--tesla-ink);
  color: var(--tesla-ink);
}

.tesla-home .tesla-help-card .tesla-security-icon {
  margin-bottom: 16px;
}

.tesla-home .tesla-help-card__title {
  display: block;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 6px;
}

.tesla-home .tesla-help-card__text {
  color: #5c5e62;
  display: block;
  font-size: 14px;
  line-height: 21px;
}

@media (max-width: 767px) {
  .tesla-home .tesla-contact-form,
  .tesla-home .tesla-contact-details {
    padding: 24px 20px;
  }

  .tesla-home .tesla-help-card {
    padding: 22px;
  }
}

.tesla-home .tesla-contact-tips {
  border-top: 1px solid #d8d8d8;
  margin-top: 8px;
  padding-top: 20px;
}

.tesla-home .tesla-contact-tips h5 {
  color: var(--tesla-ink);
  font-size: 15px;
  line-height: 22px;
  margin: 0 0 10px;
}

.tesla-home .tesla-contact-tips ul {
  color: #5c5e62;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  padding-left: 18px;
}

.tesla-home .tesla-contact-tips li {
  margin-bottom: 6px;
}

/* Tablets (iPad Safari also zooms on fields under 16px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .tesla-home .form-control,
  .tesla-home .form-group .form-control,
  .tesla-home .tesla-contact-form .form-control,
  .tesla-home select,
  .tesla-home textarea,
  .tesla-home input[type="text"],
  .tesla-home input[type="email"],
  .tesla-home input[type="password"],
  .tesla-home input[type="tel"] {
    font-size: 16px !important;
  }
}

/* Contact details side by side on tablet (stacked layout, wide panel) */
@media (min-width: 768px) and (max-width: 991px) {
  .tesla-home .tesla-contact-details {
    column-gap: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    height: auto;
  }

  .tesla-home .tesla-contact-details > h4,
  .tesla-home .tesla-contact-details > .tesla-contact-tips {
    grid-column: 1 / -1;
  }

  .tesla-home .tesla-contact-details .tesla-contact-item,
  .tesla-home .tesla-contact-details .tesla-contact-item:first-of-type {
    border-top: 0;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 20px;
  }

  .tesla-home .tesla-contact-details .tesla-contact-item__icon {
    flex: 0 0 auto;
    width: 44px;
  }

  .tesla-home .tesla-contact-details .tesla-contact-tips {
    margin-top: 0;
  }
}

/* Legal pages: headings, body text, lists and measure (terms + privacy) */
.tesla-home .card-body.tesla-legal {
  padding: 44px clamp(20px, 7vw, 72px) 40px;
}

.tesla-home .tesla-legal h5,
.tesla-home .tesla-legal .tesla-legal__heading {
  color: var(--tesla-ink);
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 26px;
  margin: 36px 0 10px;
}

.tesla-home .tesla-legal > h5:first-child,
.tesla-home .tesla-legal > .tesla-legal__heading:first-child {
  margin-top: 0;
}

.tesla-home .tesla-legal p,
.tesla-home .tesla-legal li {
  color: #3c3f44 !important;
  font-size: 15px !important;
  line-height: 25px !important;
}

.tesla-home .tesla-legal p {
  margin: 0 0 14px;
}

.tesla-home .tesla-legal ul,
.tesla-home .tesla-legal ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.tesla-home .tesla-legal li {
  margin-bottom: 8px;
}

.tesla-home .tesla-legal strong {
  color: var(--tesla-ink);
}

@media (max-width: 767px) {
  .tesla-home .card-body.tesla-legal {
    padding: 28px 20px 24px;
  }

  .tesla-home .tesla-legal h5,
  .tesla-home .tesla-legal .tesla-legal__heading {
    font-size: 17px !important;
    margin-top: 28px;
  }
}

/* FAQ feature cards: balanced wrapping and equal heights */
.tesla-faq .explore-feature {
  height: 100%;
}

.tesla-faq .explore-feature .content p {
  text-wrap: balance;
}

/* About: equal-height "what you can do" cards */
.tesla-home .tesla-about-section .tesla-security-card {
  height: 100%;
}

/* Phones: align About/Contact section content with the page gutter */
@media (max-width: 767px) {
  .tesla-home .tesla-about-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* About page: compact on phones */
@media (max-width: 767px) {
  .tesla-about section.section {
    padding: 44px 0;
  }

  .tesla-about .tesla-about-section {
    padding-bottom: 44px;
    padding-top: 44px;
  }

  .tesla-about .tesla-about-heading {
    margin-bottom: 28px;
  }

  .tesla-about .work-process {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
    text-align: left !important;
  }

  .tesla-about .work-process .icons {
    flex: 0 0 48px;
    height: 48px;
    margin: 0 !important;
    width: 48px;
  }

  .tesla-about .work-process .icons i {
    font-size: 22px;
    height: 48px;
    line-height: 48px !important;
    width: 48px;
  }

  .tesla-about .work-process .card-body {
    padding: 0;
  }

  .tesla-about .work-process .card-body h5 {
    margin-bottom: 4px;
  }

  .tesla-about .tesla-security-card {
    gap: 14px;
    padding: 20px;
  }

  .tesla-about .tesla-security-icon {
    height: 44px;
    min-width: 44px;
    width: 44px;
  }

  .tesla-about .tesla-security-icon svg {
    height: 22px;
    width: 22px;
  }
}

/* Home: service icons match the flat red-on-gray tiles used elsewhere */
.tesla-index .media.features .icon {
  align-items: center;
  background: #f5f5f5 !important;
  border-radius: 4px !important;
  display: flex;
  flex: 0 0 45px;
  justify-content: center;
}

/* Home on phones: aligned gutters, tighter rhythm, right-sized images and cards */
@media (max-width: 767px) {
  .tesla-index .tesla-security-section {
    padding: 44px 0 !important;
  }

  .tesla-index .tesla-security-section .tesla-section-title {
    font-size: 26px !important;
    line-height: 32px !important;
  }

  .tesla-index section.section {
    padding: 44px 0;
  }

  .tesla-index .mt-100,
  .tesla-index .mt-60 {
    margin-top: 28px !important;
  }

  .tesla-index .tesla-security-card {
    gap: 14px !important;
    padding: 20px !important;
  }

  .tesla-index .tesla-security-icon {
    height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
  }

  .tesla-index .tesla-security-icon img {
    height: 22px !important;
    width: 22px !important;
  }

  .tesla-index img[src*="phone.png"] {
    display: block;
    margin: 0 auto;
    max-width: 240px;
  }

  .tesla-index .market-box {
    min-height: 0;
    padding: 20px;
  }
}

/* Home: phone mock-up stays a sensible size when the services grid stacks (tablet) */
@media (min-width: 768px) and (max-width: 991px) {
  .tesla-index img[src*="phone.png"] {
    display: block;
    margin: 0 auto;
    max-width: 300px;
  }
}

/* Home on tablets: roomier crypto widgets and a tighter Security section */
@media (min-width: 768px) and (max-width: 991px) {
  .tesla-index .market-box {
    padding: 24px;
  }

  .tesla-index .tesla-security-section {
    padding: 60px 24px 36px !important;
  }
}

/* Market ticker (server-rendered) */
.tesla-ticker {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
}

.tesla-ticker__track {
  animation: tesla-ticker-scroll 80s linear infinite;
  display: flex;
  padding: 14px 0;
  white-space: nowrap;
  width: max-content;
}

.tesla-ticker:hover .tesla-ticker__track {
  animation-play-state: paused;
}

.tesla-ticker__item {
  align-items: baseline;
  display: inline-flex;
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 13px;
  gap: 8px;
  padding: 0 22px;
}

.tesla-ticker__item strong {
  color: var(--tesla-ink);
  font-weight: 500;
}

.tesla-ticker__item span {
  color: #5c5e62;
  font-variant-numeric: tabular-nums;
}

.tesla-ticker__item em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.tesla-ticker .is-up,
.tesla-coin .is-up {
  color: #1f9d55;
}

.tesla-ticker .is-down,
.tesla-coin .is-down {
  color: #e82127;
}

@keyframes tesla-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tesla-ticker {
    overflow-x: auto;
  }

  .tesla-ticker__track {
    animation: none;
  }
}

/* Coin cards (server-rendered) */
.tesla-home .market-box {
  align-items: stretch;
  display: flex;
}

.tesla-coin {
  color: #fff;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tesla-coin__head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.tesla-coin__badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.tesla-coin__head strong {
  color: #fff;
  display: block;
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.tesla-coin__head small {
  color: rgba(255, 255, 255, 0.64);
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.tesla-coin__price {
  font-family: "Universal Sans Display", "Helvetica Neue", sans-serif;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  line-height: 36px;
  text-align: center;
}

.tesla-coin__change {
  font-size: 13px;
  margin-bottom: 22px;
  text-align: center;
}

.tesla-coin__stats {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: auto 0 0;
  padding-top: 14px;
}

.tesla-coin__stats > div {
  display: flex;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  line-height: 24px;
}

.tesla-coin__stats dt {
  color: rgba(255, 255, 255, 0.64);
  font-weight: 400;
}

.tesla-coin__stats dd {
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin: 0;
  text-align: right;
}

.tesla-market-credit {
  color: #5c5e62;
  font-size: 12px !important;
  margin: 20px 0 0;
  text-align: center;
}

.tesla-market-credit a {
  color: var(--tesla-ink);
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/*
 * Chinese typography. Universal Sans has no Chinese glyphs, and the generic sans-serif fallback
 * can land on SimSun on older Windows. These faces cover only CJK characters, so Latin text keeps
 * Universal Sans and every existing font-family rule works unchanged. System fonts only (no
 * downloads), because third-party font hosts are slow or blocked in mainland China.
 */
@font-face {
  font-family: "Universal Sans Text";
  font-style: normal;
  font-weight: 400;
  src:
    local("PingFang SC Regular"), local("PingFangSC-Regular"), local("PingFang SC"),
    local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans CJK SC"),
    local("Noto Sans SC"), local("Source Han Sans SC"), local("Source Han Sans CN");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F;
}

@font-face {
  font-family: "Universal Sans Text";
  font-style: normal;
  font-weight: 500;
  src:
    local("PingFang SC Medium"), local("PingFangSC-Medium"), local("PingFang SC"),
    local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans CJK SC Medium"),
    local("Noto Sans SC"), local("Source Han Sans SC Medium"), local("Source Han Sans CN");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F;
}

@font-face {
  font-family: "Universal Sans Text";
  font-style: normal;
  font-weight: 700;
  src:
    local("PingFang SC Semibold"), local("PingFangSC-Semibold"), local("PingFang SC"),
    local("Microsoft YaHei Bold"), local("Microsoft YaHei"), local("Noto Sans CJK SC Bold"),
    local("Noto Sans SC Bold"), local("Source Han Sans SC Bold");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F;
}

@font-face {
  font-family: "Universal Sans Display";
  font-style: normal;
  font-weight: 500;
  src:
    local("PingFang SC Medium"), local("PingFangSC-Medium"), local("PingFang SC"),
    local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans CJK SC Medium"),
    local("Noto Sans SC"), local("Source Han Sans SC Medium"), local("Source Han Sans CN");
  unicode-range: U+2E80-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+3000-303F;
}

/* Uppercase tracking is meant for Latin letters; Chinese reads better with normal spacing. */
html[lang="zh-CN"] .tesla-home {
  line-height: 1.7;
  word-break: normal;
}

html[lang="zh-CN"] .tesla-home .tesla-button,
html[lang="zh-CN"] .tesla-home .btn,
html[lang="zh-CN"] .tesla-home .form-group label,
html[lang="zh-CN"] .tesla-home .breadcrumb-item,
html[lang="zh-CN"] .tesla-home .tesla-contact-item__label,
html[lang="zh-CN"] .tesla-home #topnav .navigation-menu > li > a {
  letter-spacing: 0;
}

/* Language switcher */
.tesla-lang-link {
  color: var(--tesla-ink);
  font-family: "Universal Sans Text", "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-right: 14px;
  text-decoration: none !important;
  white-space: nowrap;
}

.tesla-lang-link:hover,
.tesla-lang-link:focus-visible {
  color: var(--tesla-red);
}

.tesla-footer__links a[lang] {
  white-space: nowrap;
}

/* Current/hovered nav item uses Tesla red (the theme forces its blue with !important) */
.tesla-home #topnav .navigation-menu > li.active > a,
.tesla-home #topnav .navigation-menu > li:hover > a {
  color: var(--tesla-red) !important;
}

/* Note shown when plan amounts are converted to the visitor's currency */
.tesla-currency-note {
  color: #5c5e62;
  font-size: 12px !important;
  line-height: 18px !important;
  margin: 24px auto 0;
  max-width: 640px;
  text-align: center;
}

/* Language switcher flags: real SVG country flags, no emoji and no shadows */
.tesla-lang-link {
  align-items: center;
  display: inline-flex;
}

.tesla-flag {
  border-radius: 2px;
  display: inline-block;
  height: 15px;
  margin-right: 8px;
  object-fit: cover;
  outline: 1px solid rgba(23, 26, 32, 0.14);
  outline-offset: -1px;
  width: 20px;
}

.tesla-footer__lang .tesla-lang-link {
  margin-right: 0;
}

.tesla-footer__lang .tesla-lang-link + .tesla-lang-link {
  margin-left: 16px;
}

.tesla-home #topnav .navigation-menu > li.tesla-lang-item > .tesla-lang-link {
  padding: 14px 0;
}

/* Neutral notices on the sign-in page (for example after logging out) */
.tesla-auth .alert-info {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  color: #171a20;
}

/* Language switch under the sign-in and register forms */
.tesla-auth__lang .tesla-lang-link {
  align-items: center;
  color: #171a20;
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
}
.tesla-auth__lang .tesla-lang-link:hover { text-decoration: underline; }

/* Transparent header over the photo hero. It turns solid once the page scrolls (nav-sticky) or the phone menu opens. */
.tesla-home #topnav {
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.tesla-has-photo-hero #topnav:not(.nav-sticky):not(:has(.navbar-toggle.open)) {
  background: transparent;
  box-shadow: none;
}

.tesla-has-photo-hero #topnav:not(.nav-sticky):not(:has(.navbar-toggle.open)) .tesla-wordmark {
  color: #fff;
}

.tesla-has-photo-hero #topnav:not(.nav-sticky):not(:has(.navbar-toggle.open)) .navbar-toggle span {
  background-color: #fff;
}

.tesla-has-photo-hero #topnav:not(.nav-sticky):not(:has(.navbar-toggle.open)) .buy-button .btn {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tesla-has-photo-hero #topnav:not(.nav-sticky):not(:has(.navbar-toggle.open)) .buy-button .btn:last-child {
  background: #fff !important;
  box-shadow: none;
  color: var(--tesla-ink) !important;
}

@media (min-width: 992px) {
  .tesla-has-photo-hero #topnav:not(.nav-sticky) .navigation-menu > li > a {
    color: #fff;
  }

  .tesla-has-photo-hero #topnav:not(.nav-sticky) .navigation-menu > li:hover > a,
  .tesla-has-photo-hero #topnav:not(.nav-sticky) .navigation-menu > li.active > a {
    color: #fff !important;
    opacity: 0.75;
  }
}
