@import url("font.css");

:root {
  /* Fallback before JS measures .site-header; postpaid_script overwrites on load/resize */
  --site-header-height: 96px;
}

@media (min-width: 640px) {
  :root {
    --site-header-height: 118px;
  }
}

/* Postpaid: fixed header + in-flow offset so scroll never tucks content under the bar */
.postpaid-page-root {
  scroll-padding-top: var(--site-header-height);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  caret-color: transparent;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.img_icon_cards_container::-webkit-scrollbar {
  display: none;
}

body {
  font-family:
    "UMobileDisplay",
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei UI",
    "Noto Sans SC",
    sans-serif;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.font-umobile {
  font-family:
    "UMobileDisplay",
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei UI",
    "Noto Sans SC",
    sans-serif;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.responsivegrid.layout-container {
  max-width: 100vw !important;
  width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

/* ─── Site header (Figma “Type Face / brand” → use brand @font-face when available) ─── */
.site-header {
  font-family:
    "Unbeatable",
    "UMobileDisplay",
    system-ui,
    -apple-system,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei UI",
    "Noto Sans SC",
    Roboto,
    sans-serif;
}

.site-header a {
  text-decoration: none;
}

.site-header__top-link:focus-visible,
.site-header__nav-link:focus-visible,
.site-header__icon-btn:focus-visible,
.site-header__menu-btn:focus-visible,
.site-header__account:focus-visible,
.site-header summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-header__main .site-header__top-link:focus-visible,
.site-header__main .site-header__nav-link:focus-visible,
.site-header__main .site-header__icon-btn:focus-visible,
.site-header__main .site-header__menu-btn:focus-visible,
.site-header__main .site-header__account:focus-visible {
  outline-color: #ff7b02;
}

.site-header__lang summary {
  list-style: none;
}

.site-header__lang[open] summary {
  opacity: 1;
}

body.site-header-menu-open {
  overflow: hidden;
}

/* Mobile menu: slide in from right + backdrop fade */
.site-header__mobile-panel {
  pointer-events: none;
}

/* Children default to pointer-events: auto; without this the backdrop still steals clicks from the header. */
.site-header__mobile-panel .site-header__mobile-backdrop,
.site-header__mobile-panel .site-header__mobile-sheet {
  pointer-events: none;
}

.site-header__mobile-panel.is-open {
  pointer-events: auto;
}

.site-header__mobile-panel.is-open .site-header__mobile-backdrop,
.site-header__mobile-panel.is-open .site-header__mobile-sheet {
  pointer-events: auto;
}

.site-header__mobile-backdrop {
  opacity: 0;
  transition: opacity 0.32s ease;
}

.site-header__mobile-panel.is-open .site-header__mobile-backdrop {
  opacity: 1;
}

.site-header__mobile-sheet {
  transform: translate3d(100%, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-header__mobile-panel.is-open .site-header__mobile-sheet {
  transform: translate3d(0, 0, 0);
}

.postpaid_container {
  width: 100%;
  position: relative;
}

.postpaid_container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(34, 16, 12, 0) 0%,
      rgba(244, 211, 187, 0.45) 55%,
      #f4d3bb 100%);
}

/* @media (min-width: 640px) {
  .postpaid_container {
    min-height: 78vh;
  }
}

@media (min-width: 1024px) {
  .postpaid_container {
    min-height: 80vh;
  }
} */

.plans_icons_container {
  background: linear-gradient(359.4deg,
      #e2c7a7 3.13%,
      #ebdac5 10.3%,
      #f9efee 52.62%,
      #f7eae9 68.67%,
      #f4d3bb 99.33%);
  margin-top: -2px;
  /* cover 1px rounding gaps between stacked sections */
}

.ultra5g_trial_image {
  background-image: url("../../images/backgrounds/ultra5g_gradient.svg");
  background-size: cover;
  background-position: top;
  background-blend-mode: multiply;
  background-repeat: no-repeat;
}

@media (max-width: 480px) {
  .ultra5g_trial_image {
    background-image: url("../../images/backgrounds/ultra5g_gradient_mobile.png");
    background-position: 10% top;
  }
}

.stage {
  perspective: 1200px;
}

#stage.postpaid-phone-stage {
  overflow-x: hidden;
  overflow-y: visible;
  z-index: 0;
}

/* Prev/next sit above tall phone cards that overflow the stage (small screens). */
.postpaid-phone-carousel-nav {
  isolation: isolate;
  pointer-events: auto;
}

/* Anchor carousel phones from top of stage so tall #stage isn’t vertically centered with empty space under the link. */
#stage.postpaid-phone-stage .phone {
  top: 0.5rem;
}

/* Single-phone layout (<640px): large enough to read, capped so stage doesn’t overflow / force scrollbars. */
@media (max-width: 639px) {
  #stage.postpaid-phone-stage {
    touch-action: pan-y pinch-zoom;
  }

  #stage.postpaid-phone-stage .phone {
    width: min(88vw, 318px);
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: min(72vh, 420px);
  }

  #stage.postpaid-phone-stage .phone-card__media {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(48vh, 280px);
  }

  #stage.postpaid-phone-stage .phone-card__img {
    height: auto;
    max-height: min(42vw, 240px);
    width: auto;
    max-width: 90%;
    object-fit: contain;
  }

  #stage.postpaid-phone-stage .phone-card__info {
    max-width: 100%;
    padding-top: 0.25rem;
    gap: 0.375rem;
  }

  #stage.postpaid-phone-stage .phone-card__brand {
    margin-bottom: 0.0625rem;
  }

  #stage.postpaid-phone-stage .phone-card__monthly {
    margin-top: 0;
  }

  #stage.postpaid-phone-stage .phone-card__rrp {
    margin-top: 0;
  }

  #stage.postpaid-phone-stage .phone-card__cta {
    margin-top: 0.375rem;
  }

  #stage.postpaid-phone-stage .phone-card__model {
    font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  }
}

