/*
  Business Phones page.

  This page is meant to feel like the printed flyer, not like the
  internet plan cards. The site header and footer still come from
  styles.css. Everything inside .phones is the flyer treatment:
  starfield, translucent panels, blue edge glow, Inter type.

  The starfield image is a JPEG made from ad_project/dark_background.png.
  The PNG is about 1.7MB. The JPEG is the same picture at a size that
  is reasonable for a phone on a Facebook ad.
*/

.phones-body {
  background-color: #01060f;
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 8, 20, 0.4) 0%,
      rgba(0, 8, 20, 0.18) 28%,
      rgba(0, 8, 20, 0.18) 72%,
      rgba(0, 8, 20, 0.55) 100%
    ),
    url("/images/business-phones/dark_background.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  /* Fixed keeps the field still while the panels scroll on desktop.
     Phones ignore this below. iOS paints fixed backgrounds poorly. */
  background-attachment: fixed;
}

/* The homepage feathers the logo with a radial mask so the glow
   does not end in a hard rectangle. This page uses that same mask. */

.phones {
  box-sizing: border-box;
  max-width: 880px;
  margin: 0 auto;
  /* Clears the fixed header and the wordmark that hangs under it,
     the same way the rest of the site does. Wide screens get a
     shorter gap in the rule below, so a 1080p window can show the
     flyer through the phone number. */
  padding: 168px 20px 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #ffffff;
}

.phones *,
.phones *::before,
.phones *::after {
  box-sizing: border-box;
}

/* The site stylesheet sets h1/h2 to the display face used on the
   internet pages. This page stays in the flyer sans-serif. */
.phones h1,
.phones h2,
.phones h3 {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #ffffff;
}

.phones-hero {
  text-align: center;
  margin: 0 0 28px;
}

.phones h1 {
  margin: 0 0 8px;
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.phones-sub {
  margin: 0;
  color: #c0e8ff;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Limited install offer. Gold so it is not another blue price panel.
   The glow is stronger than the blue panels on purpose: this is the
   thing a Facebook visitor should see first.
   The head script adds phones-offer-over after December 4 and an
   inline style hides the wrap. These rules are only the look. */

/* The line is a sibling behind the box, so it can run out to the
   edges of the window while the banner stays in the content column. */
.phones-offer-wrap {
  position: relative;
  margin: 0 0 28px;
}

.phones-offer-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  /* Short of the window edge so the fade has room, and short of
     100vw so the line does not create a sideways scrollbar. */
  width: calc(100vw - 36px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 214, 90, 0.15) 7%,
    #ffe08a 20%,
    #ffe08a 80%,
    rgba(255, 214, 90, 0.15) 93%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(255, 196, 48, 0.8),
    0 0 18px rgba(255, 170, 20, 0.45);
  pointer-events: none;
}

.phones-offer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 18px 20px 20px;
  text-align: center;
  border: 1px solid #f0c14b;
  border-radius: 8px;
  /* The second layer keeps the gold line from showing through the words. */
  background:
    linear-gradient(180deg, rgba(120, 78, 8, 0.55), rgba(48, 28, 4, 0.72)),
    rgba(22, 14, 4, 0.94);
  box-shadow:
    0 0 22px rgba(255, 196, 48, 0.55),
    0 0 48px rgba(255, 170, 20, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.35);
}

.phones-offer::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe08a, transparent);
  box-shadow: 0 0 14px rgba(255, 210, 80, 0.95), 0 0 32px rgba(255, 180, 30, 0.6);
  pointer-events: none;
}

.phones-offer-title {
  margin: 0;
  color: #ffe9a8;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  text-shadow:
    0 0 12px rgba(255, 196, 48, 0.95),
    0 0 28px rgba(255, 160, 20, 0.55);
}

.phones-offer-detail {
  margin: 6px 0 0;
  color: #ffe7a3;
  font-size: 1.15rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 196, 48, 0.45);
}

.phones-offer-prices {
  margin: 12px 0 0;
  color: #fff6d6;
  font-size: 1.05rem;
  font-weight: 700;
}

.phones-offer-later {
  margin: 10px 0 0;
  color: #fff6d6;
  font-size: 1rem;
  font-weight: 600;
}

/* A real button, not another text link. Dark type on gold so it
   reads as the thing to tap, including on a phone. */
.phones-offer-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  background: #ffe08a;
  color: #2a1c04;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(255, 196, 48, 0.55);
}

.phones-offer-call:hover,
.phones-offer-call:focus-visible {
  background: #fff1c2;
  color: #2a1c04;
}

.phones-offer-call svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.phones-offer-text {
  margin: 8px 0 0;
  color: #ffe7a3;
  font-size: 0.85rem;
  font-weight: 500;
}

.phones-offer-text a {
  color: #fff6d6;
  font-weight: 700;
  text-decoration: none;
}

.phones-offer-text a:hover,
.phones-offer-text a:focus-visible {
  color: #ffffff;
}

/* Shared panel. Thin blue edge, dark glass fill, soft blue glow
   under the box, and a bright line along the bottom edge. */
.phones-panel {
  position: relative;
  margin: 0 0 8px;
  border: 1px solid rgba(42, 130, 190, 0.45);
  border-radius: 8px;
  background: rgba(8, 20, 40, 0.62);
  box-shadow:
    0 0 18px rgba(74, 192, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.35);
}

