/* Product and solutions pages (Email, SMS, MMS, Fax, Voice, Quick Send, Marketing
   communications, Business essential communications, Document Portal).

   Built from the November 2026 build brief and its HTML exports. Everything here is
   namespaced .pg-* and scoped under .pg-main, so it is inert on every other page.
   layout/_pg_open.php links this sheet; a page with graphics of its own also gets
   css/pg/<page>.css.

   The page skeleton (hero, feature rows, tick lists, buttons, closing band) lives
   here as classes. The illustrations inside .pg-vis are lifted from the exports and
   keep their inline styles: each is a one-off drawing, positioned to the pixel. */

/* ---------- page shell ---------- */
.pg-main {
  position: relative;
  font-family: var(--p-font-ui);
  font-size: 16px;
  line-height: normal;
  text-align: left;
  color: #1b2c38;
  background: linear-gradient(180deg, #1d6191 0%, #a9cfe6 5%, #d7e6f2 10%, #e8eff7 16%, #e8eff7 100%);
  --pg-display-weight: 500;
  /* A graphic may be drawn slightly wider than its column; that must never give
     the page a horizontal scrollbar. clip, not hidden: the nav stays sticky. */
  overflow-x: clip;
}

/* Display face: headings, card titles and big numbers inside the graphics.
   The exports ask for weight 700 but embed only Ranade Regular, so what the designer
   signed off is a browser-synthesised bold: lighter and narrower than the real Bold
   this site serves. 500 is the real cut that reproduces the exports' line breaks. */
.pg-display,
.pg-h1,
.pg-h2,
.pg-hand-title {
  font-family: var(--p-font-display);
  font-weight: var(--pg-display-weight);
}

/* The exports were drawn without a CSS reset. Bootstrap's reset (border-box sizing,
   zeroed margins, middle-aligned images) would shift every pixel-placed graphic, so
   the browser defaults they assume are restored inside the page. */
.pg-main,
.pg-main *,
.pg-main *::before,
.pg-main *::after { box-sizing: content-box; }

.pg-main p,
.pg-main ul,
.pg-main ol { margin: 1em 0; }
.pg-main img,
.pg-main svg { vertical-align: baseline; }
.pg-main label { display: inline; margin: 0; }
.pg-main section { scroll-margin-top: 80px; }

/* css/default.php colours every link state blue; restate the exports' ink. */
.pg-main a:link,
.pg-main a:visited,
.pg-main a:hover,
.pg-main a:active { color: #1b2c38; }
.pg-main a:hover { color: #0b2236; }

/* ---------- drifting colour blooms behind the page ---------- */
.pg-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pg-bloom { position: absolute; border-radius: 50%; }

.pg-bo {
  width: 62vw;
  height: 62vw;
  right: -14%;
  background: radial-gradient(circle, rgba(231, 125, 32, 0.4), rgba(231, 125, 32, 0) 62%);
  filter: blur(24px);
  animation: pg-bloomA 28s ease-in-out infinite;
}

.pg-bb {
  width: 54vw;
  height: 54vw;
  left: -18%;
  background: radial-gradient(circle, rgba(45, 111, 219, 0.3), rgba(45, 111, 219, 0) 62%);
  filter: blur(26px);
  animation: pg-bloomB 34s ease-in-out infinite;
}

.pg-bg {
  width: 58vw;
  height: 58vw;
  left: 16%;
  background: radial-gradient(circle, rgba(202, 208, 216, 0.3), rgba(202, 208, 216, 0) 64%);
  filter: blur(24px);
  animation: pg-bloomA 31s ease-in-out infinite reverse;
}

@keyframes pg-bloomA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 5%) scale(1.13); }
}

@keyframes pg-bloomB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, -4%) scale(1.1); }
}

/* ---------- sections: stacked frosted panels ----------
   Each overlaps the one above by 30px. The exports round the top corners (44px);
   the site runs them square. */
.pg-main > section { position: relative; z-index: 1; }

.pg-main > section:not(.pg-hero) {
  margin-top: -30px;
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 -16px 40px rgba(27, 62, 93, 0.05);
}