/* Tablet 3-up (640px–1023px): smaller cards + less “center giant” vs single-phone; padding is on .mobile-section. */
@media (min-width: 640px) and (max-width: 1023px) {
  #stage.postpaid-phone-stage .phone {
    width: min(36vw, 198px);
    max-width: 198px;
    height: min(44vw, 340px);
    min-height: 260px;
    max-height: 360px;
  }

  #stage.postpaid-phone-stage .phone-card__img {
    max-width: 78%;
    max-height: 220px;
  }
}

.phone {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Phone carousel: keep imagery and copy fully opaque (GSAP only fades whole .phone when off-stage). */
#stage.postpaid-phone-stage .phone-card__media,
#stage.postpaid-phone-stage .phone-card__img,
#stage.postpaid-phone-stage .phone-card__info,
#stage.postpaid-phone-stage .phone-card__brand,
#stage.postpaid-phone-stage .phone-card__model,
#stage.postpaid-phone-stage .phone-card__monthly,
#stage.postpaid-phone-stage .phone-card__rrp,
#stage.postpaid-phone-stage .phone-card__cta {
  opacity: 1;
}

.phone-card__media {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  width: 100%;
  align-items: stretch;
  justify-content: center;
}

.phone-card__img {
  display: block;
  margin-inline: auto;
  height: 90%;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
}

.phone-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 11.5rem;
  flex-shrink: 0;
  padding-top: 0.25rem;
  gap: 0.125rem;
  /* Crisp type when parent uses transforms (avoid muddy scaled text) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
}

.phone-card__brand {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.phone-card__model {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #000;
}

.phone-card__monthly {
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.phone-card__rrp {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

/**
 * RRP: shallow diagonal strike (≈12°), bottom-left → top-right, sized to text only.
 */
.phone-card__rrp-line {
  position: relative;
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #000b26;
  text-decoration: none;
}

.phone-card__rrp-line .phone-card__rrp {
  color: #000b26;
}

