/* Reference-only visual calibration. Behaviour and plan data remain in the existing components. */
@font-face {
  font-family: 'NetMaster Headline';
  src: url('/assets/reference/headline-desktop.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'NetMaster Mobile Headline';
  src: url('/assets/reference/headline-mobile.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'NetMaster Lettering';
  src: url('/assets/reference/lettering-desktop.woff2') format('woff2');
  font-display: block;
}
@font-face {
  font-family: 'NetMaster Mobile Lettering';
  src: url('/assets/reference/lettering-mobile.woff2') format('woff2');
  font-display: block;
}
body {
  opacity: 0.9999;
}
:root {
  --yellow: #ffd52e;
}
.yellow-button {
  background: linear-gradient(110deg, #ffdd37, #fed42d 25%, #fdd42e 75%, #ffdc34);
}
.search-tab.selected:before {
  background: linear-gradient(120deg, #ffde38, #fcd22c 58%, #ffdc36);
}
.hero-seal {
  text-align: center;
}
.hero-seal svg {
  color: #ffe245;
  stroke: none;
}
.hero h1:after {
  content: '';
  position: absolute;
  left: 3.1343em;
  bottom: -0.2388em;
  width: 2.3433em;
  height: 0.40298em;
  background: url('/assets/reference/headline-underline.png') center/100% 100% no-repeat;
  z-index: -1;
}
.hero h1 {
  position: relative;
  isolation: isolate;
}
.hero-script:after {
  display: block;
  content: '';
  position: absolute;
  left: 1.02521em;
  bottom: -0.02521em;
  width: 0.98319em;
  height: 0.45378em;
  background: url('/assets/reference/lettering-underline.png') center/100% 100% no-repeat;
  margin: 0;
  transform: none;
}
.brand img {
  height: 60px;
}
.hero-art {
  height: 484px;
}
.hero-art img {
  object-fit: fill;
}
.hero:after,
.hero h1 span:after {
  display: none;
}
.hero-seal {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.promo-banner > picture > img {
  object-fit: fill;
}
.banner-copy {
  font-size: 0;
  line-height: 1;
}
.reference-mobile-wifi {
  display: none;
}
.usp:first-child .usp-icon svg {
  transform: none;
}
.tab-icon b {
  display: none !important;
}
.usp-icon {
  background: #fff4d0;
}
@media (min-width: 768px) and (max-width: 1430px) {
  .hero-script {
    font-family: 'NetMaster Lettering';
    font-size: clamp(59.5px, 7.7474vw, 111px);
    line-height: 1;
    white-space: nowrap;
    transform: none;
    top: 32px;
    left: 54.8177083%;
    letter-spacing: 0;
  }
  .hero-seal {
    width: 146px;
    height: 146px;
    right: calc(8.2526vw - 73px);
    top: 39px;
    font-size: 23px;
    transform: scaleX(calc(100vw / 1536px)) rotate(-14deg);
  }
}
@media (min-width: 1431px) {
  .provider-row .provider-three {
    width: 44px;
    height: 56px;
  }
  .provider-row .provider-smartone {
    width: 98px;
    height: 29px;
  }
  .provider-row .provider-csl {
    width: 69px;
    height: 43px;
  }
  .provider-row .provider-cmhk {
    width: 126px;
    height: 50px;
  }
  .provider-row .provider-hkbn {
    width: 109px;
    height: 43px;
  }
  .provider-row .provider-netvigator {
    width: 131px;
    height: 49px;
  }
  .banners {
    margin-top: 2px;
  }
  .brand {
    width: 285px;
  }
  .brand img {
    transform: translate(-1px, 2px);
  }
  .desktop-nav {
    padding-left: 73px;
    gap: 36px;
  }
  .desktop-nav > a:first-child {
    margin-right: 2px;
  }
  .desktop-nav > button:nth-child(3) {
    margin-right: 2px;
  }
  .desktop-nav a,
  .desktop-nav button {
    font-size: 16px;
  }
  .desktop-nav a,
  .desktop-nav button {
    padding-bottom: 4px;
  }
  .header-actions {
    gap: 18px;
  }
  .header-search {
    margin-right: 0;
  }
  .header-pill:last-child {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-pill svg {
    width: 25px;
    height: 25px;
  }
  .hero h1 {
    font-family: 'NetMaster Headline', 'Noto Sans TC', sans-serif;
    font-size: 67px;
    letter-spacing: 0;
    line-height: 1.0746;
    -webkit-text-stroke: 0.6px #020403;
    position: relative;
    top: 1px;
  }
  .hero-subtitle {
    margin-top: 16px;
    font-size: 23px;
    letter-spacing: 2px;
    line-height: 1.34;
  }
  .hero-script {
    top: 32px;
    left: calc(50% + 74px);
    font-family: 'NetMaster Lettering';
    font-size: 119px;
    line-height: 1;
    white-space: nowrap;
    transform: none;
    letter-spacing: 0;
    -webkit-text-stroke: 0.35px #111;
  }
  .hero-script span {
    padding-left: 46px;
  }
  .hero-script em {
    padding-left: 47px;
    font-size: 28px;
  }
  .hero-seal {
    right: 3.5%;
    font-size: 23px;
  }
  .search-section {
    margin-top: -193px;
  }
  .search-tabs {
    width: 812px;
  }
  .search-tabs {
    height: 63px;
  }
  .search-tab {
    gap: 0;
    padding: 8px 24px 9px 60px;
    flex: 0 0 calc(100% / 3);
  }
  .search-tab:first-child:before {
    right: -7px;
    clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
  }
  .search-tab:not(:first-child):before {
    border-right: 2px solid #7298a0;
  }
  .search-tab:nth-child(2):before {
    left: 10px;
    right: -20px;
  }
  .search-tab:nth-child(3):before {
    left: 22px;
    right: 0;
  }
  .search-tab:not(:first-child) {
    padding-left: 79px;
  }
  .search-tab:nth-child(2) {
    padding-left: 72px;
  }
  .tab-icon {
    width: 33px;
    height: 33px;
  }
  .tab-icon svg {
    width: 36px;
    height: 36px;
    margin: -1.5px;
  }
  .search-tab:first-child .tab-icon svg {
    width: 40px;
    height: 40px;
    transform: translateY(8px);
  }
  .search-tab:nth-child(2) .tab-icon svg {
    width: 40px;
    height: 40px;
    margin-left: -3px;
    transform: translateY(9px);
  }
  .search-tab:nth-child(3) {
    padding-left: 71px;
  }
  .search-tab:nth-child(3) .tab-icon svg {
    width: 44px;
    height: 44px;
    margin-left: -3px;
    margin-top: -4px;
    transform: translateY(10px);
  }
  .tab-main {
    height: 30px;
  }
  .tab-main strong {
    font-size: 20px;
  }
  .tab-description {
    font-size: 13px;
  }
  .desktop-select:first-of-type > svg:first-child {
    width: 40px;
    height: 40px;
    margin-left: -4px;
    margin-right: -4px;
  }
  .desktop-select > svg:first-child {
    width: 36px;
    height: 36px;
    margin-left: -2px;
    margin-right: -2px;
  }
  .search-cta {
    font-size: 20px;
    padding-left: 17px;
    padding-right: 0;
  }
  .popular-searches {
    gap: 9px;
  }
  .popular-searches button {
    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .provider-row {
    margin-top: 6px;
    height: 72px;
  }
  .provider-row .provider-logo {
    transform: translateY(4px);
  }
  .provider-row > button {
    position: relative;
    top: 4px;
  }
  .provider-row .provider-three {
    transform: translate(-2px, 2px);
  }
  .provider-row .provider-smartone {
    transform: translate(-2px, -1px);
  }
  .provider-row .provider-csl {
    transform: translate(-3px, -3px);
  }
  .provider-row .provider-cmhk {
    transform: translate(-1px, 0);
  }
  .provider-row .provider-hkbn {
    transform: translate(2px, -1px);
  }
  .provider-row .provider-netvigator {
    transform: translate(-5px, -1px);
  }
  .provider-row .more-providers {
    justify-content: flex-end;
    padding-right: 0;
  }
  .usp-row {
    display: grid;
    grid-template-columns: minmax(0, 284fr) minmax(0, 292fr) minmax(0, 293fr) minmax(0, 274fr) minmax(
        0,
        201fr
      );
  }
  .usp {
    gap: 23px;
  }
  .usp p > span {
    letter-spacing: 0.5px;
  }
  .usp p {
    white-space: nowrap;
  }
  .usp:last-child {
    width: 224px;
  }
  .usp:nth-child(2) {
    gap: 31px;
  }
  .usp:nth-child(3) {
    gap: 27px;
  }
  .usp:nth-child(4) {
    gap: 26px;
  }
  .usp:nth-child(2) .usp-icon svg,
  .usp:nth-child(4) .usp-icon svg {
    width: 46px;
    height: 46px;
  }
  .usp:nth-child(3) .usp-icon svg {
    width: 42px;
    height: 42px;
  }
  .fiveg-banner .banner-copy h2,
  .mobile-banner .banner-copy h2 {
    margin-top: 15px;
  }
  .banner-cta {
    bottom: 14px;
    padding: 6px 24px;
    height: 36px;
  }
  .fiber-banner .banner-cta {
    bottom: 9px;
  }
  .fiveg-banner .banner-copy h2,
  .mobile-banner .banner-copy h2 {
    margin-top: 14px;
    margin-bottom: 9px;
  }
  .hero-seal svg {
    color: #ffe245;
    stroke: none;
  }
  .banners {
    margin-top: 1px;
  }
}
@media (max-width: 767px) {
  .hero h1:after,
  .hero-script:after {
    display: none;
  }
  .brand img {
    height: calc(68 * var(--u));
  }
  .brand,
  .header-actions {
    transform: translateY(calc(28 * var(--u)));
  }
  .hero-art {
    height: calc(350 * var(--u));
  }
  .hero-art:after {
    display: none;
  }
  .reference-desktop-wifi {
    display: none;
  }
  .reference-mobile-wifi {
    display: inline;
  }
  .header-actions {
    gap: calc(16 * var(--u));
  }
  .header-actions .icon-button svg {
    width: calc(50 * var(--u));
    height: calc(50 * var(--u));
  }
  .header-actions .menu-toggle svg {
    width: calc(48 * var(--u));
    height: calc(48 * var(--u));
  }
  .hero-script {
    top: calc(13 * var(--u));
    left: calc(507 * var(--u));
    font-family: 'NetMaster Mobile Lettering';
    font-size: calc(104 * var(--u));
    line-height: 1;
    white-space: nowrap;
    transform: none;
    letter-spacing: 0;
    -webkit-text-stroke: calc(0.35 * var(--u)) #111;
  }
  .hero-script em {
    font-size: calc(24 * var(--u));
  }
  .search-tab {
    font-size: calc(25 * var(--u));
  }
  .speed-options label,
  .provider-options label {
    font-size: calc(21 * var(--u));
  }
  .speed-options button {
    font-size: calc(18.5 * var(--u));
  }
  .usp p {
    font-size: calc(19 * var(--u));
    line-height: 1.35;
  }
  .usp strong {
    font-weight: 400;
  }
  .usp-icon {
    flex-shrink: 0;
  }
  .usp-icon svg {
    width: calc(59 * var(--u));
    height: calc(59 * var(--u));
  }
  .usp:nth-child(2) .usp-icon svg,
  .usp:nth-child(4) .usp-icon svg {
    width: calc(63 * var(--u));
    height: calc(63 * var(--u));
  }
  .bottom-nav > button.selected > svg {
    color: #ffcd00;
    stroke: none;
  }
  .bottom-nav > button > svg {
    width: calc(54 * var(--u));
    height: calc(54 * var(--u));
  }
  .bottom-nav > button {
    gap: calc(3 * var(--u));
  }
  .bottom-nav > button {
    position: relative;
    top: calc(-6 * var(--u));
  }
  .bottom-nav > button:nth-child(1) {
    left: calc(-20 * var(--u));
  }
  .bottom-nav > button:nth-child(2) {
    left: calc(-12 * var(--u));
  }
  .bottom-nav > button:nth-child(3) {
    left: calc(-10 * var(--u));
  }
  .bottom-nav > button:nth-child(4) {
    left: calc(9 * var(--u));
  }
  .tab-icon svg {
    width: calc(48 * var(--u));
    height: calc(48 * var(--u));
  }
  .search-tab:first-child .tab-icon svg {
    width: calc(56 * var(--u));
    height: calc(56 * var(--u));
  }
  .search-tab:nth-child(2) .tab-icon svg {
    width: calc(52 * var(--u));
    height: calc(52 * var(--u));
  }
  .tab-icon:has(b) svg {
    transform: none;
  }
  .tab-main strong {
    font-size: calc(23.5 * var(--u));
    position: relative;
    top: calc(5 * var(--u));
  }
  .search-tab:first-child .tab-main strong {
    left: calc(-4 * var(--u));
  }
  .search-tab:nth-child(2) .tab-main strong {
    left: calc(-3 * var(--u));
  }
  .search-tab:nth-child(3) .tab-main strong {
    left: calc(-17 * var(--u));
  }
  .search-tab:nth-child(3) .tab-icon svg {
    transform: translateX(calc(-6 * var(--u)));
  }
  .search-tab:first-child .tab-description {
    transform: translate(calc(12 * var(--u)), calc(-4 * var(--u)));
  }
  .search-tab:nth-child(2) .tab-description {
    transform: translate(calc(10 * var(--u)), calc(-4 * var(--u)));
  }
  .search-tab:nth-child(3) .tab-description {
    transform: translateY(calc(-4 * var(--u)));
  }
  .search-tab:first-child:before {
    clip-path: polygon(0 0, 97% 0, 100% 100%, 0 100%);
    right: calc(-29 * var(--u));
  }
  .search-tab.selected {
    z-index: 1;
  }
  .search-tab:first-child .tab-main {
    transform: translateX(calc(10 * var(--u)));
  }
  .search-tab:not(:first-child):before {
    border-top-width: calc(2 * var(--u));
    border-left-width: calc(2 * var(--u));
    border-right-width: calc(2 * var(--u));
  }
  .search-tab:last-child:before {
    left: 0;
  }
  .search-tab:before {
    background: linear-gradient(105deg, #fff, #f3f4f8);
  }
  .provider-pills .provider-three {
    width: calc(39 * var(--u));
    height: calc(51 * var(--u));
  }
  .provider-pills .provider-cmhk {
    height: calc(39 * var(--u));
  }
  .provider-pills .provider-netvigator {
    height: calc(39 * var(--u));
  }
  .option-label > svg {
    width: calc(52 * var(--u));
    height: calc(52 * var(--u));
    margin-left: calc(-4 * var(--u));
  }
  .brand {
    transform: translate(calc(-2 * var(--u)), calc(21 * var(--u)));
  }
  .hero h1 {
    font-family: 'NetMaster Mobile Headline', 'Noto Sans TC', sans-serif;
    letter-spacing: 0;
    line-height: 1.16364;
    position: relative;
    top: calc(1.4 * var(--u));
    -webkit-text-stroke: calc(0.6 * var(--u)) #020403;
  }
  .hero-subtitle {
    margin-top: calc(7 * var(--u));
    font-size: calc(21.5 * var(--u));
  }
  .usp-row {
    display: grid;
    grid-template-columns: calc(225 * var(--u)) calc(222 * var(--u)) calc(224 * var(--u)) 1fr;
    gap: 0;
  }
  .usp-icon svg {
    width: calc(51 * var(--u));
    height: calc(51 * var(--u));
  }
  .usp:nth-child(2) .usp-icon svg {
    width: calc(58 * var(--u));
    height: calc(58 * var(--u));
  }
  .usp:nth-child(3) .usp-icon svg,
  .usp:nth-child(4) .usp-icon svg {
    width: calc(52 * var(--u));
    height: calc(52 * var(--u));
  }
  .fiber-banner .banner-copy {
    padding: calc(16 * var(--u)) calc(25 * var(--u));
  }
  .banner-copy {
    padding: calc(13 * var(--u)) calc(25 * var(--u));
  }
  .fiber-banner .banner-copy h2 {
    font-size: calc(42 * var(--u));
    font-synthesis: style;
    margin-top: calc(2 * var(--u));
  }
  .fiber-banner .banner-copy p {
    margin-top: calc(3 * var(--u));
  }
  .fiber-banner .banner-label {
    min-width: calc(123 * var(--u));
  }
  .fiber-banner .banner-label {
    padding-left: calc(21.5 * var(--u));
    padding-right: calc(21.5 * var(--u));
  }
  .banner-label {
    position: relative;
    left: calc(-5 * var(--u));
  }
  .fiveg-banner .banner-copy h2,
  .mobile-banner .banner-copy h2 {
    margin-top: calc(4 * var(--u));
  }
  .fiber-banner .banner-copy p {
    font-size: calc(23 * var(--u));
  }
  .fiber-benefits {
    width: calc(159 * var(--u));
    right: calc(21 * var(--u));
  }
  .quick-links {
    grid-template-columns: 251fr 265fr 268fr calc(67 * var(--u));
  }
  .quick-links > button:not(.quick-next) {
    padding-left: calc(23 * var(--u));
    gap: calc(17 * var(--u));
  }
  .quick-links > button > span > svg {
    width: calc(46 * var(--u));
    height: calc(46 * var(--u));
  }
}