.pg-sec { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 6rem); }
.pg-sec--white { background: rgba(255, 255, 255, 0.5); }
.pg-sec--mist { background: linear-gradient(rgba(238, 244, 250, 0.44), rgba(228, 238, 246, 0.44)); }
.pg-sec--warm { background: linear-gradient(rgba(249, 245, 238, 0.46), rgba(243, 238, 227, 0.46)); }

/* The column of feature rows inside a section. */
.pg-stack {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 7vw, 6rem);
}

/* ---------- hero ----------
   A photo hero starts below the nav, so no part of the photo is hidden behind the
   menu. The nav sits on the navy at the top of the body gradient above it. */
.pg-hero {
  padding-bottom: 30px;
  background: linear-gradient(180deg, #0b2236 0%, #123a59 45%, #17527d 75%, #1d6191 100%);
  color: #fff;
  overflow: hidden;
}

.pg-hero--stars {
  position: relative;
  background:
    radial-gradient(60% 70% at 88% 10%, rgba(231, 125, 32, 0.28), rgba(231, 125, 32, 0) 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(29, 97, 145, 0.55), rgba(29, 97, 145, 0) 70%),
    linear-gradient(180deg, #0b2236 0%, #123a59 50%, #17527d 85%, #1d6191 100%);
}

/* The starry hero has no photo to hide, so its star field runs up under the sticky
   nav (81px, as .p-abhero does) and the copy is pushed back down by the same amount. */
.pg-hero--stars { margin-top: -81px; padding-top: 81px; }
.pg-hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* On the six photo-hero pages the nav is a navy bar above the hero until the page
   scrolls and it turns into the usual frosted bar. The three starry heroes run
   under the nav and keep it transparent. */
body:is(.p-page--products-email, .p-page--products-sms, .p-page--products-mms,
  .p-page--products-fax, .p-page--products-voice, .p-page--solutions-quick_send)
  .p-nav[data-scrolled="false"] {
  background: rgba(11, 34, 54, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pg-hero-split { display: flex; flex-wrap: wrap; min-height: 680px; }

.pg-hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 6rem);
  box-sizing: border-box;
}

.pg-hero-text { display: flex; flex-direction: column; gap: 22px; max-width: 32rem; }

.pg-h1 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  line-height: 1.08;
  color: #fff;
}

.pg-main .pg-hero-intro {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(220, 235, 245, 0.85);
}

.pg-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.pg-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.88rem;
  color: rgba(220, 235, 245, 0.85);
}