.phone-card__rrp-line::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Line (0,100)→(100,79): ~12° from horizontal; bright red, thin stroke */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='0' y1='100' x2='100' y2='79' stroke='%23FF1A1A' stroke-width='1.15' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}

.phone-card__cta {
  margin-top: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 9999px;
  background: #000;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  opacity: 1;
  transition:
    filter 0.2s ease,
    background-color 0.2s ease;
}

a.phone-card__cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.phone-card__cta:hover {
  filter: brightness(1.12);
}

.phone-card__cta:focus-visible {
  outline: 2px solid #ff7b00;
  outline-offset: 2px;
}

/* FAMILY 1st: white offset layer behind orange (matches ref); glass shine on top */
.family-first-glass {
  position: relative;
  display: inline-block;
}

.family-first-glass__text-back {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  pointer-events: none;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: #fff;
  transform: translate(1.3px, 1.3px);
}

.family-first-glass__shine-text {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  /* Shine sweep: #fee676; bright band a bit thicker */
  background: linear-gradient(90deg,
      transparent 0%,
      transparent 22%,
      rgba(254, 230, 118, 0.24) 32%,
      rgba(254, 230, 118, 0.94) 39%,
      rgba(254, 230, 118, 1) 43%,
      rgba(254, 230, 118, 1) 57%,
      rgba(254, 230, 118, 0.94) 61%,
      rgba(254, 230, 118, 0.24) 68%,
      transparent 76%,
      transparent 100%);
  background-size: 318% 240%;
  background-position: 0% 50%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ultra-glass-shine-text 3s ease-in-out infinite;
  will-change: background-position, opacity;
}

@keyframes ultra-glass-shine-text {

  0%,
  50% {
    background-position: 100% 42%;
    opacity: 0.62;
  }

  100% {
    background-position: 0% 58%;
    opacity: 1;
  }
}

.shining_text {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: #ff7a00;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  .family-first-glass__shine-text {
    animation: none;
    opacity: 0.45;
    background-position: 50% 50%;
  }
}

.Family_header {
  letter-spacing: 2px;
}

/* Skewed orange glass label (ULTRA FAMILY) */
.ultra-family-glass {
  display: inline-block;
  letter-spacing: normal;
}

.ultra-family-glass__panel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.15rem;
  overflow: hidden;
  transform: skewX(-13deg);
  background: linear-gradient(118deg,
      rgba(255, 95, 25, 0.58) 0%,
      rgba(255, 125, 45, 0.45) 42%,
      rgba(255, 85, 15, 0.52) 100%);
  border: 1.5px solid rgba(255, 130, 55, 0.92);
  /* box-shadow:
    0 6px 24px rgba(180, 60, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset; */
}

@media (min-width: 640px) {
  .ultra-family-glass__panel {
    padding: 0.55rem 1.85rem;
  }
}

/* Moving glass shine: almost horizontal, slight tilt only */
.ultra-family-glass__shine {
  position: absolute;
  top: -65%;
  left: -90%;
  width: 280%;
  height: 230%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(60deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.07) 44%,
      rgba(255, 255, 255, 0.45) 48.5%,
      rgba(255, 255, 255, 0.92) 50%,
      rgba(255, 255, 255, 0.45) 51.5%,
      rgba(255, 255, 255, 0.07) 56%,
      transparent 62%,
      transparent 100%);
  animation: ultra-glass-shine 3s ease-in-out infinite;
  will-change: transform;
}