.phones-panel::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ac0ff, transparent);
  box-shadow: 0 0 12px rgba(74, 192, 255, 0.85), 0 0 28px rgba(74, 192, 255, 0.45);
  pointer-events: none;
}

.phones-panel-title {
  position: relative;
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(8, 20, 40, 0.78);
  border-bottom: 1px solid rgba(42, 130, 190, 0.35);
  border-radius: 8px 8px 0 0;
}

/* Short glow along the top of the title bar, same idea as the flyer. */
.phones-panel-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 36%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4ac0ff, transparent);
  box-shadow: 0 0 12px rgba(74, 192, 255, 0.85), 0 0 28px rgba(74, 192, 255, 0.4);
}

.phones-split {
  display: flex;
}

.phones-price {
  flex: 1;
  text-align: center;
  padding: 22px 12px 26px;
}

.phones-price + .phones-price {
  border-left: 1px solid rgba(42, 130, 190, 0.4);
}

.phones-price-label {
  margin-bottom: 6px;
  color: #c0e8ff;
  font-size: 1rem;
}

.phones-price-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.phones-price-value span {
  font-size: 0.42em;
  font-weight: 400;
  color: #c0e8ff;
}

.phones-tax-note {
  margin: 8px 0 30px;
  text-align: center;
  color: #c0e8ff;
  font-size: 0.9rem;
  font-style: italic;
}

/* Feature rows sit on the starfield, not inside a panel. */
.phones-features {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  gap: 22px 72px;
  margin: 0 auto 34px;
  padding: 8px 8px 4px;
}

.phones-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 280px;
  max-width: 100%;
}

.phones-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #2a82be;
  background: rgba(42, 130, 190, 0.08);
  box-shadow: 0 0 12px rgba(42, 159, 214, 0.2);
}

.phones-feature-icon svg {
  width: 20px;
  height: 20px;
}

.phones-feature-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
}

.phones-feature-sub {
  margin-top: 2px;
  color: #c0e8ff;
  font-size: 0.88rem;
}

.phones-details {
  margin-top: 0;
  margin-bottom: 28px;
}

.phones-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.phones-col {
  padding: 18px 14px 22px;
  text-align: center;
}

.phones-col + .phones-col {
  border-left: 1px solid rgba(42, 130, 190, 0.4);
}

.phones-col h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

.phones-col p {
  margin: 0;
  color: #f0f4f8;
  font-size: 0.92rem;
  line-height: 1.7;
}

.phones-col strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.phones-col-note {
  margin-top: 4px;
  color: #c0e8ff;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.45;
}

/* The onsite line on the flyer is a note, but it is not italic. */
.phones-col-note-plain {
  font-style: normal;
}

.phones-support-lead {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

/* Contact bar. Top and bottom glow lines, no side border, matching the flyer. */
.phones-contact {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin: 0 0 8px;
  padding: 14px 16px;
  background: rgba(5, 12, 25, 0.78);
}

.phones-contact::before,
.phones-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #4ac0ff 15%, #4ac0ff 85%, transparent);
  box-shadow: 0 0 8px rgba(74, 192, 255, 0.55);
  pointer-events: none;
}

.phones-contact::before {
  top: 0;
}

.phones-contact::after {
  bottom: 0;
}

.phones-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

.phones-contact a:hover,
.phones-contact a:focus-visible {
  color: #ffffff;
}

.phones-contact svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.phones-contact-phone span {
  text-shadow: 0 0 12px rgba(231, 76, 60, 0.75), 0 0 28px rgba(231, 76, 60, 0.35);
}

.phones-contact-phone svg {
  filter: drop-shadow(0 0 6px rgba(231, 76, 60, 0.7));
}

/* The footer is the normal site footer. Pull it up against the
   contact bar a little less than the homepage's 70px, so the flyer
   bar still reads as the end of the flyer. */
.phones-body .footer-container {
  position: relative;
  z-index: 1;
}

/* On a 1080p desktop the wordmark hangs on the left and the title
   is centered, so the title does not need the full logo clearance.
   Pulling it up is what keeps the contact bar on screen. */
@media (min-width: 1400px) {
  .phones {
    padding-top: 80px;
  }
}

@media (max-width: 1100px) {
  .phones {
    padding-top: 150px;
  }
}

@media (max-width: 700px) {
  .phones-body {
    background-attachment: scroll;
  }

  .phones {
    padding: 176px 14px 4px;
  }

  .phones h1 {
    font-size: 2.1rem;
  }

  .phones-sub {
    font-size: 1rem;
  }

  .phones-split {
    flex-direction: column;
  }

  .phones-price + .phones-price {
    border-left: 0;
    border-top: 1px solid rgba(42, 130, 190, 0.4);
  }

  .phones-price-value {
    font-size: 2.6rem;
  }

  .phones-features {
    grid-template-columns: max-content;
    gap: 18px;
    justify-content: center;
  }

  .phones-cols {
    grid-template-columns: 1fr;
  }

  .phones-col + .phones-col {
    border-left: 0;
    border-top: 1px solid rgba(42, 130, 190, 0.4);
  }

  .phones-contact {
    flex-direction: column;
    gap: 12px;
  }
}

/* Wrapped header on a very narrow phone. Same extra clearance as the award page. */
@media (max-width: 334px) {
  .phones {
    padding-top: 214px;
  }

  .phones-feature {
    width: 100%;
  }
}
