/* M Cellphones visual refresh — loaded last across the site. */
:root {
  --refresh-night: #06101e;
  --refresh-night-2: #0a1c34;
  --refresh-blue: #146ef5;
  --refresh-blue-2: #43b7ff;
  --refresh-cyan: #77e7ff;
  --refresh-ink: #0c1728;
  --refresh-copy: #526176;
  --refresh-line: rgba(19, 43, 78, .12);
  --refresh-wash: #f4f7fb;
  --refresh-card: rgba(255, 255, 255, .92);
  --refresh-shadow: 0 28px 80px -48px rgba(5, 29, 65, .46);
  --apple-bg: var(--refresh-wash);
  --apple-blue: var(--refresh-blue);
  --apple-blue-hover: #075bd9;
  --apple-ink: var(--refresh-ink);
  --apple-copy: var(--refresh-copy);
  --apple-line: var(--refresh-line);
}

::selection { color: #fff; background: var(--refresh-blue); }

body {
  color: var(--refresh-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(20, 110, 245, .055), transparent 24rem),
    var(--refresh-wash);
}

img {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(67, 183, 255, .82) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(20, 110, 245, .18) !important;
}

.site-header {
  border-bottom-color: rgba(11, 35, 67, .09) !important;
  background: rgba(250, 252, 255, .94) !important;
  box-shadow: 0 18px 44px -40px rgba(4, 28, 61, .8) !important;
  backdrop-filter: saturate(160%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(160%) blur(20px) !important;
}

.site-header .header-call {
  color: #075bc8 !important;
  border-color: rgba(20, 110, 245, .18) !important;
  background: rgba(20, 110, 245, .08) !important;
  box-shadow: none !important;
}

.apple-site .site-header.is-hero-mode {
  border-color: rgba(255, 255, 255, .09) !important;
  background: rgba(3, 11, 23, .74) !important;
  backdrop-filter: blur(20px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(130%) !important;
}

.apple-button,
.button,
.mc-btn {
  min-height: 48px;
  padding-inline: 1.35rem;
  border-radius: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -.012em;
}

.apple-button-primary,
.button.primary,
.mc-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--refresh-blue), #0c59d3) !important;
  border-color: transparent !important;
  box-shadow: 0 18px 32px -20px rgba(20, 110, 245, .94) !important;
}

.apple-button-primary:hover,
.button.primary:hover,
.mc-btn-primary:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #287eff, #064bbd) !important;
  transform: translateY(-2px);
}

.apple-button-light,
.button.secondary {
  color: var(--refresh-ink) !important;
  border-color: rgba(22, 65, 119, .16) !important;
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 12px 28px -24px rgba(8, 38, 75, .5);
}

.apple-button-light:hover,
.button.secondary:hover {
  color: #075bc8 !important;
  border-color: rgba(20, 110, 245, .3) !important;
  background: #fff !important;
  transform: translateY(-2px);
}

.apple-eyebrow,
.eyebrow,
.service-kicker {
  color: var(--refresh-blue) !important;
  letter-spacing: .15em !important;
}

.apple-section-head h2 {
  color: var(--refresh-ink);
  letter-spacing: -.058em;
}

.apple-section-head > p:last-child { color: var(--refresh-copy); }

/* Homepage hero */
.apple-hero {
  min-height: min(920px, calc(100svh - 64px));
  padding-top: clamp(94px, 10vw, 148px) !important;
  background: var(--refresh-night) !important;
}

.apple-hero::before {
  inset: auto auto -28% 8%;
  width: 55%;
  height: 58%;
  background: rgba(23, 128, 255, .2);
  filter: blur(130px);
}

.apple-hero-copy { max-width: 690px; }

.apple-hero h1 {
  max-width: 8.7ch;
  font-size: clamp(3.7rem, 6.5vw, 7.65rem);
  line-height: .85;
}

.apple-hero h1 span {
  background: linear-gradient(96deg, #65d6ff 0%, #98ecff 38%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.apple-hero-lead {
  color: rgba(229, 241, 255, .74);
  font-size: clamp(1.08rem, 1.5vw, 1.38rem);
}

.apple-hero .apple-button-light {
  color: #fff !important;
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.1) !important;
  backdrop-filter: blur(14px);
}

.apple-hero .apple-button-light:hover { background: rgba(255,255,255,.18) !important; }