@keyframes ultra-glass-shine {

  0%,
  50% {
    transform: translate(-34%, 14%);
    opacity: 0.22;
  }

  100% {
    transform: translate(34%, -14%);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ultra-family-glass__shine {
    animation: none;
    opacity: 0.35;
    transform: translate(0, -2%);
  }
}

.ultra-family-glass__text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transform: skewX(13deg);
  font-size: clamp(14px, 2.8vw, 14px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ultra-family-glass__panel {
    background: linear-gradient(118deg,
        rgba(220, 85, 25, 0.88),
        rgba(200, 70, 15, 0.88));
  }
}

.find-out-mobile {
  position: absolute;
  width: 90vw;
  height: 70vh;
  top: 5%;
  overflow: auto;
}

.sup {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: 900;
}

/* Plan cards */
:root {
  --primary: 0 0% 100%;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBorder {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}

.plan_cards_postpaid {
  position: relative;
  transform-origin: center center;
  transition:
    transform 0.3s ease,
    box-shadow 0.4s ease,
    opacity 0.3s ease;
}

/* Plan carousel: same minimum height per card; items-start so opening More Features on one card does not resize siblings */
#postpaid_plans_container>.card-box.postpaid-plan-card-box {
  min-height: 500px;
}

#postpaid_plans_container>.card-box.postpaid-plan-card-box>.plan_cards_postpaid {
  min-height: 500px;
}

.plan_cards_postpaid,
.sim_cards * {
  transform: translateZ(0);
}

.plan_cards_postpaid:not(.scale-105):hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 20px 0px #ffb464;
}

.plan_cards_postpaid.service_card {
  transition:
    transform 0.3s ease,
    box-shadow 0.4s ease,
    opacity 0.3s ease;
}

/* GSAP sets inline transform on .service_card, so use !important here. */
.plan_cards_postpaid.service_card:not(.scale-105):hover {
  transform: translate3d(0, 0, 0) scale(1.03) !important;
  box-shadow: 0px 0px 20px 0px #ffb464;
}

.plan_cards_postpaid.scale-105 {
  transform: scale(1.05);
  box-shadow: 0px 0px 20px 0px #ffbc75;
}

.Family_header {
  opacity: 0;
}

.plan_cards_postpaid::before,
.plan_cards_postpaid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  /* Sit above card background but do not block clicks (e.g. <summary> / chevron). */
  pointer-events: none;

  background: conic-gradient(from var(--angle),
      transparent 30%,
      hsl(var(--primary)),
      transparent 70%);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity: 0;
  transition: opacity 0.3s ease;
}

.plan_cards_postpaid::after {
  filter: blur(12px);
}

.plan_cards_postpaid:hover::before,
.plan_cards_postpaid:hover::after {
  opacity: 1;
  animation: rotateBorder 3s linear infinite;
}

/* More Plan Features accordion */
.plan-more>summary {
  list-style: none;
}

.plan-more>summary::-webkit-details-marker {
  display: none;
}

.plan-more>summary::marker {
  content: none;
}

.plan-more[open] .plan-more-chevron {
  transform: rotate(180deg);
}

.plan-more-chevron {
  transition: transform 0.2s ease;
}

/* Clicks on the chevron <img> must hit <summary> so native <details> toggle runs in all browsers */
.plan-more-summary img {
  pointer-events: none;
}