.pg-point { display: flex; align-items: center; gap: 8px; }
.pg-dot { width: 6px; height: 6px; border-radius: 50%; background: #e77d20; }

/* ---------- buttons ---------- */
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 15px 29px;
  border-radius: 11px;
  box-sizing: border-box;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.pg-main a.pg-btn--orange,
.pg-main a.pg-btn--orange:hover { background: #e77d20; color: #0b2236; }
.pg-main a.pg-btn--orange:hover { background: #cf6c14; }

.pg-main a.pg-btn--ghost,
.pg-main a.pg-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0.8px solid rgba(255, 255, 255, 0.4);
}
.pg-main a.pg-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

.pg-btn:focus-visible,
.pg-more:focus-visible { outline: 3px solid #e77d20; outline-offset: 3px; }
.pg-btn--orange:focus-visible { outline-color: #fff; }

/* ---------- feature row: copy on one side, graphic on the other ---------- */
.pg-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.pg-row--flip { flex-direction: row-reverse; }

.pg-copy {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pg-h2 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  color: #1b2c38;
}

.pg-h2--light { color: #fff; }

/* A heading the designer set wider than its text column (Email). Desktop only:
   once the row stacks, the heading follows the column again. */
.pg-h2--wide { width: var(--pg-h2-width); }

.pg-main .pg-lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #2e475b;
  max-width: 34rem;
}

.pg-main .pg-lead--light { color: rgba(220, 235, 245, 0.88); }

/* Tick list. The tick is drawn by the stylesheet so the markup is a plain list. */
.pg-main .pg-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pg-ticks > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
  color: #1b2c38;
}

.pg-ticks--light > li { color: #e6eef5; }

.pg-ticks > li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23e77d20'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.4' fill='none' stroke='%230b2236' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* "Explore Campaign Board" style text link under the copy. */
.pg-main a.pg-more {
  align-self: flex-start;
  padding-bottom: 2px;
  border-bottom: 2px solid #e77d20;
  font-weight: 600;
  color: #1b2c38;
  text-decoration: none;
}

/* The graphic's column. It bleeds a little towards the page edge on wide screens. */
.pg-art { flex: 999 1 620px; min-width: 0; display: flex; }
.pg-art--start { justify-content: flex-start; margin-left: clamp(-3rem, -3vw, 0rem); }
.pg-art--end { justify-content: flex-end; margin-right: clamp(-3rem, -3vw, 0rem); }

/* Graphic column of the flat Business essentials page. */
.pg-figure { flex: 1 1 520px; display: flex; justify-content: center; }

.pg-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(231, 125, 32, 0.18), rgba(45, 111, 219, 0.08) 60%, rgba(45, 111, 219, 0) 100%);
  filter: blur(20px);
}

.pg-vis-in {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- "Need a hand" band (Email, SMS) ---------- */
.pg-main > section.pg-hand {
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.25rem, 5vw, 6rem);
  background: #e77d20;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.pg-hand-in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}

.pg-hand-main { display: flex; align-items: flex-start; gap: 20px; flex: 1 1 560px; }
.pg-hand-copy { display: flex; flex-direction: column; gap: 10px; }

.pg-wave {
  flex: none;
  display: inline-block;
  font-size: 52px;
  line-height: 1;
  transform-origin: 70% 75%;
  animation: pg-wave 3.2s ease-in-out infinite;
}

.pg-hand:hover .pg-wave { animation-duration: 1.6s; }

@keyframes pg-wave {
  0%, 45%, 100% { transform: rotate(0); }
  6% { transform: rotate(16deg); }
  12% { transform: rotate(-8deg); }
  18% { transform: rotate(16deg); }
  24% { transform: rotate(-6deg); }
  30% { transform: rotate(12deg); }
  36% { transform: rotate(0); }
}

.pg-hand-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  color: #fff;
}

.pg-hand-body { font-size: 1.05rem; line-height: 1.6; color: #fff; max-width: 40rem; }
.pg-hand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.pg-hand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.pg-hand-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b2236;
}

.pg-hand-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.pg-main a.pg-hand-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 26px;
  border-radius: 11px;
  box-sizing: border-box;
  background: #0b2236;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.pg-main a.pg-hand-btn--line {
  border: 1.5px solid #0b2236;
  background: transparent;
  color: #0b2236;
}

.pg-hand-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- closing "Try your first send free." band ---------- */
.pg-main > section.pg-cta {
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 5vw, 6rem);
  background: linear-gradient(155deg, rgba(9, 26, 44, 0.9), rgba(16, 52, 80, 0.85) 55%, rgba(27, 92, 142, 0.82));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  text-align: center;
}

.pg-cta-in {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pg-cta .pg-btns { justify-content: center; margin-top: 0.5rem; }

/* ---------- pause control for looping graphics (WCAG 2.2.2) ---------- */
.pg-pausebtn .ic-play { display: none; }
.pg-paused .pg-pausebtn .ic-play { display: block; }
.pg-paused .pg-pausebtn .ic-pause { display: none; }
.pg-pausebtn:focus-visible { outline: 3px solid #e77d20; outline-offset: 2px; }
.pg-paused .pg-wave { animation-play-state: paused; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  /* Graphics stack under the copy at their natural size. */
  .pg-vis { min-height: 0 !important; padding: 8px 0 24px; zoom: 1 !important; }
  /* The graphics are drawn at fixed pixel sizes. js/pg-fit.js measures each one and
     sets --pg-fit so it shrinks to its column instead of running off a phone screen. */
  .pg-main .pg-fit { zoom: var(--pg-fit, 1) !important; }
  .pg-h2--wide { width: auto; }
  /* The bleed towards the page edge is a wide-screen effect; stacked, it would
     push floating badges off the side of a phone. */
  .pg-art--start { margin-left: 0; }
  .pg-art--end { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-bloom,
  .pg-wave { animation: none; }
  .pg-pausebtn { display: none !important; }
}