.spline-hero-media { background: #06101e; }

.spline-poster {
  object-position: 68% 50%;
  transform: scale(1.005);
}

.spline-live { display: block !important; }
.spline-controls { display: flex !important; }
.spline-hero:not(.is-loaded) .spline-live { pointer-events: none; }
.spline-hero.is-loaded .spline-live { pointer-events: auto; }

.spline-sheen {
  background:
    linear-gradient(90deg, rgba(3,10,21,.98) 0%, rgba(3,10,21,.91) 25%, rgba(4,12,25,.5) 48%, rgba(4,12,25,.08) 75%),
    linear-gradient(180deg, rgba(2,8,18,.1), transparent 48%, rgba(2,8,18,.5) 100%),
    radial-gradient(circle at 70% 52%, transparent 0 28%, rgba(3,10,21,.12) 60%, rgba(3,10,21,.35) 100%);
}

.spline-sheen::after { display: none; }

.trust-ribbon {
  width: min(1160px, calc(100% - 32px));
  margin: -30px auto 0;
  padding: 16px;
  border: 1px solid rgba(20, 67, 123, .11);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 30px 70px -50px rgba(4, 30, 68, .65);
  backdrop-filter: blur(18px);
}

.trust-ribbon > div { padding-block: 8px; }

.pathway-card,
.specialty-card,
.visit-panel,
.trade-story,
.government-promo {
  border: 1px solid rgba(13, 49, 94, .09);
  box-shadow: var(--refresh-shadow);
}

.pathway-card,
.specialty-card { border-radius: clamp(24px, 3vw, 36px); }

.pathway-card-shop {
  background: linear-gradient(145deg, #fafdff, #e8f0fb);
}

.pathway-card-trade {
  background: linear-gradient(145deg, #081525, #132b4c);
}

.pathway-card-large {
  background: linear-gradient(145deg, #050b14, #10233e);
}

.specialty-showcase { background: linear-gradient(180deg, #f4f7fb, #eaf1fa) !important; }

.apple-estimate {
  background:
    radial-gradient(circle at 85% 15%, rgba(62, 180, 255, .22), transparent 30%),
    linear-gradient(145deg, #06101e, #0c2240 58%, #07111f) !important;
}

.repair-price-strip article,
.estimate-panel,
.estimate-result {
  border-color: rgba(140, 203, 255, .18) !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.estimate-result { backdrop-filter: blur(18px); }

.estimate-step select,
.estimate-step input,
.quote-form input,
.quote-form select,
.quote-form textarea,
.qm-form input,
.qm-form select,
.qm-form textarea {
  border: 1px solid rgba(18, 62, 114, .16) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: inset 0 1px 2px rgba(8, 31, 60, .04);
}

.estimate-step select:focus,
.estimate-step input:focus,
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.qm-form input:focus,
.qm-form select:focus,
.qm-form textarea:focus {
  border-color: rgba(20,110,245,.62) !important;
}

.product-card,
.repair-card,
.category-card,
.stock-model-card {
  border-color: rgba(13, 49, 94, .1) !important;
  box-shadow: 0 24px 64px -48px rgba(6, 36, 76, .58) !important;
}

.trade-story-visual img {
  width: min(430px, 68%) !important;
  max-width: 430px !important;
  border-radius: 38px;
}

/* Pricing page */
.price-page main > section { width: 100%; }

.price-hero {
  position: relative;
  min-height: min(790px, calc(100svh - 64px));
  display: flex;
  align-items: center;
  padding: clamp(92px, 10vw, 150px) max(22px, calc((100vw - 1280px) / 2)) clamp(72px, 8vw, 110px) !important;
  color: #fff;
  background: var(--refresh-night);
  overflow: hidden;
}

.price-hero-media,
.price-hero-shade {
  position: absolute;
  inset: 0;
}

.price-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.price-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,10,21,.98) 0%, rgba(3,10,21,.92) 27%, rgba(3,10,21,.48) 53%, rgba(3,10,21,.08) 78%),
    linear-gradient(180deg, transparent 46%, rgba(3,10,21,.6));
}

.price-hero-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
}

.price-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.4rem, 6.4vw, 7.2rem);
  line-height: .87;
  letter-spacing: -.07em;
}

.price-hero-copy h1 span {
  color: transparent;
  background: linear-gradient(100deg, #55c8ff, #a0edff 62%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

.price-hero-copy > p:not(.apple-eyebrow) {
  max-width: 46ch;
  margin-top: 28px;
  color: rgba(230,242,255,.72);
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
}

.price-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.price-hero .apple-button-light {
  color: #fff !important;
  border-color: rgba(255,255,255,.24) !important;
  background: rgba(255,255,255,.1) !important;
}

.price-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.price-hero-proof li {
  padding: .55rem .78rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: rgba(236,246,255,.75);
  background: rgba(255,255,255,.055);
  font-size: .76rem;
  font-weight: 650;
}

.price-finder-section {
  padding: clamp(78px, 10vw, 138px) max(20px, calc((100vw - 1240px) / 2)) !important;
}

.price-finder-section .apple-section-head { max-width: 880px; }
.price-finder-section .apple-section-head h2 { max-width: 18ch; }

#pricing-app { display: grid; gap: 26px; }

.price-selector-card {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(360px, 1.25fr);
  gap: 26px 42px;
  align-items: end;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--refresh-line);
  border-radius: 28px;
  background: var(--refresh-card);
  box-shadow: var(--refresh-shadow);
}

.price-selector-heading span,
.price-result-heading span,
.price-service-card > span,
.side-price-grid article > span,
.price-missing-card > span {
  display: block;
  color: var(--refresh-blue);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.price-selector-heading strong {
  display: block;
  max-width: 12ch;
  margin-top: 8px;
  color: var(--refresh-ink);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.price-selector-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, .45fr);
  gap: 14px;
}

.price-selector-fields label {
  display: grid;
  gap: 8px;
  color: #314056;
  font-size: .76rem;
  font-weight: 720;
}

.price-selector-fields input,
.price-selector-fields select {
  width: 100%;
  min-height: 54px;
  padding: .8rem .95rem;
  border: 1px solid rgba(15, 59, 111, .16);
  border-radius: 14px;
  color: var(--refresh-ink);
  background: #f9fbfe;
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
}

.price-quick-models {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-quick-models button {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid rgba(16, 62, 117, .12);
  border-radius: 999px;
  color: #42536b;
  background: #f1f5fb;
  font-size: .76rem;
  font-weight: 680;
}

.price-quick-models button:hover { color: #075bc8; border-color: rgba(20,110,245,.28); background: #eaf2ff; }

.price-result {
  padding: clamp(26px, 4.6vw, 52px);
  border: 1px solid var(--refresh-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--refresh-shadow);
}

.price-result-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--refresh-line);
}

.price-result-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.06em;
}

.price-result-heading h2 em {
  color: #789;
  font-style: normal;
  font-weight: 520;
}

.price-result-heading p { max-width: 45ch; font-size: .9rem; }

.price-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.price-service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 20px;
  border: 1px solid rgba(14, 55, 104, .1);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eff5fc);
}