/* Plan carousel arrows: filled = more items that way; outline = end / not clickable */
.carousel-nav-arrow {
  border-radius: 9999px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.carousel-nav-arrow--filled {
  background-color: #ff7b02;
  border: 2px solid #fff;
}

.carousel-nav-arrow--outline {
  background-color: transparent;
  border: 2px solid #ff7b00;
}

.carousel-nav-arrow:disabled {
  cursor: default;
}

.faq-section {
  color: #fff;
}

.faq-tabs-wrap {
  width: 100%;
}

/* Full-width orange baseline; active tab draws a thicker solid orange segment on top via .faq-tab */
.faq-tabs {
  border-bottom: 1px solid rgba(255, 140, 33, 0.45);
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.faq-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.faq-visibility::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  .faq-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .faq-tabs .faq-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Inactive: navy/black | Active: orange + thick underline over gray baseline */
.faq-tab {
  position: relative;
  margin-bottom: -1px;
  padding: 0.5rem 0 0.625rem;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 400;
  color: #000b26;
  background: none;
  border: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    font-weight 0.2s ease,
    border-color 0.2s ease;
  border-bottom: 3px solid transparent;
}

@media (min-width: 640px) {
  .faq-tab {
    font-size: 0.9375rem;
    white-space: nowrap;
  }
}

.faq-tab:hover {
  color: #ff8c21;
}

.faq-tab:focus-visible {
  outline: 2px solid #ff8c21;
  outline-offset: 2px;
}

.faq-tab[aria-selected="true"] {
  color: #ff8c21;
  font-weight: 700;
  border-bottom-color: #ff8c21;
}

.faq-item {
  padding: 1rem 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  text-align: left;
}

@media (min-width: 640px) {
  .faq-question {
    font-size: 1.0625rem;
  }
}

.arrow {
  transition: transform 0.3s ease;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.faq-question .arrow {
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.95;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding-top: 10px;
  color: #000000;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.faq-item.active .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

.icon-wrapper {
  position: relative;
  width: 140px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.ring-svg {
  position: absolute;
  width: 120px;
  height: 120px;
  fill: none;
  pointer-events: none;
  transform: rotateX(75deg) rotateY(15deg);
}

.background-track {
  stroke: rgb(255, 234, 215);
  stroke-width: 2;
  fill: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      #ffb470 48%,
      rgba(255, 255, 255, 0) 100%);
}

.ring-svg.inner .drawing-line {
  stroke-width: 3;
  stroke-dasharray: 50 240;
  stroke-dashoffset: 20;
}

@keyframes run-border {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 290;
  }
}

.orbit-variant {
  perspective: 1000px;
}

.orbit-variant .ring-svg.inner {
  transform: rotateX(70deg) rotateY(-25deg);
}

.orbit-variant .ring-svg.outer {
  transform: rotateX(70deg) rotateY(25deg);
}

.orbit-variant .drawing-line {
  stroke: white;
  stroke-width: 3;
  /* filter: drop-shadow(0 0 4px white) drop-shadow(0 0 10px #ff4500); */
  stroke-dasharray: 90 310;
}

.orbit-variant .ring-svg.inner .drawing-line {
  stroke-dasharray: 60 240;
}

.icon-wrapper.orbit-variant:hover .ring-svg.inner .drawing-line {
  animation: orbit-run 2s linear infinite reverse;
}

.icon-wrapper:hover .ring-svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(224, 224, 224, 0.6)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
  transition: all 0.3s ease;
}

@keyframes orbit-run {
  from {
    stroke-dashoffset: 310;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.orbit-variant .icon-image {
  position: relative;
  z-index: 10;
}

@keyframes draw-infinite {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -301;
  }
}

#plan-carousel-viewport {
  scroll-behavior: smooth;
}

/* Family plan (single card): always centered; no horizontal carousel (postpaid keeps JS translate + arrows). */
#postpaid-plan-carousel-viewport:has(#postpaid_plans_container[data-plan-tab="family"]) {
  touch-action: pan-y pinch-zoom;
}

#postpaid_plans_container[data-plan-tab="family"] {
  justify-content: center !important;
  transform: none !important;
}

/* Family tab: hide plan carousel arrows (no JS flash; row has no reserved space). */
body:has(#postpaid_plans_container[data-plan-tab="family"]) .postpaid-plan-nav-row {
  display: none !important;
}

.usp-item {
  min-width: 30%;
  cursor: pointer;
}

.security-hero .ring-svg {
  width: 175px;
  height: 175px;
  z-index: 5;
}

/* .security-hero .icon-image {
  width: 100px;
  height: 100px;
  padding: 14px;
} */

.security-hero .icon-image-booster {
  width: 80px;
  height: 80px;
}

@media (max-width: 640px) {
  .icon-wrapper {
    width: 110px;
    height: 80px;
  }

  .security-hero .ring-svg {
    width: 150px;
    height: 150px;
  }

  .security-hero .icon-image {
    width: 85px;
    height: 85px;
    padding: 10px;
  }

  .security-hero .icon-image-booster {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 420px) {
  .icon-wrapper {
    width: 100px;
    height: 72px;
  }

  .security-hero .ring-svg {
    width: 140px;
    height: 140px;
  }

  .security-hero .icon-image {
    width: 78px;
    height: 78px;
    padding: 8px;
  }

  .security-hero .icon-image-booster {
    width: 62px;
    height: 62px;
  }
}

/* Keep hero visible on mid-size widths (avoid cut-off under ~1140px). */
@media (min-width: 640px) and (max-width: 1024px) {
  .usp-item {
    min-width: calc(24% - 0.21rem);
  }

  .hero-wrapper {
    min-height: 1350px !important;
  }

  .hero-switch-wrap {
    top: 680px !important;
    /* Override sm:top-[750px] */
  }
}

@media (min-width: 1024px) {
  .usp-item {
    min-width: calc(19% - 0.21rem);
  }
}

/* Keep USP arrows from overlapping the next section on small screens. */
@media (max-width: 593px) {
  .hero-switch-wrap {
    top: 56% !important;
  }
}

.drawing-line {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgb(214, 214, 214));
  stroke-dasharray: 80 301;
  transition:
    filter 0.3s ease,
    stroke-width 0.3s ease;
}

.icon-wrapper:hover .ring-svg.inner .drawing-line {
  animation: run-border 1.5s linear infinite;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(224, 224, 224, 0.6)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
  transition: all 0.3s ease;
}

.usp-item:hover .icon-wrapper.orbit-variant .ring-svg.inner .drawing-line,
.usp-item:hover .icon-wrapper.security-hero .ring-svg.inner .drawing-line {
  animation: orbit-run 3s linear infinite;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(224, 224, 224, 0.6)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
  transition: all 0.3s ease;
}

.usp-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  will-change: transform;
}

.usp-item {
  min-width: 30%;
  cursor: pointer;
}

/* Responsive widths */
@media (min-width: 640px) and (max-width: 1024px) {
  .usp-item {
    min-width: calc(24% - 0.21rem);
  }
}

@media (min-width: 1024px) {
  .usp-item {
    min-width: calc(19% - 0.21rem);
  }
}

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-nav-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #ff7b00;
  background: transparent;
  transition: all 0.3s ease;
}

.carousel-nav-btn img {
  width: 14px;
  height: 14px;
}

.carousel-nav-btn.active {
  background: #ff7b02;
  border-color: #ff7b02;
}

.carousel-nav-btn:not(.active) {
  opacity: 0.6;
}

.card-box {
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  min-height: 500px;
}

/* Footer: split "Download" / "the MyUMobile App" only between tablet and 1160px; full line on large screens and below 768px */
@media (min-width: 768px) and (max-width: 1160px) {
  .footer-app-download-title__part {
    display: block;
  }

  .footer-app-download-title__spacer {
    display: none;
  }

  .footer-app-download-row {
    align-items: flex-start;
  }
}

/* --- USP circular coverflow: no track slide; items orbit around fixed center --- */
.usp-carousel--coverflow {
  --usp-slot-spacing: 168px;
}

.usp-carousel--coverflow .usp-carousel-nav {
  gap: min(var(--usp-slot-spacing, 168px), 42vw);
}