.price-service-card.featured {
  color: #fff;
  border-color: rgba(77,176,255,.3);
  background: linear-gradient(145deg, #09203a, #0d4480);
  box-shadow: 0 24px 48px -36px rgba(7,70,140,.9);
}

.price-service-card.featured > span { color: #75d9ff; }

.price-service-card strong {
  display: block;
  margin-top: 16px;
  color: var(--refresh-ink);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.price-service-card.featured strong { color: #fff; }

.price-service-card small {
  display: block;
  margin: 9px 0 18px;
  color: #708097;
  font-size: .73rem;
  line-height: 1.42;
}

.price-service-card.featured small { color: rgba(225,242,255,.67); }

.price-service-card button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid rgba(20,110,245,.22);
  border-radius: 10px;
  color: #075bc8;
  background: rgba(255,255,255,.84);
  font-size: .76rem;
  font-weight: 720;
}

.price-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.price-missing-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  text-align: center;
}

.price-missing-card h3 {
  margin-top: 10px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: -.065em;
}

.price-missing-card p { max-width: 56ch; margin: 18px auto 0; }
.price-missing-card > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.side-price-section {
  padding: clamp(82px, 10vw, 140px) max(20px, calc((100vw - 1240px) / 2)) !important;
  background:
    radial-gradient(circle at 86% 12%, rgba(67,183,255,.2), transparent 24rem),
    linear-gradient(145deg, #06101e, #0c223e) !important;
}

.side-price-section .apple-section-head h2 { color: #fff; }

.side-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.side-price-grid article {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid rgba(140,205,255,.16);
  border-radius: 26px;
  color: #fff;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.side-price-grid .call-card { background: linear-gradient(145deg, rgba(20,110,245,.28), rgba(49,183,255,.12)); }

.side-price-grid h3 { margin-top: 12px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.7rem); }
.side-price-grid strong { margin-top: 28px; color: #8ae6ff; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.06em; }
.side-price-grid p { margin: 16px 0 24px; color: rgba(229,242,255,.68); }
.side-price-grid a,
.side-price-grid button {
  width: fit-content;
  min-height: 44px;
  margin-top: auto;
  padding: .65rem .9rem;
  border: 1px solid rgba(126,211,255,.25);
  border-radius: 11px;
  color: #b9efff;
  background: rgba(255,255,255,.07);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
}

.unlisted-estimate {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  padding: clamp(82px, 11vw, 150px) max(20px, calc((100vw - 1160px) / 2)) !important;
}

.unlisted-estimate h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: .92;
  letter-spacing: -.065em;
}

.unlisted-estimate > div > p:last-child { max-width: 55ch; margin-top: 20px; font-size: 1.05rem; }
.unlisted-actions { display: grid; gap: 11px; }
.unlisted-actions .apple-text-link { margin-top: 10px; text-align: center; }

/* More honest unlisted-price labels */
.price-row .estimate-required,
.checkout-item .estimate-required {
  color: #9c4b00;
  font-size: .92rem;
  letter-spacing: -.015em;
}

@media (max-width: 1080px) {
  .price-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-service-card.featured { grid-column: 1 / -1; }
  .side-price-grid { grid-template-columns: 1fr; }
  .side-price-grid article { min-height: 300px; }
}

@media (max-width: 820px) {
  .apple-hero { min-height: max(660px, calc(100svh - 64px)); }
  .price-hero {
    min-height: max(640px, calc(100svh - 64px));
    padding-top: 102px !important;
    padding-bottom: 72px !important;
  }
  .spline-poster,
  .price-hero-media img { object-position: 70% 50%; }
  .spline-sheen,
  .price-hero-shade {
    background:
      linear-gradient(180deg, rgba(3,10,21,.74) 0%, rgba(3,10,21,.3) 38%, rgba(3,10,21,.9) 80%),
      linear-gradient(90deg, rgba(3,10,21,.74), transparent 70%);
  }
  .apple-hero { align-items: flex-end; }
  .apple-hero-copy { padding-bottom: 24px; }
  .spline-controls { display: none !important; }
  .price-hero { align-items: flex-end; }
  .price-selector-card { grid-template-columns: 1fr; }
  .price-selector-heading strong { max-width: none; }
  .price-selector-fields { grid-template-columns: 1fr; }
  .price-quick-models { grid-column: auto; }
  .price-result-heading { display: grid; align-items: start; }
  .unlisted-estimate { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: clip; }
  input, select, textarea { font-size: 16px !important; }
  .apple-hero {
    min-height: max(620px, calc(100svh - 64px));
    padding: 88px 18px 54px !important;
  }
  .apple-hero h1 { font-size: clamp(3rem, 15vw, 4.55rem); }
  .price-hero-copy h1 { font-size: clamp(2.75rem, 13.5vw, 4.35rem); }
  .price-hero { min-height: auto; padding: 98px 18px 62px !important; }
  .price-hero-actions { display: grid; grid-template-columns: 1fr; }
  .price-hero-actions .apple-button { width: 100%; }
  .apple-hero-links { gap: 10px 16px; }
  .trust-ribbon { grid-template-columns: repeat(2, 1fr); margin-top: -18px; }
  .trust-ribbon > div:nth-child(2) { border-right: 0; }
  .price-service-grid { grid-template-columns: 1fr; }
  .price-service-card.featured { grid-column: auto; }
  .price-service-card { min-height: 205px; }
  .price-result { padding-inline: 18px; }
  .price-hero-proof li { font-size: .68rem; }
}

@media (max-width: 390px) {
  .apple-hero h1 { font-size: clamp(2.78rem, 14.5vw, 3.55rem); }
  .apple-hero-lead { margin-top: 20px; font-size: 1rem; }
  .apple-hero-actions { margin-top: 24px; }
  .apple-hero-links { display: grid; gap: 8px; }
  .price-hero-proof { gap: 7px; }
  .price-hero-proof li { padding: .5rem .64rem; }
  .price-selector-card,
  .price-result { border-radius: 22px; }
  .price-finder-section { padding-inline: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