.usp-viewport--coverflow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .usp-viewport--coverflow {
    min-height: 300px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.usp-track--coverflow {
  display: block;
  position: relative;
  width: 100%;
  min-height: 400px;
  /* margin: 0 auto; */
  transform: none !important;
  transition: none;
  will-change: auto;
}

.usp-carousel--coverflow .usp-item {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 0;
  /* Use a consistent slot width so different caption lengths
     don't shift icon centering left/right. */
  width: min(280px, 46vw);
  cursor: pointer;
  transform: translate(-50%, -50%) translateX(var(--usp-x, 0px));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Dim only the caption block on inactive slides — orbs stay full opacity. */
.usp-carousel--coverflow .usp-item-copy {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.usp-carousel--coverflow .usp-item:not(.usp-item--active) .usp-item-copy {
  opacity: 0.48;
}

.usp-carousel--coverflow .usp-item--active .usp-item-copy {
  opacity: 1;
  transform: translateY(0);
}

.usp-carousel--coverflow .usp-icon-circle {
  width: 126px;
  height: 126px;
  box-sizing: border-box;
  flex-shrink: 0;
  transform: scale(var(--usp-icon-scale, 1));
  transform-origin: center center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.usp-carousel--coverflow .usp-item--active .usp-icon-circle {
  position: relative;
  background: linear-gradient(320.65deg, #ff4400 6.71%, #feab00 83.63%);
}

/* Light rim sparkles (reference polish) */

.usp-carousel--coverflow .usp-item--active .usp-icon-ring::before {
  top: 10%;
  right: 14%;
}

.usp-carousel--coverflow .usp-item--active .usp-icon-ring::after {
  bottom: 12%;
  left: 12%;
}

.usp-carousel--coverflow .usp-item--active .usp-icon-ring {
  opacity: 1;
  pointer-events: none;
  border: 0.5px solid #ffffff;
}

.usp-carousel--coverflow .usp-item--active .usp-icon-ring::before,
.usp-carousel--coverflow .usp-item--active .usp-icon-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle,
      #fff 0%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 2;
}

/* Active caption: no text shadow (per design request) */
.usp-carousel--coverflow .usp-item--active .usp-item-copy,
.usp-carousel--coverflow .usp-item--active .usp-item-copy * {
  text-shadow: none !important;
}

/* Caption sizes: mobile — active & inactive same; md+ — active +5px vs inactive */
.usp-carousel--coverflow .usp-item-copy h1,
.usp-carousel--coverflow .usp-item-copy h1 * {
  font-size: 14px !important;
  line-height: 1.35;
}

@media (min-width: 768px) {

  .usp-carousel--coverflow .usp-item:not(.usp-item--active) .usp-item-copy h1,
  .usp-carousel--coverflow .usp-item:not(.usp-item--active) .usp-item-copy h1 * {
    font-size: 16px !important;
    line-height: 1.4;
  }

  .usp-carousel--coverflow .usp-item--active .usp-item-copy h1,
  .usp-carousel--coverflow .usp-item--active .usp-item-copy h1 * {
    font-size: 21px !important;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {

  .usp-carousel--coverflow .usp-item,
  .usp-carousel--coverflow .usp-icon-circle,
  .usp-carousel--coverflow .usp-item-copy {
    transition-duration: 0.01ms !important;
  }
}

.usp-carousel--coverflow .usp-item--active .usp-icon-img {
  position: relative;
  z-index: 3;
  filter: brightness(0) invert(1);
}

.usp-carousel--coverflow .usp-item:not(.usp-item--active) .usp-icon-img {
  filter: none;
}

.usp-item--active .usp-item-copy {
  padding-top: 60px;
}

/* .usp-item--active .usp-item-copy h1 {
  font-size: 20px;
  line-height: 25px;
}

.usp-item--active .usp-item-copy span {
  font-size: 20px;
  line-height: 25px;
} */

.usp-item-copy {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Only target active item */
.usp-item--active:hover .usp-icon-ring {
  animation: rotateRing 4s linear infinite;
  transform-origin: center center;
}

/* .usp-icon-ring {
  animation: rotateRing 4s linear infinite;
  transform-origin: center center;
} */

/* Pseudo-elements as stars */
.usp-item--active .usp-icon-ring::before,
.usp-item--active .usp-icon-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle,
      #fff 0%,
      rgba(255, 255, 255, 0.2) 70%,
      transparent 100%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
  pointer-events: none;
  z-index: 2;
}

.usp-item--active .usp-icon-ring::before {
  top: 10%;
  right: 14%;
}

.usp-item--active .usp-icon-ring::after {
  bottom: 12%;
  left: 12%;
}

/* Rotation animation */
@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mobile-section {
  background: linear-gradient(359.4deg,
      #f4d3bb 0.48%,
      #f7eae9 9.07%,
      #fffffe 55.02%,
      #ebdac5 67.82%,
      #e2c7a7 99.33%);
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Document scrollbar hidden (page still scrolls); reinforces after Tailwind. */
html {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.plan_cards_postpaid,
.faq-item,
.usp-item-copy h1 {
  overflow-wrap: break-word;
}